brightcove-api 1.0.12 → 1.0.13

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.
data/.rspec CHANGED
@@ -1,2 +1,3 @@
1
1
  --colour
2
- --format doc
2
+ --format doc
3
+ --order random
@@ -1,25 +1,31 @@
1
- # 1.0.12 (2012-06-12)
1
+ # CHANGELOG
2
+
3
+ ## 1.0.13 (2013-04-24)
4
+
5
+ * Allow an UploadIO object to be passed in to post_io_streaming Thanks @icebreaker
6
+
7
+ ## 1.0.12 (2012-06-12)
2
8
 
3
9
  * Allow post streaming when you have an file handle instead of a filename. Thanks @keysolutions
4
10
 
5
- # 1.0.11 (2011-09-13)
11
+ ## 1.0.11 (2011-09-13)
6
12
 
7
13
  * Only set `timeout` and `open_timeout` in `post_file(...)` and `post_file_streaming(...)` if they are set
8
14
  * Support output format in Media RSS for passing `:output => 'mrss'` in the options for the `get` method
9
15
  * Remove explicit version dependencies from supporting libraries
10
16
 
11
- # 1.0.10 (2011-06-22)
17
+ ## 1.0.10 (2011-06-22)
12
18
 
13
19
  * Updated `post_file_streaming` method to support Ruby 1.8.7
14
20
 
15
- # 1.0.9 (2011-06-22)
21
+ ## 1.0.9 (2011-06-22)
22
+
23
+ * Added `post_file_streaming` method
16
24
 
17
- * Added `post_file_streaming` method
18
-
19
- # 1.0.7 (2011-03-21)
25
+ ## 1.0.7 (2011-03-21)
20
26
 
21
27
  * Allow for hash to be ordered when using the create_video call under Ruby 1.8.7
22
28
 
23
- # 1.0.6 (2011-02-16)
29
+ ## 1.0.6 (2011-02-16)
24
30
 
25
31
  * `set_timeout` can be used to set an HTTP timeout in seconds.
data/Gemfile CHANGED
@@ -1,3 +1,3 @@
1
- source :rubygems
1
+ source 'https://rubygems.org'
2
2
 
3
3
  gemspec
data/LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2010-2012 David Czarnecki
1
+ Copyright (c) 2010-2013 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
@@ -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-2012 David Czarnecki. See LICENSE for details.
93
+ Copyright (c) 2010-2013 David Czarnecki. See LICENSE for details.
@@ -162,7 +162,7 @@ module Brightcove
162
162
  response = nil
163
163
 
164
164
  payload[:json] = body.to_json
165
- payload[:file] = UploadIO.new(file, content_type)
165
+ payload[:file] = file.is_a?(UploadIO) ? file : UploadIO.new(file, content_type)
166
166
 
167
167
  request = Net::HTTP::Post::Multipart.new(url.path, payload)
168
168
 
@@ -194,4 +194,4 @@ module Brightcove
194
194
  { :query => options }
195
195
  end
196
196
  end
197
- end
197
+ end
@@ -1,5 +1,5 @@
1
1
  module Brightcove
2
2
  class API
3
- VERSION = '1.0.12'.freeze
3
+ VERSION = '1.0.13'.freeze
4
4
  end
5
5
  end
@@ -2,7 +2,7 @@ require 'spec_helper'
2
2
 
3
3
  describe Brightcove::API do
4
4
  it 'should be the correct version' do
5
- Brightcove::API::VERSION.should == '1.0.12'
5
+ Brightcove::API::VERSION.should == '1.0.13'
6
6
  end
7
7
 
8
8
  it 'should allow you to set new HTTP headers' do
@@ -123,12 +123,12 @@ describe Brightcove::API do
123
123
 
124
124
  it 'should allow you to create a video using #post_io_streaming' do
125
125
  VCR.use_cassette('post_file_streaming', :serialize_with => :yaml) do
126
- brightcove = Brightcove::API.new('0Z2dtxTdJAxtbZ-d0U7Bhio2V1Rhr5Iafl5FFtDPY8E.')
126
+ brightcove = Brightcove::API.new('0Z2dtxTdJAxtbZ-d0U7Bhio2V1Rhr5Iafl5FFtDPY8E.')
127
127
  brightcove_response = File.open(File.join(File.dirname(__FILE__), 'assets', 'movie.mov')) do |file|
128
128
  brightcove.post_io_streaming('create_video', file, 'video/quicktime',
129
129
  :video => {:shortDescription => "Short Description", :name => "Video"})
130
130
  end
131
-
131
+
132
132
  brightcove_response.should have_key('result')
133
133
  brightcove_response['result'].should == 653155417001
134
134
  brightcove_response['error'].should be_nil
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: brightcove-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.12
4
+ version: 1.0.13
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-06-12 00:00:00.000000000 Z
12
+ date: 2013-04-24 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: httparty
@@ -212,7 +212,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
212
212
  version: '0'
213
213
  segments:
214
214
  - 0
215
- hash: 3137406389883439482
215
+ hash: 3040307960054410367
216
216
  required_rubygems_version: !ruby/object:Gem::Requirement
217
217
  none: false
218
218
  requirements:
@@ -221,10 +221,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
221
221
  version: '0'
222
222
  segments:
223
223
  - 0
224
- hash: 3137406389883439482
224
+ hash: 3040307960054410367
225
225
  requirements: []
226
226
  rubyforge_project: brightcove-api
227
- rubygems_version: 1.8.24
227
+ rubygems_version: 1.8.25
228
228
  signing_key:
229
229
  specification_version: 3
230
230
  summary: Ruby gem for interacting with the Brightcove media API