spark_api 1.4.0 → 1.4.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- MDdhMWQ2ZjA4NTI5NzZhNmIwNTZmZGM2MzgxZjM2MDI2NjIzN2RiZQ==
4
+ YjFjYTgyZjBhYTRiMjM1MTIzYzkxODEwYjlmNjg5ZTQ3ZmUwZmY2OA==
5
5
  data.tar.gz: !binary |-
6
- ZGU5OTFlNzRlY2Q5YzBkYjczOTBhOGFkZTJjYzhlNDQyOTM0ZDMwYg==
6
+ ZDUxMGNkNzVkMTQzNmJjOTgxY2JhMjBjMjA5ZDNkYjkzZDk2Zjc1ZA==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- MDg3YzY1OWFjNDI3OGQzOTQyMmQ1YmJjNjI0OWU5Y2Q0MzdhM2UzOTNjMzk0
10
- MTA3OWJkYTIwOGYxMzk0YzQ3MGUzNWVjYzBiZjVlOTBhMGJjZDNiMTg0NTE3
11
- NGFhMDNjZjc0MjVhMjVmYmI3NzQ2M2YxNzAyNzFhYTU0MmFlMzg=
9
+ Y2IwNzI3MmRjOTJmOGYxOWMyYzBmZjA4ZjViNmY3YTQ5ZjM2ZWMwZTE4ZTBl
10
+ ZjgwY2JjN2IzZGEzYWY1NmRjZmY1Y2UwMWNhMjcwMzNhMGVjY2ZhNmNkMzgx
11
+ ZjY5ODY3ZjE3NDQzMGZiOGRmNzYzZTJjZDg5ZjEwNTRlNGU2ZTM=
12
12
  data.tar.gz: !binary |-
13
- N2Y3NGNkZGVjZjhlNzA2Y2FmYmVmNGUyNDhlZjlmZmVkY2Y0OWJmMzQ2MWJm
14
- NDVjYzFlNWJlMGQwZjUxYTIwNjJhYjYzMzgzOGJiMzMwZWQzOTUwNzA4ODhl
15
- NjllNjc4YzI4MGE3MDBlYjVlOThkNTEwOTM0YjA1Zjc5ZWZjYjE=
13
+ ZjgwNDE2NThkY2IxMjFiYjE3NGFjOWI4NzU1MjZlMTgxYTY0ZmZlN2Y2ZmIy
14
+ NmQ2Yzg5NzZjZTViMWYyNjNkMjE4MGUxNDE3MjE2OTExMzZjNGYwOGE2NGVk
15
+ ZDhkMjJmMTVhZmQ1NjllNGYyZWM4MTc2ZTc5ZmIyMDk2M2JiMDE=
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.4.0
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.0
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-04-06 00:00:00.000000000 Z
12
+ date: 2016-05-18 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: faraday