tweetomator 1.2.0 → 1.2.2
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/lib/clients/twitter_client.rb +1 -1
- data/lib/tweetomator/version.rb +1 -1
- data/lib/tweetomator.rb +5 -1
- metadata +2 -3
- data/Gemfile.lock +0 -50
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 31e3ee1e6bd6f03201bb4d2a15874d8ff25b593b
|
4
|
+
data.tar.gz: ace90182fe472f30bbc7d26b46da1d7e0f25d245
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 53dcfc56dd8bca5f777e2bea6a4cd0c8664d698022de0690c1d0bd5501e99a9afdd46593dcd07ea6fb61a0c3f3ccab346f94cb6e99275d48949fe7915e778fce
|
7
|
+
data.tar.gz: 885982c6c364023887db1cec88b2593a4067e1ef1e921ac26a07cda4218026f908fbb885c5630a2fbaf08de90e5d03ba679709649eb247d269e27f53b32e7715
|
@@ -11,7 +11,7 @@ class TwitterClient
|
|
11
11
|
|
12
12
|
def random_follower_of_random_follower
|
13
13
|
follower = @rest_client.followers.attrs[:users].sample[:screen_name]
|
14
|
-
@rest_client.friend_ids(follower).attrs[:ids].sample
|
14
|
+
@rest_client.friend_ids(follower).attrs[:ids].sample if follower
|
15
15
|
end
|
16
16
|
|
17
17
|
def update_with_media(text, image_file)
|
data/lib/tweetomator/version.rb
CHANGED
data/lib/tweetomator.rb
CHANGED
@@ -30,6 +30,10 @@ class Tweetomator
|
|
30
30
|
end
|
31
31
|
end
|
32
32
|
|
33
|
+
def run_once
|
34
|
+
do_stuff
|
35
|
+
end
|
36
|
+
|
33
37
|
private
|
34
38
|
|
35
39
|
def somebody_set_us_up_the_bot(config)
|
@@ -71,6 +75,6 @@ class Tweetomator
|
|
71
75
|
|
72
76
|
def follow!
|
73
77
|
user = @twitter_client.random_follower_of_random_follower
|
74
|
-
@twitter_client.follow(user)
|
78
|
+
@twitter_client.follow(user) if user
|
75
79
|
end
|
76
80
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tweetomator
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nat Young
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-07-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -104,7 +104,6 @@ extra_rdoc_files: []
|
|
104
104
|
files:
|
105
105
|
- .gitignore
|
106
106
|
- Gemfile
|
107
|
-
- Gemfile.lock
|
108
107
|
- LICENSE.txt
|
109
108
|
- README.md
|
110
109
|
- Rakefile
|
data/Gemfile.lock
DELETED
@@ -1,50 +0,0 @@
|
|
1
|
-
PATH
|
2
|
-
remote: .
|
3
|
-
specs:
|
4
|
-
tweetomator (1.1.9)
|
5
|
-
flickraw
|
6
|
-
rufus-scheduler
|
7
|
-
twitter
|
8
|
-
|
9
|
-
GEM
|
10
|
-
remote: https://rubygems.org/
|
11
|
-
specs:
|
12
|
-
addressable (2.3.8)
|
13
|
-
buftok (0.2.0)
|
14
|
-
equalizer (0.0.11)
|
15
|
-
faraday (0.9.1)
|
16
|
-
multipart-post (>= 1.2, < 3)
|
17
|
-
flickraw (0.9.8)
|
18
|
-
http (0.6.4)
|
19
|
-
http_parser.rb (~> 0.6.0)
|
20
|
-
http_parser.rb (0.6.0)
|
21
|
-
json (1.8.3)
|
22
|
-
memoizable (0.4.2)
|
23
|
-
thread_safe (~> 0.3, >= 0.3.1)
|
24
|
-
minitest (5.7.0)
|
25
|
-
multipart-post (2.0.0)
|
26
|
-
naught (1.0.0)
|
27
|
-
rake (10.4.2)
|
28
|
-
rufus-scheduler (3.1.3)
|
29
|
-
simple_oauth (0.3.1)
|
30
|
-
thread_safe (0.3.5)
|
31
|
-
twitter (5.14.0)
|
32
|
-
addressable (~> 2.3)
|
33
|
-
buftok (~> 0.2.0)
|
34
|
-
equalizer (~> 0.0.9)
|
35
|
-
faraday (~> 0.9.0)
|
36
|
-
http (~> 0.6.0)
|
37
|
-
http_parser.rb (~> 0.6.0)
|
38
|
-
json (~> 1.8)
|
39
|
-
memoizable (~> 0.4.0)
|
40
|
-
naught (~> 1.0)
|
41
|
-
simple_oauth (~> 0.3.0)
|
42
|
-
|
43
|
-
PLATFORMS
|
44
|
-
ruby
|
45
|
-
|
46
|
-
DEPENDENCIES
|
47
|
-
bundler (~> 1.6)
|
48
|
-
minitest
|
49
|
-
rake
|
50
|
-
tweetomator!
|