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 +4 -4
- data/History.txt +4 -0
- data/lib/optplus.rb +4 -3
- data/lib/optplus/version.rb +5 -5
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7635713152526dace9beb629b5d7a504901d0bd6
|
4
|
+
data.tar.gz: 095d53d5060e55caa217a0406d22b89367daca61
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 84435b0db1c6a778318faf96dc0bcea02f07fccca157aae2eae9702467018849b9920cbb75711189d92555387d8d64daceeffb6b212d7138757e95d492e0448d
|
7
|
+
data.tar.gz: 468a7129b8b26fbd2f540d994971f3a6c644c2d691cd2892c43bf453121542339c0bb1408e8f8b7a541e0463ef49d5147d4fc6fbf2a787402e0f4275db8d37f1
|
data/History.txt
CHANGED
data/lib/optplus.rb
CHANGED
@@ -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
|
data/lib/optplus/version.rb
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
# Created by Jevoom
|
2
2
|
#
|
3
3
|
# 28-Nov-2014
|
4
|
-
#
|
4
|
+
# Improve access to options hash and avoid clash with options method!
|
5
5
|
|
6
6
|
module Optplus
|
7
|
-
# version set to 0.0.
|
8
|
-
Version = '0.0.
|
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.
|
12
|
-
Ident = 'optplus-0.0.
|
11
|
+
#ident string set to: optplus-0.0.17 28-Nov-2014
|
12
|
+
Ident = 'optplus-0.0.17 28-Nov-2014'
|
13
13
|
end
|