spark_api 1.4.0 → 1.4.1
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 +8 -8
- data/VERSION +1 -1
- data/lib/spark_api/models/news_feed_meta.rb +2 -2
- data/spec/unit/spark_api/models/news_feed_meta_spec.rb +14 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
YjFjYTgyZjBhYTRiMjM1MTIzYzkxODEwYjlmNjg5ZTQ3ZmUwZmY2OA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
ZDUxMGNkNzVkMTQzNmJjOTgxY2JhMjBjMjA5ZDNkYjkzZDk2Zjc1ZA==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
Y2IwNzI3MmRjOTJmOGYxOWMyYzBmZjA4ZjViNmY3YTQ5ZjM2ZWMwZTE4ZTBl
|
10
|
+
ZjgwY2JjN2IzZGEzYWY1NmRjZmY1Y2UwMWNhMjcwMzNhMGVjY2ZhNmNkMzgx
|
11
|
+
ZjY5ODY3ZjE3NDQzMGZiOGRmNzYzZTJjZDg5ZjEwNTRlNGU2ZTM=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ZjgwNDE2NThkY2IxMjFiYjE3NGFjOWI4NzU1MjZlMTgxYTY0ZmZlN2Y2ZmIy
|
14
|
+
NmQ2Yzg5NzZjZTViMWYyNjNkMjE4MGUxNDE3MjE2OTExMzZjNGYwOGE2NGVk
|
15
|
+
ZDhkMjJmMTVhZmQ1NjllNGYyZWM4MTc2ZTc5ZmIyMDk2M2JiMDE=
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.4.
|
1
|
+
1.4.1
|
@@ -9,7 +9,7 @@ module SparkApi
|
|
9
9
|
end
|
10
10
|
|
11
11
|
def core_field_names
|
12
|
-
fields = data['Subscriptions']['SavedSearches']['CoreSearchFields']
|
12
|
+
fields = data['Subscriptions']['SavedSearches']['CoreSearchFields'].dup
|
13
13
|
|
14
14
|
data['Subscriptions']['SavedSearches']['CoreStandardFields'].each do |field|
|
15
15
|
fields << field[1]['Label']
|
@@ -19,7 +19,7 @@ module SparkApi
|
|
19
19
|
end
|
20
20
|
|
21
21
|
def core_fields
|
22
|
-
fields = data['Subscriptions']['SavedSearches']['CoreSearchFields']
|
22
|
+
fields = data['Subscriptions']['SavedSearches']['CoreSearchFields'].dup
|
23
23
|
|
24
24
|
data['Subscriptions']['SavedSearches']['CoreStandardFields'].each do |field|
|
25
25
|
fields << field.first
|
@@ -22,6 +22,13 @@ describe NewsFeedMeta do
|
|
22
22
|
"Year Built", "Total SqFt.", "Sub Type", "Subdivision", "Map Area"]
|
23
23
|
expect(news_feed_meta.core_field_names).to eq field_array
|
24
24
|
end
|
25
|
+
|
26
|
+
it "doesn't modify the original fields and returns the same results when run twice" do
|
27
|
+
field_array = ["Location", "Status", "Property Type", "Postal Code", "List Price", "Total Bedrooms",
|
28
|
+
"Year Built", "Total SqFt.", "Sub Type", "Subdivision", "Map Area"]
|
29
|
+
expect(news_feed_meta.core_field_names).to eq field_array
|
30
|
+
expect(news_feed_meta.core_field_names).to eq field_array
|
31
|
+
end
|
25
32
|
end
|
26
33
|
|
27
34
|
describe 'core_fields' do
|
@@ -30,6 +37,13 @@ describe NewsFeedMeta do
|
|
30
37
|
"YearBuilt", "BuildingAreaTotal", "PropertySubType", "SubdivisionName", "MLSAreaMinor"]
|
31
38
|
expect(news_feed_meta.core_fields).to eq field_array
|
32
39
|
end
|
40
|
+
|
41
|
+
it "doesn't modify the original fields and returns the same results when run twice" do
|
42
|
+
field_array = ["Location", "MlsStatus", "PropertyType", "PostalCode", "ListPrice", "BedsTotal",
|
43
|
+
"YearBuilt", "BuildingAreaTotal", "PropertySubType", "SubdivisionName", "MLSAreaMinor"]
|
44
|
+
expect(news_feed_meta.core_fields).to eq field_array
|
45
|
+
expect(news_feed_meta.core_fields).to eq field_array
|
46
|
+
end
|
33
47
|
end
|
34
48
|
|
35
49
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: spark_api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.4.
|
4
|
+
version: 1.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brandon Hornseth
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2016-
|
12
|
+
date: 2016-05-18 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: faraday
|