bitmovin-ruby 0.8.0 → 0.8.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: 6d5158ae62ce340766775af50ef91eaa53724c8d
4
- data.tar.gz: df6c0cf69b53d202545482deee685f6e987d9d84
3
+ metadata.gz: 990f40c9e63eb7c4aa70d05c10f0e12ac03b49df
4
+ data.tar.gz: 179c524a4a9da6125a26916914d73fc7759eb6a2
5
5
  SHA512:
6
- metadata.gz: 532b8f3cfebd756a9f907111d9eb5c5d00036d6b22e8c86b5732a929bb994eef7da154fbe9be892ed107ea10795555db69d1dda7e3621fa6306106bd9c8c414e
7
- data.tar.gz: e96fa927bf5d6723d5940d141d48c6e71c7c24498993f0331c7fbeca7a700bd15f8c3cc0ee208c5627f5d9990aa93f5af7173f6d29eccf1bcd041ab965de1415
6
+ metadata.gz: c6be1145f2647573a68a20430c3bc1c6bed9f0f122dab32d33006cbf41874de5bffa1f7b85d81dd13a2a479ef838d1bce5274496c6e0bb2424716d5fd6b4be04
7
+ data.tar.gz: 20bdb16e8a9bd40825adeff5874664a9f9c7e3ea0b53e3e3b122ae77332d6d142a16eb841a6e7208a5f1d89785cb54ae9817ca99a3e92ffdd0bc5a43a6a9189b
data/.gitignore CHANGED
@@ -13,3 +13,4 @@ delete.rb
13
13
  *.gem
14
14
  examples/*_customer.rb
15
15
  .idea
16
+ .vscode/
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- bitmovin-ruby (0.8.0)
4
+ bitmovin-ruby (0.8.1)
5
5
  activesupport (>= 4.0.0)
6
6
  faraday (~> 0.11.0)
7
7
  faraday_middleware (~> 0.11.0)
@@ -16,27 +16,28 @@ GEM
16
16
  minitest (~> 5.1)
17
17
  thread_safe (~> 0.3, >= 0.3.4)
18
18
  tzinfo (~> 1.1)
19
- addressable (2.5.0)
20
- public_suffix (~> 2.0, >= 2.0.2)
21
- codecov (0.1.10)
19
+ addressable (2.6.0)
20
+ public_suffix (>= 2.0.2, < 4.0)
21
+ codecov (0.1.14)
22
22
  json
23
23
  simplecov
24
24
  url
25
- coderay (1.1.1)
25
+ coderay (1.1.2)
26
+ concurrent-ruby (1.1.5)
26
27
  crack (0.4.3)
27
28
  safe_yaml (~> 1.0.0)
28
29
  diff-lcs (1.3)
29
- docile (1.1.5)
30
+ docile (1.3.2)
30
31
  faraday (0.11.0)
31
32
  multipart-post (>= 1.2, < 3)
32
33
  faraday_middleware (0.11.0.1)
33
34
  faraday (>= 0.7.4, < 1.0)
34
- ffi (1.9.18)
35
+ ffi (1.11.1)
35
36
  formatador (0.2.5)
36
- guard (2.14.1)
37
+ guard (2.15.0)
37
38
  formatador (>= 0.2.4)
38
39
  listen (>= 2.7, < 4.0)
39
- lumberjack (~> 1.0)
40
+ lumberjack (>= 1.0.12, < 2.0)
40
41
  nenv (~> 0.1)
41
42
  notiffany (~> 0.0)
42
43
  pry (>= 0.9.12)
@@ -47,64 +48,63 @@ GEM
47
48
  guard (~> 2.1)
48
49
  guard-compat (~> 1.1)
49
50
  rspec (>= 2.99.0, < 4.0)
50
- hashdiff (0.3.2)
51
+ hashdiff (1.0.0)
51
52
  httpclient (2.8.3)
52
- i18n (0.8.1)
53
+ i18n (0.9.5)
54
+ concurrent-ruby (~> 1.0)
53
55
  json (1.8.6)
54
56
  listen (3.1.5)
55
57
  rb-fsevent (~> 0.9, >= 0.9.4)
56
58
  rb-inotify (~> 0.9, >= 0.9.7)
57
59
  ruby_dep (~> 1.2)
58
- lumberjack (1.0.11)
59
- method_source (0.8.2)
60
- minitest (5.10.1)
61
- multipart-post (2.0.0)
60
+ lumberjack (1.0.13)
61
+ method_source (0.9.2)
62
+ minitest (5.11.3)
63
+ multipart-post (2.1.1)
62
64
  nenv (0.3.0)
63
- notiffany (0.1.1)
65
+ notiffany (0.1.3)
64
66
  nenv (~> 0.1)
65
67
  shellany (~> 0.0)
66
- pry (0.10.4)
68
+ pry (0.12.2)
67
69
  coderay (~> 1.1.0)
68
- method_source (~> 0.8.1)
69
- slop (~> 3.4)
70
- public_suffix (2.0.5)
70
+ method_source (~> 0.9.0)
71
+ public_suffix (3.1.1)
71
72
  rake (10.5.0)
72
- rb-fsevent (0.9.8)
73
- rb-inotify (0.9.8)
74
- ffi (>= 0.5.0)
75
- rspec (3.5.0)
76
- rspec-core (~> 3.5.0)
77
- rspec-expectations (~> 3.5.0)
78
- rspec-mocks (~> 3.5.0)
73
+ rb-fsevent (0.10.3)
74
+ rb-inotify (0.10.0)
75
+ ffi (~> 1.0)
76
+ rspec (3.8.0)
77
+ rspec-core (~> 3.8.0)
78
+ rspec-expectations (~> 3.8.0)
79
+ rspec-mocks (~> 3.8.0)
79
80
  rspec-collection_matchers (1.1.3)
80
81
  rspec-expectations (>= 2.99.0.beta1)
81
- rspec-core (3.5.4)
82
- rspec-support (~> 3.5.0)
83
- rspec-expectations (3.5.0)
82
+ rspec-core (3.8.2)
83
+ rspec-support (~> 3.8.0)
84
+ rspec-expectations (3.8.4)
84
85
  diff-lcs (>= 1.2.0, < 2.0)
85
- rspec-support (~> 3.5.0)
86
- rspec-mocks (3.5.0)
86
+ rspec-support (~> 3.8.0)
87
+ rspec-mocks (3.8.1)
87
88
  diff-lcs (>= 1.2.0, < 2.0)
88
- rspec-support (~> 3.5.0)
89
- rspec-support (3.5.0)
89
+ rspec-support (~> 3.8.0)
90
+ rspec-support (3.8.2)
90
91
  ruby_dep (1.5.0)
91
- safe_yaml (1.0.4)
92
+ safe_yaml (1.0.5)
92
93
  shellany (0.0.1)
93
- simplecov (0.14.1)
94
- docile (~> 1.1.0)
94
+ simplecov (0.17.0)
95
+ docile (~> 1.1)
95
96
  json (>= 1.8, < 3)
96
97
  simplecov-html (~> 0.10.0)
97
- simplecov-html (0.10.0)
98
- slop (3.6.0)
99
- thor (0.19.4)
98
+ simplecov-html (0.10.2)
99
+ thor (0.20.3)
100
100
  thread_safe (0.3.6)
101
- tzinfo (1.2.3)
101
+ tzinfo (1.2.5)
102
102
  thread_safe (~> 0.1)
103
103
  url (0.3.2)
104
- webmock (2.3.2)
104
+ webmock (3.6.2)
105
105
  addressable (>= 2.3.6)
106
106
  crack (>= 0.3.2)
107
- hashdiff
107
+ hashdiff (>= 0.4.0, < 2.0.0)
108
108
 
109
109
  PLATFORMS
110
110
  ruby
@@ -123,4 +123,4 @@ DEPENDENCIES
123
123
  webmock
124
124
 
125
125
  BUNDLED WITH
126
- 1.15.1
126
+ 1.17.3
data/lib/bitmovin-ruby.rb CHANGED
@@ -21,8 +21,8 @@ require 'bitmovin/webhooks'
21
21
  module Bitmovin
22
22
  @@client = nil
23
23
 
24
- def self.init(api_key)
25
- @@client = Client.new({ api_key: api_key })
24
+ def self.init(api_key, organisation_id = nil)
25
+ @@client = Client.new({ api_key: api_key, organisation_id: organisation_id })
26
26
  end
27
27
 
28
28
  def self.client
@@ -6,12 +6,14 @@ module Bitmovin
6
6
  def initialize(config)
7
7
  @api_key = config[:api_key]
8
8
  @base_url = "https://api.bitmovin.com/v1"
9
- @conn = Faraday.new(url: @base_url, headers: {
10
- 'X-Api-Key' => @api_key,
11
- 'X-Api-Client-Version' => Bitmovin::VERSION,
12
- 'X-Api-Client' => 'bitmovin-ruby',
13
- 'Content-Type' => 'application/json'
14
- }) do |faraday|
9
+ headers = {
10
+ 'X-Api-Key' => @api_key,
11
+ 'X-Api-Client-Version' => Bitmovin::VERSION,
12
+ 'X-Api-Client' => 'bitmovin-ruby',
13
+ 'Content-Type' => 'application/json'
14
+ }
15
+ headers['X-Tenant-Org-Id'] = config[:organisation_id] if config[:organisation_id]
16
+ @conn = Faraday.new(url: @base_url, headers: headers) do |faraday|
15
17
 
16
18
  faraday.request :json
17
19
  #faraday.response :logger
@@ -1,3 +1,3 @@
1
1
  module Bitmovin
2
- VERSION = "0.8.0"
2
+ VERSION = "0.8.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bitmovin-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.0
4
+ version: 0.8.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Hoelbling-Inzko
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-07-12 00:00:00.000000000 Z
11
+ date: 2019-09-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday