twitter_with_auto_pagination 0.5.0 → 0.6.0
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/README.md +12 -4
- data/lib/twitter_with_auto_pagination/new_api.rb +8 -8
- data/twitter_with_auto_pagination.gemspec +1 -1
- 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: 718b616d5623cdcfd441b040ecf996b6ba3ff645
|
4
|
+
data.tar.gz: 88946bcb845dbd0cce43cb86a95206366b84db18
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1e94cf293a193b666e3f5e886fb95622aa39c8d2e3459a8a3ccebd8f877033f43b981b0edd0301d78df61d0fe4e029273db4e74b5a22940b10d6cbd055fc7679
|
7
|
+
data.tar.gz: 2eee266b6c0e62efa85e8673ec3b136190fcecee553e83d42e59db4e5b5b3cb506b1c8ff7a112f27faed4a1bd6ecb1b5158be27c664cb7992f31f1f0ab431783
|
data/README.md
CHANGED
@@ -135,17 +135,25 @@ client.close_friends
|
|
135
135
|
```
|
136
136
|
|
137
137
|
```
|
138
|
-
client.
|
138
|
+
client.users_which_you_removed(pre_me, cur_me)
|
139
139
|
```
|
140
140
|
|
141
141
|
```
|
142
|
-
client.
|
142
|
+
client.users_who_removed_you(pre_me, cur_me)
|
143
143
|
```
|
144
144
|
|
145
145
|
```
|
146
|
-
client.
|
146
|
+
client.users_which_you_replied_to
|
147
147
|
```
|
148
148
|
|
149
149
|
```
|
150
|
-
client.
|
150
|
+
client.users_who_replied_to_you
|
151
|
+
```
|
152
|
+
|
153
|
+
```
|
154
|
+
client.users_which_you_faved
|
155
|
+
```
|
156
|
+
|
157
|
+
```
|
158
|
+
client.users_who_faved_you
|
151
159
|
```
|
@@ -96,7 +96,7 @@ module TwitterWithAutoPagination
|
|
96
96
|
end
|
97
97
|
end
|
98
98
|
|
99
|
-
def
|
99
|
+
def users_which_you_removed(pre_me, cur_me)
|
100
100
|
if uid_or_screen_name?(pre_me) && uid_or_screen_name?(cur_me)
|
101
101
|
friends_parallelly(pre_me).to_a - friends_parallelly(cur_me).to_a
|
102
102
|
elsif pre_me.respond_to?(:friends) && cur_me.respond_to?(:friends)
|
@@ -106,7 +106,7 @@ module TwitterWithAutoPagination
|
|
106
106
|
end
|
107
107
|
end
|
108
108
|
|
109
|
-
def
|
109
|
+
def users_who_removed_you(pre_me, cur_me)
|
110
110
|
if uid_or_screen_name?(pre_me) && uid_or_screen_name?(cur_me)
|
111
111
|
followers_parallelly(pre_me).to_a - followers_parallelly(cur_me).to_a
|
112
112
|
elsif pre_me.respond_to?(:followers) && cur_me.respond_to?(:followers)
|
@@ -124,7 +124,7 @@ module TwitterWithAutoPagination
|
|
124
124
|
|
125
125
|
# users which specified user is replying
|
126
126
|
# in_reply_to_user_id and in_reply_to_status_id is not used because of distinguishing mentions from replies
|
127
|
-
def
|
127
|
+
def users_which_you_replied_to(*args)
|
128
128
|
options = args.extract_options!
|
129
129
|
tweets =
|
130
130
|
if args.empty?
|
@@ -163,7 +163,7 @@ module TwitterWithAutoPagination
|
|
163
163
|
|
164
164
|
# users which specified user is replied
|
165
165
|
# when user is login you had better to call mentions_timeline
|
166
|
-
def
|
166
|
+
def users_who_replied_to_you(*args)
|
167
167
|
options = args.extract_options!
|
168
168
|
|
169
169
|
result =
|
@@ -198,7 +198,7 @@ module TwitterWithAutoPagination
|
|
198
198
|
end.flatten
|
199
199
|
end
|
200
200
|
|
201
|
-
def
|
201
|
+
def users_which_you_faved(*args)
|
202
202
|
options = args.extract_options!
|
203
203
|
|
204
204
|
favs =
|
@@ -223,6 +223,9 @@ module TwitterWithAutoPagination
|
|
223
223
|
raise e
|
224
224
|
end
|
225
225
|
|
226
|
+
def users_who_faved_you(*args)
|
227
|
+
end
|
228
|
+
|
226
229
|
def _extract_inactive_users(users, options = {})
|
227
230
|
authorized = options.delete(:authorized)
|
228
231
|
two_weeks_ago = 2.weeks.ago.to_i
|
@@ -235,9 +238,6 @@ module TwitterWithAutoPagination
|
|
235
238
|
end
|
236
239
|
end
|
237
240
|
|
238
|
-
def users_fav_you(*args)
|
239
|
-
end
|
240
|
-
|
241
241
|
def close_friends(*args)
|
242
242
|
options = {uniq: false}.merge(args.extract_options!)
|
243
243
|
min_max = {
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: twitter_with_auto_pagination
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Shinohara Teruki
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-07-
|
11
|
+
date: 2016-07-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: twitter
|