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 +4 -4
- data/README.md +2 -2
- data/bin/keepachangelog_manager.rb +7 -2
- data/lib/keepachangelog_manager/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 27a3b2fdb1d1d1fa93299f17e2c59d9eea4050d7
|
4
|
+
data.tar.gz: f79e3077fb3537008b6ccd474618761c1480362f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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
|
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
|
-
|
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)
|
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.
|
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-
|
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
|