shellopts 2.1.2 → 2.1.3

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: a3a9ad6ee2f65a71851c58d346666cc4120c60e3f6b7c4c13b2fa7e3424273c4
4
- data.tar.gz: 2ef59f2fecdf4d76053d111c77af1b991465a73bb882e27b77adeea7807a9e7b
3
+ metadata.gz: e5a0965923d18a30dfcf2423a94e836ed70175c855c0cfe053ad6bcb4477f86e
4
+ data.tar.gz: 577bbd74ae1d865294fe2959234dcf661011a8f4feaa9f267206eff41160dc5a
5
5
  SHA512:
6
- metadata.gz: 2516249fedcc9f64e065dff3f46cc60783e5381207a36d1b4f185adea62dfa786bc067c7f3d2e0834a2160e34a46e20b8ee7de51f00b535d2d2d4ce32c340d02
7
- data.tar.gz: 643a49483fcafb4d5d281f200288781a597623f98cce4a7ed5a96dda42fe77c4968632f23a15bdc14f403160d892493150f95dbaa336b10b863febcb2835e163
6
+ metadata.gz: a742f7189ce47ea95f0477f4a450345d95b66a871ac6f123a5c9107f3e06b2d4cbeb573fa75e7d6fc2b1947b4fac7b5f846c1ba39873faa3e5eeb8f54e8834e4
7
+ data.tar.gz: bf176d5794767dc0aadd732763da86850b028cc065e5dda72d404b93355f77577ad0c7e9413d753881ca50685a137f4108f35df4c1dce38555d433888ced1f43
@@ -266,6 +266,14 @@ module ShellOpts
266
266
  end
267
267
  )
268
268
  end
269
+
270
+ if opt.argument?
271
+ self.instance_eval %(
272
+ def #{opt.attr}=(value)
273
+ @__option_values__[:#{opt.attr}] = value
274
+ end
275
+ )
276
+ end
269
277
  }
270
278
 
271
279
  @__grammar__.commands.each { |cmd|
@@ -1,3 +1,3 @@
1
1
  module ShellOpts
2
- VERSION = "2.1.2"
2
+ VERSION = "2.1.3"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shellopts
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.2
4
+ version: 2.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Claus Rasmussen
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-11-03 00:00:00.000000000 Z
11
+ date: 2022-12-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: forward_to
@@ -173,7 +173,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
173
173
  - !ruby/object:Gem::Version
174
174
  version: '0'
175
175
  requirements: []
176
- rubygems_version: 3.3.18
176
+ rubygems_version: 3.3.7
177
177
  signing_key:
178
178
  specification_version: 4
179
179
  summary: Parse command line options and arguments