openvidu-ruby-client 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.env.sample +4 -0
- data/lib/open_vidu/recording.rb +1 -1
- data/lib/open_vidu/requestor.rb +2 -3
- data/lib/open_vidu/responder.rb +1 -4
- data/lib/open_vidu/version.rb +1 -1
- data/openvidu-ruby-client.gemspec +2 -3
- metadata +9 -22
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9e14112ab90871bab4b19d795014f9250c6882f0
|
4
|
+
data.tar.gz: c8a446eff70ce516a3d9a3cdf4fcf1e70e35d15b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '08502cd4fde72bf8b39b2ef5b07f37fe22d487bd0297a1a941384625b6c15e4094bae9ae7b5d492e8ac5dfe33cd7517b6d27d7a24ca844828dec05218ffe108c'
|
7
|
+
data.tar.gz: 4d82f72d8e374a90e345e51f640296310acf2957738caa5233b5b833460ef68c120a3d263b404779ba823671129739111cd0b6e26e71c655e2726c3344a954f6
|
data/.env.sample
ADDED
data/lib/open_vidu/recording.rb
CHANGED
data/lib/open_vidu/requestor.rb
CHANGED
@@ -1,4 +1,3 @@
|
|
1
|
-
require 'dotenv/load'
|
2
1
|
require 'httparty'
|
3
2
|
require 'json'
|
4
3
|
|
@@ -9,7 +8,7 @@ module OpenVidu
|
|
9
8
|
|
10
9
|
BASE_URL = ENV['OPENVIDU_URL']
|
11
10
|
TOKEN = "#{ENV['OPENVIDU_USERNAME']}:#{ENV['OPENVIDU_PASSWORD']}".freeze
|
12
|
-
|
11
|
+
VERIFY_PEER = ENV['OPENVIDU_VERIFY_PEER']
|
13
12
|
|
14
13
|
def initialize(method, endpoint, params = {})
|
15
14
|
@method = method
|
@@ -33,7 +32,7 @@ module OpenVidu
|
|
33
32
|
'Authorization' => "Basic #{Base64.strict_encode64(TOKEN)}",
|
34
33
|
'Content-Type' => 'application/json'
|
35
34
|
},
|
36
|
-
verify:
|
35
|
+
verify: VERIFY_PEER != 'false',
|
37
36
|
body: params.to_json
|
38
37
|
}
|
39
38
|
end
|
data/lib/open_vidu/responder.rb
CHANGED
@@ -17,10 +17,7 @@ module OpenVidu
|
|
17
17
|
return klass.new(mapped_params(response)) if complete_record?
|
18
18
|
return klass.find(response['id']) if record_lookup?
|
19
19
|
|
20
|
-
|
21
|
-
response['content'].map do |hash|
|
22
|
-
klass.new(mapped_params(hash))
|
23
|
-
end
|
20
|
+
response['content'].map { |hash| klass.new(mapped_params(hash)) }
|
24
21
|
end
|
25
22
|
|
26
23
|
private
|
data/lib/open_vidu/version.rb
CHANGED
@@ -32,12 +32,11 @@ 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'
|
36
35
|
spec.add_development_dependency 'byebug', '~> 9.0', '>= 9.0.6'
|
37
36
|
spec.add_development_dependency 'minitest', '~> 5.0'
|
38
37
|
spec.add_development_dependency 'rake', '~> 10.0'
|
39
38
|
spec.add_development_dependency 'test-unit', '~> 3.3', '>= 3.3.4'
|
40
39
|
|
41
|
-
spec.
|
42
|
-
spec.add_runtime_dependency 'httparty', '
|
40
|
+
spec.add_development_dependency 'dotenv', '~> 2.7', '>= 2.7.5'
|
41
|
+
spec.add_runtime_dependency 'httparty', '>= 0.13'
|
43
42
|
end
|
metadata
CHANGED
@@ -1,29 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: openvidu-ruby-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
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-10 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'
|
27
13
|
- !ruby/object:Gem::Dependency
|
28
14
|
name: byebug
|
29
15
|
requirement: !ruby/object:Gem::Requirement
|
@@ -102,7 +88,7 @@ dependencies:
|
|
102
88
|
- - ">="
|
103
89
|
- !ruby/object:Gem::Version
|
104
90
|
version: 2.7.5
|
105
|
-
type: :
|
91
|
+
type: :development
|
106
92
|
prerelease: false
|
107
93
|
version_requirements: !ruby/object:Gem::Requirement
|
108
94
|
requirements:
|
@@ -116,16 +102,16 @@ dependencies:
|
|
116
102
|
name: httparty
|
117
103
|
requirement: !ruby/object:Gem::Requirement
|
118
104
|
requirements:
|
119
|
-
- - "
|
105
|
+
- - ">="
|
120
106
|
- !ruby/object:Gem::Version
|
121
|
-
version: 0.13
|
107
|
+
version: '0.13'
|
122
108
|
type: :runtime
|
123
109
|
prerelease: false
|
124
110
|
version_requirements: !ruby/object:Gem::Requirement
|
125
111
|
requirements:
|
126
|
-
- - "
|
112
|
+
- - ">="
|
127
113
|
- !ruby/object:Gem::Version
|
128
|
-
version: 0.13
|
114
|
+
version: '0.13'
|
129
115
|
description: Ruby client built around OpenVidu's REST API.
|
130
116
|
email:
|
131
117
|
- emailBryanSaxon@gmail.com
|
@@ -134,6 +120,7 @@ extensions: []
|
|
134
120
|
extra_rdoc_files: []
|
135
121
|
files:
|
136
122
|
- ".DS_Store"
|
123
|
+
- ".env.sample"
|
137
124
|
- ".gitignore"
|
138
125
|
- ".travis.yml"
|
139
126
|
- CODE_OF_CONDUCT.md
|
@@ -179,7 +166,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
179
166
|
version: '0'
|
180
167
|
requirements: []
|
181
168
|
rubyforge_project:
|
182
|
-
rubygems_version: 2.
|
169
|
+
rubygems_version: 2.5.2.2
|
183
170
|
signing_key:
|
184
171
|
specification_version: 4
|
185
172
|
summary: OpenVidu Ruby client.
|