spark_api 1.3.13 → 1.3.14

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2c549611eb2302c2fea482ff4664d60f0a26329a
4
- data.tar.gz: 2376686aca2a53c0001a530bf974a78bd692d519
3
+ metadata.gz: 2cc36316e46c3d4eed71335e4cb11a78df3cdc95
4
+ data.tar.gz: c3a77a5ff07892b4fa5fa05ea9c7ed4c5bda3587
5
5
  SHA512:
6
- metadata.gz: c17900a8ba4357e97d98dfce22a1109b28cf4ac1e5288ad28c5a226664579d1d8e962b682ece9ccb6de0273c74ff13555d1fbcf759cb4d34e2e58f687713bd27
7
- data.tar.gz: 2dd720f1ce4099fe2d2d35d45655f41f22df0da3f3cbaf9e05543d951bf4e115d5c49300a0aba27d074a6a1eedd0bc9442acf38e6e287011702adb961a35350c
6
+ metadata.gz: 664963b48215cc6f186a6410a88d3128a7e22c2b8add74aebb00c9a614494511c732102a6886bd277697e361e55ab567e25c20d4f945e79d890033df4bdc284a
7
+ data.tar.gz: 60690df54e311cc30a262c448adb324c09d33fbbdb1a8b091905551c746b11b58858be24cf1d41e4e511fb594b778a464378658f4ec40997cf4916519a44d653
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.3.13
1
+ 1.3.14
@@ -10,9 +10,6 @@ module SparkApi
10
10
  def ViewId=(id)
11
11
  attributes["ViewId"] = id
12
12
  end
13
- def ReportId=(id)
14
- attributes["ReportId"] = id
15
- end
16
13
 
17
14
  def save(arguments={})
18
15
  begin
@@ -27,7 +24,10 @@ module SparkApi
27
24
  def save!(arguments={})
28
25
  results = connection.post self.class.path, attributes, arguments
29
26
  result = results.first
27
+ attributes['Id'] = result['Id']
28
+ attributes['Mode'] = result['Mode']
30
29
  attributes['ResourceUri'] = result['ResourceUri']
30
+ attributes['SharedUri'] = result['SharedUri']
31
31
  true
32
32
  end
33
33
  end
@@ -3,8 +3,11 @@
3
3
  "Success": true,
4
4
  "Results": [
5
5
  {
6
- "ResourceUri": "http://www.flexmls.com/share/15Ar/3544-N-Olsen-Avenue-Tucson-AZ-85719"
6
+ "ResourceUri": "/v1/sharedlistings/15Ar",
7
+ "SharedUri": "http://www.flexmls.com/share/15Ar/3544-N-Olsen-Avenue-Tucson-AZ-85719",
8
+ "Mode": "Public",
9
+ "Id": "15Ar"
7
10
  }
8
11
  ]
9
12
  }
10
- }
13
+ }
@@ -16,7 +16,10 @@ describe SharedListing do
16
16
  subject.ListingIds = ["20110224152431857619000000","20110125122333785431000000"]
17
17
  subject.ViewId = "20080125122333787615000000"
18
18
  subject.save.should be(true)
19
- subject.ResourceUri.should eq("http://www.flexmls.com/share/15Ar/3544-N-Olsen-Avenue-Tucson-AZ-85719")
19
+ subject.Id.should eq("15Ar")
20
+ subject.Mode.should eq("Public")
21
+ subject.ResourceUri.should eq("/v1/sharedlistings/15Ar")
22
+ subject.SharedUri.should eq("http://www.flexmls.com/share/15Ar/3544-N-Olsen-Avenue-Tucson-AZ-85719")
20
23
  end
21
24
 
22
25
  on_post_it "should fail creating" do
@@ -37,6 +40,7 @@ describe SharedListing do
37
40
 
38
41
  shared = SharedListing.find(shared_id)
39
42
  shared.should respond_to('SharedUri')
43
+ shared.should respond_to('Mode')
40
44
  shared.Mode.should eq('Public')
41
45
  shared.ListingIds.should be_an(Array)
42
46
  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.3.13
4
+ version: 1.3.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brandon Hornseth
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2014-05-20 00:00:00 Z
13
+ date: 2014-06-19 00:00:00 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: faraday