opt_parse_builder 0.2.0 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/.ruby-version +1 -1
- data/CHANGELOG.md +6 -0
- data/Gemfile.lock +7 -7
- data/doc/publishing.md +42 -0
- data/examples/hello_world.rb +1 -1
- data/examples/lib/setup_example.rb +8 -0
- data/lib/opt_parse_builder/version.rb +1 -1
- metadata +4 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ae59f7036ba75769d0965d67ec2b8d79c9d1965d3867898ee40b1a6e39d63395
|
|
4
|
+
data.tar.gz: d92e59065fc880fb4b0182f4a9f3d608bc88d69333a37267f7edaae36efd41b2
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 688195cd6207f2a4dbb5aebb66851efe094a17a1e3c55d87cd38f62ffe72cc15acd665c1ad64e203abe806f8a5cb767dd4ff46123f4c521f003b70e570a883b8
|
|
7
|
+
data.tar.gz: 97a98d23c58dbbeda7136b5399455bde1d00840c2748409f8ae85dce667d06f4b114ac7e00ea110bd5bdd8a58758af11ba0d34b975960acea67db21cc80aa325
|
data/.gitignore
CHANGED
data/.ruby-version
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
ruby-3.4.
|
|
1
|
+
ruby-3.4.7
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
opt_parse_builder (0.
|
|
4
|
+
opt_parse_builder (1.0.0)
|
|
5
5
|
|
|
6
6
|
GEM
|
|
7
7
|
remote: https://rubygems.org/
|
|
8
8
|
specs:
|
|
9
9
|
diff-lcs (1.6.2)
|
|
10
|
-
rake (13.3.
|
|
11
|
-
rspec (3.13.
|
|
10
|
+
rake (13.3.1)
|
|
11
|
+
rspec (3.13.2)
|
|
12
12
|
rspec-core (~> 3.13.0)
|
|
13
13
|
rspec-expectations (~> 3.13.0)
|
|
14
14
|
rspec-mocks (~> 3.13.0)
|
|
15
|
-
rspec-core (3.13.
|
|
15
|
+
rspec-core (3.13.6)
|
|
16
16
|
rspec-support (~> 3.13.0)
|
|
17
17
|
rspec-expectations (3.13.5)
|
|
18
18
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
19
19
|
rspec-support (~> 3.13.0)
|
|
20
|
-
rspec-mocks (3.13.
|
|
20
|
+
rspec-mocks (3.13.7)
|
|
21
21
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
22
22
|
rspec-support (~> 3.13.0)
|
|
23
|
-
rspec-support (3.13.
|
|
23
|
+
rspec-support (3.13.6)
|
|
24
24
|
|
|
25
25
|
PLATFORMS
|
|
26
26
|
ruby
|
|
@@ -32,4 +32,4 @@ DEPENDENCIES
|
|
|
32
32
|
rspec (~> 3.10)
|
|
33
33
|
|
|
34
34
|
BUNDLED WITH
|
|
35
|
-
2.
|
|
35
|
+
2.7.2
|
data/doc/publishing.md
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
Publishing a New Release
|
|
2
|
+
|
|
3
|
+
# Checklist
|
|
4
|
+
|
|
5
|
+
* Run tests: `rake`
|
|
6
|
+
* Update `lib/opt_parse_builder/version.rb`
|
|
7
|
+
* Update `CHANGELOG.md` with version and date
|
|
8
|
+
* Commit: `git commit -am "Bump version to X.X.X"`
|
|
9
|
+
* Release: `rake release`
|
|
10
|
+
* Verify at https://rubygems.org/gems/opt_parse_builder
|
|
11
|
+
|
|
12
|
+
# Notes
|
|
13
|
+
|
|
14
|
+
Semantic Versioning: MAJOR.MINOR.PATCH (breaking.feature.bugfix)
|
|
15
|
+
|
|
16
|
+
What `rake release` does:
|
|
17
|
+
|
|
18
|
+
* Builds the gem
|
|
19
|
+
* Creates git tag vX.X.X
|
|
20
|
+
* Pushes tag to GitHub
|
|
21
|
+
* Publishes gem to rubygems.org
|
|
22
|
+
|
|
23
|
+
Dry run: `gem_push=no rake release` (tags but doesn't publish)
|
|
24
|
+
|
|
25
|
+
# Troubleshooting
|
|
26
|
+
|
|
27
|
+
No RubyGems credentials: `gem signin`
|
|
28
|
+
|
|
29
|
+
Release failed mid-way:
|
|
30
|
+
|
|
31
|
+
```bash
|
|
32
|
+
git tag -d vX.X.X # Delete local tag
|
|
33
|
+
git push origin :vX.X.X # Delete remote tag
|
|
34
|
+
rake release # Try again
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
Manual publish (if rake release fails):
|
|
38
|
+
|
|
39
|
+
```bash
|
|
40
|
+
gem build opt_parse_builder.gemspec
|
|
41
|
+
gem push opt_parse_builder-X.X.X.gem
|
|
42
|
+
```
|
data/examples/hello_world.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: opt_parse_builder
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 1.0.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Wayne Conrad
|
|
@@ -71,7 +71,9 @@ files:
|
|
|
71
71
|
- LICENSE
|
|
72
72
|
- README.md
|
|
73
73
|
- Rakefile
|
|
74
|
+
- doc/publishing.md
|
|
74
75
|
- examples/hello_world.rb
|
|
76
|
+
- examples/lib/setup_example.rb
|
|
75
77
|
- lib/opt_parse_builder.rb
|
|
76
78
|
- lib/opt_parse_builder/argument.rb
|
|
77
79
|
- lib/opt_parse_builder/argument_builder.rb
|
|
@@ -117,7 +119,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
117
119
|
- !ruby/object:Gem::Version
|
|
118
120
|
version: '0'
|
|
119
121
|
requirements: []
|
|
120
|
-
rubygems_version: 3.6.
|
|
122
|
+
rubygems_version: 3.6.9
|
|
121
123
|
specification_version: 4
|
|
122
124
|
summary: Builder DSL for optparse, with more
|
|
123
125
|
test_files: []
|