milestoner 6.0.0 → 6.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c69ad4e9f6c0fade7a06e6730a9466dc926d7f5c
4
- data.tar.gz: 1b816b62e61eb5941b1a53d10a3d5a89a7df2c00
3
+ metadata.gz: da863bb358cbe766f4bf0a8edcf6abaefc47e394
4
+ data.tar.gz: 9b2e9181015a2866df2f06f0814cec8567cfad6f
5
5
  SHA512:
6
- metadata.gz: 69917b7320225d8165dec78dd650ea5c6427d0ffc3558c61553ec2e79e4adb6f06895a7796e7df423dd6fbc3ecfe0332dfd0cb5ca96b423abe003ac1f7d63134
7
- data.tar.gz: 70bd3fba923743d2f6de84d96f4d069c95fd6de891227ac88860e7f7837c43a471c9e4c9abaa4caf5690fe9e07dd9ff9ebb6f1d5a80fea86d96858bceae690db
6
+ metadata.gz: 1f1af0968d7e8a4207b7c307a08648b27e228cf7ea668e139c8a15aa433633bfa4dba8a123c57ead247306b09a14df23d486593ae95cd4276824c5102af7bbfd
7
+ data.tar.gz: 5e217673872ea2de52e5a52176095fe82e03d8b903f4f1e07f5ae9184e649c981417e4fbfc3bd6cc9db522694a69e5d8588fbf4c2b1c28538d50ea1bbe215d92
data/README.md CHANGED
@@ -11,27 +11,27 @@ A command line interface for releasing Git repository milestones.
11
11
 
12
12
  <!-- Tocer[start]: Auto-generated, don't remove. -->
13
13
 
14
- # Table of Contents
15
-
16
- - [Features](#features)
17
- - [Screencasts](#screencasts)
18
- - [Requirements](#requirements)
19
- - [Setup](#setup)
20
- - [Usage](#usage)
21
- - [Command Line Interface (CLI)](#command-line-interface-cli)
22
- - [Customization](#customization)
23
- - [Security](#security)
24
- - [Tests](#tests)
25
- - [Versioning](#versioning)
26
- - [Code of Conduct](#code-of-conduct)
27
- - [Contributions](#contributions)
28
- - [License](#license)
29
- - [History](#history)
30
- - [Credits](#credits)
14
+ ## Table of Contents
15
+
16
+ - [Features](#features)
17
+ - [Screencasts](#screencasts)
18
+ - [Requirements](#requirements)
19
+ - [Setup](#setup)
20
+ - [Usage](#usage)
21
+ - [Command Line Interface (CLI)](#command-line-interface-cli)
22
+ - [Customization](#customization)
23
+ - [Security](#security)
24
+ - [Tests](#tests)
25
+ - [Versioning](#versioning)
26
+ - [Code of Conduct](#code-of-conduct)
27
+ - [Contributions](#contributions)
28
+ - [License](#license)
29
+ - [History](#history)
30
+ - [Credits](#credits)
31
31
 
32
32
  <!-- Tocer[finish]: Auto-generated, don't remove. -->
33
33
 
34
- # Features
34
+ ## Features
35
35
 
36
36
  - Uses [Versionaire](https://github.com/bkuhlmann/versionaire) for
37
37
  [Semantic Versioning](http://semver.org).
@@ -53,17 +53,17 @@ A command line interface for releasing Git repository milestones.
53
53
  each Git tag message.
54
54
  - Provides optional security for signing Git tags with [GnuPG](https://www.gnupg.org) signing key.
55
55
 
56
- # Screencasts
56
+ ## Screencasts
57
57
 
58
58
  [![asciicast](https://asciinema.org/a/91752.png)](https://asciinema.org/a/91752)
59
59
 
60
- # Requirements
60
+ ## Requirements
61
61
 
62
62
  0. A UNIX-based system.
63
63
  0. [Ruby 2.4.x](https://www.ruby-lang.org).
64
64
  0. [GnuPG](https://www.gnupg.org).
65
65
 
66
- # Setup
66
+ ## Setup
67
67
 
68
68
  For a secure install, type the following (recommended):
69
69
 
@@ -78,9 +78,9 @@ For an insecure install, type the following (not recommended):
78
78
 
79
79
  gem install milestoner
80
80
 
81
- # Usage
81
+ ## Usage
82
82
 
83
- ## Command Line Interface (CLI)
83
+ ### Command Line Interface (CLI)
84
84
 
85
85
  From the command line, type: `milestoner help`
86
86
 
@@ -109,7 +109,7 @@ When using Milestoner, the `--publish` command is intended to be the only comman
109
109
  publishing a new release as it handles all of the steps necessary for tagging and pushing a new
110
110
  milestone. Should individual steps be needed, then the `--tag` and `--push` options are available.
111
111
 
112
- ## Customization
112
+ ### Customization
113
113
 
114
114
  This gem can be configured via a global configuration:
115
115
 
@@ -148,7 +148,7 @@ The `configuration.yml` file can be configured as follows:
148
148
  Git tag. This is useful for public milestones where the author of a milestone can be verified to
149
149
  ensure milestone integrity/security.
150
150
 
151
- # Security
151
+ ## Security
152
152
 
153
153
  To securely sign your Git tags, install and configure [GPG](https://www.gnupg.org):
154
154
 
@@ -177,13 +177,13 @@ Now, when publishing a new milestone (i.e. `milestoner --publish <version> --sig
177
177
  Git tag will happen automatically. You will be prompted for the GPG Passphrase each time but that is
178
178
  to be expected.
179
179
 
180
- # Tests
180
+ ## Tests
181
181
 
182
182
  To test, run:
183
183
 
184
184
  bundle exec spec
185
185
 
186
- # Versioning
186
+ ## Versioning
187
187
 
188
188
  Read [Semantic Versioning](http://semver.org) for details. Briefly, it means:
189
189
 
@@ -191,26 +191,26 @@ Read [Semantic Versioning](http://semver.org) for details. Briefly, it means:
191
191
  - Minor (x.Y.z) - Incremented for new, backwards compatible, public API enhancements/fixes.
192
192
  - Patch (x.y.Z) - Incremented for small, backwards compatible, bug fixes.
193
193
 
194
- # Code of Conduct
194
+ ## Code of Conduct
195
195
 
196
196
  Please note that this project is released with a [CODE OF CONDUCT](CODE_OF_CONDUCT.md). By
197
197
  participating in this project you agree to abide by its terms.
198
198
 
199
- # Contributions
199
+ ## Contributions
200
200
 
201
201
  Read [CONTRIBUTING](CONTRIBUTING.md) for details.
202
202
 
203
- # License
203
+ ## License
204
204
 
205
205
  Copyright (c) 2015 [Alchemists](https://www.alchemists.io).
206
206
  Read [LICENSE](LICENSE.md) for details.
207
207
 
208
- # History
208
+ ## History
209
209
 
210
210
  Read [CHANGES](CHANGES.md) for details.
211
211
  Built with [Gemsmith](https://github.com/bkuhlmann/gemsmith).
212
212
 
213
- # Credits
213
+ ## Credits
214
214
 
215
215
  Developed by [Brooke Kuhlmann](https://www.alchemists.io) at
216
216
  [Alchemists](https://www.alchemists.io).
@@ -2,14 +2,12 @@
2
2
 
3
3
  require "thor"
4
4
  require "thor/actions"
5
- require "thor_plus/actions"
6
5
  require "runcom"
7
6
 
8
7
  module Milestoner
9
8
  # The Command Line Interface (CLI) for the gem.
10
9
  class CLI < Thor
11
10
  include Thor::Actions
12
- include ThorPlus::Actions
13
11
 
14
12
  package_name Identity.version_label
15
13
 
@@ -34,7 +32,7 @@ module Milestoner
34
32
  def commits
35
33
  tagger.commit_list.each { |commit| say commit }
36
34
  rescue StandardError => exception
37
- error exception.message
35
+ say_status :error, exception.message, :red
38
36
  end
39
37
 
40
38
  desc "-t, [--tag=VERSION]", "Tag local repository with new version."
@@ -48,16 +46,16 @@ module Milestoner
48
46
  tagger.create version, sign: sign_tag?(options[:sign])
49
47
  say "Repository tagged: #{tagger.version_label}."
50
48
  rescue StandardError => exception
51
- error exception.message
49
+ say_status :error, exception.message, :red
52
50
  end
53
51
 
54
52
  desc "-p, [--push]", "Push local tag to remote repository."
55
53
  map %w[-p --push] => :push
56
54
  def push version = self.class.configuration.to_h[:version]
57
55
  pusher.push version
58
- info "Tags pushed to remote repository."
56
+ say_status :info, "Tags pushed to remote repository.", :green
59
57
  rescue StandardError => exception
60
- error exception.message
58
+ say_status :error, exception.message, :red
61
59
  end
62
60
 
63
61
  desc "-P, [--publish=VERSION]", "Tag and push milestone to remote repository."
@@ -69,10 +67,10 @@ module Milestoner
69
67
  default: false
70
68
  def publish version = self.class.configuration.to_h[:version]
71
69
  publisher.publish version, sign: sign_tag?(options[:sign])
72
- info "Repository tagged and pushed: #{tagger.version_label}."
73
- info "Milestone published!"
70
+ say_status :info, "Repository tagged and pushed: #{tagger.version_label}.", :green
71
+ say_status :info, "Milestone published!", :green
74
72
  rescue StandardError => exception
75
- error exception.message
73
+ say_status :error, exception.message, :red
76
74
  end
77
75
 
78
76
  desc "-c, [--config]", "Manage gem configuration."
@@ -88,7 +86,7 @@ module Milestoner
88
86
  def config
89
87
  path = self.class.configuration.path
90
88
 
91
- if options.edit? then `#{editor} #{path}`
89
+ if options.edit? then `#{ENV["EDITOR"]} #{path}`
92
90
  elsif options.info?
93
91
  path ? say(path) : say("Configuration doesn't exist.")
94
92
  else help(:config)
@@ -12,7 +12,7 @@ module Milestoner
12
12
  end
13
13
 
14
14
  def self.version
15
- "6.0.0"
15
+ "6.1.0"
16
16
  end
17
17
 
18
18
  def self.version_label
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: milestoner
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.0.0
4
+ version: 6.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brooke Kuhlmann
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-06-17 00:00:00.000000000 Z
11
+ date: 2017-07-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor
@@ -25,61 +25,61 @@ dependencies:
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0.19'
27
27
  - !ruby/object:Gem::Dependency
28
- name: thor_plus
28
+ name: runcom
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '5.1'
33
+ version: '1.2'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '5.1'
40
+ version: '1.2'
41
41
  - !ruby/object:Gem::Dependency
42
- name: runcom
42
+ name: versionaire
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '1.1'
47
+ version: '3.2'
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: '1.1'
54
+ version: '3.2'
55
55
  - !ruby/object:Gem::Dependency
56
- name: versionaire
56
+ name: rake
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: '3.1'
62
- type: :runtime
61
+ version: '12.0'
62
+ type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: '3.1'
68
+ version: '12.0'
69
69
  - !ruby/object:Gem::Dependency
70
- name: rake
70
+ name: gemsmith
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
73
  - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: '12.0'
75
+ version: '10.0'
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
- version: '12.0'
82
+ version: '10.0'
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: pry
85
85
  requirement: !ruby/object:Gem::Requirement
@@ -170,14 +170,14 @@ dependencies:
170
170
  requirements:
171
171
  - - "~>"
172
172
  - !ruby/object:Gem::Version
173
- version: '1.7'
173
+ version: '1.8'
174
174
  type: :development
175
175
  prerelease: false
176
176
  version_requirements: !ruby/object:Gem::Requirement
177
177
  requirements:
178
178
  - - "~>"
179
179
  - !ruby/object:Gem::Version
180
- version: '1.7'
180
+ version: '1.8'
181
181
  - !ruby/object:Gem::Dependency
182
182
  name: rspec
183
183
  requirement: !ruby/object:Gem::Requirement
@@ -220,6 +220,20 @@ dependencies:
220
220
  - - "~>"
221
221
  - !ruby/object:Gem::Version
222
222
  version: '0.1'
223
+ - !ruby/object:Gem::Dependency
224
+ name: git-cop
225
+ requirement: !ruby/object:Gem::Requirement
226
+ requirements:
227
+ - - "~>"
228
+ - !ruby/object:Gem::Version
229
+ version: '1.3'
230
+ type: :development
231
+ prerelease: false
232
+ version_requirements: !ruby/object:Gem::Requirement
233
+ requirements:
234
+ - - "~>"
235
+ - !ruby/object:Gem::Version
236
+ version: '1.3'
223
237
  - !ruby/object:Gem::Dependency
224
238
  name: reek
225
239
  requirement: !ruby/object:Gem::Requirement