twitter-ratelimit-patch 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.DS_Store +0 -0
- data/README.md +1 -1
- data/lib/twitter/ratelimit/patch.rb +17 -0
- data/lib/twitter/ratelimit/patch/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 88b8d002c31894946b81db7d330567bed45e10fe
|
|
4
|
+
data.tar.gz: e89b1b39e76bf64c264c6c796a343975dac50ce0
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: aec159ee9e06a1f30c1d496a274235df47b3d69cc0b5e40ab0376e0ab55e88aedfa3150bc57e14e3c48d32c698d6167552dc48273dc3ba05226e1b79bfc86620
|
|
7
|
+
data.tar.gz: 18b836afba96e60a6f40916d6e65fb06d1b1b177f640a6809c574c64c8e5aba5356b27929042992d8ed412b3d06bfcf915fce4d338a01e0726c362a767137be2
|
data/.DS_Store
ADDED
|
Binary file
|
data/README.md
CHANGED
|
@@ -36,4 +36,4 @@ The gem is available as open source under the terms of the [MIT License](http://
|
|
|
36
36
|
|
|
37
37
|
## Code of Conduct
|
|
38
38
|
|
|
39
|
-
Everyone interacting in the Twitter::Ratelimit::Patch project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/
|
|
39
|
+
Everyone interacting in the Twitter::Ratelimit::Patch project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/flum1025/twitter-ratelimit-patch/blob/master/CODE_OF_CONDUCT.md).
|
|
@@ -12,6 +12,23 @@ module Twitter::REST::Request::Extend
|
|
|
12
12
|
end
|
|
13
13
|
end
|
|
14
14
|
|
|
15
|
+
module Twitter
|
|
16
|
+
module REST
|
|
17
|
+
module Utils
|
|
18
|
+
def perform_request_with_objects(request_method, path, options, klass)
|
|
19
|
+
pr = perform_request(request_method, path, options)
|
|
20
|
+
collected = pr.collect do |element|
|
|
21
|
+
klass.new(element)
|
|
22
|
+
end
|
|
23
|
+
collected.define_singleton_method :rate_limit do
|
|
24
|
+
pr.rate_limit
|
|
25
|
+
end
|
|
26
|
+
collected
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
end
|
|
31
|
+
|
|
15
32
|
class Twitter::Base
|
|
16
33
|
def rate_limit
|
|
17
34
|
attrs.rate_limit
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: twitter-ratelimit-patch
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- flum1025
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2018-08-11 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|
|
@@ -59,6 +59,7 @@ executables: []
|
|
|
59
59
|
extensions: []
|
|
60
60
|
extra_rdoc_files: []
|
|
61
61
|
files:
|
|
62
|
+
- ".DS_Store"
|
|
62
63
|
- ".gitignore"
|
|
63
64
|
- CODE_OF_CONDUCT.md
|
|
64
65
|
- Gemfile
|