opentok 3.0.2 → 3.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8c0fa9908ce601a8a62ac204d16f3d246fc58888
4
- data.tar.gz: 663880336f2fb2b058524068d0df3c1e2731b34f
3
+ metadata.gz: 679a364a592829ee29acad18146e680f82d2a3de
4
+ data.tar.gz: 1d822425e30d6aa05e41768348fd9863b85677a4
5
5
  SHA512:
6
- metadata.gz: adabf4a6328c9abf40d26e8de5faebf93d95ece02c645f3cb025d9fe2895c7ea919391c5e16f240d3829f6070ebdcba400eecf8208673554bf39fc099bfc037c
7
- data.tar.gz: ae7c76f0ebb2eec3a35fc9d6bf6d9f7424f92647c0947d75373a2bbda1dc3e084862fa357f2a46e87a42fbc1a7a51a970ddf8aec9d6ae8af24bb6b7d015e80c0
6
+ metadata.gz: 0e0fdf3a74c811f22c535c1829eb9109ce7f8e2c45ab711796ee97a5891658aa2ab3d5625f9ddf953ddcbb27241ddb339261fec7d5321145ed012469cc896a1f
7
+ data.tar.gz: '0741182e612a82221688abda4226a5138e1051a47ad5d0f8a3e59005461935a2af711ba338721d37d2a42954e4113f43733ec2cbfca0c0a0ee77d83222701319'
data/README.md CHANGED
@@ -17,7 +17,7 @@ Bundler helps manage dependencies for Ruby projects. Find more info here: <http:
17
17
  Add this gem to your `Gemfile`:
18
18
 
19
19
  ```ruby
20
- gem "opentok", "~> 3.0.2"
20
+ gem "opentok", "~> 3.0.3"
21
21
  ```
22
22
 
23
23
  Allow bundler to install the change.
@@ -1,6 +1,7 @@
1
1
  require "opentok/constants"
2
2
  require "opentok/exceptions"
3
3
  require "opentok/extensions/hash"
4
+ require "opentok/version"
4
5
 
5
6
  require "active_support/inflector"
6
7
  require "httparty"
@@ -19,7 +20,7 @@ module OpenTok
19
20
  def initialize(api_key, api_secret, api_url, ua_addendum="")
20
21
  self.class.base_uri api_url
21
22
  self.class.headers({
22
- "User-Agent" => "OpenTok-Ruby-SDK/#{VERSION}" + (ua_addendum ? " #{ua_addendum}" : "")
23
+ "User-Agent" => "OpenTok-Ruby-SDK/#{VERSION}" + "-Ruby-Version-#{RUBY_VERSION}-p#{RUBY_PATCHLEVEL}" + (ua_addendum ? " #{ua_addendum}" : "")
23
24
  })
24
25
  @api_key = api_key
25
26
  @api_secret = api_secret
@@ -1,4 +1,4 @@
1
1
  module OpenTok
2
2
  # @private
3
- VERSION = '3.0.2'
3
+ VERSION = '3.0.3'
4
4
  end
@@ -28,21 +28,21 @@ describe OpenTok::Archives do
28
28
 
29
29
  it { should be_an_instance_of OpenTok::Archives }
30
30
 
31
- it "should create archives", :vcr => { :erb => { :version => OpenTok::VERSION } } do
31
+ it "should create archives", :vcr => { :erb => { :version => OpenTok::VERSION + "-Ruby-Version-#{RUBY_VERSION}-p#{RUBY_PATCHLEVEL}" } } do
32
32
  archive = archives.create session_id
33
33
  expect(archive).to be_an_instance_of OpenTok::Archive
34
34
  expect(archive.session_id).to eq session_id
35
35
  expect(archive.id).not_to be_nil
36
36
  end
37
37
 
38
- it "should create named archives", :vcr => { :erb => { :version => OpenTok::VERSION } } do
38
+ it "should create named archives", :vcr => { :erb => { :version => OpenTok::VERSION + "-Ruby-Version-#{RUBY_VERSION}-p#{RUBY_PATCHLEVEL}"} } do
39
39
  archive = archives.create session_id, :name => archive_name
40
40
  expect(archive).to be_an_instance_of OpenTok::Archive
41
41
  expect(archive.session_id).to eq session_id
42
42
  expect(archive.name).to eq archive_name
43
43
  end
44
44
 
45
- it "should create audio only archives", :vcr => { :erb => { :version => OpenTok::VERSION } } do
45
+ it "should create audio only archives", :vcr => { :erb => { :version => OpenTok::VERSION + "-Ruby-Version-#{RUBY_VERSION}-p#{RUBY_PATCHLEVEL}" } } do
46
46
  archive = archives.create session_id, :has_video => false
47
47
  expect(archive).to be_an_instance_of OpenTok::Archive
48
48
  expect(archive.session_id).to eq session_id
@@ -50,45 +50,45 @@ describe OpenTok::Archives do
50
50
  expect(archive.has_audio).to be true
51
51
  end
52
52
 
53
- it "should create individual archives", :vcr => { :erb => { :version => OpenTok::VERSION } } do
53
+ it "should create individual archives", :vcr => { :erb => { :version => OpenTok::VERSION + "-Ruby-Version-#{RUBY_VERSION}-p#{RUBY_PATCHLEVEL}" } } do
54
54
  archive = archives.create session_id, :output_mode => :individual
55
55
  expect(archive).to be_an_instance_of OpenTok::Archive
56
56
  expect(archive.session_id).to eq session_id
57
57
  expect(archive.output_mode).to eq :individual
58
58
  end
59
59
 
60
- it "should stop archives", :vcr => { :erb => { :version => OpenTok::VERSION } } do
60
+ it "should stop archives", :vcr => { :erb => { :version => OpenTok::VERSION + "-Ruby-Version-#{RUBY_VERSION}-p#{RUBY_PATCHLEVEL}" } } do
61
61
  archive = archives.stop_by_id started_archive_id
62
62
  expect(archive).to be_an_instance_of OpenTok::Archive
63
63
  expect(archive.status).to eq "stopped"
64
64
  end
65
65
 
66
- it "should find archives by id", :vcr => { :erb => { :version => OpenTok::VERSION } } do
66
+ it "should find archives by id", :vcr => { :erb => { :version => OpenTok::VERSION + "-Ruby-Version-#{RUBY_VERSION}-p#{RUBY_PATCHLEVEL}" } } do
67
67
  archive = archives.find findable_archive_id
68
68
  expect(archive).to be_an_instance_of OpenTok::Archive
69
69
  expect(archive.id).to eq findable_archive_id
70
70
  end
71
71
 
72
- it "should find paused archives by id", :vcr => { :erb => { :version => OpenTok::VERSION } } do
72
+ it "should find paused archives by id", :vcr => { :erb => { :version => OpenTok::VERSION + "-Ruby-Version-#{RUBY_VERSION}-p#{RUBY_PATCHLEVEL}" } } do
73
73
  archive = archives.find findable_paused_archive_id
74
74
  expect(archive).to be_an_instance_of OpenTok::Archive
75
75
  expect(archive.id).to eq findable_paused_archive_id
76
76
  expect(archive.status).to eq "paused"
77
77
  end
78
78
 
79
- it "should delete an archive by id", :vcr => { :erb => { :version => OpenTok::VERSION } } do
79
+ it "should delete an archive by id", :vcr => { :erb => { :version => OpenTok::VERSION + "-Ruby-Version-#{RUBY_VERSION}-p#{RUBY_PATCHLEVEL}" } } do
80
80
  success = archives.delete_by_id deletable_archive_id
81
81
  expect(success).to be_true
82
82
  # expect(archive.status).to eq ""
83
83
  end
84
84
 
85
- it "should find expired archives", :vcr => { :erb => { :version => OpenTok::VERSION } } do
85
+ it "should find expired archives", :vcr => { :erb => { :version => OpenTok::VERSION + "-Ruby-Version-#{RUBY_VERSION}-p#{RUBY_PATCHLEVEL}"} } do
86
86
  archive = archives.find findable_archive_id
87
87
  expect(archive).to be_an_instance_of OpenTok::Archive
88
88
  expect(archive.status).to eq "expired"
89
89
  end
90
90
 
91
- it "should find archives with unknown properties", :vcr => { :erb => { :version => OpenTok::VERSION } } do
91
+ it "should find archives with unknown properties", :vcr => { :erb => { :version => OpenTok::VERSION + "-Ruby-Version-#{RUBY_VERSION}-p#{RUBY_PATCHLEVEL}"} } do
92
92
  archive = archives.find findable_archive_id
93
93
  expect(archive).to be_an_instance_of OpenTok::Archive
94
94
  end
@@ -101,35 +101,35 @@ describe OpenTok::Archives do
101
101
  # end
102
102
 
103
103
  context "when many archives are created" do
104
- it "should return all archives", :vcr => { :erb => { :version => OpenTok::VERSION } } do
104
+ it "should return all archives", :vcr => { :erb => { :version => OpenTok::VERSION + "-Ruby-Version-#{RUBY_VERSION}-p#{RUBY_PATCHLEVEL}"} } do
105
105
  archive_list = archives.all
106
106
  expect(archive_list).to be_an_instance_of OpenTok::ArchiveList
107
107
  expect(archive_list.total).to eq 6
108
108
  expect(archive_list.count).to eq 6
109
109
  end
110
110
 
111
- it "should return archives with an offset", :vcr => { :erb => { :version => OpenTok::VERSION } } do
111
+ it "should return archives with an offset", :vcr => { :erb => { :version => OpenTok::VERSION + "-Ruby-Version-#{RUBY_VERSION}-p#{RUBY_PATCHLEVEL}"} } do
112
112
  archive_list = archives.all :offset => 3
113
113
  expect(archive_list).to be_an_instance_of OpenTok::ArchiveList
114
114
  expect(archive_list.total).to eq 3
115
115
  expect(archive_list.count).to eq 3
116
116
  end
117
117
 
118
- it "should return count number of archives", :vcr => { :erb => { :version => OpenTok::VERSION } } do
118
+ it "should return count number of archives", :vcr => { :erb => { :version => OpenTok::VERSION + "-Ruby-Version-#{RUBY_VERSION}-p#{RUBY_PATCHLEVEL}"} } do
119
119
  archive_list = archives.all :count => 2
120
120
  expect(archive_list).to be_an_instance_of OpenTok::ArchiveList
121
121
  expect(archive_list.count).to eq 2
122
122
  expect(archive_list.count).to eq 2
123
123
  end
124
124
 
125
- it "should return part of the archives when using offset and count", :vcr => { :erb => { :version => OpenTok::VERSION } } do
125
+ it "should return part of the archives when using offset and count", :vcr => { :erb => { :version => OpenTok::VERSION + "-Ruby-Version-#{RUBY_VERSION}-p#{RUBY_PATCHLEVEL}"} } do
126
126
  archive_list = archives.all :count => 4, :offset => 2
127
127
  expect(archive_list).to be_an_instance_of OpenTok::ArchiveList
128
128
  expect(archive_list.count).to eq 4
129
129
  expect(archive_list.count).to eq 4
130
130
  end
131
131
 
132
- it "should return session archives", :vcr => { :erb => { :version => OpenTok::VERSION } } do
132
+ it "should return session archives", :vcr => { :erb => { :version => OpenTok::VERSION + "-Ruby-Version-#{RUBY_VERSION}-p#{RUBY_PATCHLEVEL}"} } do
133
133
  archive_list = archives.all :sessionId => session_id
134
134
  expect(archive_list).to be_an_instance_of OpenTok::ArchiveList
135
135
  expect(archive_list.total).to eq 3
@@ -37,7 +37,7 @@ describe OpenTok::OpenTok do
37
37
 
38
38
  let(:location) { '12.34.56.78' }
39
39
 
40
- it "creates default sessions", :vcr => { :erb => { :version => OpenTok::VERSION } } do
40
+ it "creates default sessions", :vcr => { :erb => { :version => OpenTok::VERSION + "-Ruby-Version-#{RUBY_VERSION}-p#{RUBY_PATCHLEVEL}" } } do
41
41
  session = opentok.create_session
42
42
  expect(session).to be_an_instance_of OpenTok::Session
43
43
  # TODO: do we need to be any more specific about what a valid session_id looks like?
@@ -46,7 +46,7 @@ describe OpenTok::OpenTok do
46
46
  expect(session.location).to eq nil
47
47
  end
48
48
 
49
- it "creates relayed media sessions", :vcr => { :erb => { :version => OpenTok::VERSION } } do
49
+ it "creates relayed media sessions", :vcr => { :erb => { :version => OpenTok::VERSION + "-Ruby-Version-#{RUBY_VERSION}-p#{RUBY_PATCHLEVEL}"} } do
50
50
  session = opentok.create_session :media_mode => :relayed
51
51
  expect(session).to be_an_instance_of OpenTok::Session
52
52
  expect(session.session_id).to be_an_instance_of String
@@ -54,7 +54,7 @@ describe OpenTok::OpenTok do
54
54
  expect(session.location).to eq nil
55
55
  end
56
56
 
57
- it "creates routed media sessions", :vcr => { :erb => { :version => OpenTok::VERSION } } do
57
+ it "creates routed media sessions", :vcr => { :erb => { :version => OpenTok::VERSION + "-Ruby-Version-#{RUBY_VERSION}-p#{RUBY_PATCHLEVEL}"} } do
58
58
  session = opentok.create_session :media_mode => :routed
59
59
  expect(session).to be_an_instance_of OpenTok::Session
60
60
  expect(session.session_id).to be_an_instance_of String
@@ -62,7 +62,7 @@ describe OpenTok::OpenTok do
62
62
  expect(session.location).to eq nil
63
63
  end
64
64
 
65
- it "creates sessions with a location hint", :vcr => { :erb => { :version => OpenTok::VERSION } } do
65
+ it "creates sessions with a location hint", :vcr => { :erb => { :version => OpenTok::VERSION + "-Ruby-Version-#{RUBY_VERSION}-p#{RUBY_PATCHLEVEL}"} } do
66
66
  session = opentok.create_session :location => location
67
67
  expect(session).to be_an_instance_of OpenTok::Session
68
68
  expect(session.session_id).to be_an_instance_of String
@@ -70,7 +70,7 @@ describe OpenTok::OpenTok do
70
70
  expect(session.location).to eq location
71
71
  end
72
72
 
73
- it "creates relayed media sessions with a location hint", :vcr => { :erb => { :version => OpenTok::VERSION } } do
73
+ it "creates relayed media sessions with a location hint", :vcr => { :erb => { :version => OpenTok::VERSION + "-Ruby-Version-#{RUBY_VERSION}-p#{RUBY_PATCHLEVEL}"} } do
74
74
  session = opentok.create_session :media_mode => :relayed, :location => location
75
75
  expect(session).to be_an_instance_of OpenTok::Session
76
76
  expect(session.session_id).to be_an_instance_of String
@@ -78,7 +78,7 @@ describe OpenTok::OpenTok do
78
78
  expect(session.location).to eq location
79
79
  end
80
80
 
81
- it "creates routed media sessions with a location hint", :vcr => { :erb => { :version => OpenTok::VERSION } } do
81
+ it "creates routed media sessions with a location hint", :vcr => { :erb => { :version => OpenTok::VERSION + "-Ruby-Version-#{RUBY_VERSION}-p#{RUBY_PATCHLEVEL}"} } do
82
82
  session = opentok.create_session :media_mode => :routed, :location => location
83
83
  expect(session).to be_an_instance_of OpenTok::Session
84
84
  expect(session.session_id).to be_an_instance_of String
@@ -86,14 +86,14 @@ describe OpenTok::OpenTok do
86
86
  expect(session.location).to eq location
87
87
  end
88
88
 
89
- it "creates relayed media sessions for invalid media modes", :vcr => { :erb => { :version => OpenTok::VERSION } } do
89
+ it "creates relayed media sessions for invalid media modes", :vcr => { :erb => { :version => OpenTok::VERSION + "-Ruby-Version-#{RUBY_VERSION}-p#{RUBY_PATCHLEVEL}"} } do
90
90
  session = opentok.create_session :media_mode => :blah
91
91
  expect(session).to be_an_instance_of OpenTok::Session
92
92
  expect(session.session_id).to be_an_instance_of String
93
93
  expect(session.media_mode).to eq :relayed
94
94
  expect(session.location).to eq nil
95
95
  end
96
- it "creates always archived sessions", :vcr => { :erb => { :version => OpenTok::VERSION } } do
96
+ it "creates always archived sessions", :vcr => { :erb => { :version => OpenTok::VERSION + "-Ruby-Version-#{RUBY_VERSION}-p#{RUBY_PATCHLEVEL}"} } do
97
97
  session = opentok.create_session :media_mode => :routed, :archive_mode => :always
98
98
  expect(session).to be_an_instance_of OpenTok::Session
99
99
  expect(session.session_id).to be_an_instance_of String
@@ -150,7 +150,7 @@ describe OpenTok::OpenTok do
150
150
  end
151
151
 
152
152
  # NOTE: ua_addendum is hardcoded into cassette
153
- it "should append the addendum to the user agent header", :vcr => { :erb => { :version => OpenTok::VERSION } } do
153
+ it "should append the addendum to the user agent header", :vcr => { :erb => { :version => OpenTok::VERSION + "-Ruby-Version-#{RUBY_VERSION}-p#{RUBY_PATCHLEVEL}"} } do
154
154
  session = opentok.create_session
155
155
  expect(session).to be_an_instance_of OpenTok::Session
156
156
  end
@@ -1,5 +1,6 @@
1
1
  require "opentok/opentok"
2
2
  require "opentok/sip"
3
+ require "opentok/version"
3
4
  require "spec_helper"
4
5
 
5
6
  describe OpenTok::Sip do
@@ -19,7 +20,7 @@ describe OpenTok::Sip do
19
20
  let(:sip) { opentok.sip }
20
21
  subject { sip }
21
22
 
22
- it "receives a valid response", :vcr => { :erb => { :version => OpenTok::VERSION } } do
23
+ it "receives a valid response", :vcr => { :erb => { :version => OpenTok::VERSION + "-Ruby-Version-#{RUBY_VERSION}-p#{RUBY_PATCHLEVEL}"} } do
23
24
  opts = { "auth" => { "username" => sip_username,
24
25
  "password" => sip_password },
25
26
  "secure" => "true"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: opentok
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.2
4
+ version: 3.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stijn Mathysen
@@ -12,7 +12,7 @@ authors:
12
12
  autorequire:
13
13
  bindir: bin
14
14
  cert_chain: []
15
- date: 2018-01-31 00:00:00.000000000 Z
15
+ date: 2018-07-10 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: bundler
@@ -265,7 +265,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
265
265
  version: '0'
266
266
  requirements: []
267
267
  rubyforge_project:
268
- rubygems_version: 2.6.11
268
+ rubygems_version: 2.5.2
269
269
  signing_key:
270
270
  specification_version: 4
271
271
  summary: Ruby gem for the OpenTok API