securevideo-api 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +9 -0
- data/.rspec +2 -0
- data/.travis.yml +3 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +21 -0
- data/README.md +170 -0
- data/Rakefile +2 -0
- data/bin/console +14 -0
- data/bin/setup +7 -0
- data/lib/securevideo/api.rb +34 -0
- data/lib/securevideo/api/participant.rb +23 -0
- data/lib/securevideo/api/session.rb +42 -0
- data/lib/securevideo/api/time_zones.rb +108 -0
- data/lib/securevideo/api/user.rb +26 -0
- data/lib/securevideo/api/version.rb +5 -0
- data/securevideo-api.gemspec +35 -0
- metadata +277 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 0a195767592829691258544f46251028d132248c
|
4
|
+
data.tar.gz: c89abda84e38852f1e67a78e258e711647259624
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: ad359fd0201be37839afdc900a013d03b30b2e8601ac39435c29e8f8ed85992060a68eadf45009462e5f71dfdaa473dc84954f348620e0756ce7243009953b24
|
7
|
+
data.tar.gz: 326935bca2f24ea824e1d2849c0b33c34f006d2c64ff3d19785b6f5a3f47a5256d6ef6a9e11c765273e0c9ed3411fe260f528fe621ae8d692f7694412052bb79
|
data/.gitignore
ADDED
data/.rspec
ADDED
data/.travis.yml
ADDED
data/Gemfile
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2015 Maxim Pechnikov
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
13
|
+
all copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,170 @@
|
|
1
|
+
# Securevideo::Api
|
2
|
+
|
3
|
+
Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/securevideo/api`. To experiment with that code, run `bin/console` for an interactive prompt.
|
4
|
+
|
5
|
+
TODO: Delete this and the text above, and describe your gem
|
6
|
+
|
7
|
+
## Installation
|
8
|
+
|
9
|
+
Add this line to your application's Gemfile:
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
gem 'securevideo-api'
|
13
|
+
```
|
14
|
+
|
15
|
+
And then execute:
|
16
|
+
|
17
|
+
$ bundle
|
18
|
+
|
19
|
+
Or install it yourself as:
|
20
|
+
|
21
|
+
$ gem install securevideo-api
|
22
|
+
|
23
|
+
## Usage
|
24
|
+
|
25
|
+
### Config client
|
26
|
+
|
27
|
+
```ruby
|
28
|
+
Securevideo::Api.configure(KEY, SECRET)
|
29
|
+
```
|
30
|
+
|
31
|
+
## API
|
32
|
+
|
33
|
+
### Users (https://hub.securevideo.com/Knowledge/Details/81)
|
34
|
+
|
35
|
+
#### get users
|
36
|
+
|
37
|
+
```ruby
|
38
|
+
users = Securevideo::Api::User.all.fetch
|
39
|
+
```
|
40
|
+
|
41
|
+
#### get user
|
42
|
+
|
43
|
+
```ruby
|
44
|
+
Securevideo::Api::User.find(user_id)
|
45
|
+
```
|
46
|
+
|
47
|
+
#### create user
|
48
|
+
|
49
|
+
```ruby
|
50
|
+
user = Securevideo::Api::User.new(FullName: 'Test User',
|
51
|
+
TimeZoneWindowsId: "Pacific Standard Time",
|
52
|
+
EmailAddress: 'test@test.com',
|
53
|
+
HelpNumber: '4084062331')
|
54
|
+
user.save
|
55
|
+
```
|
56
|
+
|
57
|
+
#### update user
|
58
|
+
|
59
|
+
```ruby
|
60
|
+
user = Securevideo::Api::User.find(user_id)
|
61
|
+
user.FullName = 'Test User2'
|
62
|
+
user.save
|
63
|
+
```
|
64
|
+
|
65
|
+
#### delete user
|
66
|
+
|
67
|
+
```ruby
|
68
|
+
user = Securevideo::Api::User.find(user_id)
|
69
|
+
user.destroy
|
70
|
+
```
|
71
|
+
|
72
|
+
### Session (https://hub.securevideo.com/Knowledge/Details/86)
|
73
|
+
|
74
|
+
#### Get sessions of user
|
75
|
+
|
76
|
+
```ruby
|
77
|
+
sessions = Securevideo::Api::Session.all(UserId: user_id).fetch
|
78
|
+
```
|
79
|
+
|
80
|
+
#### Create a new session
|
81
|
+
|
82
|
+
```ruby
|
83
|
+
session = Securevideo::Api::Session.new(UserId: user_id, "ScheduleTs": "2016-04-16T15:00:00", "Participants":[{ "ParticipantFullName": "Trevor", "ParticipantEmailAddress": "trevor@geemail.com", "ParticipantSmsNumber": "3124455566", "ParticipantDefaultResolution": "default", "ParticipantTimeZoneWindowsId": "Hawaiian Standard Time", "ShouldAutoDeliverCode": "S"}])
|
84
|
+
session.save
|
85
|
+
```
|
86
|
+
|
87
|
+
#### Reschedule a Session
|
88
|
+
|
89
|
+
```ruby
|
90
|
+
session.reschedule("2017-02-04T22:00:00")
|
91
|
+
```
|
92
|
+
|
93
|
+
#### Cancel a Session
|
94
|
+
|
95
|
+
```ruby
|
96
|
+
session.destroy
|
97
|
+
```
|
98
|
+
|
99
|
+
### Participant (https://hub.securevideo.com/Knowledge/Details/88)
|
100
|
+
|
101
|
+
#### Add Participant to exist Session
|
102
|
+
|
103
|
+
```ruby
|
104
|
+
Securevideo::Api::Participant.add(session_id, participant_options)
|
105
|
+
```
|
106
|
+
|
107
|
+
```ruby
|
108
|
+
Securevideo::Api::Participant.add(12344, { "SecureVideoUserId": "1122"})
|
109
|
+
```
|
110
|
+
|
111
|
+
```ruby
|
112
|
+
Securevideo::Api::Participant.add(35508, { "ParticipantFullName": "Trevor", "ParticipantEmailAddress": "trevor28@geemail.com", "ParticipantSmsNumber": "13124456666", "ParticipantDefaultResolution": "high", "ParticipantTimeZoneWindowsId": "Eastern Standard Time", "ShouldAutoDeliverCode": "S",})
|
113
|
+
```
|
114
|
+
|
115
|
+
#### Remove Participant from exist Session
|
116
|
+
|
117
|
+
```ruby
|
118
|
+
Securevideo::Api::Participant.remove(participant_id)
|
119
|
+
```
|
120
|
+
|
121
|
+
### How can I view session usage via the API?
|
122
|
+
|
123
|
+
```ruby
|
124
|
+
reports = Securevideo::Api::Session.usage('2015-03-01')
|
125
|
+
```
|
126
|
+
|
127
|
+
### Login & Logout (https://hub.securevideo.com/Knowledge/Details/89)
|
128
|
+
|
129
|
+
#### Login API
|
130
|
+
|
131
|
+
```ruby
|
132
|
+
session = Securevideo::Api::Session.login(user_id,redirect_to_on_expiry)
|
133
|
+
|
134
|
+
return
|
135
|
+
{
|
136
|
+
"LoginGuid": "c1a714554134958fda34d32ebb4c070de1579430ba1471ba8d4c0b2b6e8ba8d6",
|
137
|
+
"RedirectToUriOnExpiry": "https://www.mywebsite.com/HandleSecureVideoLoginExpiration",
|
138
|
+
"LoginUri": "https://hub.securevideo.com/Account/Login?auto=c1a714554134958fda34d32ebb4c070de1579430ba1471ba8d4c0b2b6e8ba8d6"
|
139
|
+
}
|
140
|
+
```
|
141
|
+
|
142
|
+
#### Logout API
|
143
|
+
|
144
|
+
```ruby
|
145
|
+
session = Securevideo::Api::Session.logout(LoginGuid)
|
146
|
+
session = Securevideo::Api::Session.logout("c1a714554134958fda34d32ebb4c070de1579430ba1471ba8d4c0b2b6e8ba8d6")
|
147
|
+
```
|
148
|
+
|
149
|
+
### Password API (https://hub.securevideo.com/Knowledge/Details/122)
|
150
|
+
|
151
|
+
#### Set a User Password
|
152
|
+
|
153
|
+
```ruby
|
154
|
+
user = Securevideo::Api::Session.find(user_id)
|
155
|
+
user.update_password(new_password)
|
156
|
+
```
|
157
|
+
|
158
|
+
## Development
|
159
|
+
|
160
|
+
After checking out the repo, run `bin/setup` to install dependencies. Then, run `bin/console` for an interactive prompt that will allow you to experiment.
|
161
|
+
|
162
|
+
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release` to create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
163
|
+
|
164
|
+
## Contributing
|
165
|
+
|
166
|
+
1. Fork it ( https://github.com/[my-github-username]/securevideo-api/fork )
|
167
|
+
2. Create your feature branch (`git checkout -b my-new-feature`)
|
168
|
+
3. Commit your changes (`git commit -am 'Add some feature'`)
|
169
|
+
4. Push to the branch (`git push origin my-new-feature`)
|
170
|
+
5. Create a new Pull Request
|
data/Rakefile
ADDED
data/bin/console
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require "bundler/setup"
|
4
|
+
require "securevideo/api"
|
5
|
+
|
6
|
+
# You can add fixtures and/or initialization code here to make experimenting
|
7
|
+
# with your gem easier. You can also use a different console, if you like.
|
8
|
+
|
9
|
+
# (If you use this, don't forget to add pry to your Gemfile!)
|
10
|
+
# require "pry"
|
11
|
+
# Pry.start
|
12
|
+
|
13
|
+
require "irb"
|
14
|
+
IRB.start
|
data/bin/setup
ADDED
@@ -0,0 +1,34 @@
|
|
1
|
+
require 'faraday'
|
2
|
+
require 'faraday_middleware'
|
3
|
+
require 'her'
|
4
|
+
require "securevideo/api/version"
|
5
|
+
require "securevideo/api/time_zones"
|
6
|
+
module Securevideo
|
7
|
+
module Api
|
8
|
+
class ClientNotConfigured < Exception; end
|
9
|
+
class << self
|
10
|
+
def configure(api_key, secret_key, &block)
|
11
|
+
@api = Her::API.new
|
12
|
+
@api.setup :url => "https://api.securevideo.com" do |c|
|
13
|
+
c.basic_auth(api_key, secret_key)
|
14
|
+
c.use FaradayMiddleware::EncodeJson
|
15
|
+
c.use Her::Middleware::AcceptJSON
|
16
|
+
c.use Her::Middleware::FirstLevelParseJSON
|
17
|
+
yield c if block_given?
|
18
|
+
c.adapter :excon
|
19
|
+
end
|
20
|
+
require "securevideo/api/user"
|
21
|
+
require "securevideo/api/session"
|
22
|
+
require "securevideo/api/participant"
|
23
|
+
end
|
24
|
+
|
25
|
+
def api
|
26
|
+
# raise exception if somehow model classes gets required
|
27
|
+
# before the API is configured
|
28
|
+
fail ClientNotConfigured.new('Securevideo') unless @api
|
29
|
+
@api
|
30
|
+
end
|
31
|
+
end
|
32
|
+
|
33
|
+
end
|
34
|
+
end
|
@@ -0,0 +1,23 @@
|
|
1
|
+
module Securevideo
|
2
|
+
module Api
|
3
|
+
class Participant
|
4
|
+
include Her::Model
|
5
|
+
uses_api Securevideo::Api.api
|
6
|
+
collection_path "participant/:SessionId"
|
7
|
+
attributes :SessionId
|
8
|
+
|
9
|
+
validates :SessionId, presence: true
|
10
|
+
|
11
|
+
class << self
|
12
|
+
|
13
|
+
def add(session_id, participant_options = {})
|
14
|
+
post("participant/#{session_id}", participant_options)
|
15
|
+
end
|
16
|
+
|
17
|
+
def remove(participant_id)
|
18
|
+
delete("participant/#{participant_id}")
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
@@ -0,0 +1,42 @@
|
|
1
|
+
module Securevideo
|
2
|
+
module Api
|
3
|
+
class Session
|
4
|
+
include Her::Model
|
5
|
+
uses_api Securevideo::Api.api
|
6
|
+
primary_key :SessionId
|
7
|
+
collection_path "session/:UserId"
|
8
|
+
|
9
|
+
attributes :UserId, :ScheduleTs, :Participants
|
10
|
+
validates :UserId, presence: true
|
11
|
+
validates :ScheduleTs, presence: true
|
12
|
+
validates :Participants, presence: true
|
13
|
+
|
14
|
+
def reschedule(schedule_ts)
|
15
|
+
self.class.put("session/#{id}", 'ScheduleTs': schedule_ts)
|
16
|
+
end
|
17
|
+
|
18
|
+
def destroy
|
19
|
+
self.class.delete("session/#{id}")
|
20
|
+
nil
|
21
|
+
end
|
22
|
+
|
23
|
+
class << self
|
24
|
+
#
|
25
|
+
# @params month - 2014-01-01
|
26
|
+
#
|
27
|
+
def usage(month)
|
28
|
+
get('usage', month: month)
|
29
|
+
end
|
30
|
+
|
31
|
+
def login(user_id, redirect_to_on_expiry)
|
32
|
+
post("login/#{user_id}",
|
33
|
+
'RedirectToUriOnExpiry' => redirect_to_on_expiry)
|
34
|
+
end
|
35
|
+
|
36
|
+
def logout(login_guid)
|
37
|
+
destroy("session/#{login_guid}")
|
38
|
+
end
|
39
|
+
end
|
40
|
+
end
|
41
|
+
end
|
42
|
+
end
|
@@ -0,0 +1,108 @@
|
|
1
|
+
module Securevideo
|
2
|
+
module Api
|
3
|
+
module TimeZones
|
4
|
+
TIME_ZONES = ['Hawaiian Standard Time',
|
5
|
+
'Alaskan Standard Time',
|
6
|
+
'Pacific Standard Time',
|
7
|
+
'US Mountain Standard Time',
|
8
|
+
'Mountain Standard Time',
|
9
|
+
'Central Standard Time',
|
10
|
+
'Canada Central Standard Time',
|
11
|
+
'Eastern Standard Time',
|
12
|
+
'Atlantic Standard Time',
|
13
|
+
'Newfoundland Standard Time',
|
14
|
+
'Dateline Standard Time',
|
15
|
+
'UTC-11',
|
16
|
+
'Pacific Standard Time (Mexico)',
|
17
|
+
'Mountain Standard Time (Mexico)',
|
18
|
+
'Central America Standard Time',
|
19
|
+
'Central Standard Time (Mexico)',
|
20
|
+
'SA Pacific Standard Time',
|
21
|
+
'Venezuela Standard Time',
|
22
|
+
'Paraguay Standard Time',
|
23
|
+
'Central Brazilian Standard Time',
|
24
|
+
'SA Western Standard Time',
|
25
|
+
'Pacific SA Standard Time',
|
26
|
+
'E. South America Standard Time',
|
27
|
+
'Argentina Standard Time',
|
28
|
+
'SA Eastern Standard Time',
|
29
|
+
'Greenland Standard Time',
|
30
|
+
'Montevideo Standard Time',
|
31
|
+
'Bahia Standard Time',
|
32
|
+
'UTC-02',
|
33
|
+
'Mid-Atlantic Standard Time',
|
34
|
+
'Azores Standard Time',
|
35
|
+
'Cape Verde Standard Time',
|
36
|
+
'Morocco Standard Time',
|
37
|
+
'UTC',
|
38
|
+
'GMT Standard Time',
|
39
|
+
'Greenwich Standard Time',
|
40
|
+
'W. Europe Standard Time',
|
41
|
+
'Central Europe Standard Time',
|
42
|
+
'Romance Standard Time',
|
43
|
+
'Central European Standard Time',
|
44
|
+
'W. Central Africa Standard Time',
|
45
|
+
'Namibia Standard Time',
|
46
|
+
'Jordan Standard Time',
|
47
|
+
'GTB Standard Time',
|
48
|
+
'Middle East Standard Time',
|
49
|
+
'Egypt Standard Time',
|
50
|
+
'Syria Standard Time',
|
51
|
+
'E. Europe Standard Time',
|
52
|
+
'South Africa Standard Time',
|
53
|
+
'FLE Standard Time',
|
54
|
+
'Turkey Standard Time',
|
55
|
+
'Israel Standard Time',
|
56
|
+
'Arabic Standard Time',
|
57
|
+
'Kaliningrad Standard Time',
|
58
|
+
'Arab Standard Time',
|
59
|
+
'E. Africa Standard Time',
|
60
|
+
'Iran Standard Time',
|
61
|
+
'Arabian Standard Time',
|
62
|
+
'Azerbaijan Standard Time',
|
63
|
+
'Russian Standard Time',
|
64
|
+
'Mauritius Standard Time',
|
65
|
+
'Georgian Standard Time',
|
66
|
+
'Caucasus Standard Time',
|
67
|
+
'Afghanistan Standard Time',
|
68
|
+
'Pakistan Standard Time',
|
69
|
+
'West Asia Standard Time',
|
70
|
+
'India Standard Time',
|
71
|
+
'Sri Lanka Standard Time',
|
72
|
+
'Nepal Standard Time',
|
73
|
+
'Central Asia Standard Time',
|
74
|
+
'Bangladesh Standard Time',
|
75
|
+
'Ekaterinburg Standard Time',
|
76
|
+
'Myanmar Standard Time',
|
77
|
+
'SE Asia Standard Time',
|
78
|
+
'N. Central Asia Standard Time',
|
79
|
+
'China Standard Time',
|
80
|
+
'North Asia Standard Time',
|
81
|
+
'Singapore Standard Time',
|
82
|
+
'W. Australia Standard Time',
|
83
|
+
'Taipei Standard Time',
|
84
|
+
'Ulaanbaatar Standard Time',
|
85
|
+
'North Asia East Standard Time',
|
86
|
+
'Tokyo Standard Time',
|
87
|
+
'Korea Standard Time',
|
88
|
+
'Cen. Australia Standard Time',
|
89
|
+
'AUS Central Standard Time',
|
90
|
+
'E. Australia Standard Time',
|
91
|
+
'AUS Eastern Standard Time',
|
92
|
+
'West Pacific Standard Time',
|
93
|
+
'Tasmania Standard Time',
|
94
|
+
'Yakutsk Standard Time',
|
95
|
+
'Central Pacific Standard Time',
|
96
|
+
'Vladivostok Standard Time',
|
97
|
+
'New Zealand Standard Time',
|
98
|
+
'UTC+12',
|
99
|
+
'Fiji Standard Time',
|
100
|
+
'Magadan Standard Time',
|
101
|
+
'Kamchatka Standard Time',
|
102
|
+
'Tonga Standard Time',
|
103
|
+
'Samoa Standard Time']
|
104
|
+
|
105
|
+
|
106
|
+
end
|
107
|
+
end
|
108
|
+
end
|
@@ -0,0 +1,26 @@
|
|
1
|
+
module Securevideo
|
2
|
+
module Api
|
3
|
+
class User
|
4
|
+
include Her::Model
|
5
|
+
uses_api Securevideo::Api.api
|
6
|
+
primary_key :SystemUserId
|
7
|
+
collection_path "user"
|
8
|
+
|
9
|
+
attributes :FullName, :EmailAddress, :TimeZoneWindowsId, :HelpNumber
|
10
|
+
validates :FullName, presence: true
|
11
|
+
validates :EmailAddress, presence: true
|
12
|
+
validates :TimeZoneWindowsId, presence: true, inclusion: Api::TimeZones::TIME_ZONES
|
13
|
+
validates :HelpNumber, presence: true
|
14
|
+
|
15
|
+
|
16
|
+
def update_password(new_password)
|
17
|
+
res = self.class.put("password/#{id}", "NewPassword": new_password)
|
18
|
+
if res.Message.nil?
|
19
|
+
Struct.new(:status).new(:ok)
|
20
|
+
else
|
21
|
+
Struct.new(:status, :message).new(:error, res.Message)
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
@@ -0,0 +1,35 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'securevideo/api/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "securevideo-api"
|
8
|
+
spec.version = Securevideo::Api::VERSION
|
9
|
+
spec.authors = ["Maxim Pechnikov"]
|
10
|
+
spec.email = ["parallel588@gmail.com"]
|
11
|
+
|
12
|
+
spec.summary = %q{API wrapper of securevideo.com}
|
13
|
+
spec.description = %q{api}
|
14
|
+
spec.homepage = "https://github.com/r2practice/securevideo-api"
|
15
|
+
spec.license = "MIT"
|
16
|
+
|
17
|
+
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
18
|
+
spec.bindir = "exe"
|
19
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
20
|
+
spec.require_paths = ["lib"]
|
21
|
+
|
22
|
+
spec.add_dependency 'excon', '~> 0.44.4'
|
23
|
+
spec.add_dependency 'faraday', '~> 0.9', '>= 0.9.1'
|
24
|
+
spec.add_dependency 'faraday_middleware', '~> 0.9', '>= 0.9.1'
|
25
|
+
spec.add_dependency 'oj', '~> 2.12', '>= 2.12.1'
|
26
|
+
spec.add_dependency 'her', '~> 0.7.3'
|
27
|
+
|
28
|
+
spec.add_development_dependency "bundler", "~> 1.8"
|
29
|
+
spec.add_development_dependency "rake", "~> 10.0"
|
30
|
+
spec.add_development_dependency "pry", '~> 0.10', '>= 0.10.1'
|
31
|
+
spec.add_development_dependency 'rspec', '~> 3.2', '>= 3.2.0'
|
32
|
+
spec.add_development_dependency 'webmock', '~> 1.20', '>= 1.20.4'
|
33
|
+
spec.add_development_dependency 'timecop', '~> 0.7', '>= 0.7.1'
|
34
|
+
spec.add_development_dependency 'vcr', '~> 2.9', '>= 2.9.3'
|
35
|
+
end
|
metadata
ADDED
@@ -0,0 +1,277 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: securevideo-api
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Maxim Pechnikov
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2015-03-23 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: excon
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 0.44.4
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 0.44.4
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: faraday
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0.9'
|
34
|
+
- - ">="
|
35
|
+
- !ruby/object:Gem::Version
|
36
|
+
version: 0.9.1
|
37
|
+
type: :runtime
|
38
|
+
prerelease: false
|
39
|
+
version_requirements: !ruby/object:Gem::Requirement
|
40
|
+
requirements:
|
41
|
+
- - "~>"
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
version: '0.9'
|
44
|
+
- - ">="
|
45
|
+
- !ruby/object:Gem::Version
|
46
|
+
version: 0.9.1
|
47
|
+
- !ruby/object:Gem::Dependency
|
48
|
+
name: faraday_middleware
|
49
|
+
requirement: !ruby/object:Gem::Requirement
|
50
|
+
requirements:
|
51
|
+
- - "~>"
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: '0.9'
|
54
|
+
- - ">="
|
55
|
+
- !ruby/object:Gem::Version
|
56
|
+
version: 0.9.1
|
57
|
+
type: :runtime
|
58
|
+
prerelease: false
|
59
|
+
version_requirements: !ruby/object:Gem::Requirement
|
60
|
+
requirements:
|
61
|
+
- - "~>"
|
62
|
+
- !ruby/object:Gem::Version
|
63
|
+
version: '0.9'
|
64
|
+
- - ">="
|
65
|
+
- !ruby/object:Gem::Version
|
66
|
+
version: 0.9.1
|
67
|
+
- !ruby/object:Gem::Dependency
|
68
|
+
name: oj
|
69
|
+
requirement: !ruby/object:Gem::Requirement
|
70
|
+
requirements:
|
71
|
+
- - "~>"
|
72
|
+
- !ruby/object:Gem::Version
|
73
|
+
version: '2.12'
|
74
|
+
- - ">="
|
75
|
+
- !ruby/object:Gem::Version
|
76
|
+
version: 2.12.1
|
77
|
+
type: :runtime
|
78
|
+
prerelease: false
|
79
|
+
version_requirements: !ruby/object:Gem::Requirement
|
80
|
+
requirements:
|
81
|
+
- - "~>"
|
82
|
+
- !ruby/object:Gem::Version
|
83
|
+
version: '2.12'
|
84
|
+
- - ">="
|
85
|
+
- !ruby/object:Gem::Version
|
86
|
+
version: 2.12.1
|
87
|
+
- !ruby/object:Gem::Dependency
|
88
|
+
name: her
|
89
|
+
requirement: !ruby/object:Gem::Requirement
|
90
|
+
requirements:
|
91
|
+
- - "~>"
|
92
|
+
- !ruby/object:Gem::Version
|
93
|
+
version: 0.7.3
|
94
|
+
type: :runtime
|
95
|
+
prerelease: false
|
96
|
+
version_requirements: !ruby/object:Gem::Requirement
|
97
|
+
requirements:
|
98
|
+
- - "~>"
|
99
|
+
- !ruby/object:Gem::Version
|
100
|
+
version: 0.7.3
|
101
|
+
- !ruby/object:Gem::Dependency
|
102
|
+
name: bundler
|
103
|
+
requirement: !ruby/object:Gem::Requirement
|
104
|
+
requirements:
|
105
|
+
- - "~>"
|
106
|
+
- !ruby/object:Gem::Version
|
107
|
+
version: '1.8'
|
108
|
+
type: :development
|
109
|
+
prerelease: false
|
110
|
+
version_requirements: !ruby/object:Gem::Requirement
|
111
|
+
requirements:
|
112
|
+
- - "~>"
|
113
|
+
- !ruby/object:Gem::Version
|
114
|
+
version: '1.8'
|
115
|
+
- !ruby/object:Gem::Dependency
|
116
|
+
name: rake
|
117
|
+
requirement: !ruby/object:Gem::Requirement
|
118
|
+
requirements:
|
119
|
+
- - "~>"
|
120
|
+
- !ruby/object:Gem::Version
|
121
|
+
version: '10.0'
|
122
|
+
type: :development
|
123
|
+
prerelease: false
|
124
|
+
version_requirements: !ruby/object:Gem::Requirement
|
125
|
+
requirements:
|
126
|
+
- - "~>"
|
127
|
+
- !ruby/object:Gem::Version
|
128
|
+
version: '10.0'
|
129
|
+
- !ruby/object:Gem::Dependency
|
130
|
+
name: pry
|
131
|
+
requirement: !ruby/object:Gem::Requirement
|
132
|
+
requirements:
|
133
|
+
- - "~>"
|
134
|
+
- !ruby/object:Gem::Version
|
135
|
+
version: '0.10'
|
136
|
+
- - ">="
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: 0.10.1
|
139
|
+
type: :development
|
140
|
+
prerelease: false
|
141
|
+
version_requirements: !ruby/object:Gem::Requirement
|
142
|
+
requirements:
|
143
|
+
- - "~>"
|
144
|
+
- !ruby/object:Gem::Version
|
145
|
+
version: '0.10'
|
146
|
+
- - ">="
|
147
|
+
- !ruby/object:Gem::Version
|
148
|
+
version: 0.10.1
|
149
|
+
- !ruby/object:Gem::Dependency
|
150
|
+
name: rspec
|
151
|
+
requirement: !ruby/object:Gem::Requirement
|
152
|
+
requirements:
|
153
|
+
- - "~>"
|
154
|
+
- !ruby/object:Gem::Version
|
155
|
+
version: '3.2'
|
156
|
+
- - ">="
|
157
|
+
- !ruby/object:Gem::Version
|
158
|
+
version: 3.2.0
|
159
|
+
type: :development
|
160
|
+
prerelease: false
|
161
|
+
version_requirements: !ruby/object:Gem::Requirement
|
162
|
+
requirements:
|
163
|
+
- - "~>"
|
164
|
+
- !ruby/object:Gem::Version
|
165
|
+
version: '3.2'
|
166
|
+
- - ">="
|
167
|
+
- !ruby/object:Gem::Version
|
168
|
+
version: 3.2.0
|
169
|
+
- !ruby/object:Gem::Dependency
|
170
|
+
name: webmock
|
171
|
+
requirement: !ruby/object:Gem::Requirement
|
172
|
+
requirements:
|
173
|
+
- - "~>"
|
174
|
+
- !ruby/object:Gem::Version
|
175
|
+
version: '1.20'
|
176
|
+
- - ">="
|
177
|
+
- !ruby/object:Gem::Version
|
178
|
+
version: 1.20.4
|
179
|
+
type: :development
|
180
|
+
prerelease: false
|
181
|
+
version_requirements: !ruby/object:Gem::Requirement
|
182
|
+
requirements:
|
183
|
+
- - "~>"
|
184
|
+
- !ruby/object:Gem::Version
|
185
|
+
version: '1.20'
|
186
|
+
- - ">="
|
187
|
+
- !ruby/object:Gem::Version
|
188
|
+
version: 1.20.4
|
189
|
+
- !ruby/object:Gem::Dependency
|
190
|
+
name: timecop
|
191
|
+
requirement: !ruby/object:Gem::Requirement
|
192
|
+
requirements:
|
193
|
+
- - "~>"
|
194
|
+
- !ruby/object:Gem::Version
|
195
|
+
version: '0.7'
|
196
|
+
- - ">="
|
197
|
+
- !ruby/object:Gem::Version
|
198
|
+
version: 0.7.1
|
199
|
+
type: :development
|
200
|
+
prerelease: false
|
201
|
+
version_requirements: !ruby/object:Gem::Requirement
|
202
|
+
requirements:
|
203
|
+
- - "~>"
|
204
|
+
- !ruby/object:Gem::Version
|
205
|
+
version: '0.7'
|
206
|
+
- - ">="
|
207
|
+
- !ruby/object:Gem::Version
|
208
|
+
version: 0.7.1
|
209
|
+
- !ruby/object:Gem::Dependency
|
210
|
+
name: vcr
|
211
|
+
requirement: !ruby/object:Gem::Requirement
|
212
|
+
requirements:
|
213
|
+
- - "~>"
|
214
|
+
- !ruby/object:Gem::Version
|
215
|
+
version: '2.9'
|
216
|
+
- - ">="
|
217
|
+
- !ruby/object:Gem::Version
|
218
|
+
version: 2.9.3
|
219
|
+
type: :development
|
220
|
+
prerelease: false
|
221
|
+
version_requirements: !ruby/object:Gem::Requirement
|
222
|
+
requirements:
|
223
|
+
- - "~>"
|
224
|
+
- !ruby/object:Gem::Version
|
225
|
+
version: '2.9'
|
226
|
+
- - ">="
|
227
|
+
- !ruby/object:Gem::Version
|
228
|
+
version: 2.9.3
|
229
|
+
description: api
|
230
|
+
email:
|
231
|
+
- parallel588@gmail.com
|
232
|
+
executables: []
|
233
|
+
extensions: []
|
234
|
+
extra_rdoc_files: []
|
235
|
+
files:
|
236
|
+
- ".gitignore"
|
237
|
+
- ".rspec"
|
238
|
+
- ".travis.yml"
|
239
|
+
- Gemfile
|
240
|
+
- LICENSE.txt
|
241
|
+
- README.md
|
242
|
+
- Rakefile
|
243
|
+
- bin/console
|
244
|
+
- bin/setup
|
245
|
+
- lib/securevideo/api.rb
|
246
|
+
- lib/securevideo/api/participant.rb
|
247
|
+
- lib/securevideo/api/session.rb
|
248
|
+
- lib/securevideo/api/time_zones.rb
|
249
|
+
- lib/securevideo/api/user.rb
|
250
|
+
- lib/securevideo/api/version.rb
|
251
|
+
- securevideo-api.gemspec
|
252
|
+
homepage: https://github.com/r2practice/securevideo-api
|
253
|
+
licenses:
|
254
|
+
- MIT
|
255
|
+
metadata: {}
|
256
|
+
post_install_message:
|
257
|
+
rdoc_options: []
|
258
|
+
require_paths:
|
259
|
+
- lib
|
260
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
261
|
+
requirements:
|
262
|
+
- - ">="
|
263
|
+
- !ruby/object:Gem::Version
|
264
|
+
version: '0'
|
265
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
266
|
+
requirements:
|
267
|
+
- - ">="
|
268
|
+
- !ruby/object:Gem::Version
|
269
|
+
version: '0'
|
270
|
+
requirements: []
|
271
|
+
rubyforge_project:
|
272
|
+
rubygems_version: 2.4.5
|
273
|
+
signing_key:
|
274
|
+
specification_version: 4
|
275
|
+
summary: API wrapper of securevideo.com
|
276
|
+
test_files: []
|
277
|
+
has_rdoc:
|