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 +4 -4
- data/lib/twitter_with_auto_pagination/caching_and_logging.rb +0 -11
- data/lib/twitter_with_auto_pagination/log_subscriber.rb +1 -1
- data/lib/twitter_with_auto_pagination/rest/utils.rb +0 -1
- data/lib/twitter_with_auto_pagination/serializer.rb +1 -1
- data/twitter_with_auto_pagination.gemspec +1 -2
- metadata +1 -15
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 73b476c241a1ead8ec18d68ceccee2ca25d1a04f
|
4
|
+
data.tar.gz: 90f9d722d8d41c04cc79995c0c603553e5eda950
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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}'
|
@@ -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.
|
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.
|
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
|