Sha256: a18e62c58be1d098c5b9f3732445914638a017e8d97299b92958e632efcb7329
Contents?: true
Size: 942 Bytes
Versions: 1
Compression:
Stored size: 942 Bytes
Contents
#!/usr/bin/env rake require "bundler/gem_tasks" def download(version) source_url = "https://ajax.googleapis.com/ajax/libs/jquery/#{version}/jquery.js" `wget -O vendor/assets/javascripts/jquery.js #{source_url}` end def write_version_file(version) version_file_text = <<-eos.gsub(/^ {4}/, '') module Jquery module Source VERSION = "#{version}" end end eos File.open('lib/jquery-source/version.rb', 'w') do |file| file.puts version_file_text end end def make_version(version) download(version) write_version_file(version) `git ci -am "jQuery #{version}"` `rake release` end task :make_all_versions do versions = "1.2.3, 1.2.6, 1.3.0, 1.3.1, 1.3.2, 1.4.0, 1.4.1, 1.4.2, 1.4.3, 1.4.4, 1.5.0, 1.5.1, 1.5.2, 1.6.0, 1.6.1, 1.6.2, 1.6.3, 1.6.4, 1.7.0, 1.7.1".split(", ") versions.each do |version| make_version(version) end end task :make_version do make_version("1.2.3") end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
jquery-source-1.2.3 | Rakefile |