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 +4 -4
- data/lib/tinderbot/bot.rb +1 -1
- data/lib/tinderbot/version.rb +1 -1
- data/spec/tinder/bot_spec.rb +3 -3
- 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: 4ad3e6fff81b65aa4bc6c3c00f3d17d5d771d090
|
4
|
+
data.tar.gz: 564a38b91c414868b4080364e45f7fcad6774711
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3597629028fbb1024e642e32c93acf8799246976ad8076a8e718b793c52bbd0446dc5d166c96b123925ea7a523bf8b36bb28a7db4554268711baf408477daa02
|
7
|
+
data.tar.gz: 2ad370b036b92e62686470c34fde1afc4182b44228141dd1e7df85b1a6cb745776ab82e53f5ed2e4f7a03b264ced1c2413f0463d1f76e6c28a9aa00415946d27
|
data/lib/tinderbot/bot.rb
CHANGED
@@ -8,7 +8,7 @@ module Tinderbot
|
|
8
8
|
|
9
9
|
def like_recommended_users
|
10
10
|
recommended_users = @client.recommended_users
|
11
|
-
|
11
|
+
until recommended_users.empty?
|
12
12
|
recommended_users.each { |user| @client.like user }
|
13
13
|
recommended_users = @client.recommended_users
|
14
14
|
end
|
data/lib/tinderbot/version.rb
CHANGED
data/spec/tinder/bot_spec.rb
CHANGED
@@ -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(
|
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(
|
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(
|
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.
|
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.
|
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.
|