youtube_it 2.2.1 → 2.3.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,4 +1,4 @@
1
- == YOUTUBE_IT {<img src="https://secure.travis-ci.org/kylejginavan/youtube_it.png"/>}[http://travis-ci.org/kylejginavan/youtube_it]
1
+ == YOUTUBE_IT {<img src="https://secure.travis-ci.org/kylejginavan/youtube_it.png"/>}[http://travis-ci.org/kylejginavan/youtube_it] {<img src="https://badge.fury.io/rb/youtube_it.png" alt="Gem Version" />}[http://badge.fury.io/rb/youtube_it] {<img src="https://gemnasium.com/kylejginavan/youtube_it.png" alt="Dependency Status" />}[https://gemnasium.com/kylejginavan/youtube_it]
2
2
 
3
3
  == DONATION
4
4
 
@@ -20,6 +20,7 @@
20
20
  comments.
21
21
 
22
22
  == INSTALLATION & SETUP:
23
+
23
24
  * Create a youtube account.
24
25
  * Create a developer key here http://code.google.com/apis/youtube/dashboard.
25
26
  * sudo gem install youtube_it
@@ -327,6 +328,12 @@ YouTubeIt passes all logs through the logger variable on the class itself. In Ra
327
328
  $ YouTubeIt.logger = RAILS_DEFAULT_LOGGER
328
329
  $ RAILS_DEFAULT_LOGGER.level = Logger::DEBUG
329
330
 
331
+ == RUBY INTERPRETER COMPABILITY:
332
+
333
+ * 2.0
334
+ * 1.9.3
335
+ * 1.9.2
336
+
330
337
  == AUTHORS:
331
338
 
332
339
  * Kyle J. Ginavan.
@@ -85,7 +85,7 @@ class YouTubeIt
85
85
  # YouTubeIt::Model::Video
86
86
  def video_by(video)
87
87
  vid = nil
88
- vid_regex = /(?:youtube.com|youtu.be).*(?:\/|v=)([\w-]+)/
88
+ vid_regex = /(?:youtube.com|youtu.be).*(?:\/|v=)([a-zA-Z0-9_-]+)/
89
89
  if video =~ vid_regex
90
90
  vid = $1
91
91
  else
@@ -175,7 +175,7 @@ class YouTubeIt
175
175
  def profiles(*users)
176
176
  client.profiles(*users)
177
177
  end
178
-
178
+
179
179
  def videos(*idxes)
180
180
  client.videos(*idxes)
181
181
  end
@@ -740,8 +740,7 @@ class YouTubeIt
740
740
  end
741
741
  builder.use FaradayMiddleware::YoutubeAuthHeader, authorization_headers
742
742
  builder.use Faraday::Response::YouTubeIt
743
- builder.adapter YouTubeIt.adapter
744
-
743
+ builder.adapter :excon
745
744
  end
746
745
  end
747
746
  end
@@ -1,4 +1,4 @@
1
1
  class YouTubeIt
2
- VERSION = '2.2.1'
2
+ VERSION = '2.3.1'
3
3
  end
4
4
 
@@ -20,7 +20,8 @@ Gem::Specification.new do |s|
20
20
  s.add_runtime_dependency("simple_oauth", ">= 0.1.5")
21
21
  s.add_runtime_dependency("faraday", "~> 0.8")
22
22
  s.add_runtime_dependency("builder", ">= 0")
23
-
23
+ s.add_runtime_dependency("excon", "~> 0.22.1")
24
+ s.add_runtime_dependency("json", "~> 1.8.0")
24
25
  s.files = Dir.glob("lib/**/*") + %w(README.rdoc youtube_it.gemspec)
25
26
 
26
27
  s.extra_rdoc_files = %w(README.rdoc)
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: youtube_it
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 2.2.1
5
+ version: 2.3.1
6
6
  platform: ruby
7
7
  authors:
8
8
  - kylejginavan
@@ -11,7 +11,7 @@ autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
13
 
14
- date: 2013-04-25 00:00:00 Z
14
+ date: 2013-05-28 00:00:00 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: nokogiri
@@ -79,6 +79,28 @@ dependencies:
79
79
  version: "0"
80
80
  type: :runtime
81
81
  version_requirements: *id006
82
+ - !ruby/object:Gem::Dependency
83
+ name: excon
84
+ prerelease: false
85
+ requirement: &id007 !ruby/object:Gem::Requirement
86
+ none: false
87
+ requirements:
88
+ - - ~>
89
+ - !ruby/object:Gem::Version
90
+ version: 0.22.1
91
+ type: :runtime
92
+ version_requirements: *id007
93
+ - !ruby/object:Gem::Dependency
94
+ name: json
95
+ prerelease: false
96
+ requirement: &id008 !ruby/object:Gem::Requirement
97
+ none: false
98
+ requirements:
99
+ - - ~>
100
+ - !ruby/object:Gem::Version
101
+ version: 1.8.0
102
+ type: :runtime
103
+ version_requirements: *id008
82
104
  description: Upload, delete, update, comment on youtube videos all from one gem.
83
105
  email:
84
106
  - kylejginavan@gmail.com