twitter_with_auto_pagination 0.5.0 → 0.6.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: c3b148014f092aee0b2daa1893c109dbb8ae1b00
4
- data.tar.gz: 5e1f994fa4185d4d6db93e81aef1c014aa1ae21a
3
+ metadata.gz: 718b616d5623cdcfd441b040ecf996b6ba3ff645
4
+ data.tar.gz: 88946bcb845dbd0cce43cb86a95206366b84db18
5
5
  SHA512:
6
- metadata.gz: c5852ccf3eed3bf1848abff90fecc408d157fce3d896b7e938b2a98f5289e4407fa79cc0372d15cad9989cc088864786d4d6dd8b2c3cc1d523eff0928a338d79
7
- data.tar.gz: bb4230a5ae87e4cc12450febefa4c76d207f99def578cd49a164536f55e76512b73f4f6ec34a900270025d5201d453cada3b35b1f923956f2fe43a8b73abedc9
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.removed(pre_me, cur_me)
138
+ client.users_which_you_removed(pre_me, cur_me)
139
139
  ```
140
140
 
141
141
  ```
142
- client.removed_by(pre_me, cur_me)
142
+ client.users_who_removed_you(pre_me, cur_me)
143
143
  ```
144
144
 
145
145
  ```
146
- client.replied
146
+ client.users_which_you_replied_to
147
147
  ```
148
148
 
149
149
  ```
150
- client.replied_by
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 removed(pre_me, cur_me)
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 removed_by(pre_me, cur_me)
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 replied(*args)
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 replied_by(*args)
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 users_you_faved(*args)
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 = {
@@ -21,5 +21,5 @@ Gem::Specification.new do |spec|
21
21
  spec.require_paths = %w[lib]
22
22
  spec.summary = spec.description
23
23
  spec.test_files = Dir.glob('spec/**/*')
24
- spec.version = '0.5.0'
24
+ spec.version = '0.6.0'
25
25
  end
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.5.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-02 00:00:00.000000000 Z
11
+ date: 2016-07-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: twitter