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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f1ae4fd99eee1b55b80dd22982d070081a49be756e7495e49536bd887fc231c2
4
- data.tar.gz: c711e2c0c848fd96b3837d4dbdf1629e6d05a5bd49192f815a1c917c4b72dda4
3
+ metadata.gz: 40a3ea232e3c5de03eea4c842abd89c85747dc0e67af48ed60a27dcefca572e1
4
+ data.tar.gz: 68c92d6a7282c9de70d4667275da926a0ea160a24c5daa515e2cb09af9a17bee
5
5
  SHA512:
6
- metadata.gz: c745d382e1cfa925562d318736b8c154e81db511ec4456360e57358230edd118e46a421b249f7404087b4557fd7935371870e78aeb49b3731661fa6be57793a4
7
- data.tar.gz: c9affa40ce40bd80f90f3f2aed2128687ce4eb0b3b3092d6ad69aa569293f6afd8a64d7aaaebc70257de83b7d4452ad3ac7e52f35ce1fc1d819a1a270d30cbbe
6
+ metadata.gz: adf38742bf879054b2c6a83ca4cec083ae2aae478ff132e896e3e73eef09de7ba39e385ecf5588cf71760a6e28e01f0fb67917379347b00729eb70837adb4210
7
+ data.tar.gz: 2d59a335393538b6902ae6db24963284894c24f5c092bbf02cb403ec55a88270d83b3733b19abc8906946f1ee3ede4127eb68d9d0cd9d6dfd9621ff8490dfd48
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- reso_transport (1.5.1)
4
+ reso_transport (1.5.2)
5
5
  faraday (~> 1.0.1)
6
6
 
7
7
  GEM
@@ -77,7 +77,18 @@ module ResoTransport
77
77
  end
78
78
  end
79
79
 
80
- def execute
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
 
@@ -1,3 +1,3 @@
1
1
  module ResoTransport
2
- VERSION = "1.5.2"
2
+ VERSION = "1.5.3"
3
3
  end
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.2
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-09-17 00:00:00.000000000 Z
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: []