Rakefile in dropzonejs-rails-0.4.14 vs Rakefile in dropzonejs-rails-0.4.16
- old
+ new
@@ -42,11 +42,17 @@
readme = File.join(File.dirname(__FILE__), 'README.md')
sed readme, { /\*\*Dropzone v#{DropzonejsRails::DROPZONE_VERSION}\*\*/ => "**Dropzone v#{latest_version}**" }
puts "A new version of dropzone (v#{latest_version}) has been found, and the source files have been accordingly updated.\nYou may now run: `rake get` to get it."
else
- puts "The bundled version of dropzone (v#{DropzonejsRails::DROPZONE_VERSION}) already is the latest one."
+ raise "The bundled version of dropzone (v#{DropzonejsRails::DROPZONE_VERSION}) already is the latest one."
end
+end
+
+desc 'Bump the dropzone js version to the latest, commit changes and perform a release'
+task bump: [:check, :get] do
+ %x{ git add -A . && git commit -m 'rake bump: Version bump' }
+ Rake::Task['release'].invoke
end
def download_dropzone_file(source_file, target_file)
source = "https://raw.github.com/enyo/dropzone/v#{DropzonejsRails::DROPZONE_VERSION}/downloads/#{source_file}"
target = DropzonejsRails::Engine.root.join(target_file)