fluent-plugin-github-activities 0.1.0 → 0.2.0
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 890661f8c3f6d0ba720cfe6ffaabfb69d6396c76
|
4
|
+
data.tar.gz: c7db01ecf49764a715a5f325c3cdd1c0f3cd0c91
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e59f0b3d9ce18f8ccd38e425523fc4a5a78612d3ffd4e5fa46f6620b541c4ee3c04213199cf37f97ccbb1f283762c6dd14951739bd3355dd0b9c047efb408c3d
|
7
|
+
data.tar.gz: e642b72842ea663e14bb93ce1ef56869787956b0db982dbd1bbc1e09a6ecab79e059392a1bb6b9d6d609d64f7f17ca4a517b7de07d93694dcdff09366ee89a55
|
@@ -19,7 +19,7 @@
|
|
19
19
|
|
20
20
|
Gem::Specification.new do |spec|
|
21
21
|
spec.name = "fluent-plugin-github-activities"
|
22
|
-
spec.version = "0.
|
22
|
+
spec.version = "0.2.0"
|
23
23
|
spec.authors = ["YUKI Hiroshi"]
|
24
24
|
spec.email = ["yuki@clear-code.com"]
|
25
25
|
spec.summary = "Fluentd plugin to crawl public activities on the GitHub."
|
@@ -156,6 +156,9 @@ module Fluent
|
|
156
156
|
if @positions[user] and @positions[user]["last_event_timestamp"]
|
157
157
|
last_event_timestamp = @positions[user]["last_event_timestamp"]
|
158
158
|
end
|
159
|
+
events = events.sort do |a, b|
|
160
|
+
b["created_at"] <=> a["created_at"]
|
161
|
+
end
|
159
162
|
events.each do |event|
|
160
163
|
timestamp = Time.parse(event["created_at"]).to_i
|
161
164
|
next if timestamp <= last_event_timestamp
|