milestoner 9.3.3 → 10.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: ed38fa32e44b83d68c8bd35d5256827e10746a8d95e664aba9e595ec2548c9c8
4
- data.tar.gz: cd89556e691716fa81920ce5474cd88a51cfd042e1ed75abbedd6274d66a27b6
3
+ metadata.gz: 230253de2d1891b5f81d32c0d3650c2978e442be5d7941f7a72a241eacb3a3de
4
+ data.tar.gz: bb892f84520d3fd92a22bbf1a55e2b485597859e92bf28ef2afc99baee20e640
5
5
  SHA512:
6
- metadata.gz: 92abcee9ba76faa08435078b4b2a5e957a1a394427ef02d42ee4e85b9a9cdcfc0d0e9661d587313ee40a066fd9fe67a06a887e4f19f54a242238f16a48895569
7
- data.tar.gz: 7be299a9c31dd0f42b6c6c2e3d586e295458c2f4a07280cf5b1b37e88bd87bd9c669594e6f458b3d097b0605ab3cb9c1fba647ee2cba5070125095cfb985d204
6
+ metadata.gz: 3892074d05c2e52320196c16d546d58d99694d916fb38bb79c5ce687bc70cc3ba0d06d2745566b18284ff255c6a351137f44ba6961b716d1090e010ea9496f02
7
+ data.tar.gz: 6b00430b9c0a686dfc402c60de01283b74d369b7e199db4ce9eb7f578c07c9acfd5296496a6c9864ad865027c87c0df086b955b5f3815afb0df7771a72c4f563
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -1,4 +1,4 @@
1
- # Apache License
1
+ = Apache License
2
2
 
3
3
  Version 2.0, January 2004
4
4
 
@@ -6,7 +6,7 @@ http://www.apache.org/licenses
6
6
 
7
7
  TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
8
8
 
9
- ## 1. Definitions
9
+ == 1. Definitions
10
10
 
11
11
  "License" shall mean the terms and conditions for use, reproduction, and distribution as defined by
12
12
  Sections 1 through 9 of this document.
@@ -54,14 +54,14 @@ Contribution."
54
54
  "Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a
55
55
  Contribution has been received by Licensor and subsequently incorporated within the Work.
56
56
 
57
- ## 2. Grant of Copyright License
57
+ == 2. Grant of Copyright License
58
58
 
59
59
  Subject to the terms and conditions of this License, each Contributor hereby grants to You a
60
60
  perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to
61
61
  reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and
62
62
  distribute the Work and such Derivative Works in Source or Object form.
63
63
 
64
- ## 3. Grant of Patent License
64
+ == 3. Grant of Patent License
65
65
 
66
66
  Subject to the terms and conditions of this License, each Contributor hereby grants to You a
67
67
  perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this
@@ -74,39 +74,38 @@ a Contribution incorporated within the Work constitutes direct or contributory p
74
74
  then any patent licenses granted to You under this License for that Work shall terminate as of the
75
75
  date such litigation is filed.
76
76
 
77
- ## 4. Redistribution
77
+ == 4. Redistribution
78
78
 
79
79
  You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with
80
80
  or without modifications, and in Source or Object form, provided that You meet the following
81
81
  conditions:
82
82
 
83
- 1. You must give any other recipients of the Work or Derivative Works a copy of this License; and
83
+ . You must give any other recipients of the Work or Derivative Works a copy of this License; and
84
84
 
85
- 2. You must cause any modified files to carry prominent notices stating that You changed the
86
- files; and
85
+ . You must cause any modified files to carry prominent notices stating that You changed the files;
86
+ and
87
87
 
88
- 3. You must retain, in the Source form of any Derivative Works that You distribute, all copyright,
89
- patent, trademark, and attribution notices from the Source form of the Work, excluding those
90
- notices that do not pertain to any part of the Derivative Works; and
88
+ . You must retain, in the Source form of any Derivative Works that You distribute, all copyright,
89
+ patent, trademark, and attribution notices from the Source form of the Work, excluding those
90
+ notices that do not pertain to any part of the Derivative Works; and
91
91
 
92
- 4. If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative
93
- Works that You distribute must include a readable copy of the attribution notices contained
94
- within such NOTICE file, excluding those notices that do not pertain to any part of the
95
- Derivative Works, in at least one of the following places: within a NOTICE text file
96
- distributed as part of the Derivative Works; within the Source form or documentation, if
97
- provided along with the Derivative Works; or, within a display generated by the Derivative
98
- Works, if and wherever such third-party notices normally appear. The contents of the NOTICE
99
- file are for informational purposes only and do not modify the License. You may add Your own
100
- attribution notices within Derivative Works that You distribute, alongside or as an addendum to
101
- the NOTICE text from the Work, provided that such additional attribution notices cannot be
102
- construed as modifying the License.
92
+ . If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works
93
+ that You distribute must include a readable copy of the attribution notices contained within such
94
+ NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in
95
+ at least one of the following places: within a NOTICE text file distributed as part of the
96
+ Derivative Works; within the Source form or documentation, if provided along with the Derivative
97
+ Works; or, within a display generated by the Derivative Works, if and wherever such third-party
98
+ notices normally appear. The contents of the NOTICE file are for informational purposes only and
99
+ do not modify the License. You may add Your own attribution notices within Derivative Works that
100
+ You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such
101
+ additional attribution notices cannot be construed as modifying the License.
103
102
 
104
103
  You may add Your own copyright statement to Your modifications and may provide additional or
105
104
  different license terms and conditions for use, reproduction, or distribution of Your modifications,
106
105
  or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of
107
106
  the Work otherwise complies with the conditions stated in this License.
108
107
 
109
- ## 5. Submission of Contributions
108
+ == 5. Submission of Contributions
110
109
 
111
110
  Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the
112
111
  Work by You to the Licensor shall be under the terms and conditions of this License, without any
@@ -114,13 +113,13 @@ additional terms or conditions. Notwithstanding the above, nothing herein shall
114
113
  the terms of any separate license agreement you may have executed with Licensor regarding such
115
114
  Contributions.
116
115
 
117
- ## 6. Trademarks
116
+ == 6. Trademarks
118
117
 
119
118
  This License does not grant permission to use the trade names, trademarks, service marks, or product
120
119
  names of the Licensor, except as required for reasonable and customary use in describing the origin
121
120
  of the Work and reproducing the content of the NOTICE file.
122
121
 
123
- ## 7. Disclaimer of Warranty
122
+ == 7. Disclaimer of Warranty
124
123
 
125
124
  Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each
126
125
  Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
@@ -129,7 +128,7 @@ TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. Y
129
128
  responsible for determining the appropriateness of using or redistributing the Work and assume any
130
129
  risks associated with Your exercise of permissions under this License.
131
130
 
132
- ## 8. Limitation of Liability
131
+ == 8. Limitation of Liability
133
132
 
134
133
  In no event and under no legal theory, whether in tort (including negligence), contract, or
135
134
  otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or
@@ -139,7 +138,7 @@ License or out of the use or inability to use the Work (including but not limite
139
138
  loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial
140
139
  damages or losses), even if such Contributor has been advised of the possibility of such damages.
141
140
 
142
- ## 9. Accepting Warranty or Additional Liability
141
+ == 9. Accepting Warranty or Additional Liability
143
142
 
144
143
  While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee
145
144
  for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights
@@ -151,11 +150,11 @@ additional liability.
151
150
 
152
151
  END OF TERMS AND CONDITIONS
153
152
 
154
- Copyright 2015 [Alchemists](https://www.alchemists.io).
153
+ Copyright link:https://www.alchemists.io[Alchemists].
155
154
 
156
155
  Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in
157
- compliance with the License. You may obtain a [copy](http://www.apache.org/licenses/LICENSE-2.0) of
158
- the License.
156
+ compliance with the License. You may obtain a link:https://www.apache.org/licenses/LICENSE-2.0[copy]
157
+ of the License.
159
158
 
160
159
  Unless required by applicable law or agreed to in writing, software distributed under the License is
161
160
  distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
@@ -0,0 +1,227 @@
1
+ :toc: macro
2
+ :toclevels: 5
3
+ :figure-caption!:
4
+
5
+ = Milestoner
6
+
7
+ [link=http://badge.fury.io/rb/milestoner]
8
+ image::https://badge.fury.io/rb/milestoner.svg[Gem Version]
9
+ [link=https://circleci.com/gh/bkuhlmann/milestoner]
10
+ image::https://circleci.com/gh/bkuhlmann/milestoner.svg?style=svg[Circle CI Status]
11
+
12
+ A command line interface for crafting Git repository milestones (also known as _tags_).
13
+
14
+ toc::[]
15
+
16
+ == Features
17
+
18
+ * Uses link:https://www.alchemists.io/projects/versionaire[Versionaire] for
19
+ link:https://semver.org[Semantic Versioning].
20
+ ** Format: `+<major>.<minor>.<patch>+`.
21
+ ** Example: `+0.1.0+`.
22
+ * Ensures Git commits since last tag (or initialization of repository) are included.
23
+ * Ensures Git commit messages are grouped by prefix, in order defined. For more details, see
24
+ link:https://www.alchemists.io/projects/git-cop/#_commit_subject_prefix[Git Cop Subject Prefix]
25
+ for details. Defaults (can be customized):
26
+ ** Fixed
27
+ ** Added
28
+ ** Updated
29
+ ** Removed
30
+ ** Refactored
31
+ * Ensures Git commit merge messages are excluded.
32
+ * Ensures Git commit messages are alphabetically sorted.
33
+ * Ensures duplicate Git commit messages are removed (if any).
34
+ * Ensures Git commit messages are sanitized by removing extra spaces and `+[ci skip]+` text within
35
+ each Git tag message.
36
+ * Provides optional security for signing Git tags with https://www.gnupg.org[GnuPG] signing key.
37
+
38
+ == Screencasts
39
+
40
+ [link=https://www.alchemists.io/screencasts/milestoner]
41
+ image::https://www.alchemists.io/images/screencasts/milestoner/cover.svg[Screencast,600,240,role=focal_point]
42
+
43
+ == Requirements
44
+
45
+ . A UNIX-based system.
46
+ . https://www.ruby-lang.org[Ruby].
47
+ . https://www.gnupg.org[GnuPG].
48
+
49
+ == Setup
50
+
51
+ === Production
52
+
53
+ To install, run:
54
+
55
+ [source,bash]
56
+ ----
57
+ gem install milestoner
58
+ ----
59
+
60
+ === Development
61
+
62
+ To contribute, run:
63
+
64
+ [source,bash]
65
+ ----
66
+ git clone https://github.com/bkuhlmann/milestoner.git
67
+ cd milestoner
68
+ bin/setup
69
+ ----
70
+
71
+ You can also use the IRB console for direct access to all objects:
72
+
73
+ [source,bash]
74
+ ----
75
+ bin/console
76
+ ----
77
+
78
+ == Usage
79
+
80
+ === Command Line Interface (CLI)
81
+
82
+ From the command line, type: `+milestoner help+`
83
+
84
+ ....
85
+ milestoner -C, [--commits] # Show commits for next milestone.
86
+ milestoner -P, [--publish=VERSION] # Tag and push milestone to remote repository.
87
+ milestoner -c, [--config] # Manage gem configuration.
88
+ milestoner -h, [--help=COMMAND] # Show this message or get help for a command.
89
+ milestoner -p, [--push=VERSION] # Push local tag to remote repository.
90
+ milestoner -t, [--tag=VERSION] # Tag local repository with new version.
91
+ milestoner -v, [--version] # Show gem version.
92
+ ....
93
+
94
+ For config options, type: `+milestoner help --config+`
95
+
96
+ ....
97
+ -e, [--edit], [--no-edit] # Edit gem configuration.
98
+ -i, [--info], [--no-info] # Print gem configuration info.
99
+ ....
100
+
101
+ For tag options, type: `+milestoner help --tag+`
102
+
103
+ ....
104
+ -s, [--sign], [--no-sign] # Sign tag with GPG key.
105
+ ....
106
+
107
+ For publish options, type: `+milestoner help --publish+`
108
+
109
+ ....
110
+ -s, [--sign], [--no-sign] # Sign tag with GPG key.
111
+ ....
112
+
113
+ When using Milestoner, the `+--publish+` command is intended to be the only command necessary for
114
+ publishing a new release as it handles all of the steps necessary for tagging and pushing a new
115
+ milestone. Should individual steps be needed, then the `+--tag+` and `+--push+` options are
116
+ available.
117
+
118
+ === Customization
119
+
120
+ This gem can be configured via a global configuration:
121
+
122
+ ....
123
+ ~/.config/milestoner/configuration.yml
124
+ ....
125
+
126
+ It can also be configured via https://www.alchemists.io/projects/xdg[XDG] environment variables.
127
+
128
+ The default configuration is as follows:
129
+
130
+ [source,yaml]
131
+ ----
132
+ :git_commit_prefixes:
133
+ - Fixed
134
+ - Added
135
+ - Updated
136
+ - Removed
137
+ - Refactored
138
+ :git_tag_sign: false
139
+ ----
140
+
141
+ Feel free to take this default configuration, modify, and save as your own custom
142
+ `+configuration.yml+`.
143
+
144
+ The `+configuration.yml+` file can be configured as follows:
145
+
146
+ * `+git_commit_prefixes+`: Should the default prefixes not be desired, you can define Git commit
147
+ prefixes that match your style. _NOTE: Prefix order is important with the first prefix defined
148
+ taking precedence over the second and so forth._ Special characters are allowed for prefixes but
149
+ should be enclosed in quotes. To disable prefix usage completely, use an empty array. Example:
150
+ `+:git_commit_prefixes: []+`.
151
+ * `+git_tag_sign+`: Defaults to `+false+` but can be enabled by setting to `+true+`. When enabled, a
152
+ Git tag will require GPG signing for enhanced security and include a signed signature as part of the
153
+ Git tag. This is useful for public milestones where the author of a milestone can be verified to
154
+ ensure milestone integrity/security.
155
+
156
+ == Security
157
+
158
+ To securely sign your Git tags, install and configure https://www.gnupg.org[GPG]:
159
+
160
+ [source,bash]
161
+ ----
162
+ brew install gpg
163
+ gpg --gen-key
164
+ ----
165
+
166
+ When creating your GPG key, choose these settings:
167
+
168
+ * Key kind: RSA and RSA (default)
169
+ * Key size: 4096
170
+ * Key validity: 0
171
+ * Real Name: `+<your name>+`
172
+ * Email: `+<your email>+`
173
+ * Passphrase: `+<your passphrase>+`
174
+
175
+ To obtain your key, run the following and take the part after the forward slash:
176
+
177
+ ....
178
+ gpg --list-keys | grep pub
179
+ ....
180
+
181
+ Add your key to your global Git configuration in the `+[user]+` section. Example:
182
+
183
+ ....
184
+ [user]
185
+ signingkey = <your GPG key>
186
+ ....
187
+
188
+ Now, when publishing a new milestone (i.e. `+milestoner --publish <version> --sign+`), signing of
189
+ your Git tag will happen automatically. You will be prompted for the GPG Passphrase each time but
190
+ that is to be expected.
191
+
192
+ == Tests
193
+
194
+ To test, run:
195
+
196
+ ....
197
+ bundle exec spec
198
+ ....
199
+
200
+ == Versioning
201
+
202
+ Read link:https://semver.org[Semantic Versioning] for details. Briefly, it means:
203
+
204
+ * Major (X.y.z) - Incremented for any backwards incompatible public API changes.
205
+ * Minor (x.Y.z) - Incremented for new, backwards compatible, public API enhancements/fixes.
206
+ * Patch (x.y.Z) - Incremented for small, backwards compatible, bug fixes.
207
+
208
+ == Code of Conduct
209
+
210
+ Please note that this project is released with a link:CODE_OF_CONDUCT.adoc[CODE OF CONDUCT]. By
211
+ participating in this project you agree to abide by its terms.
212
+
213
+ == Contributions
214
+
215
+ Read link:CONTRIBUTING.adoc[CONTRIBUTING] for details.
216
+
217
+ == License
218
+
219
+ Read link:LICENSE.adoc[LICENSE] for details.
220
+
221
+ == History
222
+
223
+ Read link:CHANGES.adoc[CHANGES] for details.
224
+
225
+ == Credits
226
+
227
+ Engineered by link:https://www.alchemists.io/team/brooke_kuhlmann[Brooke Kuhlmann].
@@ -5,5 +5,5 @@ require "milestoner"
5
5
  require "milestoner/cli"
6
6
  require "milestoner/identity"
7
7
 
8
- Process.setproctitle Milestoner::Identity.version_label
8
+ Process.setproctitle Milestoner::Identity::VERSION_LABEL
9
9
  Milestoner::CLI.start
@@ -9,10 +9,10 @@ module Milestoner
9
9
  class CLI < Thor
10
10
  include Thor::Actions
11
11
 
12
- package_name Identity.version_label
12
+ package_name Identity::VERSION_LABEL
13
13
 
14
14
  def self.configuration
15
- Runcom::Config.new Identity.name,
15
+ Runcom::Config.new "#{Identity::NAME}/configuration.yml",
16
16
  defaults: {
17
17
  git_commit_prefixes: %w[Fixed Added Updated Removed Refactored],
18
18
  git_tag_sign: false
@@ -88,7 +88,7 @@ module Milestoner
88
88
  type: :boolean,
89
89
  default: false
90
90
  def config
91
- path = configuration.path
91
+ path = configuration.current
92
92
 
93
93
  if options.edit? then `#{ENV["EDITOR"]} #{path}`
94
94
  elsif options.info?
@@ -100,7 +100,7 @@ module Milestoner
100
100
  desc "-v, [--version]", "Show gem version."
101
101
  map %w[-v --version] => :version
102
102
  def version
103
- say Identity.version_label
103
+ say Identity::VERSION_LABEL
104
104
  end
105
105
 
106
106
  desc "-h, [--help=COMMAND]", "Show this message or get help for a command."
@@ -29,7 +29,7 @@ module Milestoner
29
29
  end
30
30
 
31
31
  def tag_remote? tag
32
- shell("git ls-remote --tags origin #{tag}").match?(%r(.+tags\/#{tag}\Z))
32
+ shell("git ls-remote --tags origin #{tag}").match?(%r(.+tags/#{tag}\Z))
33
33
  end
34
34
 
35
35
  def remote?
@@ -3,20 +3,9 @@
3
3
  module Milestoner
4
4
  # Gem identity information.
5
5
  module Identity
6
- def self.name
7
- "milestoner"
8
- end
9
-
10
- def self.label
11
- "Milestoner"
12
- end
13
-
14
- def self.version
15
- "9.3.3"
16
- end
17
-
18
- def self.version_label
19
- "#{label} #{version}"
20
- end
6
+ NAME = "milestoner"
7
+ LABEL = "Milestoner"
8
+ VERSION = "10.2.0"
9
+ VERSION_LABEL = "#{LABEL} #{VERSION}"
21
10
  end
22
11
  end
@@ -80,7 +80,7 @@ module Milestoner
80
80
  end
81
81
 
82
82
  def git_message
83
- %(Version #{@version}.\n\n#{commit_list.join "\n"}\n\n)
83
+ %(Version #{@version}\n\n#{commit_list.join "\n"}\n\n)
84
84
  end
85
85
 
86
86
  # :reek:BooleanParameter
@@ -103,7 +103,7 @@ module Milestoner
103
103
  # :reek:BooleanParameter
104
104
  # :reek:TooManyStatements
105
105
  def git_tag sign: false
106
- message_file = Tempfile.new Identity.name
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
109
  fail Errors::Git, "Unable to create tag: #{@version}." unless status
metadata CHANGED
@@ -1,18 +1,18 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: milestoner
3
3
  version: !ruby/object:Gem::Version
4
- version: 9.3.3
4
+ version: 10.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brooke Kuhlmann
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain:
11
11
  - |
12
12
  -----BEGIN CERTIFICATE-----
13
- MIIC/jCCAeagAwIBAgIBAjANBgkqhkiG9w0BAQsFADAlMSMwIQYDVQQDDBpicm9v
14
- a2UvREM9YWxjaGVtaXN0cy9EQz1pbzAeFw0xOTAyMTcxNjAxMTFaFw0yMDAyMTcx
15
- NjAxMTFaMCUxIzAhBgNVBAMMGmJyb29rZS9EQz1hbGNoZW1pc3RzL0RDPWlvMIIB
13
+ MIIC/jCCAeagAwIBAgIBAzANBgkqhkiG9w0BAQsFADAlMSMwIQYDVQQDDBpicm9v
14
+ a2UvREM9YWxjaGVtaXN0cy9EQz1pbzAeFw0yMDAzMTUxNDQ1MzJaFw0yMTAzMTUx
15
+ NDQ1MzJaMCUxIzAhBgNVBAMMGmJyb29rZS9EQz1hbGNoZW1pc3RzL0RDPWlvMIIB
16
16
  IjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA6l1qpXTiomH1RfMRloyw7MiE
17
17
  xyVx/x8Yc3EupdH7uhNaTXQGyORN6aOY//1QXXMHIZ9tW74nZLhesWMSUMYy0XhB
18
18
  brs+KkurHnc9FnEJAbG7ebGvl/ncqZt72nQvaxpDxvuCBHgJAz+8i5wl6FhLw+oT
@@ -20,15 +20,15 @@ cert_chain:
20
20
  D5vkU0YlAm1r98BymuJlcQ1qdkVEI1d48ph4kcS0S0nv1RiuyVb6TCAR3Nu3VaVq
21
21
  3fPzZKJLZBx67UvXdbdicWPiUR75elI4PXpLIic3xytaF52ZJYyKZCNZJhNwfQID
22
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=
23
+ 2CdikiiE3fJhP/gY4ggwDQYJKoZIhvcNAQELBQADggEBAIHhAlD3po4sTYqacXaQ
24
+ XI9jIhrfMy//2PgbHWcETtlJPBeNUbbSNBABcllUHKqYsVDlSvSmss034KSWNR8F
25
+ bF1GcloicyvcCC4y6IoW4it0COAcdeaaxkxiBSgKdQFpff9REnDlIKK4uQ9lLxIo
26
+ Y2G5xubiziKZkyfWFuSr67PIjW3Bu673D1JVBArhA1qbgQmYQcy1CkGOjo+iO8Nf
27
+ 7u/QSfBHb+r/bXhKscDgPpnKwbUmvgO2+94zJG9KsrmIydlzYfsD09aXKx0t6Xy4
28
+ 2XV8FRa7/JimI07sPLC13eLY3xd/aYTi85Z782KIA4j0G8XEEWAX0ouBhlXPocZv
29
+ QWc=
30
30
  -----END CERTIFICATE-----
31
- date: 2019-11-01 00:00:00.000000000 Z
31
+ date: 2020-07-23 00:00:00.000000000 Z
32
32
  dependencies:
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: runcom
@@ -36,14 +36,14 @@ dependencies:
36
36
  requirements:
37
37
  - - "~>"
38
38
  - !ruby/object:Gem::Version
39
- version: '5.0'
39
+ version: '6.0'
40
40
  type: :runtime
41
41
  prerelease: false
42
42
  version_requirements: !ruby/object:Gem::Requirement
43
43
  requirements:
44
44
  - - "~>"
45
45
  - !ruby/object:Gem::Version
46
- version: '5.0'
46
+ version: '6.0'
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: thor
49
49
  requirement: !ruby/object:Gem::Requirement
@@ -64,42 +64,14 @@ dependencies:
64
64
  requirements:
65
65
  - - "~>"
66
66
  - !ruby/object:Gem::Version
67
- version: '7.2'
67
+ version: '8.0'
68
68
  type: :runtime
69
69
  prerelease: false
70
70
  version_requirements: !ruby/object:Gem::Requirement
71
71
  requirements:
72
72
  - - "~>"
73
73
  - !ruby/object:Gem::Version
74
- version: '7.2'
75
- - !ruby/object:Gem::Dependency
76
- name: awesome_print
77
- requirement: !ruby/object:Gem::Requirement
78
- requirements:
79
- - - "~>"
80
- - !ruby/object:Gem::Version
81
- version: '1.8'
82
- type: :development
83
- prerelease: false
84
- version_requirements: !ruby/object:Gem::Requirement
85
- requirements:
86
- - - "~>"
87
- - !ruby/object:Gem::Version
88
- version: '1.8'
89
- - !ruby/object:Gem::Dependency
90
- name: bond
91
- requirement: !ruby/object:Gem::Requirement
92
- requirements:
93
- - - "~>"
94
- - !ruby/object:Gem::Version
95
- version: '0.5'
96
- type: :development
97
- prerelease: false
98
- version_requirements: !ruby/object:Gem::Requirement
99
- requirements:
100
- - - "~>"
101
- - !ruby/object:Gem::Version
102
- version: '0.5'
74
+ version: '8.0'
103
75
  - !ruby/object:Gem::Dependency
104
76
  name: bundler-audit
105
77
  requirement: !ruby/object:Gem::Requirement
@@ -134,28 +106,28 @@ dependencies:
134
106
  requirements:
135
107
  - - "~>"
136
108
  - !ruby/object:Gem::Version
137
- version: '13.5'
109
+ version: '14.2'
138
110
  type: :development
139
111
  prerelease: false
140
112
  version_requirements: !ruby/object:Gem::Requirement
141
113
  requirements:
142
114
  - - "~>"
143
115
  - !ruby/object:Gem::Version
144
- version: '13.5'
116
+ version: '14.2'
145
117
  - !ruby/object:Gem::Dependency
146
- name: git-cop
118
+ name: git-lint
147
119
  requirement: !ruby/object:Gem::Requirement
148
120
  requirements:
149
121
  - - "~>"
150
122
  - !ruby/object:Gem::Version
151
- version: '3.5'
123
+ version: '1.0'
152
124
  type: :development
153
125
  prerelease: false
154
126
  version_requirements: !ruby/object:Gem::Requirement
155
127
  requirements:
156
128
  - - "~>"
157
129
  - !ruby/object:Gem::Version
158
- version: '3.5'
130
+ version: '1.0'
159
131
  - !ruby/object:Gem::Dependency
160
132
  name: guard-rspec
161
133
  requirement: !ruby/object:Gem::Requirement
@@ -170,48 +142,34 @@ dependencies:
170
142
  - - "~>"
171
143
  - !ruby/object:Gem::Version
172
144
  version: '4.7'
173
- - !ruby/object:Gem::Dependency
174
- name: hirb
175
- requirement: !ruby/object:Gem::Requirement
176
- requirements:
177
- - - "~>"
178
- - !ruby/object:Gem::Version
179
- version: '0.7'
180
- type: :development
181
- prerelease: false
182
- version_requirements: !ruby/object:Gem::Requirement
183
- requirements:
184
- - - "~>"
185
- - !ruby/object:Gem::Version
186
- version: '0.7'
187
145
  - !ruby/object:Gem::Dependency
188
146
  name: pry
189
147
  requirement: !ruby/object:Gem::Requirement
190
148
  requirements:
191
149
  - - "~>"
192
150
  - !ruby/object:Gem::Version
193
- version: '0.10'
151
+ version: '0.13'
194
152
  type: :development
195
153
  prerelease: false
196
154
  version_requirements: !ruby/object:Gem::Requirement
197
155
  requirements:
198
156
  - - "~>"
199
157
  - !ruby/object:Gem::Version
200
- version: '0.10'
158
+ version: '0.13'
201
159
  - !ruby/object:Gem::Dependency
202
160
  name: pry-byebug
203
161
  requirement: !ruby/object:Gem::Requirement
204
162
  requirements:
205
163
  - - "~>"
206
164
  - !ruby/object:Gem::Version
207
- version: '3.5'
165
+ version: '3.9'
208
166
  type: :development
209
167
  prerelease: false
210
168
  version_requirements: !ruby/object:Gem::Requirement
211
169
  requirements:
212
170
  - - "~>"
213
171
  - !ruby/object:Gem::Version
214
- version: '3.5'
172
+ version: '3.9'
215
173
  - !ruby/object:Gem::Dependency
216
174
  name: rake
217
175
  requirement: !ruby/object:Gem::Requirement
@@ -232,14 +190,14 @@ dependencies:
232
190
  requirements:
233
191
  - - "~>"
234
192
  - !ruby/object:Gem::Version
235
- version: '5.4'
193
+ version: '6.0'
236
194
  type: :development
237
195
  prerelease: false
238
196
  version_requirements: !ruby/object:Gem::Requirement
239
197
  requirements:
240
198
  - - "~>"
241
199
  - !ruby/object:Gem::Version
242
- version: '5.4'
200
+ version: '6.0'
243
201
  - !ruby/object:Gem::Dependency
244
202
  name: rspec
245
203
  requirement: !ruby/object:Gem::Requirement
@@ -260,96 +218,82 @@ dependencies:
260
218
  requirements:
261
219
  - - "~>"
262
220
  - !ruby/object:Gem::Version
263
- version: '0.76'
221
+ version: '0.83'
264
222
  type: :development
265
223
  prerelease: false
266
224
  version_requirements: !ruby/object:Gem::Requirement
267
225
  requirements:
268
226
  - - "~>"
269
227
  - !ruby/object:Gem::Version
270
- version: '0.76'
228
+ version: '0.83'
271
229
  - !ruby/object:Gem::Dependency
272
230
  name: rubocop-performance
273
231
  requirement: !ruby/object:Gem::Requirement
274
232
  requirements:
275
233
  - - "~>"
276
234
  - !ruby/object:Gem::Version
277
- version: '1.4'
235
+ version: '1.5'
278
236
  type: :development
279
237
  prerelease: false
280
238
  version_requirements: !ruby/object:Gem::Requirement
281
239
  requirements:
282
240
  - - "~>"
283
241
  - !ruby/object:Gem::Version
284
- version: '1.4'
242
+ version: '1.5'
285
243
  - !ruby/object:Gem::Dependency
286
244
  name: rubocop-rake
287
245
  requirement: !ruby/object:Gem::Requirement
288
246
  requirements:
289
247
  - - "~>"
290
248
  - !ruby/object:Gem::Version
291
- version: '0.3'
249
+ version: '0.5'
292
250
  type: :development
293
251
  prerelease: false
294
252
  version_requirements: !ruby/object:Gem::Requirement
295
253
  requirements:
296
254
  - - "~>"
297
255
  - !ruby/object:Gem::Version
298
- version: '0.3'
256
+ version: '0.5'
299
257
  - !ruby/object:Gem::Dependency
300
258
  name: rubocop-rspec
301
259
  requirement: !ruby/object:Gem::Requirement
302
260
  requirements:
303
261
  - - "~>"
304
262
  - !ruby/object:Gem::Version
305
- version: '1.33'
263
+ version: '1.39'
306
264
  type: :development
307
265
  prerelease: false
308
266
  version_requirements: !ruby/object:Gem::Requirement
309
267
  requirements:
310
268
  - - "~>"
311
269
  - !ruby/object:Gem::Version
312
- version: '1.33'
270
+ version: '1.39'
313
271
  - !ruby/object:Gem::Dependency
314
272
  name: simplecov
315
273
  requirement: !ruby/object:Gem::Requirement
316
274
  requirements:
317
275
  - - "~>"
318
276
  - !ruby/object:Gem::Version
319
- version: '0.13'
320
- type: :development
321
- prerelease: false
322
- version_requirements: !ruby/object:Gem::Requirement
323
- requirements:
324
- - - "~>"
325
- - !ruby/object:Gem::Version
326
- version: '0.13'
327
- - !ruby/object:Gem::Dependency
328
- name: wirb
329
- requirement: !ruby/object:Gem::Requirement
330
- requirements:
331
- - - "~>"
332
- - !ruby/object:Gem::Version
333
- version: '2.1'
277
+ version: '0.18'
334
278
  type: :development
335
279
  prerelease: false
336
280
  version_requirements: !ruby/object:Gem::Requirement
337
281
  requirements:
338
282
  - - "~>"
339
283
  - !ruby/object:Gem::Version
340
- version: '2.1'
341
- description:
284
+ version: '0.18'
285
+ description:
342
286
  email:
343
287
  - brooke@alchemists.io
344
288
  executables:
345
289
  - milestoner
346
290
  extensions: []
347
291
  extra_rdoc_files:
348
- - README.md
349
- - LICENSE.md
292
+ - README.adoc
293
+ - LICENSE.adoc
350
294
  files:
351
- - LICENSE.md
352
- - README.md
295
+ - LICENSE.adoc
296
+ - README.adoc
353
297
  - bin/milestoner
354
298
  - lib/milestoner.rb
355
299
  - lib/milestoner/cli.rb
@@ -362,14 +306,15 @@ files:
362
306
  - lib/milestoner/publisher.rb
363
307
  - lib/milestoner/pusher.rb
364
308
  - lib/milestoner/tagger.rb
365
- homepage: https://github.com/bkuhlmann/milestoner
309
+ homepage: https://www.alchemists.io/projects/milestoner
366
310
  licenses:
367
311
  - Apache-2.0
368
312
  metadata:
369
- source_code_uri: https://github.com/bkuhlmann/milestoner
370
- changelog_uri: https://github.com/bkuhlmann/milestoner/blob/master/CHANGES.md
371
313
  bug_tracker_uri: https://github.com/bkuhlmann/milestoner/issues
372
- post_install_message:
314
+ changelog_uri: https://www.alchemists.io/projects/milestoner/changes.html
315
+ documentation_uri: https://www.alchemists.io/projects/milestoner
316
+ source_code_uri: https://github.com/bkuhlmann/milestoner
317
+ post_install_message:
373
318
  rdoc_options: []
374
319
  require_paths:
375
320
  - lib
@@ -377,15 +322,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
377
322
  requirements:
378
323
  - - "~>"
379
324
  - !ruby/object:Gem::Version
380
- version: '2.6'
325
+ version: '2.7'
381
326
  required_rubygems_version: !ruby/object:Gem::Requirement
382
327
  requirements:
383
328
  - - ">="
384
329
  - !ruby/object:Gem::Version
385
330
  version: '0'
386
331
  requirements: []
387
- rubygems_version: 3.0.6
388
- signing_key:
332
+ rubygems_version: 3.1.4
333
+ signing_key:
389
334
  specification_version: 4
390
335
  summary: A command line interface for crafting Git repository milestones.
391
336
  test_files: []
metadata.gz.sig CHANGED
Binary file
data/README.md DELETED
@@ -1,202 +0,0 @@
1
- <p align="center">
2
- <img src="milestoner.png" alt="Milestoner Icon"/>
3
- </p>
4
-
5
- # Milestoner
6
-
7
- [![Gem Version](https://badge.fury.io/rb/milestoner.svg)](http://badge.fury.io/rb/milestoner)
8
- [![Code Climate Maintainability](https://api.codeclimate.com/v1/badges/4cf2547433410a9c7150/maintainability)](https://codeclimate.com/github/bkuhlmann/milestoner/maintainability)
9
- [![Code Climate Test Coverage](https://api.codeclimate.com/v1/badges/4cf2547433410a9c7150/test_coverage)](https://codeclimate.com/github/bkuhlmann/milestoner/test_coverage)
10
- [![Circle CI Status](https://circleci.com/gh/bkuhlmann/milestoner.svg?style=svg)](https://circleci.com/gh/bkuhlmann/milestoner)
11
-
12
- A command line interface for crafting Git repository milestones (also known as *tags*).
13
-
14
- <!-- Tocer[start]: Auto-generated, don't remove. -->
15
-
16
- ## Table of Contents
17
-
18
- - [Features](#features)
19
- - [Screencasts](#screencasts)
20
- - [Requirements](#requirements)
21
- - [Setup](#setup)
22
- - [Usage](#usage)
23
- - [Command Line Interface (CLI)](#command-line-interface-cli)
24
- - [Customization](#customization)
25
- - [Security](#security)
26
- - [Tests](#tests)
27
- - [Versioning](#versioning)
28
- - [Code of Conduct](#code-of-conduct)
29
- - [Contributions](#contributions)
30
- - [License](#license)
31
- - [History](#history)
32
- - [Credits](#credits)
33
-
34
- <!-- Tocer[finish]: Auto-generated, don't remove. -->
35
-
36
- ## Features
37
-
38
- - Uses [Versionaire](https://github.com/bkuhlmann/versionaire) for
39
- [Semantic Versioning](https://semver.org).
40
- - Format: `<major>.<minor>.<maintenance>`.
41
- - Example: `0.1.0`.
42
- - Ensures Git commits since last tag (or initialization of repository) are included.
43
- - Ensures Git commit messages are grouped by prefix, in order defined. Defaults (can be customized):
44
- - Fixed
45
- - Added
46
- - Updated
47
- - Removed
48
- - Refactored
49
- - Ensures Git commit merge messages are excluded.
50
- - Ensures Git commit messages are alphabetically sorted.
51
- - Ensures duplicate Git commit messages are removed (if any).
52
- - Ensures Git commit messages are sanitized by removing extra spaces and `[ci skip]` text within
53
- each Git tag message.
54
- - Provides optional security for signing Git tags with [GnuPG](https://www.gnupg.org) signing key.
55
-
56
- ## Screencasts
57
-
58
- [![asciicast](https://asciinema.org/a/263060.svg)](https://asciinema.org/a/263060)
59
-
60
- ## Requirements
61
-
62
- 1. A UNIX-based system.
63
- 1. [Ruby 2.6.x](https://www.ruby-lang.org).
64
- 1. [GnuPG](https://www.gnupg.org).
65
-
66
- ## Setup
67
-
68
- Type the following to install:
69
-
70
- gem install milestoner
71
-
72
- ## Usage
73
-
74
- ### Command Line Interface (CLI)
75
-
76
- From the command line, type: `milestoner help`
77
-
78
- milestoner -C, [--commits] # Show commits for next milestone.
79
- milestoner -P, [--publish=VERSION] # Tag and push milestone to remote repository.
80
- milestoner -c, [--config] # Manage gem configuration.
81
- milestoner -h, [--help=COMMAND] # Show this message or get help for a command.
82
- milestoner -p, [--push=VERSION] # Push local tag to remote repository.
83
- milestoner -t, [--tag=VERSION] # Tag local repository with new version.
84
- milestoner -v, [--version] # Show gem version.
85
-
86
- For config options, type: `milestoner help --config`
87
-
88
- -e, [--edit], [--no-edit] # Edit gem configuration.
89
- -i, [--info], [--no-info] # Print gem configuration info.
90
-
91
- For tag options, type: `milestoner help --tag`
92
-
93
- -s, [--sign], [--no-sign] # Sign tag with GPG key.
94
-
95
- For publish options, type: `milestoner help --publish`
96
-
97
- -s, [--sign], [--no-sign] # Sign tag with GPG key.
98
-
99
- When using Milestoner, the `--publish` command is intended to be the only command necessary for
100
- publishing a new release as it handles all of the steps necessary for tagging and pushing a new
101
- milestone. Should individual steps be needed, then the `--tag` and `--push` options are available.
102
-
103
- ### Customization
104
-
105
- This gem can be configured via a global configuration:
106
-
107
- ~/.config/milestoner/configuration.yml
108
-
109
-
110
- It can also be configured via [XDG](https://github.com/bkuhlmann/xdg) environment variables.
111
-
112
- The default configuration is as follows:
113
-
114
- :git_commit_prefixes:
115
- - Fixed
116
- - Added
117
- - Updated
118
- - Removed
119
- - Refactored
120
- :git_tag_sign: false
121
-
122
- Feel free to take this default configuration, modify, and save as your own custom
123
- `configuration.yml`.
124
-
125
- The `configuration.yml` file can be configured as follows:
126
-
127
- - `git_commit_prefixes`: Should the default prefixes not be desired, you can define Git commit
128
- prefixes that match your style. *NOTE: Prefix order is important with the first prefix defined
129
- taking precedence over the second and so forth.* Special characters are allowed for prefixes but
130
- should be enclosed in quotes if used. To disable prefix usage completely, use an empty array.
131
- Example: `:git_commit_prefixes: []`.
132
- - `git_tag_sign`: Defaults to `false` but can be enabled by setting to `true`. When enabled, a Git
133
- tag will require GPG signing for enhanced security and include a signed signature as part of the
134
- Git tag. This is useful for public milestones where the author of a milestone can be verified to
135
- ensure milestone integrity/security.
136
-
137
- ## Security
138
-
139
- To securely sign your Git tags, install and configure [GPG](https://www.gnupg.org):
140
-
141
- brew install gpg
142
- gpg --gen-key
143
-
144
- When creating your GPG key, choose these settings:
145
-
146
- - Key kind: RSA and RSA (default)
147
- - Key size: 4096
148
- - Key validity: 0
149
- - Real Name: `<your name>`
150
- - Email: `<your email>`
151
- - Passphrase: `<your passphrase>`
152
-
153
- To obtain your key, run the following and take the part after the forward slash:
154
-
155
- gpg --list-keys | grep pub
156
-
157
- Add your key to your global Git configuration in the `[user]` section. Example:
158
-
159
- [user]
160
- signingkey = <your GPG key>
161
-
162
- Now, when publishing a new milestone (i.e. `milestoner --publish <version> --sign`), signing of your
163
- Git tag will happen automatically. You will be prompted for the GPG Passphrase each time but that is
164
- to be expected.
165
-
166
- ## Tests
167
-
168
- To test, run:
169
-
170
- bundle exec spec
171
-
172
- ## Versioning
173
-
174
- Read [Semantic Versioning](https://semver.org) for details. Briefly, it means:
175
-
176
- - Major (X.y.z) - Incremented for any backwards incompatible public API changes.
177
- - Minor (x.Y.z) - Incremented for new, backwards compatible, public API enhancements/fixes.
178
- - Patch (x.y.Z) - Incremented for small, backwards compatible, bug fixes.
179
-
180
- ## Code of Conduct
181
-
182
- Please note that this project is released with a [CODE OF CONDUCT](CODE_OF_CONDUCT.md). By
183
- participating in this project you agree to abide by its terms.
184
-
185
- ## Contributions
186
-
187
- Read [CONTRIBUTING](CONTRIBUTING.md) for details.
188
-
189
- ## License
190
-
191
- Copyright 2015 [Alchemists](https://www.alchemists.io).
192
- Read [LICENSE](LICENSE.md) for details.
193
-
194
- ## History
195
-
196
- Read [CHANGES](CHANGES.md) for details.
197
- Built with [Gemsmith](https://github.com/bkuhlmann/gemsmith).
198
-
199
- ## Credits
200
-
201
- Developed by [Brooke Kuhlmann](https://www.alchemists.io) at
202
- [Alchemists](https://www.alchemists.io).