ss2json 0.2.1 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
data/Changelog CHANGED
@@ -1,3 +1,8 @@
1
+ 2012-06-04 Guillermo Alvarez <guillermo@cientifico.net>
2
+
3
+ * row_converter.rb (sanitize_value): The strings "true" and "false" are
4
+ converted to json true and false booleans.
5
+
1
6
  2012-05-30 Guillermo Alvarez <guillermo@cientifico.net>
2
7
 
3
8
  * row_converter.rb (sanitize_key): It was not calling super, so when
@@ -42,6 +42,8 @@ class Ss2Json
42
42
  def sanitize_value(v)
43
43
  return v if @options[:dont_convert]
44
44
  return v.to_i if v.is_a?(Float) && v % 1 == 0
45
+ return true if v == "true"
46
+ return false if v == "false"
45
47
  v
46
48
  end
47
49
 
@@ -1,3 +1,3 @@
1
1
  class Ss2Json
2
- VERSION = "0.2.1"
2
+ VERSION = "0.3.0"
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ss2json
3
3
  version: !ruby/object:Gem::Version
4
- hash: 21
4
+ hash: 19
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
- - 2
9
- - 1
10
- version: 0.2.1
8
+ - 3
9
+ - 0
10
+ version: 0.3.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - "Guillermo A\xCC\x81lvarez"
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2012-05-30 00:00:00 +00:00
18
+ date: 2012-06-04 00:00:00 +00:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency