wcc-media-client 0.3.7 → 0.3.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/wcc/media/client.rb +3 -1
- data/lib/wcc/media/playlist.rb +27 -0
- data/lib/wcc/media/version.rb +1 -1
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: af546b49bb12b5a071a1c813119cd096f20abc24
|
4
|
+
data.tar.gz: 10bb50350612f7d30bf13031b389511f34b9c917
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ac0427c7a791bb3207877505948093eb07f49d3f2ae18f7be00d56f7fc8f3c2fab039ed62c079e8db3102ef33c9e27322eda8fdbbe2795028e126afae6dc7eac
|
7
|
+
data.tar.gz: 7118ce170ea25a683f07bdf8e83254e4ee74a571d08a43f4a70d90901b188b3e377d649aaf2fcafeeffbb3b3ae26fe7092fce78fc9570ac0bfa2047e1f6410cf
|
data/lib/wcc/media/client.rb
CHANGED
@@ -3,6 +3,7 @@ require_relative 'message'
|
|
3
3
|
require_relative 'series'
|
4
4
|
require_relative 'speaker'
|
5
5
|
require_relative 'tag'
|
6
|
+
require_relative 'playlist'
|
6
7
|
require_relative 'client/response'
|
7
8
|
|
8
9
|
module WCC
|
@@ -29,7 +30,8 @@ module WCC
|
|
29
30
|
'messages' => WCC::Media::Message,
|
30
31
|
'series' => WCC::Media::Series,
|
31
32
|
'speakers' => WCC::Media::Speaker,
|
32
|
-
'tags' => WCC::Media::Tag
|
33
|
+
'tags' => WCC::Media::Tag,
|
34
|
+
'playlists' => WCC::Media::Playlist
|
33
35
|
}.freeze
|
34
36
|
attr_reader(*RESOURCES.keys)
|
35
37
|
|
@@ -0,0 +1,27 @@
|
|
1
|
+
require_relative 'base'
|
2
|
+
require_relative 'message'
|
3
|
+
|
4
|
+
class WCC::Media::Playlist < WCC::Media::Base
|
5
|
+
active_record_shim do
|
6
|
+
endpoint 'playlists'
|
7
|
+
end
|
8
|
+
|
9
|
+
class << self
|
10
|
+
# The Playlist route is only: :show
|
11
|
+
undef_method :find_all, :find_by
|
12
|
+
end
|
13
|
+
|
14
|
+
%w[
|
15
|
+
title
|
16
|
+
type
|
17
|
+
code
|
18
|
+
].each do |att|
|
19
|
+
define_method att do
|
20
|
+
raw[att]
|
21
|
+
end
|
22
|
+
end
|
23
|
+
|
24
|
+
def messages
|
25
|
+
(raw['messages'] || []).map { |val| WCC::Media::Message.new(val) }
|
26
|
+
end
|
27
|
+
end
|
data/lib/wcc/media/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: wcc-media-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Watermark Dev
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-05-
|
11
|
+
date: 2019-05-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: wcc-api
|
@@ -216,6 +216,7 @@ files:
|
|
216
216
|
- lib/wcc/media/client.rb
|
217
217
|
- lib/wcc/media/client/response.rb
|
218
218
|
- lib/wcc/media/message.rb
|
219
|
+
- lib/wcc/media/playlist.rb
|
219
220
|
- lib/wcc/media/series.rb
|
220
221
|
- lib/wcc/media/speaker.rb
|
221
222
|
- lib/wcc/media/tag.rb
|
@@ -243,7 +244,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
243
244
|
version: '0'
|
244
245
|
requirements: []
|
245
246
|
rubyforge_project:
|
246
|
-
rubygems_version: 2.
|
247
|
+
rubygems_version: 2.5.2
|
247
248
|
signing_key:
|
248
249
|
specification_version: 4
|
249
250
|
summary: ''
|