twitter_with_auto_pagination 0.8.5 → 0.8.6

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: 2fc7f7eedec47178f6928767006f494d6f21a927
4
- data.tar.gz: e63a240fed3bdf083405337a0f3e619c88d527fb
3
+ metadata.gz: 5dc8b7e411aacd1368c185e91b0ce3639a98a7fa
4
+ data.tar.gz: 82c7e2b1e7ccffb6fd834227af7a723c4f11e2f8
5
5
  SHA512:
6
- metadata.gz: 9ee927c273eb2d858da46704ca57ac4796fbeff8ba9ddb340aaf9b6ab02413667dadc5608c13bc50b4f2948021e3c13676f965db8a64e24802998d65127b3bd4
7
- data.tar.gz: a259c921a5b17090001381223a3f14ff54c2467dca7a343d0bec616c13e4739f243cdbe566de21b7b2d0d7e1c98084d8284254e3af4d7002f5964d0ec178d4a8
6
+ metadata.gz: 978e0d5023163d376eb8b10c56ef10ac542f7e7d1e29656abbc20e23ebf5cfcf86cad6480c3e9b5273d12cbc1172fa77402ead345e2f10bab8fd193a8d298422
7
+ data.tar.gz: 2c04bcac90233c24cc2ada868474a3a453406f8194ad09154b6e980ee1b54dd5b5ac9939c7add88d03762de75988d70683e3820526bab03313d63f1fb506a508
@@ -50,7 +50,7 @@ module TwitterWithAutoPagination
50
50
  tweets = tweets.select { |t| t.text && t.text.include?('#') }
51
51
  puts "tweets with hashtag: #{tweets.size}" if debug
52
52
 
53
- hashtags = tweets.map { |t| t.text.scan(/[##][A-Za-zA-Za-z一-鿆0-90-9ぁ-ヶヲ-゚ー]+/).map(&:strip) }.flatten
53
+ hashtags = tweets.map { |t| t.text.scan(/[##][A-Za-zA-Za-z_一-鿆0-90-9ぁ-ヶヲ-゚ー]+/).map(&:strip) }.flatten
54
54
  puts "hashtags: #{hashtags.size}" if debug
55
55
 
56
56
  hashtags.each_with_object(Hash.new(0)) { |h, memo| memo[h] += 1 }.sort_by { |k, v| [-v, -k.size] }.slice(0, limit).to_h
@@ -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.5'
25
+ spec.version = '0.8.6'
26
26
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: twitter_with_auto_pagination
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.5
4
+ version: 0.8.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shinohara Teruki