youtube_it 1.2.9 → 1.2.10
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/VERSION +1 -1
- data/lib/youtube_it/request/video_upload.rb +2 -1
- data/pkg/youtube_it-1.2.9.gem +0 -0
- data/youtube_it.gemspec +2 -1
- metadata +3 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.2.
|
1
|
+
1.2.10
|
@@ -474,7 +474,8 @@ puts "========= response body #{response.to_yaml}"
|
|
474
474
|
|
475
475
|
def raise_on_faulty_response(response)
|
476
476
|
response_code = response.code.to_i
|
477
|
-
if response_code == 403 || response_code == 401
|
477
|
+
#if response_code == 403 || response_code == 401
|
478
|
+
if response_code / 10 == 40
|
478
479
|
raise AuthenticationError, response.body[/<TITLE>(.+)<\/TITLE>/, 1]
|
479
480
|
elsif response_code / 10 != 20 # Response in 20x means success
|
480
481
|
raise UploadError, parse_upload_error_from(response.body.gsub(/\n/,''))
|
Binary file
|
data/youtube_it.gemspec
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{youtube_it}
|
8
|
-
s.version = "1.2.
|
8
|
+
s.version = "1.2.10"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["chebyte", "kylejginavan"]
|
@@ -43,6 +43,7 @@ Gem::Specification.new do |s|
|
|
43
43
|
"lib/youtube_it/request/video_upload.rb",
|
44
44
|
"lib/youtube_it/response/video_search.rb",
|
45
45
|
"lib/youtube_it/version.rb",
|
46
|
+
"pkg/youtube_it-1.2.9.gem",
|
46
47
|
"test/helper.rb",
|
47
48
|
"test/test.mov",
|
48
49
|
"test/test_chain_io.rb",
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 1
|
7
7
|
- 2
|
8
|
-
-
|
9
|
-
version: 1.2.
|
8
|
+
- 10
|
9
|
+
version: 1.2.10
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- chebyte
|
@@ -82,6 +82,7 @@ files:
|
|
82
82
|
- lib/youtube_it/request/video_upload.rb
|
83
83
|
- lib/youtube_it/response/video_search.rb
|
84
84
|
- lib/youtube_it/version.rb
|
85
|
+
- pkg/youtube_it-1.2.9.gem
|
85
86
|
- test/helper.rb
|
86
87
|
- test/test.mov
|
87
88
|
- test/test_chain_io.rb
|