soapforce 0.5.0 → 0.6.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 92708d194ae913cf1c8b95690ba30e45baaa4a8d
4
- data.tar.gz: 447d8ed94094138eb2ce5e61c823926acff32b1d
3
+ metadata.gz: 8256b2b8279ae5b336f04d4b5a04341b2f07fd1d
4
+ data.tar.gz: f0e21fa21d53ce91f15ded563fb4542a6012f7a1
5
5
  SHA512:
6
- metadata.gz: d34fbfb9303880a6105d4b07e3cc00783de06355cf3f89537f26c9d8bdd529fd31ad2bff3eeb4afc2bad1e7efad0f518df4779c1f145649f49c0ebb430955725
7
- data.tar.gz: 51e41d674182269bc3767224add6e7049ced6ef2adc3637aed1db29782a753ff3ab1358721fb3a3324920c7583e8ef6532437068793b5d1c5e41b693b33644d6
6
+ metadata.gz: 10813e8744f90b3a918c18ee29ce9c841bd6cec2329ca1b9f26b16ffde44d82c85e09023b8633edca6dc52e08ae603cd164560ea518af7fa9e74767427b07ac3
7
+ data.tar.gz: 2698ee2edb2c81cf65c762cf8c587e21188f9c864bc2458a95eaaa030a4d4f1dda0075cb9aace91cee36aee58c0fc6a252c78601c09c4c4cf8f9d38fefa89492
@@ -1,9 +1,8 @@
1
1
  language: ruby
2
2
  sudo: false
3
3
  rvm:
4
- - 2.0.0
5
- - 2.1.5
6
- - 2.2.4
4
+ - 2.2.5
5
+ - 2.3.3
7
6
  notifications:
8
7
  email:
9
8
  recipients:
@@ -1,3 +1,8 @@
1
+ ## 0.6.0 (Jan 19, 2017)
2
+ * Require Forwardable #13
3
+ * Fix QueryResult#done? #16
4
+ * Adds login_url option #6
5
+
1
6
  ## 0.5.0 (Mar 4, 2016)
2
7
 
3
8
  * Default ssl_version to TLSv1_2
data/README.md CHANGED
@@ -125,7 +125,7 @@ client.upsert('Account', 'External__c', External__c: 12, Name: 'Foobar')
125
125
 
126
126
  ```ruby
127
127
  # Delete the Account with Id '006A000000Lbiiz'
128
- client.destroy('Account', '006A000000Lbiiz')
128
+ client.destroy('006A000000Lbiiz')
129
129
  # => {id: '0016000000MRatd', success: => true}
130
130
  ```
131
131
 
@@ -1,4 +1,5 @@
1
- require 'savon'
1
+ require "forwardable"
2
+ require "savon"
2
3
 
3
4
  require "soapforce/version"
4
5
  require "soapforce/configuration"
@@ -24,7 +24,7 @@ module Soapforce
24
24
 
25
25
  @version = options[:version] || Soapforce.configuration.version || 28.0
26
26
  @host = options[:host] || "login.salesforce.com"
27
- @login_url = "https://#{@host}/services/Soap/u/#{@version}"
27
+ @login_url = options[:login_url] || "https://#{@host}/services/Soap/u/#{@version}"
28
28
 
29
29
  @logger = options[:logger] || false
30
30
  # Due to SSLv3 POODLE vulnerabilty and disabling of TLSv1, use TLSv1_2
@@ -46,7 +46,7 @@ module Soapforce
46
46
  end
47
47
 
48
48
  def done?
49
- @raw_result[key_name("done")] || true
49
+ @raw_result[key_name("done")].nil? ? true : @raw_result[key_name("done")]
50
50
  end
51
51
 
52
52
  def query_locator
@@ -1,3 +1,3 @@
1
1
  module Soapforce
2
- VERSION = "0.5.0"
2
+ VERSION = "0.6.0"
3
3
  end
@@ -86,6 +86,24 @@ describe Soapforce::QueryResult do
86
86
 
87
87
  end
88
88
 
89
+ context "not done" do
90
+
91
+ subject {
92
+ hash = {
93
+ done: false,
94
+ query_locator: nil,
95
+ size: 1,
96
+ records: {id: 1, name: "Opportunity 1", stage_name: "Prospecting"}
97
+ }
98
+ Soapforce::QueryResult.new(hash)
99
+ }
100
+
101
+ it "#done?" do
102
+ expect(subject.done?).to eq false
103
+ end
104
+
105
+ end
106
+
89
107
  end
90
108
 
91
109
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: soapforce
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joe Heth
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-03-04 00:00:00.000000000 Z
11
+ date: 2017-01-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: savon
@@ -164,7 +164,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
164
164
  version: '0'
165
165
  requirements: []
166
166
  rubyforge_project:
167
- rubygems_version: 2.4.8
167
+ rubygems_version: 2.5.1
168
168
  signing_key:
169
169
  specification_version: 4
170
170
  summary: Wraps Savon with helper methods and custom types for interacting with the