milestoner 6.1.0 → 6.2.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: da863bb358cbe766f4bf0a8edcf6abaefc47e394
4
- data.tar.gz: 9b2e9181015a2866df2f06f0814cec8567cfad6f
3
+ metadata.gz: b04eeca2811a2f42ddbf844600a90f70e25b1215
4
+ data.tar.gz: 483d21a4a2b86835d79da07b3fb2c3d0e27e4611
5
5
  SHA512:
6
- metadata.gz: 1f1af0968d7e8a4207b7c307a08648b27e228cf7ea668e139c8a15aa433633bfa4dba8a123c57ead247306b09a14df23d486593ae95cd4276824c5102af7bbfd
7
- data.tar.gz: 5e217673872ea2de52e5a52176095fe82e03d8b903f4f1e07f5ae9184e649c981417e4fbfc3bd6cc9db522694a69e5d8588fbf4c2b1c28538d50ea1bbe215d92
6
+ metadata.gz: ea5c814d5f8df9e6f4a396102fa2998ce9424645a01c3478f3a271d51833f56261f17fe18aec930552442a846cd84845c53aee1f301fb55592c2d71f8cee87e7
7
+ data.tar.gz: 0cb23f55786d2a529712e2d6c273b3d964525ac400d779d07876dfd24df3dc4a1c893020b7716abda149acb10ca49c59e03f528f209c4f7c0667eff08f2a4c58
Binary file
Binary file
@@ -19,12 +19,14 @@ module Milestoner
19
19
  }
20
20
  end
21
21
 
22
- # rubocop:disable Metrics/AbcSize
23
22
  def initialize args = [], options = {}, config = {}
24
23
  super args, options, config
25
- @tagger = Tagger.new commit_prefixes: self.class.configuration.to_h[:git_commit_prefixes]
24
+ @configuration = self.class.configuration
25
+ @tagger = Tagger.new commit_prefixes: @configuration.to_h[:git_commit_prefixes]
26
26
  @pusher = Pusher.new
27
27
  @publisher = Publisher.new tagger: tagger, pusher: pusher
28
+ rescue Runcom::Errors::Base => error
29
+ abort error.message
28
30
  end
29
31
 
30
32
  desc "-C, [--commits]", "Show commits for next milestone."
@@ -42,7 +44,7 @@ module Milestoner
42
44
  desc: "Sign tag with GPG key.",
43
45
  type: :boolean,
44
46
  default: false
45
- def tag version = self.class.configuration.to_h[:version]
47
+ def tag version = configuration.to_h[:version]
46
48
  tagger.create version, sign: sign_tag?(options[:sign])
47
49
  say "Repository tagged: #{tagger.version_label}."
48
50
  rescue StandardError => exception
@@ -51,7 +53,7 @@ module Milestoner
51
53
 
52
54
  desc "-p, [--push]", "Push local tag to remote repository."
53
55
  map %w[-p --push] => :push
54
- def push version = self.class.configuration.to_h[:version]
56
+ def push version = configuration.to_h[:version]
55
57
  pusher.push version
56
58
  say_status :info, "Tags pushed to remote repository.", :green
57
59
  rescue StandardError => exception
@@ -65,7 +67,7 @@ module Milestoner
65
67
  desc: "Sign tag with GPG key.",
66
68
  type: :boolean,
67
69
  default: false
68
- def publish version = self.class.configuration.to_h[:version]
70
+ def publish version = configuration.to_h[:version]
69
71
  publisher.publish version, sign: sign_tag?(options[:sign])
70
72
  say_status :info, "Repository tagged and pushed: #{tagger.version_label}.", :green
71
73
  say_status :info, "Milestone published!", :green
@@ -84,7 +86,7 @@ module Milestoner
84
86
  desc: "Print gem configuration.",
85
87
  type: :boolean, default: false
86
88
  def config
87
- path = self.class.configuration.path
89
+ path = configuration.path
88
90
 
89
91
  if options.edit? then `#{ENV["EDITOR"]} #{path}`
90
92
  elsif options.info?
@@ -110,7 +112,7 @@ module Milestoner
110
112
  attr_reader :configuration, :tagger, :pusher, :publisher
111
113
 
112
114
  def sign_tag? sign
113
- sign | self.class.configuration.to_h[:git_tag_sign]
115
+ sign | configuration.to_h[:git_tag_sign]
114
116
  end
115
117
  end
116
118
  end
@@ -12,7 +12,7 @@ module Milestoner
12
12
  end
13
13
 
14
14
  def self.version
15
- "6.1.0"
15
+ "6.2.0"
16
16
  end
17
17
 
18
18
  def self.version_label
@@ -4,6 +4,7 @@ require "forwardable"
4
4
  require "open3"
5
5
  require "thor"
6
6
  require "versionaire"
7
+ require "tempfile"
7
8
 
8
9
  module Milestoner
9
10
  # Handles the tagging of a project repository.
metadata CHANGED
@@ -1,14 +1,36 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: milestoner
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.1.0
4
+ version: 6.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brooke Kuhlmann
8
8
  autorequire:
9
9
  bindir: bin
10
- cert_chain: []
11
- date: 2017-07-17 00:00:00.000000000 Z
10
+ cert_chain:
11
+ - |
12
+ -----BEGIN CERTIFICATE-----
13
+ MIIDeDCCAmCgAwIBAgIBATANBgkqhkiG9w0BAQUFADBBMQ8wDQYDVQQDDAZicm9v
14
+ a2UxGjAYBgoJkiaJk/IsZAEZFgphbGNoZW1pc3RzMRIwEAYKCZImiZPyLGQBGRYC
15
+ aW8wHhcNMTYxMDE5MTY0NDEzWhcNMTcxMDE5MTY0NDEzWjBBMQ8wDQYDVQQDDAZi
16
+ cm9va2UxGjAYBgoJkiaJk/IsZAEZFgphbGNoZW1pc3RzMRIwEAYKCZImiZPyLGQB
17
+ GRYCaW8wggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQCgryPL4/IbWDcL
18
+ fnqpnoJALqj+ega7hSsvvD8sac57HPNLeKcOmSafFiQLAnTmmE132ZlFc8kyZRVn
19
+ zmqSESowO5jd+ggFuy1ySqQJXhwgik04KedKRUjpIDZePrjw+M5UJT1qzKCKL2xI
20
+ nx5cOKP1fSWJ1RRu8JhaDeSloGtYMdw2c28wnKPNIsWDood4xhbLcY9IqeISft2e
21
+ oTAHTHandHbvt24X3/n67ceNjLBbsVZPXCC1C8C8ccjHjA4Tm2uiFoDwThMcPggg
22
+ 90H6fh0vLFcNAobdPEchbge8tWtfmMPz2+C4yklANn81GA+ANsBS1uwx6mxJoMQU
23
+ BNVp0aLvAgMBAAGjezB5MAkGA1UdEwQCMAAwCwYDVR0PBAQDAgSwMB0GA1UdDgQW
24
+ BBRS85Rn1BaqeIONByw4t46DMDMzHDAfBgNVHREEGDAWgRRicm9va2VAYWxjaGVt
25
+ aXN0cy5pbzAfBgNVHRIEGDAWgRRicm9va2VAYWxjaGVtaXN0cy5pbzANBgkqhkiG
26
+ 9w0BAQUFAAOCAQEAZMb57Y4wdpbX8XxTukEO7VC1pndccUsxdbziGsAOiuHET3Aq
27
+ ygLvrfdYrN88/w+qxncW5bxbO3a6UGkuhIFUPM8zRSE/rh6bCcJljTJrExVt42eV
28
+ aYCb7WJNsx3eNXHn3uQodq3tD+lmNJzz2bFeT3smGSKEnALBjqorO/2mpDh4FJ3S
29
+ 4CcDYsJ1ywep8LDJDBBGdKz9moL+axryzpeTpgTT/fFYFzRzWrURPyDvPOikh9TX
30
+ n/LUZ1dKhIHzfKx1B4+TEIefArObGfkLIDM8+Dq1RX7TF1k81Men7iu4MgE9bYBn
31
+ 3dE+xI3FdB5gWcdWxdtgRCmWjtXeYYyb4z6NQQ==
32
+ -----END CERTIFICATE-----
33
+ date: 2017-08-20 00:00:00.000000000 Z
12
34
  dependencies:
13
35
  - !ruby/object:Gem::Dependency
14
36
  name: thor
@@ -16,28 +38,28 @@ dependencies:
16
38
  requirements:
17
39
  - - "~>"
18
40
  - !ruby/object:Gem::Version
19
- version: '0.19'
41
+ version: '0.20'
20
42
  type: :runtime
21
43
  prerelease: false
22
44
  version_requirements: !ruby/object:Gem::Requirement
23
45
  requirements:
24
46
  - - "~>"
25
47
  - !ruby/object:Gem::Version
26
- version: '0.19'
48
+ version: '0.20'
27
49
  - !ruby/object:Gem::Dependency
28
50
  name: runcom
29
51
  requirement: !ruby/object:Gem::Requirement
30
52
  requirements:
31
53
  - - "~>"
32
54
  - !ruby/object:Gem::Version
33
- version: '1.2'
55
+ version: '1.3'
34
56
  type: :runtime
35
57
  prerelease: false
36
58
  version_requirements: !ruby/object:Gem::Requirement
37
59
  requirements:
38
60
  - - "~>"
39
61
  - !ruby/object:Gem::Version
40
- version: '1.2'
62
+ version: '1.3'
41
63
  - !ruby/object:Gem::Dependency
42
64
  name: versionaire
43
65
  requirement: !ruby/object:Gem::Requirement
@@ -72,14 +94,14 @@ dependencies:
72
94
  requirements:
73
95
  - - "~>"
74
96
  - !ruby/object:Gem::Version
75
- version: '10.0'
97
+ version: '10.2'
76
98
  type: :development
77
99
  prerelease: false
78
100
  version_requirements: !ruby/object:Gem::Requirement
79
101
  requirements:
80
102
  - - "~>"
81
103
  - !ruby/object:Gem::Version
82
- version: '10.0'
104
+ version: '10.2'
83
105
  - !ruby/object:Gem::Dependency
84
106
  name: pry
85
107
  requirement: !ruby/object:Gem::Requirement
@@ -226,14 +248,14 @@ dependencies:
226
248
  requirements:
227
249
  - - "~>"
228
250
  - !ruby/object:Gem::Version
229
- version: '1.3'
251
+ version: '1.6'
230
252
  type: :development
231
253
  prerelease: false
232
254
  version_requirements: !ruby/object:Gem::Requirement
233
255
  requirements:
234
256
  - - "~>"
235
257
  - !ruby/object:Gem::Version
236
- version: '1.3'
258
+ version: '1.6'
237
259
  - !ruby/object:Gem::Dependency
238
260
  name: reek
239
261
  requirement: !ruby/object:Gem::Requirement
@@ -0,0 +1 @@
1
+ 8��<��N�?�iqţn��T&3��@���w��eH��*c�?fgHЅ&h� ]���V&�ϧ�}tȦ7 J<6�}r��9�u�#�]{w>x�j�e7}q��I�xeh�]$�c�������~�܂�)V���CEu��C�Xݠ�a�k�������)Jr�F�hpMͦ8�܍���>�!�~�x_lB�\M���<]���u6/�َgi͕�*��b%�V�8����M�AܤR5��o%��לsP6�:���,Qs