Skip to content

Commit

Permalink
Merge pull request #64 from svenfuchs/sf-v2
Browse files Browse the repository at this point in the history
Rewrite to v2
  • Loading branch information
svenfuchs committed May 6, 2017
2 parents 567efe7 + 7693b27 commit 7c4e404
Show file tree
Hide file tree
Showing 116 changed files with 5,370 additions and 1,869 deletions.
22 changes: 1 addition & 21 deletions .gitignore
@@ -1,27 +1,7 @@
# Because this is a gem, ignore Gemfile.lock:

Gemfile.lock

# And because this is Ruby, ignore the following
# (source: https://github.com/github/gitignore/blob/master/Ruby.gitignore):

*.gem
*.rbc
.bundle
.config
.env
coverage
InstalledFiles
lib/bundler/man
pkg
rdoc
spec/reports
test/tmp
test/version_tmp
tmp
gemfiles/*.lock

# YARD artifacts
.yardoc
_yardoc
doc/
vendor
3 changes: 3 additions & 0 deletions .rspec
@@ -0,0 +1,3 @@
--color
--require spec_helper
--order rand
16 changes: 9 additions & 7 deletions .travis.yml
@@ -1,8 +1,10 @@
branches:
only:
- master
script: "COVERAGE=true ruby -Ilib:test test/all.rb"
sudo: false
dist: trusty

cache: bundler

rvm:
- 1.9.3
- 2.0.0
- jruby-19mode
- 2.3
- 2.4

script: COVERAGE=true bundle exec rspec
27 changes: 27 additions & 0 deletions CHANGELOG.md
@@ -0,0 +1,27 @@
# Changelog

## v2.0.0

This is a major rewrite, 7 years after the initial implementation.

### Major changes

* Consistent config format, using config files, environment variables, and
command line options
* Custom template groups for `gem bootstrap`
* Complete help output in `gem [command] --help`
* Consistent behaviour in multi-gem scenarios (see the
[README](https://github.com/svenfuchs/gem-release/blob/master/README.md#scenarios))
* Consistent command line option defaults across commands when invoked with a
shortcut, e.g. `gem bump --release --tag` vs `gem release --tag`
* Colorized, more consistently formatted output

### Other changes

* Fix misleading success message when `gem push` fails
* Release and tag now fail if there are uncommitted changes
* Add `--message` and `--skip-ci` to `gem bump` in order to customize the
commit message
* Add `--sign` to `gem bump` and `gem tag` in order to GPG sign commits and
tags
* Support version files of gems with an `*_rb` suffix
13 changes: 10 additions & 3 deletions Gemfile
@@ -1,6 +1,13 @@
source "https://rubygems.org"
gemspec
source 'https://rubygems.org'

gem 'gem-release', path: '.'

group :development do
gem 'test-unit'
gem 'geminabox'
end

group :test do
gem 'rspec'
gem 'simplecov'
gem 'coveralls'
end
5 changes: 3 additions & 2 deletions lib/gem_release/templates/LICENSE → MIT-LICENSE.md
@@ -1,6 +1,6 @@
MIT LICENSE
# MIT LICENSE

Copyright (c) <% year %> <%= author %> <<%= email %>>
Copyright (c) 2010-2017 Sven Fuchs <me@svenfuchs.com>

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand All @@ -19,3 +19,4 @@ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.

0 comments on commit 7c4e404

Please sign in to comment.