milestoner 10.0.2 → 10.1.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: a578c120a88aac89a49c98fbfb50bb30b17e9303a1dab67f7e7d6029e56e2193
4
- data.tar.gz: 4925f570e411f4a432526abc66574170cf0934351c499acc94d9f5d6021e3768
3
+ metadata.gz: 176cefe3cab1c51ff1639a3e77eab2aea566ca58ccf890147a3f8b32d5e2f977
4
+ data.tar.gz: 7762ff435b91c86d4a1cc66efb8810effe4364895e4becdd2f3fb99aaa7100fe
5
5
  SHA512:
6
- metadata.gz: 351f67a208771f8f9c0b1de65bb89645b1b5d4642653e3a9f945ca12b7fc182cd00e8de6ab681f2b75ce5c5077466cc8ed14c01c23e1fd16ac7698f65c3495f3
7
- data.tar.gz: e339dc73f6b8b41525c348ec26b2a9b2d8909d7cacd6e22a41ca6c9770a12b8be9cb4437e9481718369d84202fc6b1625af29e8e14d8ab827323041f61a02db8
6
+ metadata.gz: 7b6df5b34699755f81eb012d189b3f60e3b40b99d88ddf5c2ba2791242b06fe1c653059727c6776066df4c8e66bad31c4f423fcd68157329f1ae604dae207951
7
+ data.tar.gz: 50889a5328ad799c8d240556ee26c3d28c2828096d580995ef91fd16ee9cfd74f61ebb8a94e1169c87b50f4142317e2015eee8e50bf06131cc67e0f762dc3212
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.html]
41
+ image::https://www.alchemists.io/images/screencasts/milestoner/cover-original.png[Screencast,role=focal_point]
42
+
43
+ == Requirements
44
+
45
+ . A UNIX-based system.
46
+ . https://www.ruby-lang.org[Ruby 2.7.x].
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.html[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}/configuration.yml",
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
@@ -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."
@@ -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
- "10.0.2"
16
- end
17
-
18
- def self.version_label
19
- "#{label} #{version}"
20
- end
6
+ NAME = "milestoner"
7
+ LABEL = "Milestoner"
8
+ VERSION = "10.1.0"
9
+ VERSION_LABEL = "#{LABEL} #{VERSION}"
21
10
  end
22
11
  end
@@ -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,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: milestoner
3
3
  version: !ruby/object:Gem::Version
4
- version: 10.0.2
4
+ version: 10.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brooke Kuhlmann
@@ -10,9 +10,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: 2020-02-01 00:00:00.000000000 Z
31
+ date: 2020-04-01 00:00:00.000000000 Z
32
32
  dependencies:
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: runcom
@@ -190,14 +190,14 @@ dependencies:
190
190
  requirements:
191
191
  - - "~>"
192
192
  - !ruby/object:Gem::Version
193
- version: '5.6'
193
+ version: '6.0'
194
194
  type: :development
195
195
  prerelease: false
196
196
  version_requirements: !ruby/object:Gem::Requirement
197
197
  requirements:
198
198
  - - "~>"
199
199
  - !ruby/object:Gem::Version
200
- version: '5.6'
200
+ version: '6.0'
201
201
  - !ruby/object:Gem::Dependency
202
202
  name: rspec
203
203
  requirement: !ruby/object:Gem::Requirement
@@ -289,11 +289,11 @@ executables:
289
289
  - milestoner
290
290
  extensions: []
291
291
  extra_rdoc_files:
292
- - README.md
293
- - LICENSE.md
292
+ - README.adoc
293
+ - LICENSE.adoc
294
294
  files:
295
- - LICENSE.md
296
- - README.md
295
+ - LICENSE.adoc
296
+ - README.adoc
297
297
  - bin/milestoner
298
298
  - lib/milestoner.rb
299
299
  - lib/milestoner/cli.rb
@@ -306,13 +306,14 @@ files:
306
306
  - lib/milestoner/publisher.rb
307
307
  - lib/milestoner/pusher.rb
308
308
  - lib/milestoner/tagger.rb
309
- homepage: https://github.com/bkuhlmann/milestoner
309
+ homepage: https://www.alchemists.io/projects/milestoner
310
310
  licenses:
311
311
  - Apache-2.0
312
312
  metadata:
313
- source_code_uri: https://github.com/bkuhlmann/milestoner
314
- changelog_uri: https://github.com/bkuhlmann/milestoner/blob/master/CHANGES.md
315
313
  bug_tracker_uri: https://github.com/bkuhlmann/milestoner/issues
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
316
317
  post_install_message:
317
318
  rdoc_options: []
318
319
  require_paths:
metadata.gz.sig CHANGED
Binary file
data/README.md DELETED
@@ -1,204 +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>.<patch>`.
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. For more details, see [Git
44
- Cop Subject Prefix](https://github.com/bkuhlmann/git-cop#commit-subject-prefix) for details.
45
- Defaults (can be customized):
46
- - Fixed
47
- - Added
48
- - Updated
49
- - Removed
50
- - Refactored
51
- - Ensures Git commit merge messages are excluded.
52
- - Ensures Git commit messages are alphabetically sorted.
53
- - Ensures duplicate Git commit messages are removed (if any).
54
- - Ensures Git commit messages are sanitized by removing extra spaces and `[ci skip]` text within
55
- each Git tag message.
56
- - Provides optional security for signing Git tags with [GnuPG](https://www.gnupg.org) signing key.
57
-
58
- ## Screencasts
59
-
60
- [![asciicast](https://asciinema.org/a/293098.svg)](https://asciinema.org/a/293098)
61
-
62
- ## Requirements
63
-
64
- 1. A UNIX-based system.
65
- 1. [Ruby 2.7.x](https://www.ruby-lang.org).
66
- 1. [GnuPG](https://www.gnupg.org).
67
-
68
- ## Setup
69
-
70
- Type the following to install:
71
-
72
- gem install milestoner
73
-
74
- ## Usage
75
-
76
- ### Command Line Interface (CLI)
77
-
78
- From the command line, type: `milestoner help`
79
-
80
- milestoner -C, [--commits] # Show commits for next milestone.
81
- milestoner -P, [--publish=VERSION] # Tag and push milestone to remote repository.
82
- milestoner -c, [--config] # Manage gem configuration.
83
- milestoner -h, [--help=COMMAND] # Show this message or get help for a command.
84
- milestoner -p, [--push=VERSION] # Push local tag to remote repository.
85
- milestoner -t, [--tag=VERSION] # Tag local repository with new version.
86
- milestoner -v, [--version] # Show gem version.
87
-
88
- For config options, type: `milestoner help --config`
89
-
90
- -e, [--edit], [--no-edit] # Edit gem configuration.
91
- -i, [--info], [--no-info] # Print gem configuration info.
92
-
93
- For tag options, type: `milestoner help --tag`
94
-
95
- -s, [--sign], [--no-sign] # Sign tag with GPG key.
96
-
97
- For publish options, type: `milestoner help --publish`
98
-
99
- -s, [--sign], [--no-sign] # Sign tag with GPG key.
100
-
101
- When using Milestoner, the `--publish` command is intended to be the only command necessary for
102
- publishing a new release as it handles all of the steps necessary for tagging and pushing a new
103
- milestone. Should individual steps be needed, then the `--tag` and `--push` options are available.
104
-
105
- ### Customization
106
-
107
- This gem can be configured via a global configuration:
108
-
109
- ~/.config/milestoner/configuration.yml
110
-
111
-
112
- It can also be configured via [XDG](https://github.com/bkuhlmann/xdg) environment variables.
113
-
114
- The default configuration is as follows:
115
-
116
- :git_commit_prefixes:
117
- - Fixed
118
- - Added
119
- - Updated
120
- - Removed
121
- - Refactored
122
- :git_tag_sign: false
123
-
124
- Feel free to take this default configuration, modify, and save as your own custom
125
- `configuration.yml`.
126
-
127
- The `configuration.yml` file can be configured as follows:
128
-
129
- - `git_commit_prefixes`: Should the default prefixes not be desired, you can define Git commit
130
- prefixes that match your style. *NOTE: Prefix order is important with the first prefix defined
131
- taking precedence over the second and so forth.* Special characters are allowed for prefixes but
132
- should be enclosed in quotes. To disable prefix usage completely, use an empty array. Example:
133
- `:git_commit_prefixes: []`.
134
- - `git_tag_sign`: Defaults to `false` but can be enabled by setting to `true`. When enabled, a Git
135
- tag will require GPG signing for enhanced security and include a signed signature as part of the
136
- Git tag. This is useful for public milestones where the author of a milestone can be verified to
137
- ensure milestone integrity/security.
138
-
139
- ## Security
140
-
141
- To securely sign your Git tags, install and configure [GPG](https://www.gnupg.org):
142
-
143
- brew install gpg
144
- gpg --gen-key
145
-
146
- When creating your GPG key, choose these settings:
147
-
148
- - Key kind: RSA and RSA (default)
149
- - Key size: 4096
150
- - Key validity: 0
151
- - Real Name: `<your name>`
152
- - Email: `<your email>`
153
- - Passphrase: `<your passphrase>`
154
-
155
- To obtain your key, run the following and take the part after the forward slash:
156
-
157
- gpg --list-keys | grep pub
158
-
159
- Add your key to your global Git configuration in the `[user]` section. Example:
160
-
161
- [user]
162
- signingkey = <your GPG key>
163
-
164
- Now, when publishing a new milestone (i.e. `milestoner --publish <version> --sign`), signing of your
165
- Git tag will happen automatically. You will be prompted for the GPG Passphrase each time but that is
166
- to be expected.
167
-
168
- ## Tests
169
-
170
- To test, run:
171
-
172
- bundle exec spec
173
-
174
- ## Versioning
175
-
176
- Read [Semantic Versioning](https://semver.org) for details. Briefly, it means:
177
-
178
- - Major (X.y.z) - Incremented for any backwards incompatible public API changes.
179
- - Minor (x.Y.z) - Incremented for new, backwards compatible, public API enhancements/fixes.
180
- - Patch (x.y.Z) - Incremented for small, backwards compatible, bug fixes.
181
-
182
- ## Code of Conduct
183
-
184
- Please note that this project is released with a [CODE OF CONDUCT](CODE_OF_CONDUCT.md). By
185
- participating in this project you agree to abide by its terms.
186
-
187
- ## Contributions
188
-
189
- Read [CONTRIBUTING](CONTRIBUTING.md) for details.
190
-
191
- ## License
192
-
193
- Copyright 2015 [Alchemists](https://www.alchemists.io).
194
- Read [LICENSE](LICENSE.md) for details.
195
-
196
- ## History
197
-
198
- Read [CHANGES](CHANGES.md) for details.
199
- Built with [Gemsmith](https://github.com/bkuhlmann/gemsmith).
200
-
201
- ## Credits
202
-
203
- Developed by [Brooke Kuhlmann](https://www.alchemists.io) at
204
- [Alchemists](https://www.alchemists.io).