livefyre 2.0.0 → 2.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f06aa9e52cc7fc5fda39f58fa711a26bcf6e8a73
4
- data.tar.gz: 7ea049454d503278566baab91602b9dbd7aecec6
3
+ metadata.gz: 8c6945f16fc5007e1eacf3a6013ebd4b4f33683b
4
+ data.tar.gz: 1a6816b2c74e18df6f9b5d441ebc2b16b67839a7
5
5
  SHA512:
6
- metadata.gz: 01772d1963e0b7f0eaf7fc3f5fd125f87b707e29c9ee56fa81796428dd1d98901a30e501202cd1a5e8eb349d2c9803da4a914a40d49077ee2e59d2984ac95461
7
- data.tar.gz: 257d7ff4facaa56fcf536488fe334c6972b3160c8c9b457f8e285eed1e537b108ab461258c045f3e881dc6fd03b096fb789595977c056ab5462a4e1558f29305
6
+ metadata.gz: 2dfa0932c258931b1b35521180d987450a87d50ac4f0fd1fe52d56bd04b8c988e4c258265e02b772fca2d5d1c8c171327ce3aa265a099e3c956920b9d13bf744
7
+ data.tar.gz: 26643c903bc2958113165b44d5638d64cc7433c1e8d24cc1d51160744d8e88022736cd722d8e6b3081f96e4ce49653a68950cd0ab9fb87a0596c5ead5a2bc262
data/CHANGELOG CHANGED
@@ -1,3 +1,7 @@
1
+ === 2.0.1 2014-12-01
2
+
3
+ * Updated Collection.create_or_update to update collection id on update.
4
+
1
5
  === 2.0.0 2014-10-18
2
6
 
3
7
  * Added many more tests and test config.
@@ -32,6 +32,7 @@ module Livefyre
32
32
  elsif response.code == 409
33
33
  response = invoke_collection_api('update')
34
34
  if response.code == 200
35
+ @data.id = JSON.parse(response)['data']['collectionId']
35
36
  return self
36
37
  end
37
38
  end
@@ -1,3 +1,3 @@
1
1
  module Livefyre
2
- VERSION = '2.0.0'
2
+ VERSION = '2.0.1'
3
3
  end
@@ -86,5 +86,10 @@ describe Livefyre::Collection do
86
86
  collection.create_or_update
87
87
 
88
88
  expect(collection.data.id).to eq(content['collectionSettings']['collectionId'])
89
+
90
+ id = collection.data.id
91
+ collection.data.id = nil
92
+ collection.create_or_update
93
+ expect(collection.data.id).to eq(id)
89
94
  end
90
95
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: livefyre
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Livefyre
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-11-20 00:00:00.000000000 Z
11
+ date: 2014-12-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake