spark_api 1.3.23 → 1.3.24

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,15 @@
1
+ ---
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ ZTQ2YzBjNTczYWI1YTdjMDA1OTkzMDZiYTAzZjc3ZjUxMjY0NGFlMA==
5
+ data.tar.gz: !binary |-
6
+ YWE2YjQ2ZDAyOTVhZDk5YzNjMGZmOTY2ZjNmYzI4MDA1MTg1MWM1YQ==
7
+ SHA512:
8
+ metadata.gz: !binary |-
9
+ OGYyNTM1ZGE2YTRhZmMzYjUwYmExMjljMmI3NjZjOGU3ZTM2ZmZkMmFkYWI4
10
+ ZTUwNDEwZTFiODk4NTY1N2NjZWFmMzEzN2E0ZmMzNGEzMzEyMTg4NGJlMzRk
11
+ M2YxMDgzOTMyMDg2MzE2NDA3YzQ3MzJhNDBhYjJmYjM0NmZhOGM=
12
+ data.tar.gz: !binary |-
13
+ YTQxZTNmYmQzNjE2ZTY3NmNiYTkzOGU0ODc4MGQyNTg5YzFjZDVjYzAwM2Qz
14
+ NDY5YWQ3ZmNmNTE4ZGE5ZjhhYzM0MzY5YmM2N2Y1ZWNjMTQ4YTZmODkwYzVm
15
+ MTY3YzAzYmJmMWMyMmEwN2E2ZDE5NmQzYWJlNmZhMzU3ZWM3ODE=
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.3.23
1
+ 1.3.24
@@ -125,6 +125,10 @@ module SparkApi
125
125
  !@attributes['Id'].nil? && !@attributes['ResourceUri'].nil?
126
126
  end
127
127
 
128
+ def to_param
129
+ attributes['Id']
130
+ end
131
+
128
132
  protected
129
133
 
130
134
  def write_attribute(attribute, value)
@@ -1,6 +1,7 @@
1
1
  module SparkApi
2
2
  module Models
3
3
  class Message < Base
4
+ extend Finders
4
5
  self.element_name="messages"
5
6
 
6
7
  def save(arguments={})
@@ -13,11 +14,17 @@ module SparkApi
13
14
  end
14
15
  false
15
16
  end
17
+
16
18
  def save!(arguments={})
17
19
  results = connection.post self.class.path, {"Messages" => [ attributes ]}, arguments
18
20
  true
19
21
  end
20
-
22
+
23
+ def replies(args = {})
24
+ arguments = {:_expand => "Body, Sender"}.merge(args)
25
+ Message.collect(connection.get("#{self.class.path}/#{self.Id}/replies", arguments))
26
+ end
27
+
21
28
  end
22
29
  end
23
30
  end
@@ -63,8 +63,9 @@ module SparkApi
63
63
  end
64
64
 
65
65
  def listings(args = {})
66
- arguments = {:_filter => self.Filter}.merge(args)
67
- @listings ||= Listing.collect(connection.get("/listings", arguments))
66
+ arguments = {:_filter => self.Filter}
67
+ arguments.merge!(:RequestMode => 'permissive') if provided_search?
68
+ @listings ||= Listing.collect(connection.get("/listings", arguments.merge(args)))
68
69
  end
69
70
 
70
71
  def newsfeeds
@@ -0,0 +1,83 @@
1
+ {
2
+ "D": {
3
+ "Success": true,
4
+ "Results": [
5
+ {
6
+ "Id": "20110353423434130982000000",
7
+ "ResourceUri": "/v1/messages/20110353423434130982000000",
8
+ "Type": "ShowingRequest",
9
+ "SenderId": "20110112234857732941000000",
10
+ "Sender": {
11
+ "Id": "20110112234857732941000000",
12
+ "ResourceUri": "/v1/accounts/20110112234857732941000000",
13
+ "UserType": "Member",
14
+ "Name": "Joe Realtor",
15
+ "OfficeId": "20100113238853732842000000",
16
+ "Office": "Joe's Realty",
17
+ "CompanyId": null,
18
+ "Company": null
19
+ },
20
+ "RecipientIds": ["20120212334957232744000000"],
21
+ "Recipients": [{
22
+ "Id": "20120212334957232744000000",
23
+ "ResourceUri": "/v1/accounts/20120212334957232744000000",
24
+ "UserType": "Member",
25
+ "Name": "Sue Realtor",
26
+ "OfficeId": "20100113238853732842000000",
27
+ "Office": "Joe's Realty",
28
+ "CompanyId": null,
29
+ "Company": null
30
+ }],
31
+ "ThreadInfo": {
32
+ "HasReplies": true,
33
+ "UnreadInThread": true
34
+ },
35
+ "Subject": "Showing Request For 123 Main St, MLS # 12-345",
36
+ "Body": "A showing is requested for ...",
37
+ "ListingId": "20110112234857732941000000",
38
+ "ReplyToId": null,
39
+ "RecipientIds": "20130212233857332441000000",
40
+ "CreatedTimestamp": "2013-06-11T11:00:00",
41
+ "ModificationTimestamp": "2013-06-11T11:00:00"
42
+ },
43
+ {
44
+ "Id": "20110353423434130982000000",
45
+ "ResourceUri": "/v1/messages/20110353423434130982000000",
46
+ "Type": "ShowingRequest",
47
+ "SenderId": "20110112234857732941000000",
48
+ "Sender": {
49
+ "Id": "20110112234857732941000000",
50
+ "ResourceUri": "/v1/accounts/20110112234857732941000000",
51
+ "UserType": "Member",
52
+ "Name": "Joe Realtor",
53
+ "OfficeId": "20100113238853732842000000",
54
+ "Office": "Joe's Realty",
55
+ "CompanyId": null,
56
+ "Company": null
57
+ },
58
+ "RecipientIds": ["20120212334957232744000000"],
59
+ "Recipients": [{
60
+ "Id": "20120212334957232744000000",
61
+ "ResourceUri": "/v1/accounts/20120212334957232744000000",
62
+ "UserType": "Member",
63
+ "Name": "Sue Realtor",
64
+ "OfficeId": "20100113238853732842000000",
65
+ "Office": "Joe's Realty",
66
+ "CompanyId": null,
67
+ "Company": null
68
+ }],
69
+ "ThreadInfo": {
70
+ "HasReplies": true,
71
+ "UnreadInThread": true
72
+ },
73
+ "Subject": "Showing Request For 123 Main St, MLS # 12-345",
74
+ "Body": "A showing is requested for ...",
75
+ "ListingId": "20110112234857732941000000",
76
+ "ReplyToId": null,
77
+ "RecipientIds": "20130212233857332441000000",
78
+ "CreatedTimestamp": "2013-06-11T11:00:00",
79
+ "ModificationTimestamp": "2013-06-11T11:00:00"
80
+ }
81
+ ]
82
+ }
83
+ }
@@ -18,7 +18,11 @@ describe Message do
18
18
  end
19
19
 
20
20
  context "/messages", :support do
21
- on_get_it "should get all my messages"
21
+ on_get_it "should get all my messages" do
22
+ stub_api_get("/messages", 'messages/get.json')
23
+ messages = Message.find(:all)
24
+ messages.size.should == 2
25
+ end
22
26
 
23
27
  on_post_it "should save a new message" do
24
28
  stub_api_post("/messages", 'messages/new.json', 'messages/post.json')
@@ -42,6 +46,20 @@ describe Message do
42
46
  end
43
47
 
44
48
  context "/messages/<message_id>", :support do
45
- on_get_it "should get a single message"
49
+ on_get_it "should get a single message" do
50
+ subject.attributes["Id"] = "20110353423434130982000000"
51
+ stub_api_get("/messages/#{subject.Id}", "messages/get.json")
52
+ subject.should be_a(Message)
53
+ end
46
54
  end
55
+
56
+ context "/messages/<message_id>/replies", :support do
57
+ on_get_it "should get all the replies" do
58
+ subject.attributes["Id"] = "20110353423434130982000000"
59
+ stub_api_get("/messages/#{subject.Id}/replies", "messages/get.json", :_expand => 'Body, Sender')
60
+ subject.replies.size.should == 2
61
+ end
62
+
63
+ end
64
+
47
65
  end
@@ -99,6 +99,35 @@ describe SavedSearch do
99
99
  resource.ContactIds.size.should eq(0)
100
100
  end
101
101
 
102
+ describe "listings" do
103
+
104
+ it "should return the searches listings" do
105
+ stub_api_get("/#{subject.class.element_name}/#{id}", 'saved_searches/get.json')
106
+ stub_api_get("/listings", 'listings/multiple.json',
107
+ {:_filter => "City Eq 'Moorhead' And MlsStatus Eq 'Active' And PropertyType Eq 'A'"})
108
+ listings = subject.class.find(id).listings
109
+ listings.should be_an(Array)
110
+ listings[0].should be_a(Listing)
111
+ end
112
+
113
+ it "should include the permissive parameter for provided searches" do
114
+ stub_api_get("/provided/savedsearches/#{id}", 'saved_searches/get.json')
115
+ resource = subject.class.provided.find(id)
116
+ expect(SparkApi.client).to receive(:get).with("/listings",
117
+ {:_filter => resource.Filter, :RequestMode => 'permissive'})
118
+ resource.listings
119
+ end
120
+
121
+ it "should not include the permissive parameter for saved searches" do
122
+ stub_api_get("/#{subject.class.element_name}/#{id}", 'saved_searches/get.json')
123
+ resource = subject.class.find(id)
124
+ resource.stub(:provided_search?) { false }
125
+ expect(SparkApi.client).to receive(:get).with("/listings", {:_filter => resource.Filter})
126
+ resource.listings
127
+ end
128
+
129
+ end
130
+
102
131
  end
103
132
 
104
133
  context "/provided/savedsearches", :support do
@@ -139,18 +168,14 @@ describe SavedSearch do
139
168
  describe "can_have_newsfeed?" do
140
169
 
141
170
  it "should return false for a provided search" do
142
- stub_api_get("/#{subject.class.element_name}/#{id}", 'saved_searches/get.json')
143
- resource = subject.class.find(id)
144
- resource.stub(:provided_search?) { true }
171
+ stub_api_get("/provided/#{subject.class.element_name}/#{id}", 'saved_searches/get.json')
172
+ resource = subject.class.provided.find(id)
145
173
  resource.can_have_newsfeed?.should == false
146
174
  end
147
175
 
148
176
  it "should return false without at least three filter parameters" do
149
177
  stub_api_get("/#{subject.class.element_name}/#{id}", 'saved_searches/get.json')
150
178
  resource = subject.class.find(id)
151
- resource.stub(:provided_search?) { false }
152
- resource.stub(:has_active_newsfeed?) { false }
153
- resource.stub(:has_inactive_newsfeed?) { false }
154
179
  resource.Filter = "City Eq 'Moorhead' And MlsStatus Eq 'Active'"
155
180
  resource.can_have_newsfeed?.should == false
156
181
  end
@@ -177,9 +202,8 @@ describe SavedSearch do
177
202
  end
178
203
 
179
204
  it "should return false for a provided search" do
180
- stub_api_get("/#{subject.class.element_name}/#{id}", 'saved_searches/get.json')
181
- resource = subject.class.find(id)
182
- resource.stub(:provided_search?) { true }
205
+ stub_api_get("/provided/#{subject.class.element_name}/#{id}", 'saved_searches/get.json')
206
+ resource = subject.class.provided.find(id)
183
207
  resource.has_active_newsfeed?.should == false
184
208
  end
185
209
  end
@@ -195,9 +219,8 @@ describe SavedSearch do
195
219
  end
196
220
 
197
221
  it "should return false for a provided search" do
198
- stub_api_get("/#{subject.class.element_name}/#{id}", 'saved_searches/with_inactive_newsfeed.json')
199
- resource = subject.class.find(id)
200
- resource.stub(:provided_search?) { true }
222
+ stub_api_get("/provided/#{subject.class.element_name}/#{id}", 'saved_searches/with_inactive_newsfeed.json')
223
+ resource = subject.class.provided.find(id)
201
224
  resource.has_inactive_newsfeed?.should == false
202
225
  end
203
226
  end
metadata CHANGED
@@ -1,572 +1,530 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: spark_api
3
- version: !ruby/object:Gem::Version
4
- hash: 53
5
- prerelease:
6
- segments:
7
- - 1
8
- - 3
9
- - 23
10
- version: 1.3.23
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.3.24
11
5
  platform: ruby
12
- authors:
6
+ authors:
13
7
  - Brandon Hornseth
14
8
  - Wade McEwen
15
9
  autorequire:
16
10
  bindir: bin
17
11
  cert_chain: []
18
-
19
- date: 2015-02-06 00:00:00 Z
20
- dependencies:
21
- - !ruby/object:Gem::Dependency
22
- type: :runtime
23
- requirement: &id001 !ruby/object:Gem::Requirement
24
- none: false
25
- requirements:
12
+ date: 2015-02-17 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: faraday
16
+ requirement: !ruby/object:Gem::Requirement
17
+ requirements:
26
18
  - - ~>
27
- - !ruby/object:Gem::Version
28
- hash: 59
29
- segments:
30
- - 0
31
- - 9
32
- - 0
19
+ - !ruby/object:Gem::Version
33
20
  version: 0.9.0
34
- version_requirements: *id001
35
- prerelease: false
36
- name: faraday
37
- - !ruby/object:Gem::Dependency
38
21
  type: :runtime
39
- requirement: &id002 !ruby/object:Gem::Requirement
40
- none: false
41
- requirements:
42
- - - ~>
43
- - !ruby/object:Gem::Version
44
- hash: 15
45
- segments:
46
- - 1
47
- - 0
48
- version: "1.0"
49
- version_requirements: *id002
50
22
  prerelease: false
23
+ version_requirements: !ruby/object:Gem::Requirement
24
+ requirements:
25
+ - - ~>
26
+ - !ruby/object:Gem::Version
27
+ version: 0.9.0
28
+ - !ruby/object:Gem::Dependency
51
29
  name: multi_json
52
- - !ruby/object:Gem::Dependency
53
- type: :runtime
54
- requirement: &id003 !ruby/object:Gem::Requirement
55
- none: false
56
- requirements:
30
+ requirement: !ruby/object:Gem::Requirement
31
+ requirements:
57
32
  - - ~>
58
- - !ruby/object:Gem::Version
59
- hash: 1
60
- segments:
61
- - 1
62
- - 7
63
- version: "1.7"
64
- version_requirements: *id003
33
+ - !ruby/object:Gem::Version
34
+ version: '1.0'
35
+ type: :runtime
65
36
  prerelease: false
37
+ version_requirements: !ruby/object:Gem::Requirement
38
+ requirements:
39
+ - - ~>
40
+ - !ruby/object:Gem::Version
41
+ version: '1.0'
42
+ - !ruby/object:Gem::Dependency
66
43
  name: json
67
- - !ruby/object:Gem::Dependency
44
+ requirement: !ruby/object:Gem::Requirement
45
+ requirements:
46
+ - - ~>
47
+ - !ruby/object:Gem::Version
48
+ version: '1.7'
68
49
  type: :runtime
69
- requirement: &id004 !ruby/object:Gem::Requirement
70
- none: false
71
- requirements:
72
- - - ">="
73
- - !ruby/object:Gem::Version
74
- hash: 15
75
- segments:
76
- - 2
77
- - 1
78
- - 2
50
+ prerelease: false
51
+ version_requirements: !ruby/object:Gem::Requirement
52
+ requirements:
53
+ - - ~>
54
+ - !ruby/object:Gem::Version
55
+ version: '1.7'
56
+ - !ruby/object:Gem::Dependency
57
+ name: builder
58
+ requirement: !ruby/object:Gem::Requirement
59
+ requirements:
60
+ - - ! '>='
61
+ - !ruby/object:Gem::Version
79
62
  version: 2.1.2
80
63
  - - <
81
- - !ruby/object:Gem::Version
82
- hash: 63
83
- segments:
84
- - 4
85
- - 0
86
- - 0
64
+ - !ruby/object:Gem::Version
87
65
  version: 4.0.0
88
- version_requirements: *id004
89
- prerelease: false
90
- name: builder
91
- - !ruby/object:Gem::Dependency
92
66
  type: :runtime
93
- requirement: &id005 !ruby/object:Gem::Requirement
94
- none: false
95
- requirements:
96
- - - ">="
97
- - !ruby/object:Gem::Version
98
- hash: 1923831917
99
- segments:
100
- - 3
101
- - 0
102
- - pre
103
- - 2
104
- version: 3.0.pre2
67
+ prerelease: false
68
+ version_requirements: !ruby/object:Gem::Requirement
69
+ requirements:
70
+ - - ! '>='
71
+ - !ruby/object:Gem::Version
72
+ version: 2.1.2
105
73
  - - <
106
- - !ruby/object:Gem::Version
107
- hash: 63
108
- segments:
109
- - 4
110
- - 0
111
- - 0
74
+ - !ruby/object:Gem::Version
112
75
  version: 4.0.0
113
- version_requirements: *id005
114
- prerelease: false
76
+ - !ruby/object:Gem::Dependency
115
77
  name: will_paginate
116
- - !ruby/object:Gem::Dependency
78
+ requirement: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ! '>='
81
+ - !ruby/object:Gem::Version
82
+ version: 3.0.pre2
83
+ - - <
84
+ - !ruby/object:Gem::Version
85
+ version: 4.0.0
117
86
  type: :runtime
118
- requirement: &id006 !ruby/object:Gem::Requirement
119
- none: false
120
- requirements:
121
- - - ">="
122
- - !ruby/object:Gem::Version
123
- hash: 15
124
- segments:
125
- - 1
126
- - 0
127
- version: "1.0"
128
- version_requirements: *id006
129
87
  prerelease: false
88
+ version_requirements: !ruby/object:Gem::Requirement
89
+ requirements:
90
+ - - ! '>='
91
+ - !ruby/object:Gem::Version
92
+ version: 3.0.pre2
93
+ - - <
94
+ - !ruby/object:Gem::Version
95
+ version: 4.0.0
96
+ - !ruby/object:Gem::Dependency
130
97
  name: highline
131
- - !ruby/object:Gem::Dependency
132
- type: :development
133
- requirement: &id007 !ruby/object:Gem::Requirement
134
- none: false
135
- requirements:
136
- - - ~>
137
- - !ruby/object:Gem::Version
138
- hash: 63
139
- segments:
140
- - 0
141
- - 9
142
- - 2
143
- version: 0.9.2
144
- version_requirements: *id007
98
+ requirement: !ruby/object:Gem::Requirement
99
+ requirements:
100
+ - - ! '>='
101
+ - !ruby/object:Gem::Version
102
+ version: '1.0'
103
+ type: :runtime
145
104
  prerelease: false
105
+ version_requirements: !ruby/object:Gem::Requirement
106
+ requirements:
107
+ - - ! '>='
108
+ - !ruby/object:Gem::Version
109
+ version: '1.0'
110
+ - !ruby/object:Gem::Dependency
146
111
  name: rake
147
- - !ruby/object:Gem::Dependency
148
- type: :development
149
- requirement: &id008 !ruby/object:Gem::Requirement
150
- none: false
151
- requirements:
112
+ requirement: !ruby/object:Gem::Requirement
113
+ requirements:
152
114
  - - ~>
153
- - !ruby/object:Gem::Version
154
- hash: 55
155
- segments:
156
- - 2
157
- - 14
158
- - 0
159
- version: 2.14.0
160
- version_requirements: *id008
115
+ - !ruby/object:Gem::Version
116
+ version: 0.9.2
117
+ type: :development
161
118
  prerelease: false
119
+ version_requirements: !ruby/object:Gem::Requirement
120
+ requirements:
121
+ - - ~>
122
+ - !ruby/object:Gem::Version
123
+ version: 0.9.2
124
+ - !ruby/object:Gem::Dependency
162
125
  name: rspec
163
- - !ruby/object:Gem::Dependency
164
- type: :development
165
- requirement: &id009 !ruby/object:Gem::Requirement
166
- none: false
167
- requirements:
126
+ requirement: !ruby/object:Gem::Requirement
127
+ requirements:
168
128
  - - ~>
169
- - !ruby/object:Gem::Version
170
- hash: 29
171
- segments:
172
- - 1
173
- - 9
174
- version: "1.9"
175
- version_requirements: *id009
129
+ - !ruby/object:Gem::Version
130
+ version: 2.14.0
131
+ type: :development
176
132
  prerelease: false
133
+ version_requirements: !ruby/object:Gem::Requirement
134
+ requirements:
135
+ - - ~>
136
+ - !ruby/object:Gem::Version
137
+ version: 2.14.0
138
+ - !ruby/object:Gem::Dependency
177
139
  name: webmock
178
- - !ruby/object:Gem::Dependency
179
- type: :development
180
- requirement: &id010 !ruby/object:Gem::Requirement
181
- none: false
182
- requirements:
140
+ requirement: !ruby/object:Gem::Requirement
141
+ requirements:
183
142
  - - ~>
184
- - !ruby/object:Gem::Version
185
- hash: 13
186
- segments:
187
- - 0
188
- - 3
189
- version: "0.3"
190
- version_requirements: *id010
143
+ - !ruby/object:Gem::Version
144
+ version: '1.9'
145
+ type: :development
191
146
  prerelease: false
147
+ version_requirements: !ruby/object:Gem::Requirement
148
+ requirements:
149
+ - - ~>
150
+ - !ruby/object:Gem::Version
151
+ version: '1.9'
152
+ - !ruby/object:Gem::Dependency
192
153
  name: typhoeus
193
- - !ruby/object:Gem::Dependency
194
- type: :development
195
- requirement: &id011 !ruby/object:Gem::Requirement
196
- none: false
197
- requirements:
154
+ requirement: !ruby/object:Gem::Requirement
155
+ requirements:
198
156
  - - ~>
199
- - !ruby/object:Gem::Version
200
- hash: 11
201
- segments:
202
- - 1
203
- - 7
204
- - 0
205
- version: 1.7.0
206
- version_requirements: *id011
157
+ - !ruby/object:Gem::Version
158
+ version: '0.3'
159
+ type: :development
207
160
  prerelease: false
161
+ version_requirements: !ruby/object:Gem::Requirement
162
+ requirements:
163
+ - - ~>
164
+ - !ruby/object:Gem::Version
165
+ version: '0.3'
166
+ - !ruby/object:Gem::Dependency
208
167
  name: ci_reporter
209
- - !ruby/object:Gem::Dependency
210
- type: :development
211
- requirement: &id012 !ruby/object:Gem::Requirement
212
- none: false
213
- requirements:
168
+ requirement: !ruby/object:Gem::Requirement
169
+ requirements:
214
170
  - - ~>
215
- - !ruby/object:Gem::Version
216
- hash: 41
217
- segments:
218
- - 0
219
- - 9
220
- - 9
221
- version: 0.9.9
222
- version_requirements: *id012
171
+ - !ruby/object:Gem::Version
172
+ version: 1.7.0
173
+ type: :development
223
174
  prerelease: false
175
+ version_requirements: !ruby/object:Gem::Requirement
176
+ requirements:
177
+ - - ~>
178
+ - !ruby/object:Gem::Version
179
+ version: 1.7.0
180
+ - !ruby/object:Gem::Dependency
224
181
  name: rcov
225
- - !ruby/object:Gem::Dependency
226
- type: :development
227
- requirement: &id013 !ruby/object:Gem::Requirement
228
- none: false
229
- requirements:
182
+ requirement: !ruby/object:Gem::Requirement
183
+ requirements:
230
184
  - - ~>
231
- - !ruby/object:Gem::Version
232
- hash: 29
233
- segments:
234
- - 0
235
- - 2
236
- - 5
237
- version: 0.2.5
238
- version_requirements: *id013
185
+ - !ruby/object:Gem::Version
186
+ version: 0.9.9
187
+ type: :development
239
188
  prerelease: false
189
+ version_requirements: !ruby/object:Gem::Requirement
190
+ requirements:
191
+ - - ~>
192
+ - !ruby/object:Gem::Version
193
+ version: 0.9.9
194
+ - !ruby/object:Gem::Dependency
240
195
  name: flexmls_gems
241
- - !ruby/object:Gem::Dependency
196
+ requirement: !ruby/object:Gem::Requirement
197
+ requirements:
198
+ - - ~>
199
+ - !ruby/object:Gem::Version
200
+ version: 0.2.5
242
201
  type: :development
243
- requirement: &id014 !ruby/object:Gem::Requirement
244
- none: false
245
- requirements:
246
- - - ">="
247
- - !ruby/object:Gem::Version
248
- hash: 3
249
- segments:
250
- - 0
251
- version: "0"
252
- version_requirements: *id014
253
202
  prerelease: false
203
+ version_requirements: !ruby/object:Gem::Requirement
204
+ requirements:
205
+ - - ~>
206
+ - !ruby/object:Gem::Version
207
+ version: 0.2.5
208
+ - !ruby/object:Gem::Dependency
254
209
  name: rb-readline
255
- - !ruby/object:Gem::Dependency
210
+ requirement: !ruby/object:Gem::Requirement
211
+ requirements:
212
+ - - ! '>='
213
+ - !ruby/object:Gem::Version
214
+ version: '0'
256
215
  type: :development
257
- requirement: &id015 !ruby/object:Gem::Requirement
258
- none: false
259
- requirements:
260
- - - ">="
261
- - !ruby/object:Gem::Version
262
- hash: 3
263
- segments:
264
- - 0
265
- version: "0"
266
- version_requirements: *id015
267
216
  prerelease: false
217
+ version_requirements: !ruby/object:Gem::Requirement
218
+ requirements:
219
+ - - ! '>='
220
+ - !ruby/object:Gem::Version
221
+ version: '0'
222
+ - !ruby/object:Gem::Dependency
268
223
  name: rb-fsevent
269
- description: The spark_api gem handles most of the boilerplate for communicating with the Spark API rest services, including authentication and request parsing.
224
+ requirement: !ruby/object:Gem::Requirement
225
+ requirements:
226
+ - - ! '>='
227
+ - !ruby/object:Gem::Version
228
+ version: '0'
229
+ type: :development
230
+ prerelease: false
231
+ version_requirements: !ruby/object:Gem::Requirement
232
+ requirements:
233
+ - - ! '>='
234
+ - !ruby/object:Gem::Version
235
+ version: '0'
236
+ description: The spark_api gem handles most of the boilerplate for communicating with
237
+ the Spark API rest services, including authentication and request parsing.
270
238
  email: api-support@sparkapi.com
271
- executables:
239
+ executables:
272
240
  - spark_api
273
241
  extensions: []
274
-
275
- extra_rdoc_files:
242
+ extra_rdoc_files:
276
243
  - LICENSE
277
244
  - README.md
278
- files:
245
+ files:
279
246
  - History.txt
280
247
  - LICENSE
281
- - Rakefile
282
248
  - README.md
249
+ - Rakefile
283
250
  - VERSION
284
251
  - bin/spark_api
285
252
  - lib/spark_api.rb
286
- - lib/spark_api/connection.rb
287
- - lib/spark_api/version.rb
288
- - lib/spark_api/faraday_middleware.rb
289
- - lib/spark_api/configuration.rb
290
- - lib/spark_api/primary_array.rb
291
- - lib/spark_api/configuration/oauth2_configurable.rb
292
- - lib/spark_api/configuration/yaml.rb
293
- - lib/spark_api/response.rb
294
- - lib/spark_api/multi_client.rb
295
- - lib/spark_api/paginate.rb
296
- - lib/spark_api/request.rb
297
- - lib/spark_api/errors.rb
298
- - lib/spark_api/client.rb
299
- - lib/spark_api/cli/oauth2.rb
300
- - lib/spark_api/cli/setup.rb
301
- - lib/spark_api/cli/api_auth.rb
302
- - lib/spark_api/models.rb
303
- - lib/spark_api/cli.rb
304
- - lib/spark_api/authentication/oauth2_impl/faraday_middleware.rb
305
- - lib/spark_api/authentication/oauth2_impl/grant_type_refresh.rb
306
- - lib/spark_api/authentication/oauth2_impl/simple_provider.rb
253
+ - lib/spark_api/authentication.rb
254
+ - lib/spark_api/authentication/api_auth.rb
255
+ - lib/spark_api/authentication/base_auth.rb
256
+ - lib/spark_api/authentication/oauth2.rb
307
257
  - lib/spark_api/authentication/oauth2_impl/cli_provider.rb
258
+ - lib/spark_api/authentication/oauth2_impl/faraday_middleware.rb
308
259
  - lib/spark_api/authentication/oauth2_impl/grant_type_base.rb
309
260
  - lib/spark_api/authentication/oauth2_impl/grant_type_code.rb
310
261
  - lib/spark_api/authentication/oauth2_impl/grant_type_password.rb
262
+ - lib/spark_api/authentication/oauth2_impl/grant_type_refresh.rb
263
+ - lib/spark_api/authentication/oauth2_impl/simple_provider.rb
311
264
  - lib/spark_api/authentication/oauth2_impl/single_session_provider.rb
312
- - lib/spark_api/authentication/oauth2.rb
313
- - lib/spark_api/authentication/api_auth.rb
314
- - lib/spark_api/authentication/base_auth.rb
315
- - lib/spark_api/options_hash.rb
316
- - lib/spark_api/models/dirty.rb
317
- - lib/spark_api/models/note.rb
318
- - lib/spark_api/models/concerns.rb
265
+ - lib/spark_api/cli.rb
266
+ - lib/spark_api/cli/api_auth.rb
267
+ - lib/spark_api/cli/oauth2.rb
268
+ - lib/spark_api/cli/setup.rb
269
+ - lib/spark_api/client.rb
270
+ - lib/spark_api/configuration.rb
271
+ - lib/spark_api/configuration/oauth2_configurable.rb
272
+ - lib/spark_api/configuration/yaml.rb
273
+ - lib/spark_api/connection.rb
274
+ - lib/spark_api/errors.rb
275
+ - lib/spark_api/faraday_middleware.rb
276
+ - lib/spark_api/models.rb
277
+ - lib/spark_api/models/account.rb
319
278
  - lib/spark_api/models/activity.rb
279
+ - lib/spark_api/models/base.rb
280
+ - lib/spark_api/models/comment.rb
281
+ - lib/spark_api/models/concerns.rb
282
+ - lib/spark_api/models/concerns/destroyable.rb
283
+ - lib/spark_api/models/concerns/savable.rb
284
+ - lib/spark_api/models/connect_prefs.rb
320
285
  - lib/spark_api/models/constraint.rb
286
+ - lib/spark_api/models/contact.rb
287
+ - lib/spark_api/models/custom_fields.rb
288
+ - lib/spark_api/models/dirty.rb
289
+ - lib/spark_api/models/document.rb
290
+ - lib/spark_api/models/fields.rb
321
291
  - lib/spark_api/models/finders.rb
322
- - lib/spark_api/models/shared_listing.rb
323
- - lib/spark_api/models/account.rb
324
- - lib/spark_api/models/subresource.rb
325
- - lib/spark_api/models/portal.rb
326
- - lib/spark_api/models/connect_prefs.rb
327
292
  - lib/spark_api/models/idx_link.rb
328
- - lib/spark_api/models/video.rb
329
- - lib/spark_api/models/property_types.rb
330
- - lib/spark_api/models/virtual_tour.rb
331
- - lib/spark_api/models/message.rb
332
- - lib/spark_api/models/listing_cart.rb
333
- - lib/spark_api/models/standard_fields.rb
334
- - lib/spark_api/models/open_house.rb
335
- - lib/spark_api/models/saved_search.rb
336
- - lib/spark_api/models/vow_account.rb
337
293
  - lib/spark_api/models/listing.rb
338
- - lib/spark_api/models/base.rb
339
- - lib/spark_api/models/fields.rb
340
- - lib/spark_api/models/system_info.rb
341
- - lib/spark_api/models/document.rb
342
- - lib/spark_api/models/newsfeed.rb
343
- - lib/spark_api/models/comment.rb
294
+ - lib/spark_api/models/listing_cart.rb
344
295
  - lib/spark_api/models/market_statistics.rb
345
- - lib/spark_api/models/photo.rb
296
+ - lib/spark_api/models/message.rb
297
+ - lib/spark_api/models/newsfeed.rb
298
+ - lib/spark_api/models/note.rb
346
299
  - lib/spark_api/models/notification.rb
347
- - lib/spark_api/models/concerns/destroyable.rb
348
- - lib/spark_api/models/concerns/savable.rb
300
+ - lib/spark_api/models/open_house.rb
301
+ - lib/spark_api/models/photo.rb
302
+ - lib/spark_api/models/portal.rb
303
+ - lib/spark_api/models/property_types.rb
304
+ - lib/spark_api/models/rental_calendar.rb
305
+ - lib/spark_api/models/saved_search.rb
349
306
  - lib/spark_api/models/search_template/quick_search.rb
350
- - lib/spark_api/models/contact.rb
307
+ - lib/spark_api/models/shared_listing.rb
308
+ - lib/spark_api/models/standard_fields.rb
309
+ - lib/spark_api/models/subresource.rb
310
+ - lib/spark_api/models/system_info.rb
351
311
  - lib/spark_api/models/tour_of_home.rb
352
- - lib/spark_api/models/rental_calendar.rb
353
- - lib/spark_api/models/custom_fields.rb
354
- - lib/spark_api/authentication.rb
355
- - script/console
312
+ - lib/spark_api/models/video.rb
313
+ - lib/spark_api/models/virtual_tour.rb
314
+ - lib/spark_api/models/vow_account.rb
315
+ - lib/spark_api/multi_client.rb
316
+ - lib/spark_api/options_hash.rb
317
+ - lib/spark_api/paginate.rb
318
+ - lib/spark_api/primary_array.rb
319
+ - lib/spark_api/request.rb
320
+ - lib/spark_api/response.rb
321
+ - lib/spark_api/version.rb
356
322
  - script/combined_flow_example.rb
323
+ - script/console
357
324
  - script/example.rb
358
325
  - script/oauth2_example.rb
359
- - spec/fixtures/generic_delete.json
360
- - spec/fixtures/oauth2/refresh_body.json
361
- - spec/fixtures/oauth2/access.json
362
- - spec/fixtures/oauth2/authorization_code_body.json
363
- - spec/fixtures/oauth2/access_with_old_refresh.json
364
- - spec/fixtures/oauth2/access_with_refresh.json
365
- - spec/fixtures/oauth2/error.json
366
- - spec/fixtures/oauth2/password_body.json
367
- - spec/fixtures/fields/order_a.json
368
- - spec/fixtures/fields/order.json
369
- - spec/fixtures/success.json
370
- - spec/fixtures/session.json
371
- - spec/fixtures/oauth2_error.json
372
- - spec/fixtures/base.json
373
- - spec/fixtures/idx_links/get.json
374
- - spec/fixtures/authentication_failure.json
375
- - spec/fixtures/standardfields/nearby.json
376
- - spec/fixtures/standardfields/city.json
377
- - spec/fixtures/standardfields/standardfields.json
378
- - spec/fixtures/standardfields/stateorprovince.json
379
- - spec/fixtures/finders.json
380
- - spec/fixtures/notes/agent_shared_empty.json
381
- - spec/fixtures/notes/new.json
382
- - spec/fixtures/notes/add.json
383
- - spec/fixtures/notes/agent_shared.json
384
- - spec/fixtures/accounts/office.json
385
326
  - spec/fixtures/accounts/all.json
386
- - spec/fixtures/accounts/my_save.json
387
327
  - spec/fixtures/accounts/my.json
388
328
  - spec/fixtures/accounts/my_portal.json
389
- - spec/fixtures/accounts/password_save.json
390
329
  - spec/fixtures/accounts/my_put.json
330
+ - spec/fixtures/accounts/my_save.json
331
+ - spec/fixtures/accounts/office.json
332
+ - spec/fixtures/accounts/password_save.json
333
+ - spec/fixtures/activities/get.json
334
+ - spec/fixtures/authentication_failure.json
335
+ - spec/fixtures/base.json
336
+ - spec/fixtures/comments/get.json
337
+ - spec/fixtures/comments/new.json
338
+ - spec/fixtures/comments/post.json
339
+ - spec/fixtures/contacts/contacts.json
340
+ - spec/fixtures/contacts/my.json
341
+ - spec/fixtures/contacts/new.json
342
+ - spec/fixtures/contacts/new_empty.json
343
+ - spec/fixtures/contacts/new_notify.json
344
+ - spec/fixtures/contacts/post.json
345
+ - spec/fixtures/contacts/tags.json
346
+ - spec/fixtures/contacts/vow_accounts/edit.json
347
+ - spec/fixtures/contacts/vow_accounts/get.json
348
+ - spec/fixtures/contacts/vow_accounts/new.json
349
+ - spec/fixtures/contacts/vow_accounts/post.json
391
350
  - spec/fixtures/count.json
392
- - spec/fixtures/notifications/notifications.json
393
- - spec/fixtures/notifications/mark_read.json
394
- - spec/fixtures/notifications/post.json
395
- - spec/fixtures/notifications/new.json
396
- - spec/fixtures/notifications/new_empty.json
397
- - spec/fixtures/notifications/unread.json
398
- - spec/fixtures/search_templates/quick_searches/get.json
399
- - spec/fixtures/listing_carts/post.json
400
- - spec/fixtures/listing_carts/add_portal_cart_listings_post.json
401
- - spec/fixtures/listing_carts/post_portal_cart.json
351
+ - spec/fixtures/empty.json
352
+ - spec/fixtures/errors/expired.json
353
+ - spec/fixtures/errors/failure.json
354
+ - spec/fixtures/errors/failure_with_constraint.json
355
+ - spec/fixtures/errors/failure_with_msg.json
356
+ - spec/fixtures/fields/order.json
357
+ - spec/fixtures/fields/order_a.json
358
+ - spec/fixtures/finders.json
359
+ - spec/fixtures/generic_delete.json
360
+ - spec/fixtures/generic_failure.json
361
+ - spec/fixtures/idx_links/get.json
362
+ - spec/fixtures/listing_carts/add_listing.json
402
363
  - spec/fixtures/listing_carts/add_listing_post.json
403
364
  - spec/fixtures/listing_carts/add_portal_cart_listings.json
365
+ - spec/fixtures/listing_carts/add_portal_cart_listings_post.json
404
366
  - spec/fixtures/listing_carts/empty.json
405
- - spec/fixtures/listing_carts/add_listing.json
406
- - spec/fixtures/listing_carts/put.json
407
- - spec/fixtures/listing_carts/new.json
408
- - spec/fixtures/listing_carts/remove_listing.json
409
- - spec/fixtures/listing_carts/listing_portal_cart.json
410
367
  - spec/fixtures/listing_carts/listing_cart.json
368
+ - spec/fixtures/listing_carts/listing_portal_cart.json
369
+ - spec/fixtures/listing_carts/new.json
411
370
  - spec/fixtures/listing_carts/new_portal_cart.json
412
- - spec/fixtures/listing_carts/put_name.json
371
+ - spec/fixtures/listing_carts/post.json
372
+ - spec/fixtures/listing_carts/post_portal_cart.json
373
+ - spec/fixtures/listing_carts/put.json
413
374
  - spec/fixtures/listing_carts/put_ids.json
414
- - spec/fixtures/activities/get.json
415
- - spec/fixtures/errors/expired.json
416
- - spec/fixtures/errors/failure_with_msg.json
417
- - spec/fixtures/errors/failure.json
418
- - spec/fixtures/errors/failure_with_constraint.json
419
- - spec/fixtures/newsfeeds/inactive.json
420
- - spec/fixtures/newsfeeds/get.json
421
- - spec/fixtures/property_types/property_types.json
422
- - spec/fixtures/empty.json
423
- - spec/fixtures/logo_fbs.png
424
- - spec/fixtures/comments/post.json
425
- - spec/fixtures/comments/new.json
426
- - spec/fixtures/comments/get.json
427
- - spec/fixtures/saved_searches/post.json
428
- - spec/fixtures/saved_searches/update.json
429
- - spec/fixtures/saved_searches/new.json
430
- - spec/fixtures/saved_searches/with_newsfeed.json
431
- - spec/fixtures/saved_searches/get.json
432
- - spec/fixtures/saved_searches/with_inactive_newsfeed.json
433
- - spec/fixtures/messages/post.json
434
- - spec/fixtures/messages/new_with_recipients.json
435
- - spec/fixtures/messages/new.json
436
- - spec/fixtures/messages/new_empty.json
375
+ - spec/fixtures/listing_carts/put_name.json
376
+ - spec/fixtures/listing_carts/remove_listing.json
437
377
  - spec/fixtures/listings/constraints.json
438
- - spec/fixtures/listings/tour_of_homes_search.json
439
- - spec/fixtures/listings/tour_of_homes.json
440
- - spec/fixtures/listings/no_subresources.json
441
- - spec/fixtures/listings/with_vtour.json
442
- - spec/fixtures/listings/multiple.json
443
- - spec/fixtures/listings/with_documents.json
444
- - spec/fixtures/listings/with_supplement.json
445
- - spec/fixtures/listings/rental_calendar.json
446
- - spec/fixtures/listings/with_rental_calendar.json
447
- - spec/fixtures/listings/put.json
448
- - spec/fixtures/listings/with_permissions.json
449
- - spec/fixtures/listings/with_videos.json
450
- - spec/fixtures/listings/shared_listing_get.json
451
- - spec/fixtures/listings/shared_listing_post.json
452
- - spec/fixtures/listings/shared_listing_new.json
378
+ - spec/fixtures/listings/constraints_with_pagination.json
453
379
  - spec/fixtures/listings/document_index.json
454
- - spec/fixtures/listings/photos/post.json
380
+ - spec/fixtures/listings/multiple.json
381
+ - spec/fixtures/listings/no_subresources.json
382
+ - spec/fixtures/listings/open_houses.json
455
383
  - spec/fixtures/listings/photos/index.json
456
384
  - spec/fixtures/listings/photos/new.json
385
+ - spec/fixtures/listings/photos/post.json
457
386
  - spec/fixtures/listings/photos/rollback.json
458
387
  - spec/fixtures/listings/photos/rotate.json
388
+ - spec/fixtures/listings/put.json
459
389
  - spec/fixtures/listings/put_expiration_date.json
460
- - spec/fixtures/listings/with_photos.json
461
- - spec/fixtures/listings/open_houses.json
462
- - spec/fixtures/listings/virtual_tours_index.json
463
- - spec/fixtures/listings/constraints_with_pagination.json
390
+ - spec/fixtures/listings/rental_calendar.json
391
+ - spec/fixtures/listings/shared_listing_get.json
392
+ - spec/fixtures/listings/shared_listing_new.json
393
+ - spec/fixtures/listings/shared_listing_post.json
394
+ - spec/fixtures/listings/tour_of_homes.json
395
+ - spec/fixtures/listings/tour_of_homes_search.json
464
396
  - spec/fixtures/listings/videos_index.json
397
+ - spec/fixtures/listings/virtual_tours_index.json
398
+ - spec/fixtures/listings/with_documents.json
399
+ - spec/fixtures/listings/with_permissions.json
400
+ - spec/fixtures/listings/with_photos.json
401
+ - spec/fixtures/listings/with_rental_calendar.json
402
+ - spec/fixtures/listings/with_supplement.json
403
+ - spec/fixtures/listings/with_videos.json
404
+ - spec/fixtures/listings/with_vtour.json
405
+ - spec/fixtures/logo_fbs.png
406
+ - spec/fixtures/messages/get.json
407
+ - spec/fixtures/messages/new.json
408
+ - spec/fixtures/messages/new_empty.json
409
+ - spec/fixtures/messages/new_with_recipients.json
410
+ - spec/fixtures/messages/post.json
411
+ - spec/fixtures/newsfeeds/get.json
412
+ - spec/fixtures/newsfeeds/inactive.json
465
413
  - spec/fixtures/no_results.json
414
+ - spec/fixtures/notes/add.json
415
+ - spec/fixtures/notes/agent_shared.json
416
+ - spec/fixtures/notes/agent_shared_empty.json
417
+ - spec/fixtures/notes/new.json
418
+ - spec/fixtures/notifications/mark_read.json
419
+ - spec/fixtures/notifications/new.json
420
+ - spec/fixtures/notifications/new_empty.json
421
+ - spec/fixtures/notifications/notifications.json
422
+ - spec/fixtures/notifications/post.json
423
+ - spec/fixtures/notifications/unread.json
424
+ - spec/fixtures/oauth2/access.json
425
+ - spec/fixtures/oauth2/access_with_old_refresh.json
426
+ - spec/fixtures/oauth2/access_with_refresh.json
427
+ - spec/fixtures/oauth2/authorization_code_body.json
428
+ - spec/fixtures/oauth2/error.json
429
+ - spec/fixtures/oauth2/password_body.json
430
+ - spec/fixtures/oauth2/refresh_body.json
431
+ - spec/fixtures/oauth2_error.json
432
+ - spec/fixtures/portal/disable.json
433
+ - spec/fixtures/portal/enable.json
466
434
  - spec/fixtures/portal/my.json
467
435
  - spec/fixtures/portal/my_non_existant.json
468
- - spec/fixtures/portal/post.json
469
- - spec/fixtures/portal/enable.json
470
436
  - spec/fixtures/portal/new.json
471
- - spec/fixtures/portal/disable.json
472
- - spec/fixtures/contacts/contacts.json
473
- - spec/fixtures/contacts/vow_accounts/edit.json
474
- - spec/fixtures/contacts/vow_accounts/post.json
475
- - spec/fixtures/contacts/vow_accounts/new.json
476
- - spec/fixtures/contacts/vow_accounts/get.json
477
- - spec/fixtures/contacts/my.json
478
- - spec/fixtures/contacts/post.json
479
- - spec/fixtures/contacts/new_notify.json
480
- - spec/fixtures/contacts/new.json
481
- - spec/fixtures/contacts/new_empty.json
482
- - spec/fixtures/contacts/tags.json
483
- - spec/fixtures/generic_failure.json
484
- - spec/unit/spark_api/paginate_spec.rb
485
- - spec/unit/spark_api/primary_array_spec.rb
486
- - spec/unit/spark_api/configuration/yaml_spec.rb
487
- - spec/unit/spark_api/options_hash_spec.rb
488
- - spec/unit/spark_api/faraday_middleware_spec.rb
489
- - spec/unit/spark_api/authentication_spec.rb
490
- - spec/unit/spark_api/multi_client_spec.rb
437
+ - spec/fixtures/portal/post.json
438
+ - spec/fixtures/property_types/property_types.json
439
+ - spec/fixtures/saved_searches/get.json
440
+ - spec/fixtures/saved_searches/new.json
441
+ - spec/fixtures/saved_searches/post.json
442
+ - spec/fixtures/saved_searches/update.json
443
+ - spec/fixtures/saved_searches/with_inactive_newsfeed.json
444
+ - spec/fixtures/saved_searches/with_newsfeed.json
445
+ - spec/fixtures/search_templates/quick_searches/get.json
446
+ - spec/fixtures/session.json
447
+ - spec/fixtures/standardfields/city.json
448
+ - spec/fixtures/standardfields/nearby.json
449
+ - spec/fixtures/standardfields/standardfields.json
450
+ - spec/fixtures/standardfields/stateorprovince.json
451
+ - spec/fixtures/success.json
452
+ - spec/spec_helper.rb
491
453
  - spec/unit/spark_api/authentication/api_auth_spec.rb
454
+ - spec/unit/spark_api/authentication/base_auth_spec.rb
492
455
  - spec/unit/spark_api/authentication/oauth2_impl/faraday_middleware_spec.rb
493
- - spec/unit/spark_api/authentication/oauth2_impl/single_session_provider_spec.rb
494
456
  - spec/unit/spark_api/authentication/oauth2_impl/grant_type_base_spec.rb
457
+ - spec/unit/spark_api/authentication/oauth2_impl/single_session_provider_spec.rb
495
458
  - spec/unit/spark_api/authentication/oauth2_spec.rb
496
- - spec/unit/spark_api/authentication/base_auth_spec.rb
459
+ - spec/unit/spark_api/authentication_spec.rb
460
+ - spec/unit/spark_api/configuration/yaml_spec.rb
497
461
  - spec/unit/spark_api/configuration_spec.rb
498
- - spec/unit/spark_api/request_spec.rb
499
- - spec/unit/spark_api/models/open_house_spec.rb
500
- - spec/unit/spark_api/models/document_spec.rb
501
- - spec/unit/spark_api/models/system_info_spec.rb
502
- - spec/unit/spark_api/models/virtual_tour_spec.rb
503
- - spec/unit/spark_api/models/rental_calendar_spec.rb
504
- - spec/unit/spark_api/models/listing_cart_spec.rb
462
+ - spec/unit/spark_api/faraday_middleware_spec.rb
463
+ - spec/unit/spark_api/models/account_spec.rb
464
+ - spec/unit/spark_api/models/activity_spec.rb
465
+ - spec/unit/spark_api/models/base_spec.rb
466
+ - spec/unit/spark_api/models/concerns/destroyable_spec.rb
467
+ - spec/unit/spark_api/models/concerns/savable_spec.rb
468
+ - spec/unit/spark_api/models/connect_prefs_spec.rb
469
+ - spec/unit/spark_api/models/constraint_spec.rb
470
+ - spec/unit/spark_api/models/contact_spec.rb
505
471
  - spec/unit/spark_api/models/dirty_spec.rb
506
- - spec/unit/spark_api/models/standard_fields_spec.rb
507
- - spec/unit/spark_api/models/shared_listing_spec.rb
472
+ - spec/unit/spark_api/models/document_spec.rb
473
+ - spec/unit/spark_api/models/fields_spec.rb
508
474
  - spec/unit/spark_api/models/finders_spec.rb
509
- - spec/unit/spark_api/models/account_spec.rb
475
+ - spec/unit/spark_api/models/idx_link_spec.rb
476
+ - spec/unit/spark_api/models/listing_cart_spec.rb
510
477
  - spec/unit/spark_api/models/listing_spec.rb
511
- - spec/unit/spark_api/models/video_spec.rb
512
- - spec/unit/spark_api/models/saved_search_spec.rb
513
- - spec/unit/spark_api/models/contact_spec.rb
514
- - spec/unit/spark_api/models/portal_spec.rb
515
478
  - spec/unit/spark_api/models/message_spec.rb
516
- - spec/unit/spark_api/models/constraint_spec.rb
517
- - spec/unit/spark_api/models/tour_of_home_spec.rb
518
- - spec/unit/spark_api/models/photo_spec.rb
519
- - spec/unit/spark_api/models/notification_spec.rb
520
- - spec/unit/spark_api/models/note_spec.rb
521
- - spec/unit/spark_api/models/connect_prefs_spec.rb
522
479
  - spec/unit/spark_api/models/newsfeed_spec.rb
523
- - spec/unit/spark_api/models/fields_spec.rb
524
- - spec/unit/spark_api/models/concerns/destroyable_spec.rb
525
- - spec/unit/spark_api/models/concerns/savable_spec.rb
526
- - spec/unit/spark_api/models/search_template/quick_search_spec.rb
480
+ - spec/unit/spark_api/models/note_spec.rb
481
+ - spec/unit/spark_api/models/notification_spec.rb
482
+ - spec/unit/spark_api/models/open_house_spec.rb
483
+ - spec/unit/spark_api/models/photo_spec.rb
484
+ - spec/unit/spark_api/models/portal_spec.rb
527
485
  - spec/unit/spark_api/models/property_types_spec.rb
528
- - spec/unit/spark_api/models/base_spec.rb
486
+ - spec/unit/spark_api/models/rental_calendar_spec.rb
487
+ - spec/unit/spark_api/models/saved_search_spec.rb
488
+ - spec/unit/spark_api/models/search_template/quick_search_spec.rb
489
+ - spec/unit/spark_api/models/shared_listing_spec.rb
490
+ - spec/unit/spark_api/models/standard_fields_spec.rb
529
491
  - spec/unit/spark_api/models/subresource_spec.rb
530
- - spec/unit/spark_api/models/idx_link_spec.rb
492
+ - spec/unit/spark_api/models/system_info_spec.rb
493
+ - spec/unit/spark_api/models/tour_of_home_spec.rb
494
+ - spec/unit/spark_api/models/video_spec.rb
495
+ - spec/unit/spark_api/models/virtual_tour_spec.rb
531
496
  - spec/unit/spark_api/models/vow_account_spec.rb
532
- - spec/unit/spark_api/models/activity_spec.rb
497
+ - spec/unit/spark_api/multi_client_spec.rb
498
+ - spec/unit/spark_api/options_hash_spec.rb
499
+ - spec/unit/spark_api/paginate_spec.rb
500
+ - spec/unit/spark_api/primary_array_spec.rb
501
+ - spec/unit/spark_api/request_spec.rb
533
502
  - spec/unit/spark_api_spec.rb
534
- - spec/spec_helper.rb
535
503
  homepage: https://github.com/sparkapi/spark_api
536
- licenses:
504
+ licenses:
537
505
  - Apache 2.0
506
+ metadata: {}
538
507
  post_install_message:
539
508
  rdoc_options: []
540
-
541
- require_paths:
509
+ require_paths:
542
510
  - lib
543
- required_ruby_version: !ruby/object:Gem::Requirement
544
- none: false
545
- requirements:
546
- - - ">="
547
- - !ruby/object:Gem::Version
548
- hash: 3
549
- segments:
550
- - 0
551
- version: "0"
552
- required_rubygems_version: !ruby/object:Gem::Requirement
553
- none: false
554
- requirements:
555
- - - ">="
556
- - !ruby/object:Gem::Version
557
- hash: 31
558
- segments:
559
- - 1
560
- - 8
561
- version: "1.8"
511
+ required_ruby_version: !ruby/object:Gem::Requirement
512
+ requirements:
513
+ - - ! '>='
514
+ - !ruby/object:Gem::Version
515
+ version: '0'
516
+ required_rubygems_version: !ruby/object:Gem::Requirement
517
+ requirements:
518
+ - - ! '>='
519
+ - !ruby/object:Gem::Version
520
+ version: '1.8'
562
521
  requirements: []
563
-
564
522
  rubyforge_project: spark_api
565
- rubygems_version: 1.8.24
523
+ rubygems_version: 2.2.1
566
524
  signing_key:
567
- specification_version: 3
525
+ specification_version: 4
568
526
  summary: A library for interacting with the Spark web services.
569
- test_files:
527
+ test_files:
570
528
  - spec/fixtures/generic_delete.json
571
529
  - spec/fixtures/oauth2/refresh_body.json
572
530
  - spec/fixtures/oauth2/access.json
@@ -645,6 +603,7 @@ test_files:
645
603
  - spec/fixtures/messages/new_with_recipients.json
646
604
  - spec/fixtures/messages/new.json
647
605
  - spec/fixtures/messages/new_empty.json
606
+ - spec/fixtures/messages/get.json
648
607
  - spec/fixtures/listings/constraints.json
649
608
  - spec/fixtures/listings/tour_of_homes_search.json
650
609
  - spec/fixtures/listings/tour_of_homes.json