brightcove-api 1.0.16 → 1.0.17
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/.ruby-gemset +1 -0
- data/.ruby-version +1 -0
- data/CHANGELOG.markdown +4 -0
- data/lib/brightcove-api.rb +2 -2
- data/lib/brightcove-api/version.rb +1 -1
- data/spec/brightcove-api_spec.rb +3 -3
- metadata +4 -3
- data/.rvmrc +0 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
MWY2MzkzNjQ3ODBlN2YyY2I4MzFmNWFlN2FkNGE1Mzc4MWFiYTFhNw==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
MmFlNTAyYzhjZGQ1M2E5NDJjNDRiNGRlNzUyZjhiNDExNzk5NGFjMA==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MmRkMjgzNDc5OWYyM2MyY2QzNTlkOGZiY2Y2ZGM5ZDAxZmQxYTI1ZDNmNzEw
|
10
|
+
OWNjNDQwODVlMzUwODM1ZmYxMGQyYzQ1MDdhYzA1YjM0MWRlYmNiNDFlNDVi
|
11
|
+
NTllNzBiODQ0Zjg3N2JiMzc4MmJmMWU3NDg5OGEwZGViZWZiMmM=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
YjAxNDNkYjU1NTE2OTQwNTU3YmY3NzllZWYyMjUyYjIzZWJlOTNiN2MzNzlk
|
14
|
+
YTM2ZTg2OTNmYTg0MDE5OTU4ODRlZTFmZmM2ZTNiYTAxZjY5ODQ3MTQ3YzNm
|
15
|
+
ODhmN2NhMWIwNjI5MGQ3ZDRjNTEzYmNkYzkwYjljZDRlMDA4ZDc=
|
data/.ruby-gemset
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
brightcove-api_gem
|
data/.ruby-version
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
1.9.3
|
data/CHANGELOG.markdown
CHANGED
data/lib/brightcove-api.rb
CHANGED
@@ -57,14 +57,14 @@ module Brightcove
|
|
57
57
|
# @param http_headers [Hash] Updated HTTP headers.
|
58
58
|
def set_http_headers(http_headers = {})
|
59
59
|
http_headers.merge!(DEFAULT_HEADERS)
|
60
|
-
headers(http_headers)
|
60
|
+
self.class.headers(http_headers)
|
61
61
|
end
|
62
62
|
|
63
63
|
# Set a timeout for HTTP requests.
|
64
64
|
#
|
65
65
|
# @param timeout [int] HTTP timeout value.
|
66
66
|
def set_timeout(timeout)
|
67
|
-
default_timeout(timeout)
|
67
|
+
self.class.default_timeout(timeout)
|
68
68
|
end
|
69
69
|
|
70
70
|
# Make an HTTP GET call to the Brightcove API for a particular API method.
|
data/spec/brightcove-api_spec.rb
CHANGED
@@ -3,19 +3,19 @@ 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.
|
6
|
+
Brightcove::API::VERSION.should == '1.0.17'
|
7
7
|
end
|
8
8
|
|
9
9
|
it 'should allow you to set new HTTP headers' do
|
10
10
|
brightcove = Brightcove::API.new('apikeytoken')
|
11
|
-
|
11
|
+
Brightcove::API.expects(:headers).at_least_once
|
12
12
|
|
13
13
|
brightcove.set_http_headers({'Accept' => 'application/json'})
|
14
14
|
end
|
15
15
|
|
16
16
|
it 'should allow you to set a new default timeout' do
|
17
17
|
brightcove = Brightcove::API.new('apikeytoken')
|
18
|
-
|
18
|
+
Brightcove::API.expects(:default_timeout).at_least_once
|
19
19
|
|
20
20
|
brightcove.set_timeout(5)
|
21
21
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: brightcove-api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.17
|
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-
|
11
|
+
date: 2014-09-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httparty
|
@@ -159,7 +159,8 @@ extra_rdoc_files: []
|
|
159
159
|
files:
|
160
160
|
- .gitignore
|
161
161
|
- .rspec
|
162
|
-
- .
|
162
|
+
- .ruby-gemset
|
163
|
+
- .ruby-version
|
163
164
|
- CHANGELOG.markdown
|
164
165
|
- Gemfile
|
165
166
|
- LICENSE
|
data/.rvmrc
DELETED