reso_api 0.1.0 → 0.2.0
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/Gemfile.lock +62 -0
- data/README.md +2 -5
- data/lib/reso_api.rb +1 -0
- data/lib/reso_api/app/models/reso/api/client.rb +3 -1
- data/lib/reso_api/version.rb +1 -1
- data/reso_api.gemspec +1 -0
- metadata +17 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e51657547bb2a45e16490860b4aded5a31d850ba2a3d7a15b224e36ea25fd402
|
|
4
|
+
data.tar.gz: 6948ea2f8c1144cf48969a384ee692ce2a43470b17efa9e87779b0263067d192
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 42bec1b92b962854d32eedb70b938418c8bd403542508e6339ebf1282f4dcfc8ed085de96c46aebc1fc7684f55408d82466ff3a146b40d97e7a3634892545b7a
|
|
7
|
+
data.tar.gz: a174d7fab55595c742da77961e81b5520d6ba48c2aba2c5ba18fd9a89ebff657f42c0d180e68b104ae8b8fffc963bddebb469b09fff648c87e655be23de0e21e
|
data/Gemfile.lock
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
PATH
|
|
2
|
+
remote: .
|
|
3
|
+
specs:
|
|
4
|
+
reso_api (0.2.0)
|
|
5
|
+
activesupport
|
|
6
|
+
oauth2
|
|
7
|
+
|
|
8
|
+
GEM
|
|
9
|
+
remote: https://rubygems.org/
|
|
10
|
+
specs:
|
|
11
|
+
activesupport (5.2.3)
|
|
12
|
+
concurrent-ruby (~> 1.0, >= 1.0.2)
|
|
13
|
+
i18n (>= 0.7, < 2)
|
|
14
|
+
minitest (~> 5.1)
|
|
15
|
+
tzinfo (~> 1.1)
|
|
16
|
+
concurrent-ruby (1.1.5)
|
|
17
|
+
diff-lcs (1.3)
|
|
18
|
+
faraday (0.15.4)
|
|
19
|
+
multipart-post (>= 1.2, < 3)
|
|
20
|
+
i18n (1.6.0)
|
|
21
|
+
concurrent-ruby (~> 1.0)
|
|
22
|
+
jwt (2.1.0)
|
|
23
|
+
minitest (5.11.3)
|
|
24
|
+
multi_json (1.13.1)
|
|
25
|
+
multi_xml (0.6.0)
|
|
26
|
+
multipart-post (2.0.0)
|
|
27
|
+
oauth2 (1.4.1)
|
|
28
|
+
faraday (>= 0.8, < 0.16.0)
|
|
29
|
+
jwt (>= 1.0, < 3.0)
|
|
30
|
+
multi_json (~> 1.3)
|
|
31
|
+
multi_xml (~> 0.5)
|
|
32
|
+
rack (>= 1.2, < 3)
|
|
33
|
+
rack (2.0.7)
|
|
34
|
+
rake (10.5.0)
|
|
35
|
+
rspec (3.8.0)
|
|
36
|
+
rspec-core (~> 3.8.0)
|
|
37
|
+
rspec-expectations (~> 3.8.0)
|
|
38
|
+
rspec-mocks (~> 3.8.0)
|
|
39
|
+
rspec-core (3.8.0)
|
|
40
|
+
rspec-support (~> 3.8.0)
|
|
41
|
+
rspec-expectations (3.8.3)
|
|
42
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
|
43
|
+
rspec-support (~> 3.8.0)
|
|
44
|
+
rspec-mocks (3.8.0)
|
|
45
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
|
46
|
+
rspec-support (~> 3.8.0)
|
|
47
|
+
rspec-support (3.8.0)
|
|
48
|
+
thread_safe (0.3.6)
|
|
49
|
+
tzinfo (1.2.5)
|
|
50
|
+
thread_safe (~> 0.1)
|
|
51
|
+
|
|
52
|
+
PLATFORMS
|
|
53
|
+
ruby
|
|
54
|
+
|
|
55
|
+
DEPENDENCIES
|
|
56
|
+
bundler (~> 1.16)
|
|
57
|
+
rake (~> 10.0)
|
|
58
|
+
reso_api!
|
|
59
|
+
rspec (~> 3.0)
|
|
60
|
+
|
|
61
|
+
BUNDLED WITH
|
|
62
|
+
1.16.1
|
data/README.md
CHANGED
|
@@ -42,15 +42,12 @@ When calling API endpoints using the initialized client, it will automatically f
|
|
|
42
42
|
|
|
43
43
|
### Resources
|
|
44
44
|
|
|
45
|
-
#### Supported
|
|
46
|
-
|
|
47
|
-
- Property
|
|
48
|
-
|
|
49
|
-
#### Planned
|
|
45
|
+
#### Supported Resources
|
|
50
46
|
|
|
51
47
|
- Media
|
|
52
48
|
- Member
|
|
53
49
|
- Office
|
|
50
|
+
- Property
|
|
54
51
|
|
|
55
52
|
### Retrieving Metadata
|
|
56
53
|
|
data/lib/reso_api.rb
CHANGED
|
@@ -57,7 +57,8 @@ module RESO
|
|
|
57
57
|
"$orderby": hash[:orderby] ||= RESOURCE_KEYS[method_name],
|
|
58
58
|
"$skiptoken": hash[:skiptoken],
|
|
59
59
|
"$expand": hash[:expand],
|
|
60
|
-
"$count": hash[:count].to_s.presence
|
|
60
|
+
"$count": hash[:count].to_s.presence,
|
|
61
|
+
"$debug": hash[:debug]
|
|
61
62
|
}.compact
|
|
62
63
|
return perform_call(endpoint, params)
|
|
63
64
|
end
|
|
@@ -127,6 +128,7 @@ module RESO
|
|
|
127
128
|
if params.present?
|
|
128
129
|
query = params.present? ? URI.encode_www_form(params).gsub("+", " ") : ""
|
|
129
130
|
uri.query && uri.query.length > 0 ? uri.query += '&' + query : uri.query = query
|
|
131
|
+
return URI::decode(uri.request_uri) if params.dig(:$debug).present?
|
|
130
132
|
end
|
|
131
133
|
request = Net::HTTP::Get.new(uri.request_uri)
|
|
132
134
|
request['Authorization'] = "Bearer #{oauth2_token}"
|
data/lib/reso_api/version.rb
CHANGED
data/reso_api.gemspec
CHANGED
|
@@ -23,5 +23,6 @@ Gem::Specification.new do |spec|
|
|
|
23
23
|
spec.add_development_dependency "bundler", "~> 1.16"
|
|
24
24
|
spec.add_development_dependency "rake", "~> 10.0"
|
|
25
25
|
spec.add_development_dependency "rspec", "~> 3.0"
|
|
26
|
+
spec.add_dependency 'activesupport'
|
|
26
27
|
spec.add_dependency "oauth2"
|
|
27
28
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: reso_api
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.2.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Michael Edlund
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2019-05-
|
|
11
|
+
date: 2019-05-08 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|
|
@@ -52,6 +52,20 @@ dependencies:
|
|
|
52
52
|
- - "~>"
|
|
53
53
|
- !ruby/object:Gem::Version
|
|
54
54
|
version: '3.0'
|
|
55
|
+
- !ruby/object:Gem::Dependency
|
|
56
|
+
name: activesupport
|
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
|
58
|
+
requirements:
|
|
59
|
+
- - ">="
|
|
60
|
+
- !ruby/object:Gem::Version
|
|
61
|
+
version: '0'
|
|
62
|
+
type: :runtime
|
|
63
|
+
prerelease: false
|
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
65
|
+
requirements:
|
|
66
|
+
- - ">="
|
|
67
|
+
- !ruby/object:Gem::Version
|
|
68
|
+
version: '0'
|
|
55
69
|
- !ruby/object:Gem::Dependency
|
|
56
70
|
name: oauth2
|
|
57
71
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -78,6 +92,7 @@ files:
|
|
|
78
92
|
- ".travis.yml"
|
|
79
93
|
- CODE_OF_CONDUCT.md
|
|
80
94
|
- Gemfile
|
|
95
|
+
- Gemfile.lock
|
|
81
96
|
- README.md
|
|
82
97
|
- Rakefile
|
|
83
98
|
- bin/console
|