yt 0.4.0 → 0.4.1
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/.travis.yml +4 -3
- data/Gemfile.lock +1 -1
- data/README.md +1 -1
- data/Rakefile +11 -1
- data/lib/yt/actions/list.rb +1 -1
- data/lib/yt/collections/subscriptions.rb +1 -1
- data/lib/yt/version.rb +1 -1
- data/spec/associations/device_auth/channels_spec.rb +1 -1
- data/spec/associations/device_auth/playlist_items_spec.rb +3 -3
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 597c8d1060669465155d5b6cdbf04682794ddf76
|
4
|
+
data.tar.gz: f1e05002580e40cda83959e07596f8e795ef4463
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0ddb3a60ddd30f3b71ea52d61f2b05ca1931cc7a26d7ef033afdcc04eff90a2628fd0689ea9e078ae2d1377e6d00a654d7ce5925d2aa1f1a0cfb3b8492c475b1
|
7
|
+
data.tar.gz: a65c07e1a208e1ed06cf7674980826fd0d4deacfb879a358fcee8adac80b85753778d8f0ae93af93c157489a880d0b87f2307621571a2901ec3331ccc1e9e589
|
data/.travis.yml
CHANGED
@@ -5,6 +5,7 @@ notifications:
|
|
5
5
|
email: false
|
6
6
|
env:
|
7
7
|
global:
|
8
|
-
|
9
|
-
|
10
|
-
|
8
|
+
- secure: UPTXrTnEtwOW3MZLjGmKmllUflKEQ9ICjELS5j3ucScIyW+q8idf7EEuj03n2FKN/zGNo1BDxLbMxzh+1jBhugGxIF0gmSXQ4tborLMkYtQ07rAWemHGCx3RicDlAWSuqz9tDkMILsasK74LgbfaEeJYI6xfAvOm+em/7jxUk5w=
|
9
|
+
- secure: Gkg2vV9NFxvA6TUpl4d10HZNtYB2j1qP5nwlIWuDwV79Wbst2u+sgUX6nCTcQA1L4EgHQqfXXM6NHUrLevT45kj6DuG2C/sJUudttqfB5VmfK7nNT617BlqgiZuNjNWCnD9CK5zAdHUo2ukxiXKyl/WhYIhBA59fsGbFynbUISM=
|
10
|
+
- secure: RLWA00fvwiyk2JooX+ePrwPfUCWE1aunuA9STogRiwwUYO237lU35hDkuE7+0GMJAtfWDkuG5f4+8oWsOf0sBytebgxhJ25Uxi6uWlsukuXRM028Z8yjMzgLzmke5InICIVKzPWyvjlphB14nP4PoSrPl9RlHgs4LuJ4l/OkbEQ=
|
11
|
+
- secure: RuYxzoTiam6GLIoP3xkhU9eaW3kjyxnOLYqBjjezhEHXrExDQinO5/k2NsHy2Y8iZSlKxMAG+DJJ45WAObNpg3fAPC/ExrzGyNX1u3qCQU481HbVZTJa8vg9IrJsSxCYyawdcbd7tgULiuRZacMmamsXLSJymLofF7LE0jA2KPA=
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -276,7 +276,7 @@ To install on your system, run
|
|
276
276
|
|
277
277
|
To use inside a bundled Ruby project, add this line to the Gemfile:
|
278
278
|
|
279
|
-
gem 'yt', '~> 0.4.
|
279
|
+
gem 'yt', '~> 0.4.1'
|
280
280
|
|
281
281
|
Since the gem follows [Semantic Versioning](http://semver.org),
|
282
282
|
indicating the full version in your Gemfile (~> *major*.*minor*.*patch*)
|
data/Rakefile
CHANGED
data/lib/yt/actions/list.rb
CHANGED
@@ -36,7 +36,7 @@ module Yt
|
|
36
36
|
# To overcome this, if we have just updated the subscription, we must
|
37
37
|
# wait some time before requesting it again.
|
38
38
|
#
|
39
|
-
def throttle(seconds =
|
39
|
+
def throttle(seconds = 9)
|
40
40
|
wait = [(@last_changed_at ||= Time.now) - Time.now + seconds, 0].max
|
41
41
|
sleep wait
|
42
42
|
@last_changed_at = Time.now
|
data/lib/yt/version.rb
CHANGED
@@ -5,6 +5,6 @@ describe Yt::Associations::Channels, scenario: :device_app do
|
|
5
5
|
let(:account) { Yt.configuration.account }
|
6
6
|
|
7
7
|
describe '#channel' do
|
8
|
-
it {
|
8
|
+
it { expect(account.channel).to be_a Yt::Channel }
|
9
9
|
end
|
10
10
|
end
|
@@ -14,7 +14,7 @@ describe Yt::Associations::PlaylistItems, scenario: :device_app do
|
|
14
14
|
# TODO: after, delete playlist item
|
15
15
|
|
16
16
|
it { expect(@playlist.playlist_items.count).to be > 0 }
|
17
|
-
it {
|
17
|
+
it { expect(@playlist.playlist_items.first).to be_a Yt::PlaylistItem }
|
18
18
|
end
|
19
19
|
|
20
20
|
describe '#add_video' do
|
@@ -36,7 +36,7 @@ describe Yt::Associations::PlaylistItems, scenario: :device_app do
|
|
36
36
|
let(:video_id) { 'MESycYJytkU' }
|
37
37
|
before { @playlist.add_video video_id }
|
38
38
|
|
39
|
-
it { expect(@playlist.delete_playlist_items).to eq [true] }
|
40
|
-
it { expect{@playlist.delete_playlist_items}.to change{@playlist.playlist_items.count}
|
39
|
+
it { expect(@playlist.delete_playlist_items.compact).to eq [true] }
|
40
|
+
it { expect{@playlist.delete_playlist_items}.to change{@playlist.playlist_items.count} }
|
41
41
|
end
|
42
42
|
end
|