optplus 0.0.16 → 0.0.17

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
  SHA1:
3
- metadata.gz: 837e2be0083321ed2ac1f4c2f7bc55c1364d5c1d
4
- data.tar.gz: e6f5c0104b89eefa6d90a7a4fe37087820e95a77
3
+ metadata.gz: 7635713152526dace9beb629b5d7a504901d0bd6
4
+ data.tar.gz: 095d53d5060e55caa217a0406d22b89367daca61
5
5
  SHA512:
6
- metadata.gz: 90149013724f89a2d134c9092ee2714704113cf7a3edf0375f72fe7b77654ce103cd41ccef1443ddce4d20751ac6326144ad4337ea580deac499453d1cae47e0
7
- data.tar.gz: 2d285f5e7484927b1ce73e87cef4b98b7f5f4d84dade24b4461938f7e69216f9593effaade57b7742c4383e9c53a33785c70d04ab1c5caa4c61da935b5c0226a
6
+ metadata.gz: 84435b0db1c6a778318faf96dc0bcea02f07fccca157aae2eae9702467018849b9920cbb75711189d92555387d8d64daceeffb6b212d7138757e95d492e0448d
7
+ data.tar.gz: 468a7129b8b26fbd2f540d994971f3a6c644c2d691cd2892c43bf453121542339c0bb1408e8f8b7a541e0463ef49d5147d4fc6fbf2a787402e0f4275db8d37f1
@@ -2,6 +2,10 @@
2
2
  # @title Change History
3
3
 
4
4
  == History
5
+ [optplus-0.0.17 28-Nov-2014]
6
+
7
+ Improve access to options hash and avoid clash with options method!
8
+
5
9
  [optplus-0.0.16 28-Nov-2014]
6
10
 
7
11
  Add instance attribute to read options hash
@@ -269,9 +269,6 @@ module Optplus
269
269
  # provides convenient access to the name of the program
270
270
  attr_reader :program_name
271
271
 
272
- # provides access to all the options set
273
- attr_reader :options
274
-
275
272
  # add optparse option for debug mode
276
273
  #
277
274
  # @param [Optparse] opts being the optparse instance
@@ -371,6 +368,10 @@ module Optplus
371
368
  @options[key]
372
369
  end
373
370
 
371
+ def all_options
372
+ @options.dup
373
+ end
374
+
374
375
  # check if the option has been set
375
376
  #
376
377
  # @param [Symbol] key for the option to test
@@ -1,13 +1,13 @@
1
1
  # Created by Jevoom
2
2
  #
3
3
  # 28-Nov-2014
4
- # Add instance attribute to read options hash
4
+ # Improve access to options hash and avoid clash with options method!
5
5
 
6
6
  module Optplus
7
- # version set to 0.0.16
8
- Version = '0.0.16'
7
+ # version set to 0.0.17
8
+ Version = '0.0.17'
9
9
  # date set to 28-Nov-2014
10
10
  Version_Date = '28-Nov-2014'
11
- #ident string set to: optplus-0.0.16 28-Nov-2014
12
- Ident = 'optplus-0.0.16 28-Nov-2014'
11
+ #ident string set to: optplus-0.0.17 28-Nov-2014
12
+ Ident = 'optplus-0.0.17 28-Nov-2014'
13
13
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: optplus
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.16
4
+ version: 0.0.17
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dr Robert