livefyre 1.1.3 → 1.1.4
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 +8 -8
- data/CHANGELOG +3 -0
- data/lib/livefyre/core.rb +1 -4
- data/lib/livefyre/version.rb +1 -1
- data/spec/livefyre/core_spec.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
YWNlMjA0YzI2MmY2MTE4ZDVjODFhMmIyOWU4NGQ4MjY5NDBlMGQ2ZQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
YmNkMGRkZWE5MDY3N2Y1NmM2MDI2NzFiNjg0ZjcwMTkxMTA0NDAyOQ==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
ZmY0ODM1ZmZiMzk1Y2EwNzJmMmFjY2MwMTc2ZDc2NTY2MjlhNTFjZDI3YmE4
|
10
|
+
ZjcwNDI2NWQxMzkwZjZmNDJlOTk0YWJhMzZiMTEyMjhjZDUwZjc0MGMwN2Mz
|
11
|
+
NDNiMmJlOTFlZmVlYWVhYjE0MWFmNzYyMmMwOWY3M2E0ZDdkMDE=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
MDRlYmJjN2U5MWExNmUyZWI4ZDUzYmYyYmU4ZDliMGIxMzdhM2Y4YWIwZjg1
|
14
|
+
NjkyNzZmYWRkM2E0ZTg0ZGRhNWM2NTQ5MDVkZTU3ZjM0ZDQ4NjkyYTQ5ZGJm
|
15
|
+
OTRhM2ZlZTUzZDg0MjBmZWU4NzQ3OThjZDBmNzhhZjNkNDFjYjg=
|
data/CHANGELOG
ADDED
data/lib/livefyre/core.rb
CHANGED
@@ -63,8 +63,7 @@ module Livefyre
|
|
63
63
|
end
|
64
64
|
|
65
65
|
class Site
|
66
|
-
TYPE = ['reviews', 'sidenotes']
|
67
|
-
STREAM_TYPE = ['liveblog', 'livechat', 'livecomments']
|
66
|
+
TYPE = ['reviews', 'sidenotes', 'ratings', 'counting', 'liveblog', 'livechat', 'livecomments']
|
68
67
|
|
69
68
|
def initialize(network_name, site_id, site_key)
|
70
69
|
@network_name = network_name
|
@@ -85,8 +84,6 @@ module Livefyre
|
|
85
84
|
if type
|
86
85
|
if TYPE.include? type
|
87
86
|
collection_meta[:type] = type
|
88
|
-
elsif STREAM_TYPE.include? type
|
89
|
-
collection_meta[:stream_type] = type
|
90
87
|
else
|
91
88
|
raise ArgumentError, 'type is not a recognized type. should be liveblog, livechat, livecomments, reviews, sidenotes, or an empty string'
|
92
89
|
end
|
data/lib/livefyre/version.rb
CHANGED
data/spec/livefyre/core_spec.rb
CHANGED
@@ -47,7 +47,7 @@ describe Livefyre::Network::Site do
|
|
47
47
|
@token = @site.build_collection_meta_token('', '', 'http://livefyre.com', '', 'liveblog')
|
48
48
|
@decoded = JWT.decode(@token, 'siteKey')
|
49
49
|
|
50
|
-
expect(@decoded['
|
50
|
+
expect(@decoded['type']).to eq('liveblog')
|
51
51
|
end
|
52
52
|
|
53
53
|
it 'should return a collection meta token' do
|
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: 1.1.
|
4
|
+
version: 1.1.4
|
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
|
+
date: 2014-05-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -126,6 +126,7 @@ extensions: []
|
|
126
126
|
extra_rdoc_files: []
|
127
127
|
files:
|
128
128
|
- .gitignore
|
129
|
+
- CHANGELOG
|
129
130
|
- Gemfile
|
130
131
|
- LICENSE.txt
|
131
132
|
- README.md
|