yt 0.8.5 → 0.9.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/HISTORY.md +5 -0
- data/README.md +1 -1
- data/lib/yt/models/rating.rb +1 -1
- data/lib/yt/models/video.rb +3 -3
- data/lib/yt/version.rb +1 -1
- data/spec/models/rating_spec.rb +1 -1
- 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: 846cf65cd693a7468f2785fcfa6d5d3a8e207bc4
|
4
|
+
data.tar.gz: ed6d1a9ec9d57f7367cbd1a6f2308296d3ec9f82
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d9afc53fa7a90fe4a5fe373356b5dbd95bcc929f4e0abc108f890042d3d3b80d715ce60c54e4df9b8f6d2699be930c8637e62d4be51cb13275266dedbd53b6de
|
7
|
+
data.tar.gz: 5edb54c2610d58f5de2843b7a7d2d905ca3f3bc2028e6e6b03f2bbf529db367513cdab5c72e4d0e5a006d04e359d46618c77b57f46697214cc3d42018c5fd7b6
|
data/Gemfile.lock
CHANGED
data/HISTORY.md
CHANGED
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.
|
44
|
+
gem 'yt', '~> 0.9.0'
|
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/models/rating.rb
CHANGED
data/lib/yt/models/video.rb
CHANGED
@@ -115,7 +115,7 @@ module Yt
|
|
115
115
|
# @raise [Yt::Errors::Unauthorized] if {Resource#auth auth} does not
|
116
116
|
# return an authenticated account.
|
117
117
|
def like
|
118
|
-
rating.
|
118
|
+
rating.set :like
|
119
119
|
liked?
|
120
120
|
end
|
121
121
|
|
@@ -127,7 +127,7 @@ module Yt
|
|
127
127
|
# @raise [Yt::Errors::Unauthorized] if {Resource#auth auth} does not
|
128
128
|
# return an authenticated account.
|
129
129
|
def dislike
|
130
|
-
rating.
|
130
|
+
rating.set :dislike
|
131
131
|
!liked?
|
132
132
|
end
|
133
133
|
|
@@ -139,7 +139,7 @@ module Yt
|
|
139
139
|
# @raise [Yt::Errors::Unauthorized] if {Resource#auth auth} does not
|
140
140
|
# return an authenticated account.
|
141
141
|
def unlike
|
142
|
-
rating.
|
142
|
+
rating.set :none
|
143
143
|
!liked?
|
144
144
|
end
|
145
145
|
|
data/lib/yt/version.rb
CHANGED
data/spec/models/rating_spec.rb
CHANGED