milestoner 5.1.0 → 6.0.0

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: bad3b3fa0887d91f02df3d8b487033c18c600c90
4
- data.tar.gz: 45b0ba79b7ffc1b8822c6eedab278022f7984b68
3
+ metadata.gz: c69ad4e9f6c0fade7a06e6730a9466dc926d7f5c
4
+ data.tar.gz: 1b816b62e61eb5941b1a53d10a3d5a89a7df2c00
5
5
  SHA512:
6
- metadata.gz: 11e30e044729b2103f6151b3eaab9ba23b47bb0fc012a613e79e3dd2baede011241e6ab58db479c5f0f6a4ba78ade27e278fdaf089e0d311b9752ba90e3ff776
7
- data.tar.gz: f08cac0b68798e0b7ac84b9040f140ca143a09b9403c8bcceaebd5e8fb34e3bfcad0e6652542edae9a20b2a8674ce6069e49b03f7edbda7caa3316601fcf4be5
6
+ metadata.gz: 69917b7320225d8165dec78dd650ea5c6427d0ffc3558c61553ec2e79e4adb6f06895a7796e7df423dd6fbc3ecfe0332dfd0cb5ca96b423abe003ac1f7d63134
7
+ data.tar.gz: 70bd3fba923743d2f6de84d96f4d069c95fd6de891227ac88860e7f7837c43a471c9e4c9abaa4caf5690fe9e07dd9ff9ebb6f1d5a80fea86d96858bceae690db
data/README.md CHANGED
@@ -4,7 +4,7 @@
4
4
  [![Code Climate GPA](https://codeclimate.com/github/bkuhlmann/milestoner.svg)](https://codeclimate.com/github/bkuhlmann/milestoner)
5
5
  [![Code Climate Coverage](https://codeclimate.com/github/bkuhlmann/milestoner/coverage.svg)](https://codeclimate.com/github/bkuhlmann/milestoner)
6
6
  [![Gemnasium Status](https://gemnasium.com/bkuhlmann/milestoner.svg)](https://gemnasium.com/bkuhlmann/milestoner)
7
- [![Travis CI Status](https://secure.travis-ci.org/bkuhlmann/milestoner.svg)](https://travis-ci.org/bkuhlmann/milestoner)
7
+ [![Circle CI Status](https://circleci.com/gh/bkuhlmann/milestoner.svg?style=svg)](https://circleci.com/gh/bkuhlmann/milestoner)
8
8
  [![Patreon](https://img.shields.io/badge/patreon-donate-brightgreen.svg)](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
- Should the default settings not be desired, customization is allowed via the `.milestonerrc` file.
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
- - Global: `~/.milestonerrc`
118
- - Local: `<project repository root>/.milestonerrc`
116
+ ~/.config/milestoner/configuration.yml
119
117
 
120
- Order of precedence for any setting is resolved as follows (with the last taking top priority):
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
- 0. Global `~/.milestonerrc`.
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
- Each `.milestonerrc` setting can be configured as follows:
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
@@ -14,7 +14,7 @@ module Milestoner
14
14
  package_name Identity.version_label
15
15
 
16
16
  def self.configuration
17
- Runcom::Configuration.new file_name: Identity.file_name, defaults: {
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]", %(Manage gem configuration ("#{configuration.computed_path}").)
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.computed_path
89
+ path = self.class.configuration.path
90
90
 
91
91
  if options.edit? then `#{editor} #{path}`
92
- elsif options.info? then say(path)
92
+ elsif options.info?
93
+ path ? say(path) : say("Configuration doesn't exist.")
93
94
  else help(:config)
94
95
  end
95
96
  end
@@ -12,15 +12,11 @@ module Milestoner
12
12
  end
13
13
 
14
14
  def self.version
15
- "5.1.0"
15
+ "6.0.0"
16
16
  end
17
17
 
18
18
  def self.version_label
19
19
  "#{label} #{version}"
20
20
  end
21
-
22
- def self.file_name
23
- ".#{name}rc"
24
- end
25
21
  end
26
22
  end
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: 5.1.0
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-05-07 00:00:00.000000000 Z
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: '0.6'
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: '0.6'
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.6'
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.6'
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.48'
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.48'
250
+ version: '0.49'
265
251
  - !ruby/object:Gem::Dependency
266
252
  name: codeclimate-test-reporter
267
253
  requirement: !ruby/object:Gem::Requirement