milestoner 4.2.0 → 5.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: 4a38435ab11e09d9768fbdc6c89d935aab3b435c
4
- data.tar.gz: 2ee94063aa45c3afd5a8069089439e6da54044f0
3
+ metadata.gz: 977b8a104feb6c918a30a96d7adf1b8aa4a09463
4
+ data.tar.gz: ac670db00cd0b4c9f1ee451f8c0b6b3f74eb4c95
5
5
  SHA512:
6
- metadata.gz: 2ddd7a6aeff22c0ea3790d3d59c7acb54f044e8efb99c6a0f1d312b20efe53c872d6d4174cb37b624a319945fc3451cc0bd0ad997977bbc5a98ba40b3044ab06
7
- data.tar.gz: b0a2e2b79d4853ce6358460b888ddb31132eee0a34744eee73ee41b4c3de62be5800c29370081264e4b6b5386ffbfff20f28425e62df09433dcdcd09ff7babfa
6
+ metadata.gz: 2d6799557de5b14f4a3194334e08663043bfe42eb42e9151c75da9bdc917aedf6ca5e7362f2f394b7a3dd9be7904a62320815e595cd00d78c8a61382bbbf74df
7
+ data.tar.gz: 9d2315cff8c0421e477da2fd2fca26161732b44dbc04dc4fd3261915f67281bd5b073892f07476143886e97bff40f04f4372b2cb6320c1118fc3c1e556f06603
Binary file
data.tar.gz.sig CHANGED
Binary file
data/README.md CHANGED
@@ -60,7 +60,7 @@ A command line interface for releasing Git repository milestones.
60
60
  # Requirements
61
61
 
62
62
  0. A UNIX-based system.
63
- 0. [Ruby 2.3.x](https://www.ruby-lang.org).
63
+ 0. [Ruby 2.4.x](https://www.ruby-lang.org).
64
64
  0. [GnuPG](https://www.gnupg.org).
65
65
 
66
66
  # Setup
@@ -40,7 +40,11 @@ module Milestoner
40
40
 
41
41
  desc "-t, [--tag=VERSION]", "Tag local repository with new version."
42
42
  map %w[-t --tag] => :tag
43
- method_option :sign, aliases: "-s", desc: "Sign tag with GPG key.", type: :boolean, default: false
43
+ method_option :sign,
44
+ aliases: "-s",
45
+ desc: "Sign tag with GPG key.",
46
+ type: :boolean,
47
+ default: false
44
48
  def tag version = self.class.configuration.to_h[:version]
45
49
  tagger.create version, sign: sign_tag?(options[:sign])
46
50
  say "Repository tagged: #{tagger.version_label}."
@@ -59,7 +63,11 @@ module Milestoner
59
63
 
60
64
  desc "-P, [--publish=VERSION]", "Tag and push milestone to remote repository."
61
65
  map %w[-P --publish] => :publish
62
- method_option :sign, aliases: "-s", desc: "Sign tag with GPG key.", type: :boolean, default: false
66
+ method_option :sign,
67
+ aliases: "-s",
68
+ desc: "Sign tag with GPG key.",
69
+ type: :boolean,
70
+ default: false
63
71
  def publish version = self.class.configuration.to_h[:version]
64
72
  publisher.publish version, sign: sign_tag?(options[:sign])
65
73
  info "Repository tagged and pushed: #{tagger.version_label}."
@@ -12,7 +12,7 @@ module Milestoner
12
12
  end
13
13
 
14
14
  def self.version
15
- "4.2.0"
15
+ "5.0.0"
16
16
  end
17
17
 
18
18
  def self.version_label
@@ -11,7 +11,10 @@ module Milestoner
11
11
  def push
12
12
  fail(Errors::Git) unless git.supported?
13
13
  fail(Errors::Git, "Git remote repository not configured.") unless git.remote?
14
- fail(Errors::Git, "Git tags could not be pushed to remote repository.") unless shell.system("git push --tags")
14
+
15
+ return if shell.system("git push --tags")
16
+
17
+ fail(Errors::Git, "Git tags could not be pushed to remote repository.")
15
18
  end
16
19
 
17
20
  private
@@ -108,7 +108,8 @@ module Milestoner
108
108
  end
109
109
 
110
110
  def git_options message_file, sign: false
111
- options = %(--sign --annotate "#{version.label}" --cleanup verbatim --file "#{message_file.path}")
111
+ options = %(--sign --annotate "#{version.label}" ) +
112
+ %(--cleanup verbatim --file "#{message_file.path}")
112
113
  return options.gsub("--sign ", "") unless sign
113
114
  options
114
115
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: milestoner
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.2.0
4
+ version: 5.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brooke Kuhlmann
@@ -30,7 +30,7 @@ cert_chain:
30
30
  n/LUZ1dKhIHzfKx1B4+TEIefArObGfkLIDM8+Dq1RX7TF1k81Men7iu4MgE9bYBn
31
31
  3dE+xI3FdB5gWcdWxdtgRCmWjtXeYYyb4z6NQQ==
32
32
  -----END CERTIFICATE-----
33
- date: 2016-12-18 00:00:00.000000000 Z
33
+ date: 2017-01-22 00:00:00.000000000 Z
34
34
  dependencies:
35
35
  - !ruby/object:Gem::Dependency
36
36
  name: thor
@@ -52,42 +52,42 @@ dependencies:
52
52
  requirements:
53
53
  - - "~>"
54
54
  - !ruby/object:Gem::Version
55
- version: '4.1'
55
+ version: '5.0'
56
56
  type: :runtime
57
57
  prerelease: false
58
58
  version_requirements: !ruby/object:Gem::Requirement
59
59
  requirements:
60
60
  - - "~>"
61
61
  - !ruby/object:Gem::Version
62
- version: '4.1'
62
+ version: '5.0'
63
63
  - !ruby/object:Gem::Dependency
64
64
  name: runcom
65
65
  requirement: !ruby/object:Gem::Requirement
66
66
  requirements:
67
67
  - - "~>"
68
68
  - !ruby/object:Gem::Version
69
- version: '0.3'
69
+ version: '0.5'
70
70
  type: :runtime
71
71
  prerelease: false
72
72
  version_requirements: !ruby/object:Gem::Requirement
73
73
  requirements:
74
74
  - - "~>"
75
75
  - !ruby/object:Gem::Version
76
- version: '0.3'
76
+ version: '0.5'
77
77
  - !ruby/object:Gem::Dependency
78
78
  name: versionaire
79
79
  requirement: !ruby/object:Gem::Requirement
80
80
  requirements:
81
81
  - - "~>"
82
82
  - !ruby/object:Gem::Version
83
- version: '2.1'
83
+ version: '3.0'
84
84
  type: :runtime
85
85
  prerelease: false
86
86
  version_requirements: !ruby/object:Gem::Requirement
87
87
  requirements:
88
88
  - - "~>"
89
89
  - !ruby/object:Gem::Version
90
- version: '2.1'
90
+ version: '3.0'
91
91
  - !ruby/object:Gem::Dependency
92
92
  name: rake
93
93
  requirement: !ruby/object:Gem::Requirement
@@ -102,20 +102,6 @@ dependencies:
102
102
  - - "~>"
103
103
  - !ruby/object:Gem::Version
104
104
  version: '12.0'
105
- - !ruby/object:Gem::Dependency
106
- name: gemsmith
107
- requirement: !ruby/object:Gem::Requirement
108
- requirements:
109
- - - "~>"
110
- - !ruby/object:Gem::Version
111
- version: '8.2'
112
- type: :development
113
- prerelease: false
114
- version_requirements: !ruby/object:Gem::Requirement
115
- requirements:
116
- - - "~>"
117
- - !ruby/object:Gem::Version
118
- version: '8.2'
119
105
  - !ruby/object:Gem::Dependency
120
106
  name: pry
121
107
  requirement: !ruby/object:Gem::Requirement
@@ -276,14 +262,14 @@ dependencies:
276
262
  requirements:
277
263
  - - "~>"
278
264
  - !ruby/object:Gem::Version
279
- version: '0.46'
265
+ version: '0.47'
280
266
  type: :development
281
267
  prerelease: false
282
268
  version_requirements: !ruby/object:Gem::Requirement
283
269
  requirements:
284
270
  - - "~>"
285
271
  - !ruby/object:Gem::Version
286
- version: '0.46'
272
+ version: '0.47'
287
273
  - !ruby/object:Gem::Dependency
288
274
  name: codeclimate-test-reporter
289
275
  requirement: !ruby/object:Gem::Requirement
@@ -334,7 +320,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
334
320
  requirements:
335
321
  - - "~>"
336
322
  - !ruby/object:Gem::Version
337
- version: '2.3'
323
+ version: '2.4'
338
324
  required_rubygems_version: !ruby/object:Gem::Requirement
339
325
  requirements:
340
326
  - - ">="
@@ -342,7 +328,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
342
328
  version: '0'
343
329
  requirements: []
344
330
  rubyforge_project:
345
- rubygems_version: 2.6.8
331
+ rubygems_version: 2.6.9
346
332
  signing_key:
347
333
  specification_version: 4
348
334
  summary: A command line interface for releasing Git repository milestones.
metadata.gz.sig CHANGED
Binary file