keepachangelog_manager 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 77a5bbc658a38412711067bc833cbd9d46b2bef2
4
- data.tar.gz: c4ab817a80b97bb93938e1b20f53ea5cc4a5870c
3
+ metadata.gz: 27a3b2fdb1d1d1fa93299f17e2c59d9eea4050d7
4
+ data.tar.gz: f79e3077fb3537008b6ccd474618761c1480362f
5
5
  SHA512:
6
- metadata.gz: 60d59c8034fa8ae6e546575859bfcd625a40977839eb9c71aa18f9c7e576a6ac83e9a1e45de7ae95ff092d108c35e796ba9ba47ed39c54f1d8a8c20d0c1d1c15
7
- data.tar.gz: 04e47a37894d997698388616629f05640e01f2da4e5a1575f2523eb060d2c9e4d8de628ab4f555f635c04e7da0ecc9a8225e5cd4cbeda164e651c95a7bb5373d
6
+ metadata.gz: 279e63af1f05a8ea01015499a0e3847c802c8febf2801b1443a9af74205f881eb11c2fc49bb4730e45908359bd75a72d0b4a6468fa56d08f32a1251a6c796e87
7
+ data.tar.gz: 65f523a4d271d4dc55276312724935a63d216b1004c709ddf9927fa5dfb5b121634f96a14ea5cc897ddc2df26d5e9d95b439d6bb8ec99473dbe7c9f819c5f95a
data/README.md CHANGED
@@ -1,7 +1,7 @@
1
1
 
2
2
  # `keepachangelog_manager` Ruby gem for your CHANGELOG.md
3
3
  [![Gem Version](https://badge.fury.io/rb/keepachangelog_manager.svg)](https://rubygems.org/gems/keepachangelog_manager)
4
- [![Documentation](http://img.shields.io/badge/docs-rdoc.info-blue.svg)](http://www.rubydoc.info/gems/keepachangelog_manager/0.0.1)
4
+ [![Documentation](http://img.shields.io/badge/docs-rdoc.info-blue.svg)](http://www.rubydoc.info/gems/keepachangelog_manager/0.0.2)
5
5
  [![Build Status](http://badges.herokuapp.com/travis/ianfixes/keepachangelog_manager_gem?label=build&branch=master)](https://travis-ci.org/ianfixes/keepachangelog_manager_gem)
6
6
 
7
7
  If you follow the [Keep A Changelog](http://keepachangelog.com) `CHANGELOG.md` style, this gem automates the process of updating the file for a release.
@@ -38,7 +38,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
38
38
  [0.0.1]: https://github.com/ianfixes/keepachangelog_manager_gem/compare/v0.0.0...v0.0.1
39
39
  ```
40
40
 
41
- After running `bundle exec keepachangelog_release.md --increment-minor`:
41
+ After running `bundle exec keepachangelog_manager.rb --increment-minor`:
42
42
 
43
43
  ```markdown
44
44
  # Change Log
@@ -2,6 +2,8 @@
2
2
  require 'keepachangelog_manager'
3
3
  require 'optparse'
4
4
 
5
+ $exit_code = 0
6
+
5
7
  # Use some basic parsing to allow command-line overrides of config
6
8
  class Parser
7
9
  def self.parse(options)
@@ -36,7 +38,7 @@ class Parser
36
38
 
37
39
  opts.on("-h", "--help", "Prints this help") do
38
40
  puts opts
39
- exit
41
+ exit $exit_code
40
42
  end
41
43
  end
42
44
 
@@ -47,7 +49,10 @@ end
47
49
 
48
50
  # Read in command line options and make them read-only
49
51
  @cli_options = (Parser.parse ARGV).freeze
50
- Parser.parse %w[--help] if @cli_options.empty?
52
+ if @cli_options.empty?
53
+ $exit_code = 1
54
+ Parser.parse %w[--help]
55
+ end
51
56
 
52
57
  repo = KeepAChangelogManager::Repo.new(`git rev-parse --show-toplevel`.strip)
53
58
  new_version = repo.changelog.update(@cli_options)
@@ -1,3 +1,3 @@
1
1
  module KeepAChangelogManager
2
- VERSION = "0.0.1".freeze
2
+ VERSION = "0.0.2".freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: keepachangelog_manager
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ian Katz
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-01-24 00:00:00.000000000 Z
11
+ date: 2019-02-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: git-remote-parser