Sha256: e1bc486fd7be97883e77dfc9c5d4fe6f836d0f4999384e0d3a84985558394cb9
Contents?: true
Size: 1.27 KB
Versions: 2
Compression:
Stored size: 1.27 KB
Contents
require 'bundler/gem_tasks' require 'rake/testtask' Rake::TestTask.new(:test) do |t| t.libs << 'test' t.libs << 'lib' t.test_files = FileList['test/**/*_test.rb'] end <%- if @engine -%> APP_RAKEFILE = File.expand_path('../test/dummy/Rakefile', __FILE__) load 'rails/tasks/engine.rake' load 'rails/tasks/statistics.rake' <%- end -%> desc 'Bump patch version' task :patch do system 'gem bump --tag' end desc 'Bump minor version' task :minor do system 'gem bump --version minor --tag' end desc 'Bump major version' task :major do system 'gem bump --version major --tag' end task publish: [:build] do $VERBOSE = nil load '<%= @gem_name %>/version.rb' <%- if @repository.private? -%> system "gem inabox pkg/<%= @gem_name %>-#{<%= @class_name %>::VERSION}.gem" <%- else -%> system "gem push pkg/<%= @gem_name %>-#{<%= @class_name %>::VERSION}.gem" <%- end -%> end desc 'Bump patch version, create git tag, build the gem and release to geminabox (default)' task release_patch: %i[test patch publish] desc 'Bump minor version, create git tag, build the gem and release to geminabox' task release_minor: %i[test minor publish] desc 'Bump major version, create git tag, build the gem and release to geminabox' task release_major: %i[test major publish] task default: :test
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
nugem-0.8.3 | templates/common/gem_scaffold/Rakefile.tt |
nugem-0.8.1 | templates/common/gem_scaffold/Rakefile.tt |