real_savvy 0.0.10 → 0.0.12
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
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 638f05c804bfd443a3ce944807bbc5ef82db2161
|
4
|
+
data.tar.gz: c7c725d155eaa134ffe5e7c4bfdaa1dc9e6e4556
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 69804c11afbd3ae968742aa724bdd9e1bc287d587f65a46538894514fb3962a676fe5dd2c06a95fd0bc864186c28d965123983dd822be7442a16c3952ad06cea
|
7
|
+
data.tar.gz: 42125b8ded4599d73ea4e5891fd233ac1e6f72d627b1aca9a0922da4f7f3d2a064ed804bd67dc62e365c52dc64dda554ff150d44aee1c38e540a5fc77f3202d4
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
real_savvy (0.0.
|
4
|
+
real_savvy (0.0.11)
|
5
5
|
faraday (>= 0.8.0)
|
6
6
|
faraday_middleware (>= 0.8.0)
|
7
7
|
jwt (>= 1.0.0)
|
@@ -11,7 +11,7 @@ GEM
|
|
11
11
|
specs:
|
12
12
|
coderay (1.1.1)
|
13
13
|
diff-lcs (1.3)
|
14
|
-
faraday (0.
|
14
|
+
faraday (0.15.0)
|
15
15
|
multipart-post (>= 1.2, < 3)
|
16
16
|
faraday_middleware (0.12.2)
|
17
17
|
faraday (>= 0.7.4, < 1.0)
|
@@ -16,15 +16,15 @@ class RealSavvy::Adapter::Collection < RealSavvy::Adapter::Base
|
|
16
16
|
delete("./api/v3/#{path_prefix}/#{id}/remove", {property_ids: property_ids})
|
17
17
|
end
|
18
18
|
|
19
|
-
def search(id:,
|
19
|
+
def search(id:, market_id: nil, page_size: nil, page_number: nil, page: {}, sort: {}, filter: {})
|
20
20
|
page[:size] ||= page_size
|
21
21
|
page[:number] ||= page_number
|
22
|
-
post("./api/v3/#{path_prefix}/#{id}/properties/search", {filter: filter, market_id: market_id, page: page})
|
22
|
+
post("./api/v3/#{path_prefix}/#{id}/properties/search", {filter: filter, market_id: market_id, page: page, sort: sort})
|
23
23
|
end
|
24
24
|
|
25
|
-
def cluster(id:,
|
25
|
+
def cluster(id:, market_id: nil, page_size: nil, page_number: nil, page: {}, sort: {}, filter: {}, precision: nil)
|
26
26
|
page[:size] ||= page_size
|
27
27
|
page[:number] ||= page_number
|
28
|
-
post("./api/v3/#{path_prefix}/#{id}/properties/map/clusters", {filter: filter, market_id: market_id, page: page, precision: precision})
|
28
|
+
post("./api/v3/#{path_prefix}/#{id}/properties/map/clusters", {filter: filter, market_id: market_id, page: page, sort: sort, precision: precision})
|
29
29
|
end
|
30
30
|
end
|
@@ -3,15 +3,15 @@ class RealSavvy::Adapter::Property < RealSavvy::Adapter::Base
|
|
3
3
|
|
4
4
|
include RealSavvy::Concern::ComplexShowForAdapter
|
5
5
|
|
6
|
-
def search(
|
6
|
+
def search(market_id: nil, page_size: nil, page_number: nil, page: {}, sort: {}, filter: {})
|
7
7
|
page[:size] ||= page_size
|
8
8
|
page[:number] ||= page_number
|
9
|
-
post("./api/v3/#{path_prefix}/search", {filter: filter, market_id: market_id, page: page})
|
9
|
+
post("./api/v3/#{path_prefix}/search", {filter: filter, market_id: market_id, page: page, sort: sort})
|
10
10
|
end
|
11
11
|
|
12
|
-
def cluster(
|
12
|
+
def cluster(market_id: nil, page_size: nil, page_number: nil, page: {}, sort: {}, filter: {}, precision: nil)
|
13
13
|
page[:size] ||= page_size
|
14
14
|
page[:number] ||= page_number
|
15
|
-
post("./api/v3/#{path_prefix}/map/clusters", {filter: filter, market_id: market_id, page: page, precision: precision})
|
15
|
+
post("./api/v3/#{path_prefix}/map/clusters", {filter: filter, market_id: market_id, page: page, sort: sort, precision: precision})
|
16
16
|
end
|
17
17
|
end
|
@@ -1,7 +1,7 @@
|
|
1
1
|
module RealSavvy::Concern::IndexForAdapter
|
2
|
-
def index(page_size: nil, page_number: nil, page: {})
|
2
|
+
def index(page_size: nil, page_number: nil, page: {}, sort: {}, filter: {})
|
3
3
|
page[:size] ||= page_size
|
4
4
|
page[:number] ||= page_number
|
5
|
-
get("./api/v3/#{path_prefix}", {page: page})
|
5
|
+
get("./api/v3/#{path_prefix}", {page: page, sort: sort, filter: filter})
|
6
6
|
end
|
7
7
|
end
|
data/lib/real_savvy/document.rb
CHANGED
@@ -37,7 +37,7 @@ class RealSavvy::Document
|
|
37
37
|
end
|
38
38
|
|
39
39
|
def objects_lookup
|
40
|
-
@objects_lookup ||=
|
40
|
+
@objects_lookup ||= [*data, *included].compact.each_with_object({}) { |resource, result| result[resource.hash] = resource }
|
41
41
|
end
|
42
42
|
|
43
43
|
def inspect
|
data/lib/real_savvy/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: real_savvy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.12
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ryan Rauh
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: exe
|
12
12
|
cert_chain: []
|
13
|
-
date: 2018-04-
|
13
|
+
date: 2018-04-25 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: faraday
|