reso_transport 1.5.2 → 1.5.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/reso_transport/query.rb +13 -2
- data/lib/reso_transport/version.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 40a3ea232e3c5de03eea4c842abd89c85747dc0e67af48ed60a27dcefca572e1
|
4
|
+
data.tar.gz: 68c92d6a7282c9de70d4667275da926a0ea160a24c5daa515e2cb09af9a17bee
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: adf38742bf879054b2c6a83ca4cec083ae2aae478ff132e896e3e73eef09de7ba39e385ecf5588cf71760a6e28e01f0fb67917379347b00729eb70837adb4210
|
7
|
+
data.tar.gz: 2d59a335393538b6902ae6db24963284894c24f5c092bbf02cb403ec55a88270d83b3733b19abc8906946f1ee3ede4127eb68d9d0cd9d6dfd9621ff8490dfd48
|
data/Gemfile.lock
CHANGED
data/lib/reso_transport/query.rb
CHANGED
@@ -77,7 +77,18 @@ module ResoTransport
|
|
77
77
|
end
|
78
78
|
end
|
79
79
|
|
80
|
-
def
|
80
|
+
def raw_results
|
81
|
+
resp = execute(false)
|
82
|
+
|
83
|
+
if resp[:success]
|
84
|
+
resp[:results]
|
85
|
+
else
|
86
|
+
puts resp[:meta]
|
87
|
+
raise "Request Failed"
|
88
|
+
end
|
89
|
+
end
|
90
|
+
|
91
|
+
def execute(parse_values=true)
|
81
92
|
resp = resource.get(compile_params)
|
82
93
|
parsed_body = JSON.parse(resp.body)
|
83
94
|
results = Array(parsed_body.delete("value"))
|
@@ -85,7 +96,7 @@ module ResoTransport
|
|
85
96
|
{
|
86
97
|
success: resp.success? && !parsed_body.has_key?("error"),
|
87
98
|
meta: parsed_body,
|
88
|
-
results: resource.parse(results)
|
99
|
+
results: parse_values ? resource.parse(results) : results
|
89
100
|
}
|
90
101
|
end
|
91
102
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: reso_transport
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.5.
|
4
|
+
version: 1.5.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jon Druse
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-10-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -151,7 +151,7 @@ homepage: http://github.com/wrstudios/reso_transport
|
|
151
151
|
licenses:
|
152
152
|
- MIT
|
153
153
|
metadata: {}
|
154
|
-
post_install_message:
|
154
|
+
post_install_message:
|
155
155
|
rdoc_options: []
|
156
156
|
require_paths:
|
157
157
|
- lib
|
@@ -167,7 +167,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
167
167
|
version: '0'
|
168
168
|
requirements: []
|
169
169
|
rubygems_version: 3.1.2
|
170
|
-
signing_key:
|
170
|
+
signing_key:
|
171
171
|
specification_version: 4
|
172
172
|
summary: A utility for consuming RESO Web API connections
|
173
173
|
test_files: []
|