milestoner 5.1.0 → 6.0.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 +4 -4
- data/README.md +10 -18
- data/lib/milestoner/cli.rb +5 -4
- data/lib/milestoner/identity.rb +1 -5
- metadata +8 -22
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c69ad4e9f6c0fade7a06e6730a9466dc926d7f5c
|
4
|
+
data.tar.gz: 1b816b62e61eb5941b1a53d10a3d5a89a7df2c00
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 69917b7320225d8165dec78dd650ea5c6427d0ffc3558c61553ec2e79e4adb6f06895a7796e7df423dd6fbc3ecfe0332dfd0cb5ca96b423abe003ac1f7d63134
|
7
|
+
data.tar.gz: 70bd3fba923743d2f6de84d96f4d069c95fd6de891227ac88860e7f7837c43a471c9e4c9abaa4caf5690fe9e07dd9ff9ebb6f1d5a80fea86d96858bceae690db
|
data/README.md
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
[](https://codeclimate.com/github/bkuhlmann/milestoner)
|
5
5
|
[](https://codeclimate.com/github/bkuhlmann/milestoner)
|
6
6
|
[](https://gemnasium.com/bkuhlmann/milestoner)
|
7
|
-
[](https://circleci.com/gh/bkuhlmann/milestoner)
|
8
8
|
[](https://www.patreon.com/bkuhlmann)
|
9
9
|
|
10
10
|
A command line interface for releasing Git repository milestones.
|
@@ -111,25 +111,14 @@ milestone. Should individual steps be needed, then the `--tag` and `--push` opti
|
|
111
111
|
|
112
112
|
## Customization
|
113
113
|
|
114
|
-
|
115
|
-
The `.milestonerrc` can be created at a global and/or local level. Example:
|
114
|
+
This gem can be configured via a global configuration:
|
116
115
|
|
117
|
-
|
118
|
-
- Local: `<project repository root>/.milestonerrc`
|
116
|
+
~/.config/milestoner/configuration.yml
|
119
117
|
|
120
|
-
|
118
|
+
It can also be configured via [XDG environment variables](https://github.com/bkuhlmann/runcom#xdg)
|
119
|
+
as provided by the [Runcom](https://github.com/bkuhlmann/runcom) gem.
|
121
120
|
|
122
|
-
|
123
|
-
0. Local project repository `.milestonerrc`.
|
124
|
-
0. CLI option. Example: A version passed to either the `--tag` or `--publish` commands.
|
125
|
-
|
126
|
-
Any setting provided to the CLI during runtime would trump a local/global setting and a local
|
127
|
-
setting would trump a global setting. The global setting is the weakest of all but great for
|
128
|
-
situations where custom settings should be applied to *all* projects. It is important to note that
|
129
|
-
local settings completely trump any global settings -- there is no inheritance when local *and*
|
130
|
-
global settings exist at the same time.
|
131
|
-
|
132
|
-
The `.milestonerrc` uses the following default settings:
|
121
|
+
The default configuration is as follows:
|
133
122
|
|
134
123
|
:version: "0.1.0"
|
135
124
|
:git_commit_prefixes:
|
@@ -140,7 +129,10 @@ The `.milestonerrc` uses the following default settings:
|
|
140
129
|
- Refactored
|
141
130
|
:git_tag_sign: false
|
142
131
|
|
143
|
-
|
132
|
+
Feel free to take this default configuration, modify, and save as your own custom
|
133
|
+
`configuration.yml`.
|
134
|
+
|
135
|
+
The `configuration.yml` file can be configured as follows:
|
144
136
|
|
145
137
|
- `version`: Useful if desired to have the current version checked into source code per project. The
|
146
138
|
version, if set, will be used to tag the repository. If the version is a duplicate, an error will
|
data/lib/milestoner/cli.rb
CHANGED
@@ -14,7 +14,7 @@ module Milestoner
|
|
14
14
|
package_name Identity.version_label
|
15
15
|
|
16
16
|
def self.configuration
|
17
|
-
Runcom::Configuration.new
|
17
|
+
Runcom::Configuration.new project_name: Identity.name, defaults: {
|
18
18
|
version: "0.1.0",
|
19
19
|
git_commit_prefixes: %w[Fixed Added Updated Removed Refactored],
|
20
20
|
git_tag_sign: false
|
@@ -75,7 +75,7 @@ module Milestoner
|
|
75
75
|
error exception.message
|
76
76
|
end
|
77
77
|
|
78
|
-
desc "-c, [--config]",
|
78
|
+
desc "-c, [--config]", "Manage gem configuration."
|
79
79
|
map %w[-c --config] => :config
|
80
80
|
method_option :edit,
|
81
81
|
aliases: "-e",
|
@@ -86,10 +86,11 @@ module Milestoner
|
|
86
86
|
desc: "Print gem configuration.",
|
87
87
|
type: :boolean, default: false
|
88
88
|
def config
|
89
|
-
path = self.class.configuration.
|
89
|
+
path = self.class.configuration.path
|
90
90
|
|
91
91
|
if options.edit? then `#{editor} #{path}`
|
92
|
-
elsif options.info?
|
92
|
+
elsif options.info?
|
93
|
+
path ? say(path) : say("Configuration doesn't exist.")
|
93
94
|
else help(:config)
|
94
95
|
end
|
95
96
|
end
|
data/lib/milestoner/identity.rb
CHANGED
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:
|
4
|
+
version: 6.0.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-
|
11
|
+
date: 2017-06-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|
@@ -44,14 +44,14 @@ dependencies:
|
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: '
|
47
|
+
version: '1.1'
|
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: '
|
54
|
+
version: '1.1'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: versionaire
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -80,20 +80,6 @@ dependencies:
|
|
80
80
|
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: '12.0'
|
83
|
-
- !ruby/object:Gem::Dependency
|
84
|
-
name: gemsmith
|
85
|
-
requirement: !ruby/object:Gem::Requirement
|
86
|
-
requirements:
|
87
|
-
- - "~>"
|
88
|
-
- !ruby/object:Gem::Version
|
89
|
-
version: '9.4'
|
90
|
-
type: :development
|
91
|
-
prerelease: false
|
92
|
-
version_requirements: !ruby/object:Gem::Requirement
|
93
|
-
requirements:
|
94
|
-
- - "~>"
|
95
|
-
- !ruby/object:Gem::Version
|
96
|
-
version: '9.4'
|
97
83
|
- !ruby/object:Gem::Dependency
|
98
84
|
name: pry
|
99
85
|
requirement: !ruby/object:Gem::Requirement
|
@@ -240,28 +226,28 @@ dependencies:
|
|
240
226
|
requirements:
|
241
227
|
- - "~>"
|
242
228
|
- !ruby/object:Gem::Version
|
243
|
-
version: '4.
|
229
|
+
version: '4.7'
|
244
230
|
type: :development
|
245
231
|
prerelease: false
|
246
232
|
version_requirements: !ruby/object:Gem::Requirement
|
247
233
|
requirements:
|
248
234
|
- - "~>"
|
249
235
|
- !ruby/object:Gem::Version
|
250
|
-
version: '4.
|
236
|
+
version: '4.7'
|
251
237
|
- !ruby/object:Gem::Dependency
|
252
238
|
name: rubocop
|
253
239
|
requirement: !ruby/object:Gem::Requirement
|
254
240
|
requirements:
|
255
241
|
- - "~>"
|
256
242
|
- !ruby/object:Gem::Version
|
257
|
-
version: '0.
|
243
|
+
version: '0.49'
|
258
244
|
type: :development
|
259
245
|
prerelease: false
|
260
246
|
version_requirements: !ruby/object:Gem::Requirement
|
261
247
|
requirements:
|
262
248
|
- - "~>"
|
263
249
|
- !ruby/object:Gem::Version
|
264
|
-
version: '0.
|
250
|
+
version: '0.49'
|
265
251
|
- !ruby/object:Gem::Dependency
|
266
252
|
name: codeclimate-test-reporter
|
267
253
|
requirement: !ruby/object:Gem::Requirement
|