brightcove-api 1.0.3 → 1.0.4

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile ADDED
@@ -0,0 +1,16 @@
1
+ source :rubygems
2
+
3
+ group :development do
4
+ gem "bundler", "~> 1.0.0"
5
+ gem "jeweler", "~> 1.5.1"
6
+ gem "rcov", ">= 0"
7
+ end
8
+
9
+ group :test do
10
+ gem 'fakeweb'
11
+ gem 'mocha'
12
+ end
13
+
14
+ gem 'httparty'
15
+ gem 'json'
16
+ gem 'rest-client'
data/Gemfile.lock ADDED
@@ -0,0 +1,33 @@
1
+ GEM
2
+ remote: http://rubygems.org/
3
+ specs:
4
+ crack (0.1.6)
5
+ fakeweb (1.2.8)
6
+ git (1.2.5)
7
+ httparty (0.5.2)
8
+ crack (= 0.1.6)
9
+ jeweler (1.5.1)
10
+ bundler (~> 1.0.0)
11
+ git (>= 1.2.5)
12
+ rake
13
+ json (1.4.6)
14
+ mime-types (1.16)
15
+ mocha (0.9.10)
16
+ rake
17
+ rake (0.8.7)
18
+ rcov (0.8.1.2.0)
19
+ rest-client (1.6.1)
20
+ mime-types (>= 1.16)
21
+
22
+ PLATFORMS
23
+ ruby
24
+
25
+ DEPENDENCIES
26
+ bundler (~> 1.0.0)
27
+ fakeweb
28
+ httparty
29
+ jeweler (~> 1.5.1)
30
+ json
31
+ mocha
32
+ rcov
33
+ rest-client
data/Rakefile CHANGED
@@ -1,24 +1,26 @@
1
1
  require 'rubygems'
2
+ require 'bundler'
3
+ begin
4
+ Bundler.setup(:default, :development)
5
+ rescue Bundler::BundlerError => e
6
+ $stderr.puts e.message
7
+ $stderr.puts "Run `bundle install` to install missing gems"
8
+ exit e.status_code
9
+ end
2
10
  require 'rake'
3
11
 
4
- begin
5
- require 'jeweler'
6
- Jeweler::Tasks.new do |gem|
7
- gem.name = "brightcove-api"
8
- gem.summary = %Q{Ruby gem for interacting with the Brightcove media API }
9
- gem.description = %Q{Ruby gem for interacting with the Brightcove media API. http://docs.brightcove.com/en/media/}
10
- gem.email = "dczarnecki@agoragames.com"
11
- gem.homepage = "http://github.com/agoragames/brightcove"
12
- gem.authors = ["David Czarnecki"]
13
- gem.add_dependency('httparty', '0.5.2')
14
- gem.add_dependency('fakeweb', '1.2.8')
15
- gem.add_dependency('json', '1.2.4')
16
- gem.add_dependency('rest-client', '1.6.1')
17
- end
18
- Jeweler::GemcutterTasks.new
19
- rescue LoadError
20
- puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
12
+ require 'jeweler'
13
+ Jeweler::Tasks.new do |gem|
14
+ # gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
15
+ gem.name = "brightcove-api"
16
+ gem.homepage = "http://github.com/agoragames/brightcove"
17
+ gem.license = "MIT"
18
+ gem.summary = %Q{Ruby gem for interacting with the Brightcove media API}
19
+ gem.description = %Q{Ruby gem for interacting with the Brightcove media API. http://docs.brightcove.com/en/media/}
20
+ gem.email = "dczarnecki@agoragames.com"
21
+ gem.authors = ["David Czarnecki"]
21
22
  end
23
+ Jeweler::RubygemsDotOrgTasks.new
22
24
 
23
25
  require 'rake/testtask'
24
26
  Rake::TestTask.new(:test) do |test|
@@ -27,21 +29,13 @@ Rake::TestTask.new(:test) do |test|
27
29
  test.verbose = true
28
30
  end
29
31
 
30
- begin
31
- require 'rcov/rcovtask'
32
- Rcov::RcovTask.new do |test|
33
- test.libs << 'test'
34
- test.pattern = 'test/**/test_*.rb'
35
- test.verbose = true
36
- end
37
- rescue LoadError
38
- task :rcov do
39
- abort "RCov is not available. In order to run rcov, you must: sudo gem install spicycode-rcov"
40
- end
32
+ require 'rcov/rcovtask'
33
+ Rcov::RcovTask.new do |test|
34
+ test.libs << 'test'
35
+ test.pattern = 'test/**/test_*.rb'
36
+ test.verbose = true
41
37
  end
42
38
 
43
- task :test => :check_dependencies
44
-
45
39
  task :default => :test
46
40
 
47
41
  require 'rake/rdoctask'
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.3
1
+ 1.0.4
@@ -1,45 +1,46 @@
1
1
  # Generated by jeweler
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
- # Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{brightcove-api}
8
- s.version = "1.0.3"
8
+ s.version = "1.0.4"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["David Czarnecki"]
12
- s.date = %q{2010-10-29}
12
+ s.date = %q{2010-12-27}
13
13
  s.description = %q{Ruby gem for interacting with the Brightcove media API. http://docs.brightcove.com/en/media/}
14
14
  s.email = %q{dczarnecki@agoragames.com}
15
15
  s.extra_rdoc_files = [
16
16
  "LICENSE",
17
- "README.rdoc"
17
+ "README.rdoc"
18
18
  ]
19
19
  s.files = [
20
20
  ".document",
21
- ".gitignore",
22
- "LICENSE",
23
- "README.rdoc",
24
- "Rakefile",
25
- "VERSION",
26
- "brightcove-api.gemspec",
27
- "lib/brightcove-api.rb",
28
- "test/fakeweb/create_video_response.json",
29
- "test/fakeweb/delete_video_response.json",
30
- "test/fakeweb/find_all_videos_response.json",
31
- "test/fakeweb/movie.mov",
32
- "test/helper.rb",
33
- "test/test_brightcove-api.rb"
21
+ "Gemfile",
22
+ "Gemfile.lock",
23
+ "LICENSE",
24
+ "README.rdoc",
25
+ "Rakefile",
26
+ "VERSION",
27
+ "brightcove-api.gemspec",
28
+ "lib/brightcove-api.rb",
29
+ "test/fakeweb/create_video_response.json",
30
+ "test/fakeweb/delete_video_response.json",
31
+ "test/fakeweb/find_all_videos_response.json",
32
+ "test/fakeweb/movie.mov",
33
+ "test/helper.rb",
34
+ "test/test_brightcove-api.rb"
34
35
  ]
35
36
  s.homepage = %q{http://github.com/agoragames/brightcove}
36
- s.rdoc_options = ["--charset=UTF-8"]
37
+ s.licenses = ["MIT"]
37
38
  s.require_paths = ["lib"]
38
39
  s.rubygems_version = %q{1.3.7}
39
40
  s.summary = %q{Ruby gem for interacting with the Brightcove media API}
40
41
  s.test_files = [
41
42
  "test/helper.rb",
42
- "test/test_brightcove-api.rb"
43
+ "test/test_brightcove-api.rb"
43
44
  ]
44
45
 
45
46
  if s.respond_to? :specification_version then
@@ -47,21 +48,27 @@ Gem::Specification.new do |s|
47
48
  s.specification_version = 3
48
49
 
49
50
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
50
- s.add_runtime_dependency(%q<httparty>, ["= 0.5.2"])
51
- s.add_runtime_dependency(%q<fakeweb>, ["= 1.2.8"])
52
- s.add_runtime_dependency(%q<json>, ["= 1.2.4"])
53
- s.add_runtime_dependency(%q<rest-client>, ["= 1.6.1"])
51
+ s.add_runtime_dependency(%q<httparty>, [">= 0"])
52
+ s.add_runtime_dependency(%q<json>, [">= 0"])
53
+ s.add_runtime_dependency(%q<rest-client>, [">= 0"])
54
+ s.add_development_dependency(%q<bundler>, ["~> 1.0.0"])
55
+ s.add_development_dependency(%q<jeweler>, ["~> 1.5.1"])
56
+ s.add_development_dependency(%q<rcov>, [">= 0"])
54
57
  else
55
- s.add_dependency(%q<httparty>, ["= 0.5.2"])
56
- s.add_dependency(%q<fakeweb>, ["= 1.2.8"])
57
- s.add_dependency(%q<json>, ["= 1.2.4"])
58
- s.add_dependency(%q<rest-client>, ["= 1.6.1"])
58
+ s.add_dependency(%q<httparty>, [">= 0"])
59
+ s.add_dependency(%q<json>, [">= 0"])
60
+ s.add_dependency(%q<rest-client>, [">= 0"])
61
+ s.add_dependency(%q<bundler>, ["~> 1.0.0"])
62
+ s.add_dependency(%q<jeweler>, ["~> 1.5.1"])
63
+ s.add_dependency(%q<rcov>, [">= 0"])
59
64
  end
60
65
  else
61
- s.add_dependency(%q<httparty>, ["= 0.5.2"])
62
- s.add_dependency(%q<fakeweb>, ["= 1.2.8"])
63
- s.add_dependency(%q<json>, ["= 1.2.4"])
64
- s.add_dependency(%q<rest-client>, ["= 1.6.1"])
66
+ s.add_dependency(%q<httparty>, [">= 0"])
67
+ s.add_dependency(%q<json>, [">= 0"])
68
+ s.add_dependency(%q<rest-client>, [">= 0"])
69
+ s.add_dependency(%q<bundler>, ["~> 1.0.0"])
70
+ s.add_dependency(%q<jeweler>, ["~> 1.5.1"])
71
+ s.add_dependency(%q<rcov>, [">= 0"])
65
72
  end
66
73
  end
67
74
 
@@ -6,7 +6,7 @@ module Brightcove
6
6
  class API
7
7
  include HTTParty
8
8
 
9
- VERSION = '1.0.3'.freeze
9
+ VERSION = '1.0.4'.freeze
10
10
 
11
11
  DEFAULT_HEADERS = {
12
12
  'User-Agent' => "brightcove-api gem #{VERSION}"
@@ -12,7 +12,7 @@ class TestBrightcoveApi < Test::Unit::TestCase
12
12
  end
13
13
 
14
14
  def test_api_version
15
- assert_equal '1.0.3', Brightcove::API::VERSION
15
+ assert_equal '1.0.4', Brightcove::API::VERSION
16
16
  end
17
17
 
18
18
  def test_can_set_read_api_url
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: brightcove-api
3
3
  version: !ruby/object:Gem::Version
4
- hash: 17
4
+ hash: 31
5
5
  prerelease: false
6
6
  segments:
7
7
  - 1
8
8
  - 0
9
- - 3
10
- version: 1.0.3
9
+ - 4
10
+ version: 1.0.4
11
11
  platform: ruby
12
12
  authors:
13
13
  - David Czarnecki
@@ -15,73 +15,97 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-10-29 00:00:00 -04:00
18
+ date: 2010-12-27 00:00:00 -05:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
22
- name: httparty
22
+ type: :runtime
23
23
  prerelease: false
24
- requirement: &id001 !ruby/object:Gem::Requirement
24
+ name: httparty
25
+ version_requirements: &id001 !ruby/object:Gem::Requirement
25
26
  none: false
26
27
  requirements:
27
- - - "="
28
+ - - ">="
28
29
  - !ruby/object:Gem::Version
29
- hash: 15
30
+ hash: 3
30
31
  segments:
31
32
  - 0
32
- - 5
33
- - 2
34
- version: 0.5.2
35
- type: :runtime
36
- version_requirements: *id001
33
+ version: "0"
34
+ requirement: *id001
37
35
  - !ruby/object:Gem::Dependency
38
- name: fakeweb
36
+ type: :runtime
39
37
  prerelease: false
40
- requirement: &id002 !ruby/object:Gem::Requirement
38
+ name: json
39
+ version_requirements: &id002 !ruby/object:Gem::Requirement
41
40
  none: false
42
41
  requirements:
43
- - - "="
42
+ - - ">="
44
43
  - !ruby/object:Gem::Version
45
- hash: 15
44
+ hash: 3
46
45
  segments:
47
- - 1
48
- - 2
49
- - 8
50
- version: 1.2.8
46
+ - 0
47
+ version: "0"
48
+ requirement: *id002
49
+ - !ruby/object:Gem::Dependency
51
50
  type: :runtime
52
- version_requirements: *id002
51
+ prerelease: false
52
+ name: rest-client
53
+ version_requirements: &id003 !ruby/object:Gem::Requirement
54
+ none: false
55
+ requirements:
56
+ - - ">="
57
+ - !ruby/object:Gem::Version
58
+ hash: 3
59
+ segments:
60
+ - 0
61
+ version: "0"
62
+ requirement: *id003
53
63
  - !ruby/object:Gem::Dependency
54
- name: json
64
+ type: :development
55
65
  prerelease: false
56
- requirement: &id003 !ruby/object:Gem::Requirement
66
+ name: bundler
67
+ version_requirements: &id004 !ruby/object:Gem::Requirement
57
68
  none: false
58
69
  requirements:
59
- - - "="
70
+ - - ~>
60
71
  - !ruby/object:Gem::Version
61
72
  hash: 23
62
73
  segments:
63
74
  - 1
64
- - 2
65
- - 4
66
- version: 1.2.4
67
- type: :runtime
68
- version_requirements: *id003
75
+ - 0
76
+ - 0
77
+ version: 1.0.0
78
+ requirement: *id004
69
79
  - !ruby/object:Gem::Dependency
70
- name: rest-client
80
+ type: :development
71
81
  prerelease: false
72
- requirement: &id004 !ruby/object:Gem::Requirement
82
+ name: jeweler
83
+ version_requirements: &id005 !ruby/object:Gem::Requirement
73
84
  none: false
74
85
  requirements:
75
- - - "="
86
+ - - ~>
76
87
  - !ruby/object:Gem::Version
77
- hash: 13
88
+ hash: 1
78
89
  segments:
79
90
  - 1
80
- - 6
91
+ - 5
81
92
  - 1
82
- version: 1.6.1
83
- type: :runtime
84
- version_requirements: *id004
93
+ version: 1.5.1
94
+ requirement: *id005
95
+ - !ruby/object:Gem::Dependency
96
+ type: :development
97
+ prerelease: false
98
+ name: rcov
99
+ version_requirements: &id006 !ruby/object:Gem::Requirement
100
+ none: false
101
+ requirements:
102
+ - - ">="
103
+ - !ruby/object:Gem::Version
104
+ hash: 3
105
+ segments:
106
+ - 0
107
+ version: "0"
108
+ requirement: *id006
85
109
  description: Ruby gem for interacting with the Brightcove media API. http://docs.brightcove.com/en/media/
86
110
  email: dczarnecki@agoragames.com
87
111
  executables: []
@@ -93,7 +117,8 @@ extra_rdoc_files:
93
117
  - README.rdoc
94
118
  files:
95
119
  - .document
96
- - .gitignore
120
+ - Gemfile
121
+ - Gemfile.lock
97
122
  - LICENSE
98
123
  - README.rdoc
99
124
  - Rakefile
@@ -108,11 +133,11 @@ files:
108
133
  - test/test_brightcove-api.rb
109
134
  has_rdoc: true
110
135
  homepage: http://github.com/agoragames/brightcove
111
- licenses: []
112
-
136
+ licenses:
137
+ - MIT
113
138
  post_install_message:
114
- rdoc_options:
115
- - --charset=UTF-8
139
+ rdoc_options: []
140
+
116
141
  require_paths:
117
142
  - lib
118
143
  required_ruby_version: !ruby/object:Gem::Requirement
data/.gitignore DELETED
@@ -1,21 +0,0 @@
1
- ## MAC OS
2
- .DS_Store
3
-
4
- ## TEXTMATE
5
- *.tmproj
6
- tmtags
7
-
8
- ## EMACS
9
- *~
10
- \#*
11
- .\#*
12
-
13
- ## VIM
14
- *.swp
15
-
16
- ## PROJECT::GENERAL
17
- coverage
18
- rdoc
19
- pkg
20
-
21
- ## PROJECT::SPECIFIC