tasks/release.rake in sufia-4.0.0.beta2 vs tasks/release.rake in sufia-4.0.0.beta3

- old
+ new

@@ -39,28 +39,28 @@ cmd << "cd #{framework} && " unless framework == "sufia" cmd << "gem build #{gemspec} && mv #{framework}-#{version}.gem #{root}/pkg/" sh cmd end - task :build => [:clean, gem] - task :install => :build do + task build: [:clean, gem] + task install: :build do sh "gem install #{gem}" end - task :prep_release => [:ensure_clean_state, :build] + task prep_release: [:ensure_clean_state, :build] - task :push => :build do + task push: :build do sh "gem push #{gem}" end end end namespace :all do - task :build => ['sufia-models:build', 'sufia:build'] - task :install => ['sufia-models:install', 'sufia:install'] - task :push => ['sufia-models:push', 'sufia:push'] + task build: ['sufia-models:build', 'sufia:build'] + task install: ['sufia-models:install', 'sufia:install'] + task push: ['sufia-models:push', 'sufia:push'] task :ensure_clean_state do unless `git status -s | grep -v SUFIA_VERSION | grep -v History.md`.strip.empty? abort "[ABORTING] `git status` reports a dirty tree. Make sure all changes are committed" end @@ -86,8 +86,8 @@ sh "git tag #{tag}" sh "git push --tags" end desc "Release both sufia and sufia-models and update the version to #{version} in all locations" - task :release => %w(ensure_clean_state build commit tag push) + task release: %w(ensure_clean_state build commit tag push) end