twitter_with_auto_pagination 0.9.1 → 0.9.2

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: 85eecd1e9b697a9d479e8397e86180fdffe7f4c4
4
- data.tar.gz: 37fe4226e75aa04c5e0618254143263a337bb18b
3
+ metadata.gz: 73b476c241a1ead8ec18d68ceccee2ca25d1a04f
4
+ data.tar.gz: 90f9d722d8d41c04cc79995c0c603553e5eda950
5
5
  SHA512:
6
- metadata.gz: 89ab8908cc586738a97d59c021b24127e200e8b3bc6c93504f8374dd1e86829fc98a0326a272b945ddd7f9bec84a69bcf04b14119c3a6be1cb736eeae10e24c0
7
- data.tar.gz: f059e8a50b88b808fa8575be9053640b60353982b774ce23355cfbd0643002532b4dfbaf4a546f31ba2a5e37ac22334b6a84646a38009eb554bfb7623c84fbe6
6
+ metadata.gz: a33128d1fc01cfe4cd25266c4996b2f7cea639984c6dda91b11836ef0682151980a9fe8508cd98591b97ff782556b02b013de76d5c9ca4699275e0eef3cd0c43
7
+ data.tar.gz: 425c05ee367fe15e668d1392c600efca5f684a8fac3486877a458f606de4741520ec6db25d45ba8f62b8fbf7ba3282da4f4a7edced5cf362cb46114d4f939f42
@@ -64,17 +64,6 @@ module TwitterWithAutoPagination
64
64
  def cache_disabled?(options)
65
65
  options.is_a?(Hash) && options.has_key?(:cache) && !options[:cache]
66
66
  end
67
-
68
- def to_mash(obj)
69
- case
70
- when obj.kind_of?(Array)
71
- obj.map {|o| to_mash(o)}
72
- when obj.kind_of?(Hash)
73
- Hashie::Mash.new(obj.map {|k, v| [k, to_mash(v)]}.to_h)
74
- else
75
- obj
76
- end
77
- end
78
67
  end
79
68
  end
80
69
  end
@@ -51,7 +51,7 @@ module TwitterWithAutoPagination
51
51
  debug { "#{name}#{" #{truncated_payload(payload)}" unless payload.empty?}" }
52
52
  end
53
53
 
54
- %w(request encode decode to_mash).each do |operation|
54
+ %w(request encode decode).each do |operation|
55
55
  class_eval <<-METHOD, __FILE__, __LINE__ + 1
56
56
  def #{operation}(event)
57
57
  event.payload[:name] = '#{operation}'
@@ -1,4 +1,3 @@
1
- require 'hashie'
2
1
  require 'digest/md5'
3
2
 
4
3
  require 'twitter_with_auto_pagination/collector'
@@ -3,7 +3,7 @@ module TwitterWithAutoPagination
3
3
  class << self
4
4
  def encode(obj, options = {})
5
5
  instrument(options) do
6
- (!!obj == obj) ? obj : coder.dump(obj)
6
+ (!!obj == obj) ? obj : coder.encode(obj)
7
7
  end
8
8
  end
9
9
 
@@ -4,7 +4,6 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
  Gem::Specification.new do |spec|
5
5
  spec.add_dependency 'twitter', '~> 6.0'
6
6
  spec.add_dependency 'activesupport'
7
- spec.add_dependency 'hashie'
8
7
  spec.add_dependency 'parallel'
9
8
 
10
9
  spec.add_development_dependency 'bundler'
@@ -22,5 +21,5 @@ Gem::Specification.new do |spec|
22
21
  spec.required_ruby_version = '>= 2.3'
23
22
  spec.summary = spec.description
24
23
  spec.test_files = Dir.glob('spec/**/*')
25
- spec.version = '0.9.1'
24
+ spec.version = '0.9.2'
26
25
  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.9.1
4
+ version: 0.9.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shinohara Teruki
@@ -38,20 +38,6 @@ dependencies:
38
38
  - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
- - !ruby/object:Gem::Dependency
42
- name: hashie
43
- requirement: !ruby/object:Gem::Requirement
44
- requirements:
45
- - - ">="
46
- - !ruby/object:Gem::Version
47
- version: '0'
48
- type: :runtime
49
- prerelease: false
50
- version_requirements: !ruby/object:Gem::Requirement
51
- requirements:
52
- - - ">="
53
- - !ruby/object:Gem::Version
54
- version: '0'
55
41
  - !ruby/object:Gem::Dependency
56
42
  name: parallel
57
43
  requirement: !ruby/object:Gem::Requirement