openvidu-ruby-client 0.1.1 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/open_vidu/requestor.rb +3 -2
- data/lib/open_vidu/version.rb +1 -1
- data/openvidu-ruby-client.gemspec +3 -2
- metadata +22 -9
- data/.env.sample +0 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6816d2ce00a5d853de33612fca8b893d9d4f76d2
|
4
|
+
data.tar.gz: 417436d1f059a6688a7ee77355c8c73b89156e57
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b51fcf9e220816e1ee32a7b0fce6147f0c96a9ab5286a9560f5b05c68ef0144c472900696d278efb27b8134f3af01f7df3543cb8446c2b3831fd23233e47eb49
|
7
|
+
data.tar.gz: c41aa3bcc46633072358561daf62080a1794f833aa5ed6409a04446b29a5d542848bc8a0d7e03af4ba88a54d65f3e4a2bd986dda1b1a5a62bba7101976e06414
|
data/lib/open_vidu/requestor.rb
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
require 'dotenv/load'
|
1
2
|
require 'httparty'
|
2
3
|
require 'json'
|
3
4
|
|
@@ -8,7 +9,7 @@ module OpenVidu
|
|
8
9
|
|
9
10
|
BASE_URL = ENV['OPENVIDU_URL']
|
10
11
|
TOKEN = "#{ENV['OPENVIDU_USERNAME']}:#{ENV['OPENVIDU_PASSWORD']}".freeze
|
11
|
-
|
12
|
+
MODE = ENV['MODE']
|
12
13
|
|
13
14
|
def initialize(method, endpoint, params = {})
|
14
15
|
@method = method
|
@@ -32,7 +33,7 @@ module OpenVidu
|
|
32
33
|
'Authorization' => "Basic #{Base64.strict_encode64(TOKEN)}",
|
33
34
|
'Content-Type' => 'application/json'
|
34
35
|
},
|
35
|
-
verify:
|
36
|
+
verify: MODE != 'DEV',
|
36
37
|
body: params.to_json
|
37
38
|
}
|
38
39
|
end
|
data/lib/open_vidu/version.rb
CHANGED
@@ -32,11 +32,12 @@ Gem::Specification.new do |spec|
|
|
32
32
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
33
33
|
spec.require_paths = ['lib']
|
34
34
|
|
35
|
+
spec.add_development_dependency 'bundler', '~> 1.16'
|
35
36
|
spec.add_development_dependency 'byebug', '~> 9.0', '>= 9.0.6'
|
36
37
|
spec.add_development_dependency 'minitest', '~> 5.0'
|
37
38
|
spec.add_development_dependency 'rake', '~> 10.0'
|
38
39
|
spec.add_development_dependency 'test-unit', '~> 3.3', '>= 3.3.4'
|
39
40
|
|
40
|
-
spec.
|
41
|
-
spec.add_runtime_dependency 'httparty', '
|
41
|
+
spec.add_runtime_dependency 'dotenv', '~> 2.7', '>= 2.7.5'
|
42
|
+
spec.add_runtime_dependency 'httparty', '~> 0.13.7'
|
42
43
|
end
|
metadata
CHANGED
@@ -1,15 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: openvidu-ruby-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bryan Saxon
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-10-
|
11
|
+
date: 2019-10-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: bundler
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.16'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.16'
|
13
27
|
- !ruby/object:Gem::Dependency
|
14
28
|
name: byebug
|
15
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -88,7 +102,7 @@ dependencies:
|
|
88
102
|
- - ">="
|
89
103
|
- !ruby/object:Gem::Version
|
90
104
|
version: 2.7.5
|
91
|
-
type: :
|
105
|
+
type: :runtime
|
92
106
|
prerelease: false
|
93
107
|
version_requirements: !ruby/object:Gem::Requirement
|
94
108
|
requirements:
|
@@ -102,16 +116,16 @@ dependencies:
|
|
102
116
|
name: httparty
|
103
117
|
requirement: !ruby/object:Gem::Requirement
|
104
118
|
requirements:
|
105
|
-
- - "
|
119
|
+
- - "~>"
|
106
120
|
- !ruby/object:Gem::Version
|
107
|
-
version:
|
121
|
+
version: 0.13.7
|
108
122
|
type: :runtime
|
109
123
|
prerelease: false
|
110
124
|
version_requirements: !ruby/object:Gem::Requirement
|
111
125
|
requirements:
|
112
|
-
- - "
|
126
|
+
- - "~>"
|
113
127
|
- !ruby/object:Gem::Version
|
114
|
-
version:
|
128
|
+
version: 0.13.7
|
115
129
|
description: Ruby client built around OpenVidu's REST API.
|
116
130
|
email:
|
117
131
|
- emailBryanSaxon@gmail.com
|
@@ -120,7 +134,6 @@ extensions: []
|
|
120
134
|
extra_rdoc_files: []
|
121
135
|
files:
|
122
136
|
- ".DS_Store"
|
123
|
-
- ".env.sample"
|
124
137
|
- ".gitignore"
|
125
138
|
- ".travis.yml"
|
126
139
|
- CODE_OF_CONDUCT.md
|
@@ -166,7 +179,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
166
179
|
version: '0'
|
167
180
|
requirements: []
|
168
181
|
rubyforge_project:
|
169
|
-
rubygems_version: 2.
|
182
|
+
rubygems_version: 2.6.14.3
|
170
183
|
signing_key:
|
171
184
|
specification_version: 4
|
172
185
|
summary: OpenVidu Ruby client.
|
data/.env.sample
DELETED