rforce 0.9 → 0.10

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.
@@ -1,3 +1,8 @@
1
+ == 0.10.0 2012-09-12
2
+ * 1 bug fix
3
+ * Integer auto-parsing mangles ZIP codes (reported by Jason
4
+ Yanowitz)
5
+
1
6
  == 0.9.0 2012-09-03
2
7
  * 1 minor enhancement
3
8
  * Automatically correct duplicate ID fields (Tomas Svarovsky)
@@ -96,7 +96,6 @@ module RForce
96
96
 
97
97
  case s
98
98
  when '' then nil
99
- when /^\d+$/ then Integer(s)
100
99
  when 'true', 'false' then ('true' == s)
101
100
  else s
102
101
  end
@@ -82,7 +82,6 @@ module RForce
82
82
 
83
83
  case s
84
84
  when '' then nil
85
- when /^\d+$/ then Integer(s)
86
85
  when 'true', 'false' then ('true' == s)
87
86
  else s
88
87
  end
@@ -49,8 +49,6 @@ module RForce
49
49
 
50
50
  return nil if text.empty?
51
51
 
52
- text = Integer(text) rescue text # parse numbers
53
-
54
52
  boolean?(text) ? boolean(text) : text
55
53
  end
56
54
 
@@ -1,3 +1,3 @@
1
1
  module RForce
2
- VERSION = '0.9'
2
+ VERSION = '0.10'
3
3
  end
@@ -159,7 +159,7 @@ shared_examples_for 'a SOAP response' do
159
159
  klass.new(xml).parse.should == {:foo => {:Id => "some_id"}}
160
160
  end
161
161
 
162
- it 'parses booleans and numbers' do
162
+ it 'parses booleans' do
163
163
  xml = wrap_in_salesforce_envelope("""
164
164
  <foo>
165
165
  <size>20</size>
@@ -168,7 +168,7 @@ shared_examples_for 'a SOAP response' do
168
168
  <string>normal string</string>
169
169
  </foo>""")
170
170
 
171
- klass.new(xml).parse.should == {:foo => {:size => 20, :done => true, :more => false, :string => "normal string"}}
171
+ klass.new(xml).parse.should == {:foo => {:size => "20", :done => true, :more => false, :string => "normal string"}}
172
172
  end
173
173
 
174
174
  it 'disregards namespacing when determining hash keys' do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rforce
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.9'
4
+ version: '0.10'
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-09-04 00:00:00.000000000 Z
12
+ date: 2012-09-12 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: builder