spark_api 1.4.23 → 1.4.24

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
- ZDI5NGFmMDQzZjQxODIxNmVlOGUyMDc2YzE2N2QzZmFkZjZkNDM3OA==
4
+ NjU2ZTQ1NGNmOTEyYmMzNmY2MWMzMjg2ZmI4YTc3NGNmNTg3NzkzYw==
5
5
  data.tar.gz: !binary |-
6
- ZDcwMTNjZmZjNWIyZjcyYWUwZTVlYWU2NTZjYzc5N2NjODE2MWRmMg==
6
+ ZGY1YjFkNjBjYTBiOGExZWUwZDIzNzk5ZTMzMGFiMmIzMDg2YzYyNg==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- NjliODg2M2JiZGQ1ZjM5ZGQ0ZDJlZTk5Y2FmZjI5YzQ5NDgwOTQ5NjBmZmJh
10
- Zjg1NmZkOTM3MjFkYTJiOTczZDljMGE5N2Q0YmY5OGY1YmUxNzIxN2I5NWQz
11
- NzcyNzA5Nzc0YWQ4MDFhMjQ4YTM0NDQ3OTRhMjVmOGY5YWUxYmY=
9
+ ZDAxMzg0ZmI0ZjYyMzYxOWMzYTcwYTBiMmNlNzJjNWM2ZTkyMWNjNzYxYWU0
10
+ YzEyNjA4NTM2NGJjY2FiNzIxNzFmZWIyZmNiZTM4MWVkMjg0NjIxNjAyYWRm
11
+ MDgxN2VhYjU5OWM0NjJjNWU5MGQ1MGViZTUwMzY0OGQ2ODYzNzQ=
12
12
  data.tar.gz: !binary |-
13
- ODMzODY1ZGE1NzRmNzQ1MTU2MTk1ZDJkMjlkNGYyZjRmZjA4ZjVjNDlhNDVm
14
- ZWMxZWU0MGRkM2NiYjE2YThmZmY5NTlhY2RkMjM0YWI3M2U3NjFkMGE2YWY1
15
- YWU3YTA2MjE3NGY3MDQwN2Y3MDRmNWQ2MzkwNTQwOWFiYjI5ZjQ=
13
+ MWExMjNiZGRiOTJhMTU1NTg5ZDI0MjNkNmU5NmMyYjc2ZjcwMWU0MGU3MGIz
14
+ NTA1MzIzMTY3YjcxZDBlMGQ2YzdlMTg3OTVjMzMzMTQwMTMxZjIwZDViMDAz
15
+ MDVjMDZhOGI0MjNkNTA5ZjdjYjUxNzllM2M1ZTBlNzc4NDFlNGU=
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.4.23
1
+ 1.4.24
@@ -2,6 +2,11 @@ module SparkApi
2
2
  module Models
3
3
  class PropertyTypes < Base
4
4
  self.element_name="propertytypes"
5
+
6
+ def self.all(options={})
7
+ collect(connection.get("#{path}/all", options))
8
+ end
9
+
5
10
  end
6
11
  end
7
12
  end
@@ -1,12 +1,6 @@
1
1
  require './spec/spec_helper'
2
2
 
3
3
  describe PropertyTypes do
4
- before(:each) do
5
- @proptypes = PropertyTypes.new({
6
- "MlsName"=>"Residential",
7
- "MlsCode"=>"A"
8
- })
9
- end
10
4
 
11
5
  it "should respond to get" do
12
6
  PropertyTypes.should respond_to(:get)
@@ -26,8 +20,18 @@ describe PropertyTypes do
26
20
  end
27
21
  end
28
22
 
29
- after(:each) do
30
- @proptypes = nil
23
+ describe "/propertytypes/all", :support do
24
+ before(:each) do
25
+ stub_auth_request
26
+ end
27
+
28
+ on_get_it "should return a list of all property types" do
29
+ stub_api_get("/propertytypes/all", "property_types/property_types.json")
30
+
31
+ types = PropertyTypes.all
32
+ types.should be_an(Array)
33
+ types.count.should be(6)
34
+ end
31
35
  end
32
36
 
33
37
  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.23
4
+ version: 1.4.24
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: 2018-06-12 00:00:00.000000000 Z
12
+ date: 2018-06-25 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: faraday