initial commit
This commit is contained in:
commit
460e129d11
|
@ -0,0 +1,17 @@
|
||||||
|
*.gem
|
||||||
|
*.rbc
|
||||||
|
.bundle
|
||||||
|
.config
|
||||||
|
.yardoc
|
||||||
|
Gemfile.lock
|
||||||
|
InstalledFiles
|
||||||
|
_yardoc
|
||||||
|
coverage
|
||||||
|
doc/
|
||||||
|
lib/bundler/man
|
||||||
|
pkg
|
||||||
|
rdoc
|
||||||
|
spec/reports
|
||||||
|
test/tmp
|
||||||
|
test/version_tmp
|
||||||
|
tmp
|
|
@ -0,0 +1,4 @@
|
||||||
|
source 'https://rubygems.org'
|
||||||
|
|
||||||
|
# Specify your gem's dependencies in jquery-sprockets.gemspec
|
||||||
|
gemspec
|
|
@ -0,0 +1,22 @@
|
||||||
|
Copyright (c) 2012 John Bintz
|
||||||
|
|
||||||
|
MIT License
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining
|
||||||
|
a copy of this software and associated documentation files (the
|
||||||
|
"Software"), to deal in the Software without restriction, including
|
||||||
|
without limitation the rights to use, copy, modify, merge, publish,
|
||||||
|
distribute, sublicense, and/or sell copies of the Software, and to
|
||||||
|
permit persons to whom the Software is furnished to do so, subject to
|
||||||
|
the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be
|
||||||
|
included in all copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||||
|
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||||
|
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||||||
|
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
||||||
|
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
||||||
|
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||||||
|
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
@ -0,0 +1,29 @@
|
||||||
|
# Jquery::Sprockets
|
||||||
|
|
||||||
|
TODO: Write a gem description
|
||||||
|
|
||||||
|
## Installation
|
||||||
|
|
||||||
|
Add this line to your application's Gemfile:
|
||||||
|
|
||||||
|
gem 'jquery-sprockets'
|
||||||
|
|
||||||
|
And then execute:
|
||||||
|
|
||||||
|
$ bundle
|
||||||
|
|
||||||
|
Or install it yourself as:
|
||||||
|
|
||||||
|
$ gem install jquery-sprockets
|
||||||
|
|
||||||
|
## Usage
|
||||||
|
|
||||||
|
TODO: Write usage instructions here
|
||||||
|
|
||||||
|
## Contributing
|
||||||
|
|
||||||
|
1. Fork it
|
||||||
|
2. Create your feature branch (`git checkout -b my-new-feature`)
|
||||||
|
3. Commit your changes (`git commit -am 'Added some feature'`)
|
||||||
|
4. Push to the branch (`git push origin my-new-feature`)
|
||||||
|
5. Create new Pull Request
|
|
@ -0,0 +1,34 @@
|
||||||
|
#!/usr/bin/env rake
|
||||||
|
require "bundler/gem_tasks"
|
||||||
|
require 'httparty'
|
||||||
|
|
||||||
|
DIR = Pathname('vendor/assets/javascripts')
|
||||||
|
|
||||||
|
JQ_VERSIONS = %w{1.8.0 1.7.2 1.6.4}
|
||||||
|
JQ_URL = "http://code.jquery.com/jquery-%s.js"
|
||||||
|
|
||||||
|
JQUI_VERSION = '1.8.22'
|
||||||
|
JQUI_URL = "http://ajax.googleapis.com/ajax/libs/jqueryui/%s/jquery-ui.min.js"
|
||||||
|
|
||||||
|
desc 'Download all versions of jQuery and make the newest one the primary one'
|
||||||
|
task(:download) do
|
||||||
|
DIR.rmtree if DIR.directory?
|
||||||
|
DIR.mkpath
|
||||||
|
|
||||||
|
most_recent = JQ_VERSIONS.sort { |a, b| Gem::Version.new(b) <=> Gem::Version.new(a) }.first
|
||||||
|
|
||||||
|
JQ_VERSIONS.each do |version|
|
||||||
|
puts version
|
||||||
|
data = HTTParty.get(JQ_URL % version, :format => :text)
|
||||||
|
|
||||||
|
DIR.join("jquery-#{version}.js").open('w') { |fh| fh.print data }
|
||||||
|
|
||||||
|
if version == most_recent
|
||||||
|
DIR.join("jquery.js").open('w') { |fh| fh.print data }
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
data = HTTParty.get(JQUI_URL % JQUI_VERSION, :format => :text)
|
||||||
|
DIR.join("jquery-ui.js").open('w') { |fh| fh.print data }
|
||||||
|
end
|
||||||
|
|
|
@ -0,0 +1,19 @@
|
||||||
|
# -*- encoding: utf-8 -*-
|
||||||
|
require File.expand_path('../lib/jquery-sprockets/version', __FILE__)
|
||||||
|
|
||||||
|
Gem::Specification.new do |gem|
|
||||||
|
gem.authors = ["John Bintz"]
|
||||||
|
gem.email = ["john@coswellproductions.com"]
|
||||||
|
gem.description = %q{Just jQuery for Sprockets. No Rails bits, no strange dependencies.}
|
||||||
|
gem.summary = %q{Just jQuery for Sprockets. No Rails bits, no strange dependencies.}
|
||||||
|
gem.homepage = ""
|
||||||
|
|
||||||
|
gem.files = `git ls-files`.split($\)
|
||||||
|
gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
|
||||||
|
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
|
||||||
|
gem.name = "jquery-sprockets"
|
||||||
|
gem.require_paths = ["lib"]
|
||||||
|
gem.version = Jquery::Sprockets::VERSION
|
||||||
|
|
||||||
|
gem.add_development_dependency 'httparty'
|
||||||
|
end
|
|
@ -0,0 +1,7 @@
|
||||||
|
require "jquery-sprockets/version"
|
||||||
|
|
||||||
|
module Jquery
|
||||||
|
module Sprockets
|
||||||
|
# Your code goes here...
|
||||||
|
end
|
||||||
|
end
|
|
@ -0,0 +1,5 @@
|
||||||
|
module Jquery
|
||||||
|
module Sprockets
|
||||||
|
VERSION = "0.0.1"
|
||||||
|
end
|
||||||
|
end
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue