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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c17db6aef4c0edb7def2fd1e9ed2df2a62875997
4
- data.tar.gz: 2d635557654f38100344a7c965e249cf1d6249f3
3
+ metadata.gz: 846cf65cd693a7468f2785fcfa6d5d3a8e207bc4
4
+ data.tar.gz: ed6d1a9ec9d57f7367cbd1a6f2308296d3ec9f82
5
5
  SHA512:
6
- metadata.gz: 35c16b3ac604255ee93caac360b58e47574188d0b08815793e20c3d6af39334a20f632cdab2b95e2713d0dcb8218ac67791fbc4edc1c2e35196593b3e2dfc9aa
7
- data.tar.gz: 4ebcbb074447f0fa7e8d5dc71795a7787e0b5643f6dd6a4134133bbaf7d93fcc6fded89c51918fdeb039c54d3198529602e9121aec37ae879eecc3d7f0d24737
6
+ metadata.gz: d9afc53fa7a90fe4a5fe373356b5dbd95bcc929f4e0abc108f890042d3d3b80d715ce60c54e4df9b8f6d2699be930c8637e62d4be51cb13275266dedbd53b6de
7
+ data.tar.gz: 5edb54c2610d58f5de2843b7a7d2d905ca3f3bc2028e6e6b03f2bbf529db367513cdab5c72e4d0e5a006d04e359d46618c77b57f46697214cc3d42018c5fd7b6
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- yt (0.8.5)
4
+ yt (0.9.0)
5
5
  activesupport
6
6
 
7
7
  GEM
data/HISTORY.md CHANGED
@@ -1,3 +1,8 @@
1
+ v0.9 - 2014/07/28
2
+ -----------------
3
+
4
+ * [breaking change] Rename rating.update to rating.set
5
+
1
6
  v0.8 - 2014/07/18
2
7
  -----------------
3
8
 
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.8.5'
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*)
@@ -16,7 +16,7 @@ module Yt
16
16
  @auth = options[:auth]
17
17
  end
18
18
 
19
- def update(new_rating)
19
+ def set(new_rating)
20
20
  do_update(params: {rating: new_rating}) {@rating = new_rating}
21
21
  end
22
22
 
@@ -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.update :like
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.update :dislike
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.update :none
142
+ rating.set :none
143
143
  !liked?
144
144
  end
145
145
 
data/lib/yt/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Yt
2
- VERSION = '0.8.5'
2
+ VERSION = '0.9.0'
3
3
  end
@@ -7,6 +7,6 @@ describe Yt::Rating do
7
7
  describe '#update' do
8
8
  before { expect(rating).to receive(:do_update).and_yield }
9
9
 
10
- it { expect{rating.update :like}.to change{rating.rating} }
10
+ it { expect{rating.set :like}.to change{rating.rating} }
11
11
  end
12
12
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: yt
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.5
4
+ version: 0.9.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Claudio Baccigalupo