sfrest 0.0.15 → 0.0.16
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.
- checksums.yaml +4 -4
- data/lib/sfrest/connection.rb +2 -3
- data/lib/sfrest/error.rb +0 -3
- data/lib/sfrest/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: fc74108bd6ad403fcf6bfa7125dad70952c7c4ecf7b136bd606e2f699d54970a
|
|
4
|
+
data.tar.gz: a875b7a8864b004b5c38bfc368b63c75b51a7f921bde919817dc57365819604f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a62fd336bf56a3ca2bf888b062c9a640412c3ed55775f9a8336ec514e2a2d6e560ec6f1540f8faa01c18c601dddf0bb130a7f3faa68eeff1512579d348c3fce0
|
|
7
|
+
data.tar.gz: 9679eb844a8c32d97b78cec5e87ddd01b23e013b965178186407a519fc2a7e25176c5e0b6a70383559b7340b654a8bf059e60373e606fa0e80624ef3db9bfbe5
|
data/lib/sfrest/connection.rb
CHANGED
|
@@ -117,9 +117,8 @@ module SFRest
|
|
|
117
117
|
#
|
|
118
118
|
# The cyclomatic complexity check is being ignored here because we are
|
|
119
119
|
# collecting all the possible exception raising cases.
|
|
120
|
-
# rubocop: disable Metrics/CyclomaticComplexity
|
|
120
|
+
# rubocop: disable Metrics/CyclomaticComplexity
|
|
121
121
|
def access_check(data, http_status)
|
|
122
|
-
raise SFRest::EmptyResult if data.size.zero?
|
|
123
122
|
if data.is_a?(Hash) && !data['message'].nil?
|
|
124
123
|
case data['message']
|
|
125
124
|
when /Access denied|Access Denied/
|
|
@@ -138,7 +137,7 @@ module SFRest
|
|
|
138
137
|
end
|
|
139
138
|
data
|
|
140
139
|
end
|
|
141
|
-
# rubocop: enable Metrics/CyclomaticComplexity
|
|
140
|
+
# rubocop: enable Metrics/CyclomaticComplexity
|
|
142
141
|
|
|
143
142
|
# pings the SF api as an authenticated user
|
|
144
143
|
# responds with a pong
|
data/lib/sfrest/error.rb
CHANGED
|
@@ -23,9 +23,6 @@ module SFRest
|
|
|
23
23
|
# if you get in valid data
|
|
24
24
|
class InvalidDataError < SFRest::SFError; end
|
|
25
25
|
|
|
26
|
-
# If the return seems to contain no data
|
|
27
|
-
class EmptyResult < SFRest::SFError; end
|
|
28
|
-
|
|
29
26
|
# If the return cannot be parsed into something useful
|
|
30
27
|
class InvalidResponse < SFRest::SFError; end
|
|
31
28
|
end
|
data/lib/sfrest/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: sfrest
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.16
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- ACSF Engineering
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2018-02-
|
|
11
|
+
date: 2018-02-20 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: excon
|