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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 3e25bc13323d11d4263d32f9acb851af4d5079d6
4
- data.tar.gz: f74e8d89ed8f693873b8990e35b37ee1879ac4fb
2
+ SHA256:
3
+ metadata.gz: a417fc94e37e4d900f45335ef3b126a74e27d3479b8410fe779fdc25c5fedcee
4
+ data.tar.gz: f7694b2c9293b3dab7e2c57c5fde6dce6bf5dd9ac0ad4208fe98e24b89c36f3e
5
5
  SHA512:
6
- metadata.gz: 9e93b3e77a55362e90a7879a500d87f47f67dd07d6e445ef8840b743c2f7cafd49f2d4444d2bfb4edb6c8415f23f7233026b69571bf611bc387c6ece8dee2113
7
- data.tar.gz: 0f528e79727f11ac6b685278b71de82588535c7023f60ac2162e27b41dc6746cd3a7314960f15b882343a188d0e9e12b29e27080ee98af7a281e989bc35ec619
6
+ metadata.gz: b2c3ae3bb167efc949eb6cf643ef7bf0b9a05b8b9002627209938ee155167706b1bd2fd704949267d3cd90bf570e625bfc50cd1aef62fbf2ae919c1d67f54146
7
+ data.tar.gz: bb243d4186a22cb770d10ce7c30a0317e63578e2862fe22221aba624f7ccc4e9ba949e2ea9644abd79d7f6b175243f5821c09773ba6efce3f66af8998adbedf2
data/.gitignore CHANGED
@@ -7,4 +7,5 @@
7
7
  /spec/reports/
8
8
  /tmp/
9
9
  /config/
10
- /.coveralls.yml
10
+ /.coveralls.yml
11
+ /.DS_Store
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.upload(video_id, video_optional_params)
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
 
@@ -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
- { token: @token }
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::ENDPOINT_URL
27
+ ChiliPlayer::ALLOWED_URLS.include?(@url) ? @url : ChiliPlayer::DEFAULT_URL
24
28
  end
25
29
  end
@@ -1,4 +1,6 @@
1
1
  module ChiliPlayer
2
- VERSION = '0.1.4'.freeze
3
- ENDPOINT_URL = 'https://player.chiligumvideos.com/api/videos/'.freeze
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.1.4
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: 2018-09-11 00:00:00.000000000 Z
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.6.14
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