milestoner 9.1.0 → 9.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
  SHA256:
3
- metadata.gz: 2f4c53c7b530a55940d46be11d365fb1f8158b378f355b6e82cfb029b30d4ebf
4
- data.tar.gz: f18c63e435ab3288f2a68db2dba2780fe65485b3d2e7d1243a365b0a524a1fbb
3
+ metadata.gz: e4b220f594e74b7115d953e5a0b285cfd3afb1158a6064470d3aa61c87031e08
4
+ data.tar.gz: 587c92cfd8de216c99f07c2d7493de9132835926bf66c53891d34b9c04688f23
5
5
  SHA512:
6
- metadata.gz: a45b769f47abe6621047b95316b07455905a24b65f8544d3478f8e75c9e5d70165f906e40b430274ee7f44e3e9da59b25ae8ad6fb43ace1e4d1c6e16a7f1c750
7
- data.tar.gz: b0e0ae6aaac15ea36205da47290a0f4ec483b8efbd93258a955d49b7b8dd1f462dbbecc4b3821a1f9be9024745f0fe2010d710341888a6799807e1738a1b3d75
6
+ metadata.gz: bf68b02a88c0d355965377a5e0cebc437bd51007fc5445aff2fa0dbade8deebe4abfa863a66e2d276f3312dcd3c1a1f5e3bf79e8c6f8d34b9e661730e4fa212f
7
+ data.tar.gz: b63dad3e97cfec3a11393a300036f190aed7bacca20e4bc263439cc5d280a2fb3b941107fb2dd3070f76393276e0c888eebdb5cd09ae3019be46efb747acd628
checksums.yaml.gz.sig CHANGED
Binary file
data.tar.gz.sig CHANGED
Binary file
data/README.md CHANGED
@@ -5,7 +5,7 @@
5
5
  [![Code Climate Test Coverage](https://api.codeclimate.com/v1/badges/4cf2547433410a9c7150/test_coverage)](https://codeclimate.com/github/bkuhlmann/milestoner/test_coverage)
6
6
  [![Circle CI Status](https://circleci.com/gh/bkuhlmann/milestoner.svg?style=svg)](https://circleci.com/gh/bkuhlmann/milestoner)
7
7
 
8
- A command line interface for releasing Git repository milestones.
8
+ A command line interface for crafting Git repository milestones (also known as *tags*).
9
9
 
10
10
  <!-- Tocer[start]: Auto-generated, don't remove. -->
11
11
 
@@ -90,7 +90,7 @@ module Milestoner
90
90
  if options.edit? then `#{ENV["EDITOR"]} #{path}`
91
91
  elsif options.info?
92
92
  path ? say(path) : say("Configuration doesn't exist.")
93
- else help(:config)
93
+ else help :config
94
94
  end
95
95
  end
96
96
 
@@ -12,7 +12,7 @@ module Milestoner
12
12
  end
13
13
 
14
14
  def self.version
15
- "9.1.0"
15
+ "9.2.0"
16
16
  end
17
17
 
18
18
  def self.version_label
@@ -10,11 +10,11 @@ module Milestoner
10
10
  def push version
11
11
  version = Versionaire::Version version
12
12
 
13
- fail(Errors::Git, "Remote repository not configured.") unless git.remote?
14
- fail(Errors::Git, "Remote tag exists: #{version}.") if tag_exists?(version)
13
+ fail Errors::Git, "Remote repository not configured." unless git.remote?
14
+ fail Errors::Git, "Remote tag exists: #{version}." if tag_exists? version
15
15
  return if git.push_tags.empty?
16
16
 
17
- fail(Errors::Git, "Tags could not be pushed to remote repository.")
17
+ fail Errors::Git, "Tags could not be pushed to remote repository."
18
18
  end
19
19
 
20
20
  private
@@ -19,7 +19,7 @@ module Milestoner
19
19
  end
20
20
 
21
21
  def commit_prefix_regex
22
- return Regexp.new("") if commit_prefixes.empty?
22
+ return Regexp.new "" if commit_prefixes.empty?
23
23
 
24
24
  Regexp.union commit_prefixes
25
25
  end
@@ -38,7 +38,7 @@ module Milestoner
38
38
  # :reek:BooleanParameter
39
39
  def create version, sign: false
40
40
  @version = Versionaire::Version version
41
- fail(Errors::Git, "Unable to tag without commits.") unless git.commits?
41
+ fail Errors::Git, "Unable to tag without commits." unless git.commits?
42
42
  return if existing_tag?
43
43
 
44
44
  git_tag sign: sign
@@ -63,7 +63,7 @@ module Milestoner
63
63
  end
64
64
 
65
65
  def raw_commits
66
- `#{git_commits_command}`.split("\n")
66
+ `#{git_commits_command}`.split "\n"
67
67
  end
68
68
 
69
69
  def build_commit_prefix_groups
@@ -88,13 +88,13 @@ module Milestoner
88
88
  def git_options message_file, sign: false
89
89
  options = %(--sign --annotate "#{@version}" ) +
90
90
  %(--cleanup verbatim --file "#{message_file.path}")
91
- return options.gsub("--sign ", "") unless sign
91
+ return options.gsub "--sign ", "" unless sign
92
92
 
93
93
  options
94
94
  end
95
95
 
96
96
  def existing_tag?
97
- return false unless git.tag_local?(@version)
97
+ return false unless git.tag_local? @version
98
98
 
99
99
  shell.say_status :warn, "Local tag exists: #{@version}. Skipped.", :yellow
100
100
  true
@@ -106,7 +106,7 @@ module Milestoner
106
106
  message_file = Tempfile.new Identity.name
107
107
  File.open(message_file, "w") { |file| file.write git_message }
108
108
  status = system "git tag #{git_options message_file, sign: sign}"
109
- fail(Errors::Git, "Unable to create tag: #{@version}.") unless status
109
+ fail Errors::Git, "Unable to create tag: #{@version}." unless status
110
110
  ensure
111
111
  message_file.close
112
112
  message_file.unlink
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: 9.1.0
4
+ version: 9.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brooke Kuhlmann
@@ -10,26 +10,25 @@ bindir: bin
10
10
  cert_chain:
11
11
  - |
12
12
  -----BEGIN CERTIFICATE-----
13
- MIIDQDCCAiigAwIBAgIBATANBgkqhkiG9w0BAQsFADAlMSMwIQYDVQQDDBpicm9v
14
- a2UvREM9YWxjaGVtaXN0cy9EQz1pbzAeFw0xODAyMTQxNTA4NDVaFw0xOTAyMTQx
15
- NTA4NDVaMCUxIzAhBgNVBAMMGmJyb29rZS9EQz1hbGNoZW1pc3RzL0RDPWlvMIIB
13
+ MIIC/jCCAeagAwIBAgIBAjANBgkqhkiG9w0BAQsFADAlMSMwIQYDVQQDDBpicm9v
14
+ a2UvREM9YWxjaGVtaXN0cy9EQz1pbzAeFw0xOTAyMTcxNjAxMTFaFw0yMDAyMTcx
15
+ NjAxMTFaMCUxIzAhBgNVBAMMGmJyb29rZS9EQz1hbGNoZW1pc3RzL0RDPWlvM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CdikiiE3fJhP/gY4ggwDQYJKoZIhvcNAQELBQADggEBANgfX7kPZkJvsbdWMvbe
24
+ DUUYxRTqTUzCDpLd2p3sQvgLMKjTNSKt6CFq/kh+98b6RCgO6DqiVfxvOEq02dvf
25
+ ebMN/ylQqan2FgiAs1rpP0/D4C0MlBjoDktsT+2IyLol1KmkDB20ExJ4Sf1GRNdA
26
+ hpWOtcgqHtmrc7xzgB6BuyoYufrKKUlCO3ewTM4C375D2qO7hIdKuMOO3CdPMtSk
27
+ OrWpbzCL+nbbXqeoqiHgZaUvcyyQrGj5sQRxMTzuMXzzQxtHnuTuKrcz16HMTX/O
28
+ dKvURM+1PwDCzC5tvRwjhUJIizau6+MtkFCvJHmaAj1aZL3odcPejHj5Hxt/0CUW
29
+ y84=
31
30
  -----END CERTIFICATE-----
32
- date: 2019-02-02 00:00:00.000000000 Z
31
+ date: 2019-04-01 00:00:00.000000000 Z
33
32
  dependencies:
34
33
  - !ruby/object:Gem::Dependency
35
34
  name: runcom
@@ -65,14 +64,14 @@ dependencies:
65
64
  requirements:
66
65
  - - "~>"
67
66
  - !ruby/object:Gem::Version
68
- version: '7.0'
67
+ version: '7.2'
69
68
  type: :runtime
70
69
  prerelease: false
71
70
  version_requirements: !ruby/object:Gem::Requirement
72
71
  requirements:
73
72
  - - "~>"
74
73
  - !ruby/object:Gem::Version
75
- version: '7.0'
74
+ version: '7.2'
76
75
  - !ruby/object:Gem::Dependency
77
76
  name: awesome_print
78
77
  requirement: !ruby/object:Gem::Requirement
@@ -357,8 +356,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
357
356
  - !ruby/object:Gem::Version
358
357
  version: '0'
359
358
  requirements: []
360
- rubygems_version: 3.0.2
359
+ rubygems_version: 3.0.3
361
360
  signing_key:
362
361
  specification_version: 4
363
- summary: A command line interface for releasing Git repository milestones.
362
+ summary: A command line interface for crafting Git repository milestones.
364
363
  test_files: []
metadata.gz.sig CHANGED
Binary file