yt 0.13.2 → 0.13.3
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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/README.md +1 -1
- data/lib/yt/request.rb +1 -0
- data/lib/yt/version.rb +1 -1
- data/spec/models/request_spec.rb +21 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c4b21a647e6bab1583b5afb67fef9459ecf59466
|
4
|
+
data.tar.gz: fb879355564a7238927f8ad32aa3201bbe4631b8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c453c1f45ae6eadb041cad24806891575fd4fdf9b3972a237442f4522b4b134a9c36521fa70724ee65ef332d81f44357b94f4e54eba43c9a6ff80c2908a617cc
|
7
|
+
data.tar.gz: de773e6562299849e7d901f5926578000175faf1fa1e66ec9bd4561e5531441e5eacd09527e644bce9cbd9d647dfa894a34557cd1ac3c05652d29bf8ab3c3360
|
data/CHANGELOG.md
CHANGED
@@ -6,6 +6,10 @@ For more information about changelogs, check
|
|
6
6
|
[Keep a Changelog](http://keepachangelog.com) and
|
7
7
|
[Vandamme](http://tech-angels.github.io/vandamme).
|
8
8
|
|
9
|
+
## 0.13.3 - 2014-10-01
|
10
|
+
|
11
|
+
* [BUGFIX] Rescue OpenSSL::SSL::SSLErrorWaitReadable raised by YouTube servers.
|
12
|
+
|
9
13
|
## 0.13.2 - 2014-10-01
|
10
14
|
|
11
15
|
* [FEATURE] Add `release!` to Ownership.
|
data/README.md
CHANGED
@@ -41,7 +41,7 @@ To install on your system, run
|
|
41
41
|
|
42
42
|
To use inside a bundled Ruby project, add this line to the Gemfile:
|
43
43
|
|
44
|
-
gem 'yt', '~> 0.13.
|
44
|
+
gem 'yt', '~> 0.13.3'
|
45
45
|
|
46
46
|
Since the gem follows [Semantic Versioning](http://semver.org),
|
47
47
|
indicating the full version in your Gemfile (~> *major*.*minor*.*patch*)
|
data/lib/yt/request.rb
CHANGED
data/lib/yt/version.rb
CHANGED
data/spec/models/request_spec.rb
CHANGED
@@ -116,6 +116,27 @@ describe Yt::Request do
|
|
116
116
|
it { expect{request.run}.not_to fail }
|
117
117
|
end
|
118
118
|
end
|
119
|
+
|
120
|
+
# NOTE: This test is just a reflection of YouTube irrational behavior of
|
121
|
+
# being unavailable once in a while, and therefore causing Net::HTTP to
|
122
|
+
# fail, although retrying after some seconds works.
|
123
|
+
context 'an OpenSSL::SSL::SSLErrorWaitReadable' do
|
124
|
+
let(:http_error) { OpenSSL::SSL::SSLErrorWaitReadable.new }
|
125
|
+
|
126
|
+
context 'every time' do
|
127
|
+
before { expect(Net::HTTP).to receive(:start).at_least(:once).and_raise http_error }
|
128
|
+
|
129
|
+
it { expect{request.run}.to fail }
|
130
|
+
end
|
131
|
+
|
132
|
+
context 'but works the second time' do
|
133
|
+
before { expect(Net::HTTP).to receive(:start).at_least(:once).and_return retry_response }
|
134
|
+
before { allow(retry_response).to receive(:body) }
|
135
|
+
let(:retry_response) { Net::HTTPOK.new nil, nil, nil }
|
136
|
+
|
137
|
+
it { expect{request.run}.not_to fail }
|
138
|
+
end
|
139
|
+
end
|
119
140
|
end
|
120
141
|
end
|
121
142
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: yt
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.13.
|
4
|
+
version: 0.13.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Claudio Baccigalupo
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-10-
|
11
|
+
date: 2014-10-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|