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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5c2a1829a3d917f2a01e0d15bf7aa6423a69b599
4
- data.tar.gz: 2f9c3789d1d9a2ef02efce9162e1f58e0b17f611
3
+ metadata.gz: 9e14112ab90871bab4b19d795014f9250c6882f0
4
+ data.tar.gz: c8a446eff70ce516a3d9a3cdf4fcf1e70e35d15b
5
5
  SHA512:
6
- metadata.gz: b37f10c716f1ecef359a1cb4a8e84eb04a59b88a0469f39828c1dbbf79c6f7947e7402f428ea85d1d60c8c3512835b1a00fea1684269d4d130b57e0a5cba831f
7
- data.tar.gz: a783f0568339cf7342dbd41278339a226c7bd593a70adfbc3405f1be381b172f7c0ec7d7a49bed2df29587925e4628e818e7f764a5066d261901d022dc38ea51
6
+ metadata.gz: '08502cd4fde72bf8b39b2ef5b07f37fe22d487bd0297a1a941384625b6c15e4094bae9ae7b5d492e8ac5dfe33cd7517b6d27d7a24ca844828dec05218ffe108c'
7
+ data.tar.gz: 4d82f72d8e374a90e345e51f640296310acf2957738caa5233b5b833460ef68c120a3d263b404779ba823671129739111cd0b6e26e71c655e2726c3344a954f6
data/.env.sample ADDED
@@ -0,0 +1,4 @@
1
+ OPENVIDU_URL=https://localhost:4443
2
+ OPENVIDU_USERNAME=openviduapp
3
+ OPENVIDU_PASSWORD=MY_SECRET
4
+ OPENVIDU_VERIFY_PEER=false
@@ -38,7 +38,7 @@ module OpenVidu
38
38
 
39
39
  def create
40
40
  OpenVidu::Command.new(
41
- :recording, :post, 'api/recordings/start'
41
+ :recording, :post, 'api/recordings/start', create_params
42
42
  ).execute
43
43
  end
44
44
 
@@ -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
- MODE = ENV['MODE']
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: MODE != 'DEV',
35
+ verify: VERIFY_PEER != 'false',
37
36
  body: params.to_json
38
37
  }
39
38
  end
@@ -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
- # Else return collection mapping.
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
@@ -1,3 +1,3 @@
1
1
  module OpenVidu
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
@@ -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.add_runtime_dependency 'dotenv', '~> 2.7', '>= 2.7.5'
42
- spec.add_runtime_dependency 'httparty', '~> 0.13.7'
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.0
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-09 00:00:00.000000000 Z
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: :runtime
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.7
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.7
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.6.14.3
169
+ rubygems_version: 2.5.2.2
183
170
  signing_key:
184
171
  specification_version: 4
185
172
  summary: OpenVidu Ruby client.