switches.rb 0.10.1 → 0.10.3

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: 8e900150793418981ab52b35828a2fc696a5e7b826d4eba77047d96cc7532dfe
4
- data.tar.gz: f4e598c29f7dbaf2c61b8e685151732afba5770b94085cbe06a413f85151b692
3
+ metadata.gz: f5b9c36e31d7118656c21aabaf9ba11bbce49bf412c8162bc846b498e2df4436
4
+ data.tar.gz: 9e80ffa19bdba18e233a545823feda717cc929d894520c25e6c4c47727725a79
5
5
  SHA512:
6
- metadata.gz: fe23cc64afe81e073164650ef50b64ae208cfc57cc82a9e6e57efc4925f8cd87853b0b5726f2dea6cbe528cf9348fc1499e9e5fe6febf2e9f4348eb96a1b2e9e
7
- data.tar.gz: 4ab5f810b80fc2716684aaa46481a2e83db7bf628a6a81bdfe25c4f1ed588eaf3fb090fd011e92df3592ec93962e2915b2ec3f0821c4d93081f04624e207a7cc
6
+ metadata.gz: 17a0546157353bbbd9de4a0139097cff70d4551c528e1203749c7bafe0195c4553ead66fd229082e6bc9b02eb43d9cacaaed3927279640608dca6bdfcb178c13
7
+ data.tar.gz: 07cd0a479fe6e0ec7887e01e5b96652d1ba80d3062fc76d43e3433990751b806236ce9902531c7b8dc750560fb320c96ba39445d02c6a8fcf7fe03afef9e04f2
data/CHANGELOG CHANGED
@@ -1,5 +1,21 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## 20260812
4
+
5
+ 0.10.3: Move the version into a constant, and add the standard version and gemspec tests.
6
+
7
+ 1. + lib/Switches/VERSION.rb: Switches::VERSION, required from lib/Switches.rb. The version now lives in a constant the gemspec reads, in place of the '0.10.2' literal it declared.
8
+ 2. ~ switches.rb.gemspec: s.version from Switches::VERSION; development_dependencies declared as data — s.development_dependencies = [...], via a setter added in a local Gem::Specification reopening — in place of the add_development_dependency calls; - s.date, which was a stale literal, letting RubyGems' default stand.
9
+ 3. + spec/all.rb: the standard version and gemspec specs — VERSION is a string, an anchored X.Y.Z, and matches the newest CHANGELOG entry; the gemspec loads and validates, pins no date, takes its version from Switches::VERSION, declares no runtime dependencies, and declares rake and rspec for development.
10
+ 4. - lib/Switches.rb: the "# 20260809 / # 0.10.1" date-and-version stamp in the header, now redundant since VERSION.rb carries the version.
11
+
12
+ 0.10.2: Recover the in-source change log into the CHANGELOG, and move the Notes to the README.
13
+
14
+ 1. + CHANGELOG: the 0.9.0 to 0.9.13 series, recovered from the "Changes since 0.8:" log that lived in the lib/Switches.rb header. The items are reproduced as written; the versions carry no reliable dates and are left undated.
15
+ 2. + README.md: a Notes section, carrying the notes from the lib/Switches.rb header — the unusable "-?" switch, the clash between Switches methods and OptionParser methods, the required/optional demarcation, and the bang interface methods.
16
+ 3. - lib/Switches.rb: the "# Changes since 0.8:" log (now in the CHANGELOG) and the "# Notes:" section (now in the README). The rest of the header — Description, Todo, Ideas, Dependencies — stays.
17
+
18
+
3
19
  ## 20260809
4
20
 
5
21
  0.10.1: Get the specs running again, under rspec 3 and rake.
@@ -28,4 +44,132 @@
28
44
 
29
45
  0.9.14: Turn switches into a gem, convert the README to markdown, and remove the examples directory.
30
46
 
31
- Nothing before 0.9.14 is recorded here: switches began in 2009, and its pre-gem history — the 0.4.0 to 0.9.13 series noted in the source header — carries no reliable per-version dates.
47
+ The 0.9.0 to 0.9.13 series below is recovered from the "Changes since 0.8:" log that was kept in the lib/Switches.rb header (removed in 0.10.2); the items are reproduced as they were written there. switches began in 2009 and this pre-gem history carries no reliable per-version dates, so these entries are undated. Nothing before 0.9.0 — the 0.4.0 to 0.8.x Options era — is recorded.
48
+
49
+ 0.9.13: Swap a couple of @settings.instance_variable_get(:@table)'s for OpenStruct#to_h's.
50
+
51
+ 1. Swapped out a couple of @settings.instance_variable_get(:@table)'s for OpenStruct#to_h's.
52
+
53
+ 0.9.12: Remove the default aliases for default_to, which clashed with the mail gem's Mail::Message#default.
54
+
55
+ 1. - Object#default.
56
+ 2. - NilClass#default.
57
+
58
+ 0.9.11: Fix the defaults overwriting the supplied settings.
59
+
60
+ 1. ~ Switches#set_switches_with_defaults to check if a setting had been set before applying a default value.
61
+
62
+ 0.9.10: OpenStruct#to_h and Switches#to_h.
63
+
64
+ 1. + OpenStruct#to_h.
65
+ 2. ~ Switches#to_h.
66
+
67
+ 0.9.9: A large batch — full missing-switch reporting, required_perform, default_is, and Array/Module helpers.
68
+
69
+ 1. ~ Switches#check_required_switches, so as it now assembles the complete list of missing switches rather than failing on and reporting only the first.
70
+ 2. + Switches#required_perform
71
+ 3. + Switches#required_perform!
72
+ 4. - OptionParse#soft_parse, since this was never used here, but only in Attributes.
73
+ 5. + Object#default_is(et.al.)
74
+ 6. + NilClass#default_is(et.al.) overrides Object#default_is for the specific case of nil.
75
+ 7. /switches_defaults/switches_with_defaults/.
76
+ 8. + Array#peek_options.
77
+ 9. + Array#poke_options!.
78
+ 10. + Array#all_but_last.
79
+ 11. + Array#last!.
80
+ 12. + Module#alias_methods.
81
+ 13. ~ CastingInterfaceMethods, to make use of Array#poke_options.
82
+ 14. + CastingInterfaceMethods#flag.
83
+ 15. + Switches.as_h (and associated aliased interfaces).
84
+ 16. ~ Switches#initialize, arguments are now a splat with the intention of allowing both casting_interface_methods and as_h being specified as a hash supplied to the initialiser.
85
+ 17. ~ Switches, to make use of Module#alias_methods.
86
+ 18. ~ Switches, to make use of Array#peek_options and Array#poke_options!.
87
+ 19. + Switches#required_perform.
88
+ 20. + Switches#required_perform!.
89
+ 21. + Switches#switches_with_defaults.
90
+ 22. + Switches#switches_with_castings.
91
+ 23. + Swtiches#to_h.
92
+ 24. + Switches#set_if_required_switch.
93
+ 25. + Switches#set_switches_with_defaults.
94
+ 26. ~ Switches#parse!, + set_switches_with_defaults() and + to_h().
95
+ 27. ~ Switches#do_set, + set_if_required_switch().
96
+ 28. ~ Switches#do_action, + set_if_required_switch().
97
+ 29. ~ Switches#on_args, so as it can handle castings.
98
+
99
+ 0.9.8: Add #perform and #perform!, plus #do_action and the #on_args changes to support them.
100
+
101
+ 1. ~ Switches#on_args, so as if a block is supplied which is not returning a String, then it will not be placed into the on_args argument list.
102
+ 2. + Switches#perform, interface for actions which don't require an argument.
103
+ 3. + Switches#perform!, interface for actions which do require an argument.
104
+ 4. + Switches#do_action, executes a block when called by either of #perform or #perform!.
105
+
106
+ 0.9.7: Some small tidyups and removal of the self-run section.
107
+
108
+ 1. ~ Switches#on_args, shorter when handling casting arguments.
109
+ 2. /unused_switches/unset_switches/.
110
+ 3. ~ Switches#check_required_switches, so that the message is not being assigned until a switch is missing.
111
+ 4. Removed the self-run section and moved it to ./test/run.rb.
112
+
113
+ 0.9.6: Fix the setting of defaults overriding supplied switch values.
114
+
115
+ 1. ~ Switches#set_unused_switches, to make use of #switch_defaults and #unused_switches.
116
+ 2. + Switches#switch_defaults, as an interface method since it might be useful for querying at some point?
117
+ 3. + Switches#unused_switches, also as an interface method since it might also be useful for querying at some point?
118
+ 4. ~ Switches#on_args, so as to enable alternate hash keys (:type and :class) for type casting.
119
+ 5. ~ self-run section to reflect the optionalness/optionality(?) of summaries.
120
+
121
+ 0.9.5: Add default values for switches.
122
+
123
+ 1. ~ CastingInterfaceMethods to extract any options before pushing a cast option, since it was overwriting for those casting interface methods.
124
+ 2. ~ Switches#initialize, + @defaults.
125
+ 3. /Switches#set_unused_switches_to_nil/Switches#set_unused_switches/.
126
+ 4. ~ Switches#set_unused_switches, so as it handles setting unused switches with a default.
127
+
128
+ 0.9.4: Add the casting interface methods.
129
+
130
+ 1. + CastingInterfaceMethods#integer(!).
131
+ 2. + CastingInterfaceMethods#float(!).
132
+ 3. + CastingInterfaceMethods#array(!).
133
+ 4. + CastingInterfaceMethods#regex(p)(!).
134
+ 5. + CastingInterfaceMethods#boolean(!).
135
+ 6. ~ Switches#initialize + include_casting_interface_methods.
136
+ 7. /String#short_arg?/String#short_switch?/.
137
+ 8. /String#long_arg?/String#long_switch?/.
138
+ 9. ~ Switches#on_args - boolean_switch.
139
+
140
+ 0.9.3: Rename the library file.
141
+
142
+ 1. /Options.rb/Switches.rb/.
143
+
144
+ 0.9.2: Add casting to nominated Ruby classes.
145
+
146
+ 1. ~ Switches#on_args + options.
147
+ 2. + Array#extract_options!.
148
+ 3. + Switches#allowed.
149
+ 4. + Switches#allowed!.
150
+ 5. + Swithces#mandatory.
151
+ 6. + Switches#necessary.
152
+ 7. ~ Switches#do_set + ...options.
153
+ 8. ~ Switches#on_args + ...options[:cast].
154
+ 9. ~ self-run section to do a simple test of casting.
155
+
156
+ 0.9.1: Remove ! from the switch-setting methods and move those to the Switches interface methods.
157
+
158
+ 1. + Switches#do_set.
159
+ 2. ~ Switches#set.
160
+ 3. + Switches#set!.
161
+ 4. + Switches#required!.
162
+ 5. - String#required_arg?.
163
+ 6. ~ Switches#on_args + requires_argument.
164
+
165
+ 0.9.0: Rename the project from Options to Switches, since there are required switches now and required options don't make sense.
166
+
167
+ 1. /Options/Switches/.
168
+ 2. /RequiredOptionMissing/RequiredSwitchMissing/.
169
+ 3. /String#boolean_arg?/String#boolean_switch?/.
170
+ 4. Other references to options changed to switches.
171
+ 5. + Switches#required/mandatory/necessary.
172
+ 6. + Swtiches#optional.
173
+ 7. + Switches#supplied_switches.
174
+ 8. + Switches#set_unused_switches_to_nil.
175
+ 9. ~ self-run section to reflect new interface.
data/README.md CHANGED
@@ -183,6 +183,13 @@ switches.class # => Hash
183
183
 
184
184
  ```
185
185
 
186
+ ## Notes
187
+
188
+ - The switch `-?` can't be used, since there is no Ruby method `#?` for it to map to.
189
+ - A `Switches` instance can't define a method whose name matches an `OptionParser` method, since such calls are forwarded to the underlying `OptionParser` instance.
190
+ - There is a clear demarcation between whether a switch's argument is required and whether the switch itself is required.
191
+ - The bang interface methods (for example `set!` and `required!`) modify the switch in place with a required argument, rather than relying on a default or a value set elsewhere and later.
192
+
186
193
  ## Contributing
187
194
 
188
195
  1. Fork it ( https://github.com/thoran/HTTP/fork )
@@ -0,0 +1,6 @@
1
+ # lib/Switches/VERSION.rb
2
+ # Switches::VERSION
3
+
4
+ class Switches
5
+ VERSION = '0.10.3'
6
+ end
data/lib/Switches.rb CHANGED
@@ -1,9 +1,6 @@
1
1
  # Switches.rb
2
2
  # Switches
3
3
 
4
- # 20260809
5
- # 0.10.1
6
-
7
4
  # Description: Switches provides for a nice wrapper to OptionParser to also act as a store for switches supplied.
8
5
 
9
6
  # Todo:
@@ -15,135 +12,16 @@
15
12
  # 2. Do away with optional arguments entirely. Since when does anyone want to specify a non-boolean switch and then supply no arguments anyway?... OK, maybe sometimes, but this is pretty obscure IMO. OK, bad idea. These can be used as action oriented sub-commands.
16
13
  # 3. Allow for any one of the switches OpenStruct methods to assign values for any of the other associated methods, so as it is more than a read once switch and can be used for storage through out the application; although this might be stepping on Attributes.rb's toes?...
17
14
 
18
- # Notes:
19
- # 1. A limitation is the inability to use the switch, "-?", since there is no Ruby method, #?.
20
- # 2. An additional limitation is that the Switches class cannot have methods which are the same as any OptionParser methods since these will be forwarded to the OptionParser instance, @op.
21
- # 3. In 0.9.0 there is finally now a clear demarcation between switch arguments and switches themselves being mandatory or optional.
22
- # 4. It mostly makes sense that the Switches interface methods are bang methods, since it is modifying that switch in place with a required argument, rather than relying upon a default or otherwise set value elsewhere and presumably later than when the switch was set.
23
-
24
15
  # Dependencies:
25
16
  # 1. Standard Ruby Library.
26
17
 
27
- # Changes since 0.8:
28
- # (Renamed this project/class from Options to Switches since there are required switches now and required options don't make sense.)
29
- # 1. /Options/Switches/.
30
- # 2. /RequiredOptionMissing/RequiredSwitchMissing/.
31
- # 3. /String#boolean_arg?/String#boolean_switch?/.
32
- # 4. Other references to options changed to switches.
33
- # 5. + Switches#required/mandatory/necessary.
34
- # 6. + Swtiches#optional.
35
- # 7. + Switches#supplied_switches.
36
- # 8. + Switches#set_unused_switches_to_nil.
37
- # 9. ~ self-run section to reflect new interface.
38
- # 0/1 (Removed ! from switch setting methods and moved those to the Switches interface methods.)
39
- # 10. + Switches#do_set.
40
- # 11. ~ Switches#set.
41
- # 12. + Switches#set!.
42
- # 13. + Switches#required!.
43
- # 14. - String#required_arg?.
44
- # 15. ~ Switches#on_args + requires_argument.
45
- # 1/2 (Added casting to nominated Ruby classes.)
46
- # 16. ~ Switches#on_args + options.
47
- # 17. + Array#extract_options!.
48
- # 18. + Switches#allowed.
49
- # 19. + Switches#allowed!.
50
- # 20. + Swithces#mandatory.
51
- # 21. + Switches#necessary.
52
- # 22. ~ Switches#do_set + ...options.
53
- # 23. ~ Switches#on_args + ...options[:cast].
54
- # 24. ~ self-run section to do a simple test of casting.
55
- # 2/3 (Renaming the library file.)
56
- # 25. /Options.rb/Switches.rb/.
57
- # 3/4 (+ casting interface methods)
58
- # 26. + CastingInterfaceMethods#integer(!).
59
- # 27. + CastingInterfaceMethods#float(!).
60
- # 28. + CastingInterfaceMethods#array(!).
61
- # 29. + CastingInterfaceMethods#regex(p)(!).
62
- # 30. + CastingInterfaceMethods#boolean(!).
63
- # 31. ~ Switches#initialize + include_casting_interface_methods.
64
- # 32. /String#short_arg?/String#short_switch?/.
65
- # 33. /String#long_arg?/String#long_switch?/.
66
- # 34. ~ Switches#on_args - boolean_switch.
67
- # 4/5 (Added default values for switches.)
68
- # 35. ~ CastingInterfaceMethods to extract any options before pushing a cast option, since it was overwriting for those casting interface methods.
69
- # 36. ~ Switches#initialize, + @defaults.
70
- # 37. /Switches#set_unused_switches_to_nil/Switches#set_unused_switches/.
71
- # 38. ~ Switches#set_unused_switches, so as it handles setting unused switches with a default.
72
- # 5/6 (Setting of defaults was overriding supplied switch values.)
73
- # 39. ~ Switches#set_unused_switches, to make use of #switch_defaults and #unused_switches.
74
- # 40. + Switches#switch_defaults, as an interface method since it might be useful for querying at some point?
75
- # 41. + Switches#unused_switches, also as an interface method since it might also be useful for querying at some point?
76
- # 42. ~ Switches#on_args, so as to enable alternate hash keys (:type and :class) for type casting.
77
- # 43. ~ self-run section to reflect the optionalness/optionality(?) of summaries.
78
- # 6/7 (Some small tidyups and removal of self-run section.)
79
- # 44. ~ Switches#on_args, shorter when handling casting arguments.
80
- # 45. /unused_switches/unset_switches/.
81
- # 46. ~ Switches#check_required_switches, so that the message is not being assigned until a switch is missing.
82
- # 47. Removed the self-run section and moved it to ./test/run.rb.
83
- # 7/8 (Addition of #perform and #perform! methods, as well the #do_action method and changes to #on_args to facilitate #perform* methods.)
84
- # 48. ~ Switches#on_args, so as if a block is supplied which is not returning a String, then it will not be placed into the on_args argument list.
85
- # 49. + Switches#perform, interface for actions which don't require an argument.
86
- # 50. + Switches#perform!, interface for actions which do require an argument.
87
- # 51. + Switches#do_action, executes a block when called by either of #perform or #perform!.
88
- # 8/9
89
- # 52. ~ Switches#check_required_switches, so as it now assembles the complete list of missing switches rather than failing on and reporting only the first.
90
- # 53. + Switches#required_perform
91
- # 54. + Switches#required_perform!
92
- # 55. - OptionParse#soft_parse, since this was never used here, but only in Attributes.
93
- # 56. + Object#default_is(et.al.)
94
- # 57. + NilClass#default_is(et.al.) overrides Object#default_is for the specific case of nil.
95
- # 58. /switches_defaults/switches_with_defaults/.
96
- # 59. + Array#peek_options.
97
- # 60. + Array#poke_options!.
98
- # 61. + Array#all_but_last.
99
- # 62. + Array#last!.
100
- # 63. + Module#alias_methods.
101
- # 64. ~ CastingInterfaceMethods, to make use of Array#poke_options.
102
- # 65. + CastingInterfaceMethods#flag.
103
- # 66. + Switches.as_h (and associated aliased interfaces).
104
- # 67. ~ Switches#initialize, arguments are now a splat with the intention of allowing both casting_interface_methods and as_h being specified as a hash supplied to the initialiser.
105
- # 68. ~ Switches, to make use of Module#alias_methods.
106
- # 69. ~ Switches, to make use of Array#peek_options and Array#poke_options!.
107
- # 70. + Switches#required_perform.
108
- # 71. + Switches#required_perform!.
109
- # 72. + Switches#switches_with_defaults.
110
- # 73. + Switches#switches_with_castings.
111
- # 74. + Swtiches#to_h.
112
- # 75. + Switches#set_if_required_switch.
113
- # 76. + Switches#set_switches_with_defaults.
114
- # 77. ~ Switches#parse!, + set_switches_with_defaults() and + to_h().
115
- # 78. ~ Switches#do_set, + set_if_required_switch().
116
- # 79. ~ Switches#do_action, + set_if_required_switch().
117
- # 80. ~ Switches#on_args, so as it can handle castings.
118
- # 9/10
119
- # 81. + OpenStruct#to_h.
120
- # 82. ~ Switches#to_h.
121
- # 10/11 (Whoops! The defaults were overwriting the supplied settings.)
122
- # 83. ~ Switches#set_switches_with_defaults to check if a setting had been set before applying a default value.
123
- # 10/11
124
- # 84.
125
- # 11/12 (Removed default aliases for default_to, since it clashes with the mail gem's Mail::Message#default method.)
126
- # 85. - Object#default.
127
- # 86. - NilClass#default.
128
- # 12/13
129
- # 87. Swapped out a couple of @settings.instance_variable_get(:@table)'s for OpenStruct#to_h's.
130
- # 13/14
131
- # 88. README is now markdown.
132
- # 89. - examples directory
133
- # 90. Version number bump to 0.9.14.
134
- # 91. Turned into a gem (+ switches.gemspec).
135
- # 14/15
136
- # 92. switches gem name taken, so renamed the gem to switches.rb.
137
- # 93. Version number bump to 0.9.15.
138
- # 94. Tidied some comments in spec/all.rb.
139
- # 15/16
140
- # 95. + Gemfile
141
-
142
18
  require 'optparse'
143
19
  require 'Kernel/require_gem'
144
20
 
145
21
  require_gem 'ostruct'
146
22
 
23
+ require_relative './Switches/VERSION'
24
+
147
25
  class OpenStruct
148
26
 
149
27
  def to_h
data/spec/all.rb CHANGED
@@ -224,3 +224,44 @@ describe Switches do
224
224
  end
225
225
  end
226
226
  end
227
+
228
+ describe Switches do
229
+ describe "VERSION" do
230
+ it "is a string" do
231
+ expect(Switches::VERSION).to be_a(String)
232
+ end
233
+
234
+ it "is three numbers separated by dots" do
235
+ expect(Switches::VERSION).to match(/\A\d+\.\d+\.\d+\z/)
236
+ end
237
+
238
+ it "matches the newest entry in the CHANGELOG" do
239
+ changelog = File.read(File.expand_path('../CHANGELOG', __dir__))
240
+ expect(changelog[/^(\d+\.\d+\.\d+):/, 1]).to eq(Switches::VERSION)
241
+ end
242
+ end
243
+ end
244
+
245
+ describe 'switches.rb.gemspec' do
246
+ let(:spec){Gem::Specification.load(File.expand_path('../switches.rb.gemspec', __dir__))}
247
+
248
+ it "is a valid specification" do
249
+ expect(spec.validate).to eq(true)
250
+ end
251
+
252
+ it "does not pin a date" do
253
+ expect(spec.date).to eq(Gem::Specification.new.date)
254
+ end
255
+
256
+ it "takes its version from Switches::VERSION" do
257
+ expect(spec.version.to_s).to eq(Switches::VERSION)
258
+ end
259
+
260
+ it "declares no runtime dependencies" do
261
+ expect(spec.runtime_dependencies.map(&:name).sort).to eq([])
262
+ end
263
+
264
+ it "declares its development dependencies" do
265
+ expect(spec.development_dependencies.map(&:name).sort).to eq(%w{rake rspec})
266
+ end
267
+ end
data/switches.rb.gemspec CHANGED
@@ -1,19 +1,29 @@
1
+ require_relative './lib/Switches/VERSION'
2
+
3
+ class Gem::Specification
4
+ def development_dependencies=(gems)
5
+ gems.each{|gem| add_development_dependency(*gem)}
6
+ end
7
+ end
8
+
1
9
  Gem::Specification.new do |s|
2
10
  s.name = 'switches.rb' # I would have preferred 'switches', but there's a gem with the name of switches.
3
-
4
- s.version = '0.10.1'
5
- s.date = '2026-08-09'
11
+ s.version = Switches::VERSION
6
12
 
7
13
  s.summary = "The easiest way to provide switches to a Ruby program."
8
14
  s.description = "Switches provides for a nice wrapper to OptionParser to also act as a store for switches supplied."
15
+
9
16
  s.author = 'thoran'
10
17
  s.email = 'code@thoran.com'
11
18
  s.homepage = "https://github.com/thoran/switches"
12
19
  s.license = 'MIT'
20
+
13
21
  s.required_ruby_version = ">= 2.7.0"
14
22
 
15
- s.add_development_dependency('rake')
16
- s.add_development_dependency('rspec')
23
+ s.development_dependencies = [
24
+ 'rake',
25
+ 'rspec'
26
+ ]
17
27
 
18
28
  s.files = [
19
29
  'CHANGELOG',
@@ -23,7 +33,7 @@ Gem::Specification.new do |s|
23
33
  'README.md',
24
34
  'switches.rb.gemspec',
25
35
  Dir['lib/**/*.rb'],
26
- Dir['spec/**/*.rb']
36
+ Dir['spec/**/*.rb'],
27
37
  ].flatten
28
38
 
29
39
  s.require_paths = ['lib']
@@ -32,6 +42,6 @@ Gem::Specification.new do |s|
32
42
  "bug_tracker_uri" => "https://github.com/thoran/switches/issues",
33
43
  "changelog_uri" => "https://github.com/thoran/switches/blob/master/CHANGELOG",
34
44
  "source_code_uri" => "https://github.com/thoran/switches",
35
- "documentation_uri" => "https://github.com/thoran/switches/blob/master/README.md"
45
+ "documentation_uri" => "https://github.com/thoran/switches/blob/master/README.md",
36
46
  }
37
47
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: switches.rb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.1
4
+ version: 0.10.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - thoran
8
8
  bindir: bin
9
9
  cert_chain: []
10
- date: 2026-08-09 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: rake
@@ -51,6 +51,7 @@ files:
51
51
  - Rakefile
52
52
  - lib/Kernel/require_gem.rb
53
53
  - lib/Switches.rb
54
+ - lib/Switches/VERSION.rb
54
55
  - lib/Thoran/Kernel/RequireGem/require_gem.rb
55
56
  - spec/all.rb
56
57
  - switches.rb.gemspec
@@ -76,7 +77,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
76
77
  - !ruby/object:Gem::Version
77
78
  version: '0'
78
79
  requirements: []
79
- rubygems_version: 4.0.17
80
+ rubygems_version: 4.0.18
80
81
  specification_version: 4
81
82
  summary: The easiest way to provide switches to a Ruby program.
82
83
  test_files: []