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: f6761994ec06ed9516a6b7c9abe3ec44f77bfdbe
4
- data.tar.gz: f8709e6fa06915f13ea6a3890382f84769c38465
3
+ metadata.gz: 890661f8c3f6d0ba720cfe6ffaabfb69d6396c76
4
+ data.tar.gz: c7db01ecf49764a715a5f325c3cdd1c0f3cd0c91
5
5
  SHA512:
6
- metadata.gz: 5e1251b591cfdc869b64f10f5f726cc5e637edb21be2c77350460d46ded5ef9c01e5a9d4160998aa983ab05eeac62ad82477d3b356c65fb828e83ee393fe41d7
7
- data.tar.gz: cd5c50121621d5100c2b3f6aa0070fe306aaf4d72a1615b3d5da220b819549975b2d324a97850fcb654ce7aa04343a8f0712ead41dcd0b3570e138b4b3ddbec7
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.1.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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-github-activities
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - YUKI Hiroshi