eyeson 2.6.0 → 2.6.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -2
- data/lib/eyeson/account.rb +1 -1
- data/lib/eyeson/broadcast.rb +1 -1
- data/lib/eyeson/file_upload.rb +1 -1
- data/lib/eyeson/layer.rb +1 -1
- data/lib/eyeson/message.rb +1 -1
- data/lib/eyeson/requests.rb +3 -2
- data/lib/eyeson/room.rb +1 -1
- data/lib/eyeson/version.rb +1 -1
- data/lib/eyeson/webhook.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e79234cbf664bafb2b143a2c6452ca2ea85fae7f
|
4
|
+
data.tar.gz: ecf54d5ea79a686a952e91ce95f2fc12dfe92748
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 49a495adbf0e72061700d871f787635b897f23125234f3c85519c75e4ee9f79ea27c8f66f080c831d7c09740390c01149c8333939123c4ae4fc8ba8a25d284ed
|
7
|
+
data.tar.gz: 19add27eced57bf4b975b9a6cd911d03dbfb8c5e0a783ba1388f9452326388afde0a128f93454b943114dcc40d204f7d907da2a5739143dbce9a160286024b58
|
data/README.md
CHANGED
@@ -28,8 +28,8 @@ end
|
|
28
28
|
|
29
29
|
```ruby
|
30
30
|
Eyeson::Webhook.create!(
|
31
|
-
url,
|
32
|
-
types: []
|
31
|
+
url: url, # Webhooks will be sent to this URL
|
32
|
+
types: [] # supported types: 'room', 'team', 'user', 'presentation', 'broadcast', 'file'
|
33
33
|
)
|
34
34
|
```
|
35
35
|
|
data/lib/eyeson/account.rb
CHANGED
@@ -14,7 +14,7 @@ module Eyeson
|
|
14
14
|
confirmed = Eyeson.post('/internal/accounts',
|
15
15
|
user: user,
|
16
16
|
remote_ip: remote_ip)
|
17
|
-
confirmation_url = confirmed['create_url'] if confirmed
|
17
|
+
confirmation_url = confirmed['create_url'] if confirmed
|
18
18
|
Account.new(confirmation_url: confirmation_url)
|
19
19
|
end
|
20
20
|
|
data/lib/eyeson/broadcast.rb
CHANGED
data/lib/eyeson/file_upload.rb
CHANGED
@@ -29,7 +29,7 @@ module Eyeson
|
|
29
29
|
|
30
30
|
def upload!
|
31
31
|
response = Eyeson.post("/rooms/#{@access_key}/files", file: @file)
|
32
|
-
raise ValidationFailed, response['error'] if response
|
32
|
+
raise ValidationFailed, response['error'] if response.key? 'error'
|
33
33
|
end
|
34
34
|
end
|
35
35
|
end
|
data/lib/eyeson/layer.rb
CHANGED
data/lib/eyeson/message.rb
CHANGED
data/lib/eyeson/requests.rb
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
require 'json'
|
2
|
+
|
1
3
|
# Provides REST methods
|
2
4
|
module Eyeson
|
3
5
|
def get(path, params = {})
|
@@ -16,7 +18,7 @@ module Eyeson
|
|
16
18
|
module_function :delete
|
17
19
|
|
18
20
|
def request(method, path, params)
|
19
|
-
|
21
|
+
response_for RestClient::Request.new(
|
20
22
|
method: method,
|
21
23
|
url: configuration.api_endpoint + path,
|
22
24
|
payload: params.compact,
|
@@ -26,7 +28,6 @@ module Eyeson
|
|
26
28
|
user_agent: 'eyeson-ruby'
|
27
29
|
}
|
28
30
|
)
|
29
|
-
response_for(req)
|
30
31
|
end
|
31
32
|
module_function :request
|
32
33
|
|
data/lib/eyeson/room.rb
CHANGED
data/lib/eyeson/version.rb
CHANGED
data/lib/eyeson/webhook.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: eyeson
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.6.
|
4
|
+
version: 2.6.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael Maier
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2018-
|
12
|
+
date: 2018-07-26 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activesupport
|
@@ -83,7 +83,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
83
83
|
version: '0'
|
84
84
|
requirements: []
|
85
85
|
rubyforge_project:
|
86
|
-
rubygems_version: 2.5.2
|
86
|
+
rubygems_version: 2.5.2.1
|
87
87
|
signing_key:
|
88
88
|
specification_version: 4
|
89
89
|
summary: eyeson API
|