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 CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- NTA3NmQwMmI4NjlkOTUzN2Q1ZTdjMTQzNGNiN2VkNDRkYTA2YTY4ZA==
4
+ MWY2MzkzNjQ3ODBlN2YyY2I4MzFmNWFlN2FkNGE1Mzc4MWFiYTFhNw==
5
5
  data.tar.gz: !binary |-
6
- OTA5Y2E4YjRkNTk1MTNmMzZhMDQ4OWY5ZDEyZjk0OWM4MGZkZGUyMg==
6
+ MmFlNTAyYzhjZGQ1M2E5NDJjNDRiNGRlNzUyZjhiNDExNzk5NGFjMA==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- NzYzODI1MDBlNjkxOWU0NjA0MDdhY2U4OTBkYjRmMDU3NjI3MzZmM2U0ZDll
10
- NTkwMWI3YTkzNGUwNmVkZjA3OTU4YzljODRkOWI2MmI1ZmJmMzY4NTUxN2Iz
11
- ZTgwZGVjY2I4NGQzYzA2NDVkOTczMmFkM2ZhMmY5Yzk1ZDBlZjU=
9
+ MmRkMjgzNDc5OWYyM2MyY2QzNTlkOGZiY2Y2ZGM5ZDAxZmQxYTI1ZDNmNzEw
10
+ OWNjNDQwODVlMzUwODM1ZmYxMGQyYzQ1MDdhYzA1YjM0MWRlYmNiNDFlNDVi
11
+ NTllNzBiODQ0Zjg3N2JiMzc4MmJmMWU3NDg5OGEwZGViZWZiMmM=
12
12
  data.tar.gz: !binary |-
13
- YWY3MWU5YTc0MmVhNGIyYmJmYjQ1MWYxZjlkYzBhOTgwYWI5NGQwYjM4YWZm
14
- ZGVlOGFkNjAyMmQ5ZTQwYWIxYmFlMGNlOTJkMmI5Mjg1YWM5NzlhMDY4ZTU1
15
- YTAzOTU3NjVkNDU1ZWQwZDlkMmM4YTM5Y2ZmNjRkZDk5Y2Y2OGQ=
13
+ YjAxNDNkYjU1NTE2OTQwNTU3YmY3NzllZWYyMjUyYjIzZWJlOTNiN2MzNzlk
14
+ YTM2ZTg2OTNmYTg0MDE5OTU4ODRlZTFmZmM2ZTNiYTAxZjY5ODQ3MTQ3YzNm
15
+ ODhmN2NhMWIwNjI5MGQ3ZDRjNTEzYmNkYzkwYjljZDRlMDA4ZDc=
@@ -0,0 +1 @@
1
+ brightcove-api_gem
@@ -0,0 +1 @@
1
+ 1.9.3
@@ -1,5 +1,9 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## 1.0.17 (2014-09-22)
4
+
5
+ * Fix call to set timeout and HTTP headers. Fixes #15.
6
+
3
7
  ## 1.0.16 (2014-03-07)
4
8
 
5
9
  * Use https URLs [#14](https://github.com/BrightcoveOS/Ruby-MAPI-Wrapper/pull/14)
@@ -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.
@@ -1,5 +1,5 @@
1
1
  module Brightcove
2
2
  class API
3
- VERSION = '1.0.16'.freeze
3
+ VERSION = '1.0.17'.freeze
4
4
  end
5
5
  end
@@ -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.16'
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
- brightcove.expects(:headers).at_least_once
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
- brightcove.expects(:default_timeout).at_least_once
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.16
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-03-08 00:00:00.000000000 Z
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
- - .rvmrc
162
+ - .ruby-gemset
163
+ - .ruby-version
163
164
  - CHANGELOG.markdown
164
165
  - Gemfile
165
166
  - LICENSE
data/.rvmrc DELETED
@@ -1,2 +0,0 @@
1
- rvm use --create 1.8.7@brightcove-api_gem
2
- rvm use --create 1.9.3@brightcove-api_gem