Skip to content

Commit

Permalink
Adding explicit brightcove-api-version file
Browse files Browse the repository at this point in the history
  • Loading branch information
David Czarnecki committed Nov 15, 2011
1 parent d29c844 commit 72bc221
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .rvmrc
@@ -1,2 +1,2 @@
rvm --create 1.8.7@brightcove-api_gem
rvm --create 1.9.2@brightcove-api_gem
rvm use --create 1.8.7@brightcove-api_gem
rvm use --create 1.9.2@brightcove-api_gem
3 changes: 2 additions & 1 deletion brightcove-api.gemspec
@@ -1,7 +1,7 @@
# -*- encoding: utf-8 -*-
$:.push File.expand_path("../lib", __FILE__)

require 'brightcove-api'
require 'brightcove-api-version'

Gem::Specification.new do |s|
s.name = "brightcove-api"
Expand All @@ -27,4 +27,5 @@ Gem::Specification.new do |s|

s.add_development_dependency('fakeweb')
s.add_development_dependency('mocha')
s.add_development_dependency('rake')
end
5 changes: 5 additions & 0 deletions lib/brightcove-api-version.rb
@@ -0,0 +1,5 @@
module Brightcove
class API
VERSION = '1.0.11'
end
end
3 changes: 1 addition & 2 deletions lib/brightcove-api.rb
Expand Up @@ -3,14 +3,13 @@
require 'rest-client'
require 'orderedhash'
require 'net/http/post/multipart'
require 'brightcove-api-version'

module Brightcove
class API
include HTTParty
disable_rails_query_string_format

VERSION = '1.0.11'

DEFAULT_HEADERS = {
'User-Agent' => "brightcove-api gem #{VERSION}"
}
Expand Down

0 comments on commit 72bc221

Please sign in to comment.