rforce 0.14 → 0.15
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/CHANGELOG.txt +7 -0
- data/Gemfile.ci +1 -2
- data/lib/rforce/soap_response.rb +0 -2
- data/lib/rforce/version.rb +1 -1
- data/rforce.gemspec +3 -4
- metadata +9 -24
- data/lib/rforce/soap_response_expat.rb +0 -36
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c3a071a2857df828c3921bb9cd49fab785f959bac60cfd01065dde0313f59e6c
|
4
|
+
data.tar.gz: 05afbdbf418ec1d4e1a7c58a390e2fc44c7b04d1c374e6acbba058f3e0a8863e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 55baa254981ef2dbcd6c0d301579905beea00e2f0b4e1be0ac1eb0a311a805ed1409878ee0eef9d877a7cce307819cb1cbaf6aea9d8d55331d17fff3ad3b15b5
|
7
|
+
data.tar.gz: 4d2053a4e2c77d7da535fd770a779b5e313b0e753759f80e63128d94198c0095e289eeffd44c72ac23daff71e19a4f6438f45b46645219adb4eab39ce10e0a61
|
data/.gitignore
CHANGED
data/CHANGELOG.txt
CHANGED
data/Gemfile.ci
CHANGED
data/lib/rforce/soap_response.rb
CHANGED
@@ -1,5 +1,4 @@
|
|
1
1
|
begin; require 'rforce/soap_response_nokogiri'; rescue LoadError; end
|
2
|
-
begin; require 'rforce/soap_response_expat'; rescue LoadError; end
|
3
2
|
require 'rforce/soap_response_rexml'
|
4
3
|
|
5
4
|
|
@@ -7,6 +6,5 @@ module RForce
|
|
7
6
|
# Use the fastest XML parser available.
|
8
7
|
SoapResponse =
|
9
8
|
(RForce::const_get(:SoapResponseNokogiri) rescue nil) ||
|
10
|
-
(RForce::const_get(:SoapResponseExpat) rescue nil) ||
|
11
9
|
SoapResponseRexml
|
12
10
|
end
|
data/lib/rforce/version.rb
CHANGED
data/rforce.gemspec
CHANGED
@@ -24,13 +24,12 @@ Gem::Specification.new do |spec|
|
|
24
24
|
spec.require_paths = ["lib"]
|
25
25
|
|
26
26
|
spec.add_runtime_dependency "builder", "~> 3.0"
|
27
|
-
spec.add_runtime_dependency "oauth", "~> 0.
|
27
|
+
spec.add_runtime_dependency "oauth", "~> 0.5.5"
|
28
28
|
|
29
29
|
spec.add_development_dependency "bundler", "~> 2.0"
|
30
|
-
spec.add_development_dependency "rake", "~>
|
30
|
+
spec.add_development_dependency "rake", "~> 12.3.3"
|
31
31
|
spec.add_development_dependency "rspec", "~> 3.0"
|
32
32
|
|
33
33
|
# Optional XML parsing engines
|
34
|
-
spec.add_development_dependency "nokogiri", "~> 1.10.
|
35
|
-
spec.add_development_dependency("xmlparser", "~> 0.7") unless RUBY_PLATFORM == 'java'
|
34
|
+
spec.add_development_dependency "nokogiri", "~> 1.10.8"
|
36
35
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rforce
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: '0.
|
4
|
+
version: '0.15'
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Erin Dees
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-04-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: builder
|
@@ -30,14 +30,14 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version:
|
33
|
+
version: 0.5.5
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version:
|
40
|
+
version: 0.5.5
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: bundler
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -58,14 +58,14 @@ dependencies:
|
|
58
58
|
requirements:
|
59
59
|
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version:
|
61
|
+
version: 12.3.3
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version:
|
68
|
+
version: 12.3.3
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: rspec
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
@@ -86,28 +86,14 @@ dependencies:
|
|
86
86
|
requirements:
|
87
87
|
- - "~>"
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version: 1.10.
|
89
|
+
version: 1.10.8
|
90
90
|
type: :development
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
94
|
- - "~>"
|
95
95
|
- !ruby/object:Gem::Version
|
96
|
-
version: 1.10.
|
97
|
-
- !ruby/object:Gem::Dependency
|
98
|
-
name: xmlparser
|
99
|
-
requirement: !ruby/object:Gem::Requirement
|
100
|
-
requirements:
|
101
|
-
- - "~>"
|
102
|
-
- !ruby/object:Gem::Version
|
103
|
-
version: '0.7'
|
104
|
-
type: :development
|
105
|
-
prerelease: false
|
106
|
-
version_requirements: !ruby/object:Gem::Requirement
|
107
|
-
requirements:
|
108
|
-
- - "~>"
|
109
|
-
- !ruby/object:Gem::Version
|
110
|
-
version: '0.7'
|
96
|
+
version: 1.10.8
|
111
97
|
description:
|
112
98
|
email:
|
113
99
|
- undees@gmail.com
|
@@ -131,7 +117,6 @@ files:
|
|
131
117
|
- lib/rforce/method_keys.rb
|
132
118
|
- lib/rforce/soap_pullable.rb
|
133
119
|
- lib/rforce/soap_response.rb
|
134
|
-
- lib/rforce/soap_response_expat.rb
|
135
120
|
- lib/rforce/soap_response_nokogiri.rb
|
136
121
|
- lib/rforce/soap_response_rexml.rb
|
137
122
|
- lib/rforce/version.rb
|
@@ -158,7 +143,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
158
143
|
- !ruby/object:Gem::Version
|
159
144
|
version: '0'
|
160
145
|
requirements: []
|
161
|
-
rubygems_version: 3.
|
146
|
+
rubygems_version: 3.1.4
|
162
147
|
signing_key:
|
163
148
|
specification_version: 4
|
164
149
|
summary: A simple, usable binding to the Salesforce API.
|
@@ -1,36 +0,0 @@
|
|
1
|
-
require 'xml/parser'
|
2
|
-
require 'rforce/soap_pullable'
|
3
|
-
|
4
|
-
module RForce
|
5
|
-
class SoapResponseExpat
|
6
|
-
include SoapPullable
|
7
|
-
include MethodKeys
|
8
|
-
|
9
|
-
def initialize(content)
|
10
|
-
@content = content
|
11
|
-
end
|
12
|
-
|
13
|
-
def parse
|
14
|
-
@current_value = nil
|
15
|
-
@stack = []
|
16
|
-
@parsed = MethodHash.new
|
17
|
-
@done = false
|
18
|
-
@namespaces = []
|
19
|
-
|
20
|
-
XML::Parser.new.parse(@content) do |type, name, data|
|
21
|
-
case type
|
22
|
-
when XML::Parser::START_ELEM then
|
23
|
-
tag_start name, data
|
24
|
-
when XML::Parser::CDATA then
|
25
|
-
text data
|
26
|
-
when XML::Parser::END_ELEM then
|
27
|
-
tag_end name
|
28
|
-
end
|
29
|
-
|
30
|
-
break if @done
|
31
|
-
end
|
32
|
-
|
33
|
-
@parsed
|
34
|
-
end
|
35
|
-
end
|
36
|
-
end
|