semverify 0.3.2 → 0.3.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +17 -0
- data/README.md +34 -2
- data/Rakefile +2 -1
- data/lib/semverify/version.rb +1 -1
- data/semverify.gemspec +2 -33
- metadata +6 -37
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c7f6d31abbf12e12406e5c38f1f56e5f7524b7f5902c94c978bc040ced7beea4
|
4
|
+
data.tar.gz: 6edd6e00c65de6a81bc8dbe4cac50b8fee6e091e529e0bd63901fe51b2ed06bb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e0889a7ee154aefcfc829186cfdd3f955d6f54cc956168a9dfe7f21f5926456853f063519c65fd82146eb699da7374807494f5a61028f53a70fb23ecd3d87637
|
7
|
+
data.tar.gz: 0a81b40d9141b123a24040379b8aae3a3a9527030a9b2ede3971e3a26bdc2ab709939cb2b3e876784b750d79a1612506458b2108c00d17c899caa40d8f17fe07
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,20 @@
|
|
1
|
+
## v0.3.4 (2024-01-20)
|
2
|
+
|
3
|
+
[Full Changelog](https://github.com/main-branch/semverify/compare/v0.3.3..v0.3.4)
|
4
|
+
|
5
|
+
Changes since v0.3.3:
|
6
|
+
|
7
|
+
* cf1dd7c Add env coverage options to use when running rspec (#25)
|
8
|
+
* 4e5cc25 Add command line examples to the README.md (#24)
|
9
|
+
|
10
|
+
## v0.3.3 (2024-01-11)
|
11
|
+
|
12
|
+
[Full Changelog](https://github.com/main-branch/semverify/compare/v0.3.2..v0.3.3)
|
13
|
+
|
14
|
+
Changes since v0.3.2:
|
15
|
+
|
16
|
+
* 8219bf1 Remove markdown from gemspec description (#21)
|
17
|
+
|
1
18
|
## v0.3.2 (2024-01-11)
|
2
19
|
|
3
20
|
[Full Changelog](https://github.com/main-branch/semverify/compare/v0.3.1..v0.3.2)
|
data/README.md
CHANGED
@@ -42,7 +42,9 @@ semverify help [COMMAND]
|
|
42
42
|
```
|
43
43
|
|
44
44
|
* [Installation](#installation)
|
45
|
-
* [Command Line
|
45
|
+
* [Command Line](#command-line)
|
46
|
+
* [Usage](#usage)
|
47
|
+
* [Examples](#examples)
|
46
48
|
* [Library Usage](#library-usage)
|
47
49
|
* [Development](#development)
|
48
50
|
* [Contributing](#contributing)
|
@@ -62,7 +64,9 @@ If bundler is not being used to manage dependencies, install the gem by executin
|
|
62
64
|
gem install semverify
|
63
65
|
```
|
64
66
|
|
65
|
-
## Command Line
|
67
|
+
## Command Line
|
68
|
+
|
69
|
+
### Usage
|
66
70
|
|
67
71
|
The `semverify` command line has built in help for all its commands. List the
|
68
72
|
commands by invoking `semverify` with no arguments or `semverify help` as
|
@@ -112,6 +116,34 @@ Description:
|
|
112
116
|
$
|
113
117
|
```
|
114
118
|
|
119
|
+
### Examples
|
120
|
+
|
121
|
+
```Ruby
|
122
|
+
semverify current # 0.1.0
|
123
|
+
|
124
|
+
semverify validate 1.0.0 # exitcode=0
|
125
|
+
semverify validate bad_version # exitcode=1
|
126
|
+
|
127
|
+
semverify patch # 0.1.0 -> 0.1.1
|
128
|
+
semverify minor # 0.1.1 -> 0.2.0
|
129
|
+
semverify major # 0.2.0 -> 1.0.0
|
130
|
+
|
131
|
+
# Pre-release with default pre-release type
|
132
|
+
semverify major --pre # 0.1.1 -> 1.0.0-pre.1
|
133
|
+
|
134
|
+
# Pre-release with non-default pre-release type
|
135
|
+
semverify major --pre --pre-type=alpha # 0.1.1 -> 2.0.0-alpha.1
|
136
|
+
|
137
|
+
# Increment pre-release
|
138
|
+
semverify pre # 1.0.0-alpha.1 -> 1.0.0-alpha.2
|
139
|
+
|
140
|
+
# Change the pre-release type
|
141
|
+
semverify pre --pre-type=beta # 1.0.0-alpha.2 -> 1.0.0-beta.1
|
142
|
+
|
143
|
+
# Create release from pre-release
|
144
|
+
semverify release # 1.0.0-beta.1 -> 1.0.0
|
145
|
+
```
|
146
|
+
|
115
147
|
## Library Usage
|
116
148
|
|
117
149
|
[Detailed API documenation](https://rubydoc.info/gems/semverify/) is hosted on rubygems.org.
|
data/Rakefile
CHANGED
@@ -36,8 +36,9 @@ RSpec::Core::RakeTask.new do
|
|
36
36
|
if RUBY_PLATFORM == 'java'
|
37
37
|
ENV['JAVA_OPTS'] = '-Djdk.io.File.enableADS=true'
|
38
38
|
ENV['JRUBY_OPTS'] = '--debug'
|
39
|
-
ENV['
|
39
|
+
ENV['COV_NO_FAIL'] = 'TRUE'
|
40
40
|
end
|
41
|
+
ENV['COV_SHOW_UNCOVERED'] = 'TRUE'
|
41
42
|
end
|
42
43
|
|
43
44
|
CLEAN << 'coverage'
|
data/lib/semverify/version.rb
CHANGED
data/semverify.gemspec
CHANGED
@@ -10,39 +10,8 @@ Gem::Specification.new do |spec|
|
|
10
10
|
|
11
11
|
spec.summary = 'A Gem to parse and compare SemVer versions AND increment versions for Ruby Gems'
|
12
12
|
spec.description = <<~DESC
|
13
|
-
Parse, compare, and increment RubyGem versions
|
14
|
-
|
15
|
-
This gem installs the `semverify` CLI tool to display and increment a gem's version
|
16
|
-
based on SemVer rules. This tool can replace the `bump` command from the
|
17
|
-
[bump gem](https://rubygems.org/gems/bump/) for incrementing gem version strings.
|
18
|
-
|
19
|
-
This gem also provides the `Semverify::Semver` class which knows how to parse,
|
20
|
-
validate, and compare [SemVer 2.0.0](https://semver.org/spec/v2.0.0.html) version
|
21
|
-
strings.
|
22
|
-
|
23
|
-
Both the CLI tool and the library code support prerelease versions and versions
|
24
|
-
with build metadata.
|
25
|
-
|
26
|
-
Example CLI commands:
|
27
|
-
|
28
|
-
```bash
|
29
|
-
# Increment the gem version
|
30
|
-
semverify {next-major|next-minor|next-patch} [--pre [--pretype=TYPE]] [--build=METADATA] [--dryrun]
|
31
|
-
semverify next-pre [--pretype=TYPE] [--build=METADATA] [--dryrun]
|
32
|
-
semverify next-release [--build=METADATA] [--dryrun]
|
33
|
-
|
34
|
-
# Command to display the current gem version
|
35
|
-
semverify current
|
36
|
-
|
37
|
-
# Display the gem version file
|
38
|
-
semverify file
|
39
|
-
|
40
|
-
# Validate that a version conforms to SemVer 2.0.0
|
41
|
-
semverify validate VERSION
|
42
|
-
|
43
|
-
# Get more detailed help for each command listed above
|
44
|
-
semverify help [COMMAND]
|
45
|
-
```
|
13
|
+
Parse, compare, and increment RubyGem versions with the 'semverify' CLI
|
14
|
+
command or the 'Semverify::Semver' class.
|
46
15
|
DESC
|
47
16
|
|
48
17
|
spec.homepage = 'http://github.com/main-branch/semverify'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: semverify
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Couball
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-01-
|
11
|
+
date: 2024-01-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|
@@ -171,39 +171,8 @@ dependencies:
|
|
171
171
|
- !ruby/object:Gem::Version
|
172
172
|
version: '0.9'
|
173
173
|
description: |
|
174
|
-
Parse, compare, and increment RubyGem versions
|
175
|
-
|
176
|
-
This gem installs the `semverify` CLI tool to display and increment a gem's version
|
177
|
-
based on SemVer rules. This tool can replace the `bump` command from the
|
178
|
-
[bump gem](https://rubygems.org/gems/bump/) for incrementing gem version strings.
|
179
|
-
|
180
|
-
This gem also provides the `Semverify::Semver` class which knows how to parse,
|
181
|
-
validate, and compare [SemVer 2.0.0](https://semver.org/spec/v2.0.0.html) version
|
182
|
-
strings.
|
183
|
-
|
184
|
-
Both the CLI tool and the library code support prerelease versions and versions
|
185
|
-
with build metadata.
|
186
|
-
|
187
|
-
Example CLI commands:
|
188
|
-
|
189
|
-
```bash
|
190
|
-
# Increment the gem version
|
191
|
-
semverify {next-major|next-minor|next-patch} [--pre [--pretype=TYPE]] [--build=METADATA] [--dryrun]
|
192
|
-
semverify next-pre [--pretype=TYPE] [--build=METADATA] [--dryrun]
|
193
|
-
semverify next-release [--build=METADATA] [--dryrun]
|
194
|
-
|
195
|
-
# Command to display the current gem version
|
196
|
-
semverify current
|
197
|
-
|
198
|
-
# Display the gem version file
|
199
|
-
semverify file
|
200
|
-
|
201
|
-
# Validate that a version conforms to SemVer 2.0.0
|
202
|
-
semverify validate VERSION
|
203
|
-
|
204
|
-
# Get more detailed help for each command listed above
|
205
|
-
semverify help [COMMAND]
|
206
|
-
```
|
174
|
+
Parse, compare, and increment RubyGem versions with the 'semverify' CLI
|
175
|
+
command or the 'Semverify::Semver' class.
|
207
176
|
email:
|
208
177
|
- jcouball@yahoo.com
|
209
178
|
executables:
|
@@ -243,8 +212,8 @@ metadata:
|
|
243
212
|
allowed_push_host: https://rubygems.org
|
244
213
|
homepage_uri: http://github.com/main-branch/semverify
|
245
214
|
source_code_uri: http://github.com/main-branch/semverify
|
246
|
-
changelog_uri: https://rubydoc.info/gems/semverify/0.3.
|
247
|
-
documentation_uri: https://rubydoc.info/gems/semverify/0.3.
|
215
|
+
changelog_uri: https://rubydoc.info/gems/semverify/0.3.4/file/CHANGELOG.md
|
216
|
+
documentation_uri: https://rubydoc.info/gems/semverify/0.3.4
|
248
217
|
rubygems_mfa_required: 'true'
|
249
218
|
post_install_message:
|
250
219
|
rdoc_options: []
|