tinderbot 0.0.13 → 0.0.14

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: 373ef09ae538bb0455a11ebabf55f7beaf029c94
4
- data.tar.gz: e0641623266b9a40aa09aad6ced30482535bc8c3
3
+ metadata.gz: 4ad3e6fff81b65aa4bc6c3c00f3d17d5d771d090
4
+ data.tar.gz: 564a38b91c414868b4080364e45f7fcad6774711
5
5
  SHA512:
6
- metadata.gz: e314aa567be369d926b373f3c4fb69a7c9fade8fda377d8a07ffd5c92f9169a0fc2b2ae1b0961a7f2bd482b4e57e0ae954c7459b3381e771040adf9708132f3b
7
- data.tar.gz: 9bf88b631fa0f23bb2d15951574a4ee07174cbd9ea72ab0c8e17767dd353d551fa2b257623bf3aba7277ebb406ac597447fbeecea24ff2667e8704f213583ecd
6
+ metadata.gz: 3597629028fbb1024e642e32c93acf8799246976ad8076a8e718b793c52bbd0446dc5d166c96b123925ea7a523bf8b36bb28a7db4554268711baf408477daa02
7
+ data.tar.gz: 2ad370b036b92e62686470c34fde1afc4182b44228141dd1e7df85b1a6cb745776ab82e53f5ed2e4f7a03b264ced1c2413f0463d1f76e6c28a9aa00415946d27
@@ -8,7 +8,7 @@ module Tinderbot
8
8
 
9
9
  def like_recommended_users
10
10
  recommended_users = @client.recommended_users
11
- while recommended_users
11
+ until recommended_users.empty?
12
12
  recommended_users.each { |user| @client.like user }
13
13
  recommended_users = @client.recommended_users
14
14
  end
@@ -1,3 +1,3 @@
1
1
  module Tinderbot
2
- VERSION = '0.0.13'
2
+ VERSION = '0.0.14'
3
3
  end
@@ -12,7 +12,7 @@ describe Tinderbot::Bot do
12
12
  let(:recommended_users) { JSON.parse(open('spec/fixtures/recommended_users.json').read)['results'].each { |user| Tinderbot::Model::User.build_from_tinder_json user } }
13
13
 
14
14
  context 'there is no recommended people' do
15
- before { expect_any_instance_of(Tinderbot::Client).to receive(:recommended_users).and_return(nil) }
15
+ before { expect_any_instance_of(Tinderbot::Client).to receive(:recommended_users).and_return([]) }
16
16
 
17
17
  before { expect_any_instance_of(Tinderbot::Client).not_to receive(:like_all) }
18
18
 
@@ -21,7 +21,7 @@ describe Tinderbot::Bot do
21
21
 
22
22
  context 'there is one set of recommended people' do
23
23
  before { expect_any_instance_of(Tinderbot::Client).to receive(:recommended_users).and_return(recommended_users) }
24
- before { expect_any_instance_of(Tinderbot::Client).to receive(:recommended_users).and_return(nil) }
24
+ before { expect_any_instance_of(Tinderbot::Client).to receive(:recommended_users).and_return([]) }
25
25
 
26
26
  before { recommended_users.each { |user| expect_any_instance_of(Tinderbot::Client).not_to receive(:like).with(user).exactly(1).times } }
27
27
 
@@ -31,7 +31,7 @@ describe Tinderbot::Bot do
31
31
  context 'there is two sets of recommended people' do
32
32
  before { expect_any_instance_of(Tinderbot::Client).to receive(:recommended_users).and_return(recommended_users) }
33
33
  before { expect_any_instance_of(Tinderbot::Client).to receive(:recommended_users).and_return(recommended_users) }
34
- before { expect_any_instance_of(Tinderbot::Client).to receive(:recommended_users).and_return(nil) }
34
+ before { expect_any_instance_of(Tinderbot::Client).to receive(:recommended_users).and_return([]) }
35
35
 
36
36
  before { recommended_users.each { |user| expect_any_instance_of(Tinderbot::Client).not_to receive(:like).with(user).exactly(2).times } }
37
37
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tinderbot
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.13
4
+ version: 0.0.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeremy Venezia
@@ -191,7 +191,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
191
191
  version: '0'
192
192
  requirements: []
193
193
  rubyforge_project:
194
- rubygems_version: 2.4.3
194
+ rubygems_version: 2.4.6
195
195
  signing_key:
196
196
  specification_version: 4
197
197
  summary: Ruby wrapper for the Tinder API and automatic liker bot.