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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 39695b1c1e778b1f947bc02eae0b0942405f686e1b2295db180b47056c6bf8a3
4
- data.tar.gz: 1daba7a89dc175c9c5b087ff9a03fb50e7ede303f0bdf7289b23e994cd6161af
3
+ metadata.gz: ae59f7036ba75769d0965d67ec2b8d79c9d1965d3867898ee40b1a6e39d63395
4
+ data.tar.gz: d92e59065fc880fb4b0182f4a9f3d608bc88d69333a37267f7edaae36efd41b2
5
5
  SHA512:
6
- metadata.gz: '0876b80178845db9da8786262ffd10a0c00a3ca63f980efb99c9d1aff03422afce8dc10c2ba9fc9dba67ca18c3c32466b0c65860fb89280b39560811ed654e33'
7
- data.tar.gz: 705942c096e316892af5f7b5a70083da538556d0d2559b67a091e0fe3b7e1b4d8aa5966e8550327e63e90213e205bf076576e779fd7939f3b225fd4715a54a61
6
+ metadata.gz: 688195cd6207f2a4dbb5aebb66851efe094a17a1e3c55d87cd38f62ffe72cc15acd665c1ad64e203abe806f8a5cb767dd4ff46123f4c521f003b70e570a883b8
7
+ data.tar.gz: 97a98d23c58dbbeda7136b5399455bde1d00840c2748409f8ae85dce667d06f4b114ac7e00ea110bd5bdd8a58758af11ba0d34b975960acea67db21cc80aa325
data/.gitignore CHANGED
@@ -1,3 +1,4 @@
1
1
  html
2
2
  *.gem
3
3
  temp
4
+ .claude/
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- ruby-3.4.4
1
+ ruby-3.4.7
data/CHANGELOG.md CHANGED
@@ -2,6 +2,12 @@
2
2
 
3
3
  # Development
4
4
 
5
+ # 1.0.0 - 2025-11-28
6
+
7
+ * Declare API stability by bumping version to 1.0.0
8
+ * Update gems
9
+ * Update Ruby to 3.4.7
10
+
5
11
  # 0.2.0 - 2025-07-06
6
12
 
7
13
  * Update gems
data/Gemfile.lock CHANGED
@@ -1,26 +1,26 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- opt_parse_builder (0.2.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.0)
11
- rspec (3.13.1)
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.5)
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.5)
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.4)
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.6.9
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
+ ```
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
- require "opt_parse_builder"
3
+ require_relative "lib/setup_example"
4
4
 
5
5
  ARG_PARSER = OptParseBuilder.build_parser do |args|
6
6
  args.banner "A simple example"
@@ -0,0 +1,8 @@
1
+ require "bundler/setup"
2
+
3
+ lib_dir = File.join(__dir__, "../../lib")
4
+ if File.directory?(lib_dir)
5
+ $:.prepend lib_dir
6
+ end
7
+
8
+ require "opt_parse_builder"
@@ -1,6 +1,6 @@
1
1
  module OptParseBuilder
2
2
 
3
3
  # Library version. Follows Semantic Versioning 2.0
4
- VERSION = "0.2.0"
4
+ VERSION = "1.0.0"
5
5
 
6
6
  end
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.2.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.7
122
+ rubygems_version: 3.6.9
121
123
  specification_version: 4
122
124
  summary: Builder DSL for optparse, with more
123
125
  test_files: []