brightcove-api 1.0.17 → 1.0.18

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,15 +1,7 @@
1
1
  ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: !binary |-
4
- MWY2MzkzNjQ3ODBlN2YyY2I4MzFmNWFlN2FkNGE1Mzc4MWFiYTFhNw==
5
- data.tar.gz: !binary |-
6
- MmFlNTAyYzhjZGQ1M2E5NDJjNDRiNGRlNzUyZjhiNDExNzk5NGFjMA==
2
+ SHA1:
3
+ metadata.gz: 6097c31d8b47aa78adb4844eecd2c2aa9d249381
4
+ data.tar.gz: 94cafc31a38216a81c4de1ad8f9205e86b6d2c3d
7
5
  SHA512:
8
- metadata.gz: !binary |-
9
- MmRkMjgzNDc5OWYyM2MyY2QzNTlkOGZiY2Y2ZGM5ZDAxZmQxYTI1ZDNmNzEw
10
- OWNjNDQwODVlMzUwODM1ZmYxMGQyYzQ1MDdhYzA1YjM0MWRlYmNiNDFlNDVi
11
- NTllNzBiODQ0Zjg3N2JiMzc4MmJmMWU3NDg5OGEwZGViZWZiMmM=
12
- data.tar.gz: !binary |-
13
- YjAxNDNkYjU1NTE2OTQwNTU3YmY3NzllZWYyMjUyYjIzZWJlOTNiN2MzNzlk
14
- YTM2ZTg2OTNmYTg0MDE5OTU4ODRlZTFmZmM2ZTNiYTAxZjY5ODQ3MTQ3YzNm
15
- ODhmN2NhMWIwNjI5MGQ3ZDRjNTEzYmNkYzkwYjljZDRlMDA4ZDc=
6
+ metadata.gz: 8f333abf05752d0914cddb8271a57747231eb9fccd2436af200fe36b53e233e7e656467a88c73b2d67549a20242421a455c3cd82b5bd168531bafe3f8edb1bea
7
+ data.tar.gz: 97d37ced0bc3dab3c163c09a8daf43b00d80313638274abe10fcd3778454c5d796ece970363df587d7fd929117cd5ed39f7174dfa2cd9cac4bc48b46006e2374
data/.rspec CHANGED
@@ -1,3 +1,3 @@
1
1
  --colour
2
- --format doc
2
+ --format documentation
3
3
  --order random
@@ -1 +1 @@
1
- 1.9.3
1
+ 2.2.1
@@ -1,5 +1,9 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## 1.0.18 (2015-03-25)
4
+
5
+ * Use ssl for streaming api [#16](https://github.com/BrightcoveOS/Ruby-MAPI-Wrapper/pull/16)
6
+
3
7
  ## 1.0.17 (2014-09-22)
4
8
 
5
9
  * Fix call to set timeout and HTTP headers. Fixes #15.
data/LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2010-2014 David Czarnecki
1
+ Copyright (c) 2010-2015 David Czarnecki
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining
4
4
  a copy of this software and associated documentation files (the
data/README.md CHANGED
@@ -76,7 +76,7 @@ response = brightcove.get('search_videos', {
76
76
 
77
77
  ## Compatibility
78
78
 
79
- The brightcove-api gem is built and tested under Ruby 1.8.7, 1.9.2 and 1.9.3.
79
+ The brightcove-api gem is built and tested under Ruby 2.2.1.
80
80
 
81
81
  ## Note on Patches/Pull Requests
82
82
 
@@ -90,4 +90,4 @@ The brightcove-api gem is built and tested under Ruby 1.8.7, 1.9.2 and 1.9.3.
90
90
 
91
91
  ## Copyright
92
92
 
93
- Copyright (c) 2010-2014 David Czarnecki. See LICENSE for details.
93
+ Copyright (c) 2010-2015 David Czarnecki. See LICENSE for details.
@@ -174,7 +174,7 @@ module Brightcove
174
174
 
175
175
  request = Net::HTTP::Post::Multipart.new(url.path, payload)
176
176
 
177
- response = Net::HTTP.start(url.host, url.port) do |http|
177
+ response = Net::HTTP.start(url.host, url.port, :use_ssl => true) do |http|
178
178
  http.read_timeout = @timeout if @timeout
179
179
  http.open_timeout = @open_timeout if @open_timeout
180
180
  http.request(request)
@@ -1,5 +1,5 @@
1
1
  module Brightcove
2
2
  class API
3
- VERSION = '1.0.17'.freeze
3
+ VERSION = '1.0.18'.freeze
4
4
  end
5
5
  end
@@ -3,7 +3,7 @@ require 'open-uri'
3
3
 
4
4
  describe Brightcove::API do
5
5
  it 'should be the correct version' do
6
- Brightcove::API::VERSION.should == '1.0.17'
6
+ expect(Brightcove::API::VERSION).to eq('1.0.18')
7
7
  end
8
8
 
9
9
  it 'should allow you to set new HTTP headers' do
@@ -25,8 +25,8 @@ describe Brightcove::API do
25
25
  brightcove = Brightcove::API.new('0Z2dtxTdJAxtbZ-d0U7Bhio2V1Rhr5Iafl5FFtDPY8E.')
26
26
  brightcove_response = brightcove.get('find_all_videos', {:page_size => 5})
27
27
 
28
- brightcove_response['items'].size.should == 5
29
- brightcove_response['page_number'].should == 0
28
+ expect(brightcove_response['items'].size).to eq(5)
29
+ expect(brightcove_response['page_number']).to eq(0)
30
30
  end
31
31
  end
32
32
 
@@ -35,7 +35,7 @@ describe Brightcove::API do
35
35
  brightcove = Brightcove::API.new('0Z2dtxTdJAxtbZ-d0U7Bhio2V1Rhr5Iafl5FFtDPY8E.')
36
36
  brightcove_response = brightcove.get('find_all_videos', {:output => 'mrss'})
37
37
 
38
- brightcove_response['rss']['channel']['item'].size.should == 85
38
+ expect(brightcove_response['rss']['channel']['item'].size).to eq(85)
39
39
  end
40
40
  end
41
41
 
@@ -81,7 +81,7 @@ describe Brightcove::API do
81
81
  :all => ["football", "chicago", "tag:free"]
82
82
  })
83
83
 
84
- brightcove_response['items'].size.should == 0
84
+ expect(brightcove_response['items'].size).to eq(0)
85
85
  end
86
86
  end
87
87
 
@@ -90,8 +90,8 @@ describe Brightcove::API do
90
90
  brightcove = Brightcove::API.new('0Z2dtxTdJAxtbZ-d0U7Bhio2V1Rhr5Iafl5FFtDPY8E.')
91
91
  brightcove_response = brightcove.post('delete_video', {:video_id => '595153261337'})
92
92
 
93
- brightcove_response.should have_key('result')
94
- brightcove_response['error'].should be_nil
93
+ expect(brightcove_response).to have_key('result')
94
+ expect(brightcove_response['error']).to be_nil
95
95
  end
96
96
  end
97
97
 
@@ -102,9 +102,9 @@ describe Brightcove::API do
102
102
  File.join(File.dirname(__FILE__), 'assets', 'movie.mov'),
103
103
  :video => {:shortDescription => "Short Description", :name => "Video"})
104
104
 
105
- brightcove_response.should have_key('result')
106
- brightcove_response['result'].should == 653155417001
107
- brightcove_response['error'].should be_nil
105
+ expect(brightcove_response).to have_key('result')
106
+ expect(brightcove_response['result']).to eq(653155417001)
107
+ expect(brightcove_response['error']).to be_nil
108
108
  end
109
109
  end
110
110
 
@@ -115,9 +115,9 @@ describe Brightcove::API do
115
115
  File.join(File.dirname(__FILE__), 'assets', 'movie.mov'), 'video/quicktime',
116
116
  :video => {:shortDescription => "Short Description", :name => "Video"})
117
117
 
118
- brightcove_response.should have_key('result')
119
- brightcove_response['result'].should == 653155417001
120
- brightcove_response['error'].should be_nil
118
+ expect(brightcove_response).to have_key('result')
119
+ expect(brightcove_response['result']).to eq(653155417001)
120
+ expect(brightcove_response['error']).to be_nil
121
121
  end
122
122
  end
123
123
 
@@ -130,9 +130,9 @@ describe Brightcove::API do
130
130
  :video => {:shortDescription => "Short Description", :name => "Video"})
131
131
  end
132
132
 
133
- brightcove_response.should have_key('result')
134
- brightcove_response['result'].should == 653155417001
135
- brightcove_response['error'].should be_nil
133
+ expect(brightcove_response).to have_key('result')
134
+ expect(brightcove_response['result']).to eq(653155417001)
135
+ expect(brightcove_response['error']).to be_nil
136
136
  end
137
137
  end
138
138
 
@@ -144,9 +144,9 @@ describe Brightcove::API do
144
144
  :video => {:shortDescription => "Short Description", :name => "Video"})
145
145
  end
146
146
 
147
- brightcove_response.should have_key('result')
148
- brightcove_response['result'].should == 3088439142001
149
- brightcove_response['error'].should be_nil
147
+ expect(brightcove_response).to have_key('result')
148
+ expect(brightcove_response['result']).to eq(3088439142001)
149
+ expect(brightcove_response['error']).to be_nil
150
150
  end
151
151
  end
152
152
  end
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: post
5
- uri: http://api.brightcove.com:443/services/post
5
+ uri: https://api.brightcove.com/services/post
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
@@ -78,7 +78,7 @@ http_interactions:
78
78
  recorded_at: Wed, 22 Jan 2014 02:08:53 GMT
79
79
  - request:
80
80
  method: post
81
- uri: http://api.brightcove.com:443/services/post
81
+ uri: https://api.brightcove.com/services/post
82
82
  body:
83
83
  encoding: US-ASCII
84
84
  string: ''
metadata CHANGED
@@ -1,153 +1,153 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: brightcove-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.17
4
+ version: 1.0.18
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Czarnecki
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-09-22 00:00:00.000000000 Z
11
+ date: 2015-03-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ! '>='
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: '0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ! '>='
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: json
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ! '>='
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
33
  version: '0'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ! '>='
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rest-client
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ! '>='
45
+ - - ">="
46
46
  - !ruby/object:Gem::Version
47
47
  version: '0'
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - ! '>='
52
+ - - ">="
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: multipart-post
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - ! '>='
59
+ - - ">="
60
60
  - !ruby/object:Gem::Version
61
61
  version: '0'
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - ! '>='
66
+ - - ">="
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: multi_json
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - ! '>='
73
+ - - ">="
74
74
  - !ruby/object:Gem::Version
75
75
  version: '0'
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - ! '>='
80
+ - - ">="
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0'
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: fakeweb
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - ! '>='
87
+ - - ">="
88
88
  - !ruby/object:Gem::Version
89
89
  version: '0'
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
- - - ! '>='
94
+ - - ">="
95
95
  - !ruby/object:Gem::Version
96
96
  version: '0'
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: mocha
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
- - - ! '>='
101
+ - - ">="
102
102
  - !ruby/object:Gem::Version
103
103
  version: '0'
104
104
  type: :development
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
- - - ! '>='
108
+ - - ">="
109
109
  - !ruby/object:Gem::Version
110
110
  version: '0'
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: rake
113
113
  requirement: !ruby/object:Gem::Requirement
114
114
  requirements:
115
- - - ! '>='
115
+ - - ">="
116
116
  - !ruby/object:Gem::Version
117
117
  version: '0'
118
118
  type: :development
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
- - - ! '>='
122
+ - - ">="
123
123
  - !ruby/object:Gem::Version
124
124
  version: '0'
125
125
  - !ruby/object:Gem::Dependency
126
126
  name: rspec
127
127
  requirement: !ruby/object:Gem::Requirement
128
128
  requirements:
129
- - - ! '>='
129
+ - - ">="
130
130
  - !ruby/object:Gem::Version
131
131
  version: '0'
132
132
  type: :development
133
133
  prerelease: false
134
134
  version_requirements: !ruby/object:Gem::Requirement
135
135
  requirements:
136
- - - ! '>='
136
+ - - ">="
137
137
  - !ruby/object:Gem::Version
138
138
  version: '0'
139
139
  - !ruby/object:Gem::Dependency
140
140
  name: vcr
141
141
  requirement: !ruby/object:Gem::Requirement
142
142
  requirements:
143
- - - ! '>='
143
+ - - ">="
144
144
  - !ruby/object:Gem::Version
145
145
  version: '0'
146
146
  type: :development
147
147
  prerelease: false
148
148
  version_requirements: !ruby/object:Gem::Requirement
149
149
  requirements:
150
- - - ! '>='
150
+ - - ">="
151
151
  - !ruby/object:Gem::Version
152
152
  version: '0'
153
153
  description: Ruby gem for interacting with the Brightcove media API. http://docs.brightcove.com/en/media/
@@ -157,10 +157,10 @@ executables: []
157
157
  extensions: []
158
158
  extra_rdoc_files: []
159
159
  files:
160
- - .gitignore
161
- - .rspec
162
- - .ruby-gemset
163
- - .ruby-version
160
+ - ".gitignore"
161
+ - ".rspec"
162
+ - ".ruby-gemset"
163
+ - ".ruby-version"
164
164
  - CHANGELOG.markdown
165
165
  - Gemfile
166
166
  - LICENSE
@@ -189,17 +189,17 @@ require_paths:
189
189
  - lib
190
190
  required_ruby_version: !ruby/object:Gem::Requirement
191
191
  requirements:
192
- - - ! '>='
192
+ - - ">="
193
193
  - !ruby/object:Gem::Version
194
194
  version: '0'
195
195
  required_rubygems_version: !ruby/object:Gem::Requirement
196
196
  requirements:
197
- - - ! '>='
197
+ - - ">="
198
198
  - !ruby/object:Gem::Version
199
199
  version: '0'
200
200
  requirements: []
201
201
  rubyforge_project: brightcove-api
202
- rubygems_version: 2.2.2
202
+ rubygems_version: 2.4.6
203
203
  signing_key:
204
204
  specification_version: 4
205
205
  summary: Ruby gem for interacting with the Brightcove media API