Skip to content
This repository has been archived by the owner on Mar 6, 2020. It is now read-only.

Commit

Permalink
Merge pull request #29 from peterberkenbosch/add-gem-release
Browse files Browse the repository at this point in the history
Add gem-release to this and for new extensions template
  • Loading branch information
kennyadsl authored Feb 26, 2019
2 parents 8f6bbe6 + b5c92d7 commit d66bbac
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .gem_release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
bump:
recurse: false
file: 'lib/solidus_cmd/version.rb'
message: Bump Solidus CMD to %{version}
branch: true
1 change: 1 addition & 0 deletions lib/solidus_cmd/extension.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ def generate
template 'extension.gemspec', "#{file_name}/#{file_name}.gemspec"
template 'Gemfile', "#{file_name}/Gemfile"
template 'gitignore', "#{file_name}/.gitignore"
template 'gem_release.yml.tt', "#{file_name}/.gem_release.yml"
template 'LICENSE', "#{file_name}/LICENSE"
template 'Rakefile', "#{file_name}/Rakefile"
template 'README.md', "#{file_name}/README.md"
Expand Down
9 changes: 9 additions & 0 deletions lib/solidus_cmd/templates/extension/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,13 @@ Simply add this require statement to your spec_helper:
require '<%= file_name %>/factories'
```

Releasing
---------

Your new extension version can be released using `gem-release` like this:

```shell
bundle exec gem bump -v VERSION --tag --push --remote upstream && gem release
```

Copyright (c) <%= Time.now.year %> [name of extension creator], released under the New BSD License
1 change: 1 addition & 0 deletions lib/solidus_cmd/templates/extension/extension.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,5 @@ Gem::Specification.new do |s|
s.add_development_dependency 'rubocop'
s.add_development_dependency 'rubocop-rspec'
s.add_development_dependency 'simplecov'
s.add_development_dependency 'gem-release'
end
5 changes: 5 additions & 0 deletions lib/solidus_cmd/templates/extension/gem_release.yml.tt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
bump:
recurse: false
file: 'lib/<%=file_name%>/version.rb'
message: Bump <%=class_name%> to %{version}
branch: true
1 change: 1 addition & 0 deletions solidus_cmd.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ Gem::Specification.new do |s|
s.add_development_dependency 'rubocop', '~> 0.49'
s.add_development_dependency 'rubocop-rspec'
s.add_development_dependency 'relaxed-rubocop'
s.add_development_dependency 'gem-release'
# Temporary hack until https://github.com/wycats/thor/issues/234 is fixed
s.add_dependency 'thor', '~> 0.14'
end

0 comments on commit d66bbac

Please sign in to comment.