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 +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/README.md +1 -1
- data/lib/milestoner/cli.rb +1 -1
- data/lib/milestoner/identity.rb +1 -1
- data/lib/milestoner/pusher.rb +3 -3
- data/lib/milestoner/tagger.rb +6 -6
- metadata +17 -18
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e4b220f594e74b7115d953e5a0b285cfd3afb1158a6064470d3aa61c87031e08
|
4
|
+
data.tar.gz: 587c92cfd8de216c99f07c2d7493de9132835926bf66c53891d34b9c04688f23
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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
|
|
data/lib/milestoner/cli.rb
CHANGED
data/lib/milestoner/identity.rb
CHANGED
data/lib/milestoner/pusher.rb
CHANGED
@@ -10,11 +10,11 @@ module Milestoner
|
|
10
10
|
def push version
|
11
11
|
version = Versionaire::Version version
|
12
12
|
|
13
|
-
fail
|
14
|
-
fail
|
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
|
17
|
+
fail Errors::Git, "Tags could not be pushed to remote repository."
|
18
18
|
end
|
19
19
|
|
20
20
|
private
|
data/lib/milestoner/tagger.rb
CHANGED
@@ -19,7 +19,7 @@ module Milestoner
|
|
19
19
|
end
|
20
20
|
|
21
21
|
def commit_prefix_regex
|
22
|
-
return Regexp.new
|
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
|
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
|
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
|
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?
|
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
|
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.
|
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
|
-
|
14
|
-
|
15
|
-
|
13
|
+
MIIC/jCCAeagAwIBAgIBAjANBgkqhkiG9w0BAQsFADAlMSMwIQYDVQQDDBpicm9v
|
14
|
+
a2UvREM9YWxjaGVtaXN0cy9EQz1pbzAeFw0xOTAyMTcxNjAxMTFaFw0yMDAyMTcx
|
15
|
+
NjAxMTFaMCUxIzAhBgNVBAMMGmJyb29rZS9EQz1hbGNoZW1pc3RzL0RDPWlvMIIB
|
16
16
|
IjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA6l1qpXTiomH1RfMRloyw7MiE
|
17
17
|
xyVx/x8Yc3EupdH7uhNaTXQGyORN6aOY//1QXXMHIZ9tW74nZLhesWMSUMYy0XhB
|
18
18
|
brs+KkurHnc9FnEJAbG7ebGvl/ncqZt72nQvaxpDxvuCBHgJAz+8i5wl6FhLw+oT
|
19
19
|
9z0A8KcGhz67SdcoQiD7qiCjL/2NTeWHOzkpPrdGlt088+VerEEGf5I13QCvaftP
|
20
20
|
D5vkU0YlAm1r98BymuJlcQ1qdkVEI1d48ph4kcS0S0nv1RiuyVb6TCAR3Nu3VaVq
|
21
21
|
3fPzZKJLZBx67UvXdbdicWPiUR75elI4PXpLIic3xytaF52ZJYyKZCNZJhNwfQID
|
22
|
-
|
23
|
-
2CdikiiE3fJhP/
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
b4jw5t40FKyNUvLPPXYAvQALBtk=
|
22
|
+
AQABozkwNzAJBgNVHRMEAjAAMAsGA1UdDwQEAwIEsDAdBgNVHQ4EFgQU0nzow9vc
|
23
|
+
2CdikiiE3fJhP/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-
|
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.
|
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.
|
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.
|
359
|
+
rubygems_version: 3.0.3
|
361
360
|
signing_key:
|
362
361
|
specification_version: 4
|
363
|
-
summary: A command line interface for
|
362
|
+
summary: A command line interface for crafting Git repository milestones.
|
364
363
|
test_files: []
|
metadata.gz.sig
CHANGED
Binary file
|