twitter_with_auto_pagination 0.8.0 → 0.8.1

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: 842345d2afa01f05557856bde019188e1ffe7183
4
- data.tar.gz: ea0998abb411f7c0668ed9dbdff054fde3ef7c9a
3
+ metadata.gz: bd60b96ff2d1620518b5f6c8e16799c477b0f76a
4
+ data.tar.gz: 4352f612659aa199a647eb340d5bc00b32ae4341
5
5
  SHA512:
6
- metadata.gz: f8cff32cee7e020cb481428a24acf78b325464b4064ede0e71066681bd7bec297b305f0c0b7c6ffa2bfb99aaf410db23fb299eed5841ccc2c9b4fea6c4b5bd58
7
- data.tar.gz: beb7cc9f6678583ce5ba52b6c33f4d1a4d0ff0643a883d30dcee9db105a3caef0a7e8a994ccabd24c63525d5ea47a8fb51f69bc5f7c940a0d17469e71efbcc59
6
+ metadata.gz: 750f168e791c3241961a106946052471b062ea11702e16906f281e9a8673e34b2d32d216be8671229164ff0ad8a51463efd3a21505c1cfdcd006a32b722f6499
7
+ data.tar.gz: e4fb48382befa9b581f1e2eee34636fcd5d2203af823777b2f69ba96b5d91780935ba1d94bfc33ce0229601efe4b726d392e36107b6f2d91fa90f7a7db21d32a
@@ -10,6 +10,7 @@ require 'twitter_with_auto_pagination/rest/extension/favoriting'
10
10
  require 'twitter_with_auto_pagination/rest/extension/friends_and_followers'
11
11
  require 'twitter_with_auto_pagination/rest/extension/replying'
12
12
  require 'twitter_with_auto_pagination/rest/extension/unfollowing'
13
+ require 'twitter_with_auto_pagination/rest/extension/users'
13
14
 
14
15
  module TwitterWithAutoPagination
15
16
  module REST
@@ -26,6 +27,7 @@ module TwitterWithAutoPagination
26
27
  include TwitterWithAutoPagination::REST::Extension::FriendsAndFollowers
27
28
  include TwitterWithAutoPagination::REST::Extension::Replying
28
29
  include TwitterWithAutoPagination::REST::Extension::Unfollowing
30
+ include TwitterWithAutoPagination::REST::Extension::Users
29
31
  end
30
32
  end
31
33
  end
@@ -7,7 +7,7 @@ module TwitterWithAutoPagination
7
7
  include TwitterWithAutoPagination::REST::Utils
8
8
 
9
9
  def clusters_belong_to(text)
10
- return [] if text.blank?
10
+ return {} if text.blank?
11
11
 
12
12
  exclude_words = JSON.parse(File.read(Rails.configuration.x.constants['cluster_bad_words_path']))
13
13
  special_words = JSON.parse(File.read(Rails.configuration.x.constants['cluster_good_words_path']))
@@ -0,0 +1,17 @@
1
+ require 'twitter_with_auto_pagination/rest/utils'
2
+
3
+ module TwitterWithAutoPagination
4
+ module REST
5
+ module Extension
6
+ module Users
7
+ include TwitterWithAutoPagination::REST::Utils
8
+
9
+ def blocking_or_blocked(past_me, cur_me)
10
+ instrument(__method__, nil) do
11
+ removing(past_me, cur_me).to_a & removed(past_me, cur_me).to_a
12
+ end
13
+ end
14
+ end
15
+ end
16
+ end
17
+ end
@@ -22,5 +22,5 @@ Gem::Specification.new do |spec|
22
22
  spec.required_ruby_version = '>= 2.3'
23
23
  spec.summary = spec.description
24
24
  spec.test_files = Dir.glob('spec/**/*')
25
- spec.version = '0.8.0'
25
+ spec.version = '0.8.1'
26
26
  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.8.0
4
+ version: 0.8.1
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-20 00:00:00.000000000 Z
11
+ date: 2016-07-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: twitter
@@ -98,6 +98,7 @@ files:
98
98
  - lib/twitter_with_auto_pagination/rest/extension/friends_and_followers.rb
99
99
  - lib/twitter_with_auto_pagination/rest/extension/replying.rb
100
100
  - lib/twitter_with_auto_pagination/rest/extension/unfollowing.rb
101
+ - lib/twitter_with_auto_pagination/rest/extension/users.rb
101
102
  - lib/twitter_with_auto_pagination/rest/favorites.rb
102
103
  - lib/twitter_with_auto_pagination/rest/friends_and_followers.rb
103
104
  - lib/twitter_with_auto_pagination/rest/search.rb