Rakefile in jquery-cdn-2.0.3 vs Rakefile in jquery-cdn-2.1.0
- old
+ new
@@ -42,16 +42,21 @@
end
puts "Fetching tags"
tag = github_tags('jquery/jquery').last
- puts "Load jQuery #{tag}"
- fetch(tag)
+ require './lib/jquery-cdn/version'
+ if tag.to_s == JqueryCdn::VERSION
+ puts "No releases, since #{ JqueryCdn::VERSION }"
+ else
+ puts "Load jQuery #{tag}"
+ fetch(tag)
- puts "Update gem version"
- update_version(tag)
+ puts "Update gem version"
+ update_version(tag)
- puts "Done"
+ puts "Done"
+ end
end
desc 'Delete all generated files'
task :clobber do
rm_r 'pkg' rescue nil