optitron 0.1.5 → 0.1.6
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile.lock +1 -1
- data/lib/optitron/option.rb +3 -1
- data/lib/optitron/version.rb +1 -1
- metadata +4 -4
data/Gemfile.lock
CHANGED
data/lib/optitron/option.rb
CHANGED
@@ -35,6 +35,8 @@ class Optitron
|
|
35
35
|
@type
|
36
36
|
when false, true
|
37
37
|
:boolean
|
38
|
+
when String
|
39
|
+
:string
|
38
40
|
when Numeric
|
39
41
|
:numeric
|
40
42
|
when Array
|
@@ -139,7 +141,7 @@ class Optitron
|
|
139
141
|
tokens.delete_at(opt_tok_index).lit
|
140
142
|
end
|
141
143
|
response.params_array << [self, value.nil? ? !default : value]
|
142
|
-
when :numeric, :string, :float
|
144
|
+
when :numeric, :string, :float, nil
|
143
145
|
value = if opt_tok.name == name
|
144
146
|
if opt_tok.respond_to?(:value)
|
145
147
|
opt_tok.value
|
data/lib/optitron/version.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: optitron
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 23
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 6
|
10
|
+
version: 0.1.6
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Joshua Hull
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2010-08-
|
18
|
+
date: 2010-08-26 00:00:00 -05:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|