chili_player 0.1.4 → 0.2.0
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 +5 -5
- data/.gitignore +2 -1
- data/README.md +1 -1
- data/lib/chili_player/init.rb +6 -2
- data/lib/chili_player/version.rb +4 -2
- metadata +3 -4
- data/.DS_Store +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: a417fc94e37e4d900f45335ef3b126a74e27d3479b8410fe779fdc25c5fedcee
|
4
|
+
data.tar.gz: f7694b2c9293b3dab7e2c57c5fde6dce6bf5dd9ac0ad4208fe98e24b89c36f3e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b2c3ae3bb167efc949eb6cf643ef7bf0b9a05b8b9002627209938ee155167706b1bd2fd704949267d3cd90bf570e625bfc50cd1aef62fbf2ae919c1d67f54146
|
7
|
+
data.tar.gz: bb243d4186a22cb770d10ce7c30a0317e63578e2862fe22221aba624f7ccc4e9ba949e2ea9644abd79d7f6b175243f5821c09773ba6efce3f66af8998adbedf2
|
data/.gitignore
CHANGED
data/README.md
CHANGED
@@ -56,7 +56,7 @@ This method returns all information displayed at 'Get a specific video' topic.
|
|
56
56
|
### Update video
|
57
57
|
In order to update a video, you must pass as parameters the video's id and also optional parameters such as: name, postback_url, preserve_original_file, activated, watermark_image_url, watermark_link, watermark_position, wartermark_start, watermark_duration. When you update the video, you cannot change the video's file.
|
58
58
|
|
59
|
-
response = client.
|
59
|
+
response = client.update(video_id, video_optional_params)
|
60
60
|
|
61
61
|
This method returns all information displayed at 'Get a specific video' topic.
|
62
62
|
|
data/lib/chili_player/init.rb
CHANGED
@@ -11,15 +11,19 @@ class Player
|
|
11
11
|
|
12
12
|
def initialize(options = {})
|
13
13
|
instance_variable_set('@token', options)
|
14
|
+
instance_variable_set('@external_id', options)
|
14
15
|
end
|
15
16
|
|
16
17
|
private
|
17
18
|
|
18
19
|
def header_request
|
19
|
-
{
|
20
|
+
{
|
21
|
+
token: @token.to_s,
|
22
|
+
'external-id' => @external_id.to_s
|
23
|
+
}
|
20
24
|
end
|
21
25
|
|
22
26
|
def endpoint_url
|
23
|
-
ChiliPlayer::
|
27
|
+
ChiliPlayer::ALLOWED_URLS.include?(@url) ? @url : ChiliPlayer::DEFAULT_URL
|
24
28
|
end
|
25
29
|
end
|
data/lib/chili_player/version.rb
CHANGED
@@ -1,4 +1,6 @@
|
|
1
1
|
module ChiliPlayer
|
2
|
-
VERSION = '0.
|
3
|
-
|
2
|
+
VERSION = '0.2.0'.freeze
|
3
|
+
ALLOWED_URLS = ['https://player.chiligumvideos.com/api/videos/',
|
4
|
+
'https://staging.player.chiligumvideos.com/api/videos/'].freeze
|
5
|
+
DEFAULT_URL = 'https://player.chiligumvideos.com/api/videos/'.freeze
|
4
6
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: chili_player
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Guilherme Casimiro
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-03-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: coveralls
|
@@ -87,7 +87,6 @@ executables: []
|
|
87
87
|
extensions: []
|
88
88
|
extra_rdoc_files: []
|
89
89
|
files:
|
90
|
-
- ".DS_Store"
|
91
90
|
- ".gitignore"
|
92
91
|
- ".travis.yml"
|
93
92
|
- CODE_OF_CONDUCT.md
|
@@ -125,7 +124,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
125
124
|
version: '0'
|
126
125
|
requirements: []
|
127
126
|
rubyforge_project:
|
128
|
-
rubygems_version: 2.
|
127
|
+
rubygems_version: 2.7.10
|
129
128
|
signing_key:
|
130
129
|
specification_version: 4
|
131
130
|
summary: Chili Gum Player API.
|
data/.DS_Store
DELETED
Binary file
|