optitron 0.1.5 → 0.1.6

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.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- optitron (0.1.4)
4
+ optitron (0.1.6)
5
5
  callsite (= 0.0.4)
6
6
  ruby2ruby (= 1.2.4)
7
7
  ruby_parser (>= 2.0)
@@ -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
@@ -1,3 +1,3 @@
1
1
  class Optitron
2
- VERSION = "0.1.5"
2
+ VERSION = "0.1.6"
3
3
  end
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: 17
4
+ hash: 23
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 5
10
- version: 0.1.5
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-24 00:00:00 -07:00
18
+ date: 2010-08-26 00:00:00 -05:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency