fluent-plugin-http-enhanced 0.0.4 → 0.0.5

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.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 37072665330c44121fa30992f973d0c7720cc6d1
4
+ data.tar.gz: 032e22b72caad48c4d7ecac2bc3987fc3ff1281d
5
+ SHA512:
6
+ metadata.gz: cff982108aed04fb24b15355670a90f32311cd98103d303ece0da30ed1a7a385ee62ba34c932c8fcc7f8b23c6c0a4c3b05afac3d1bd7541ac7ab56342172b7a6
7
+ data.tar.gz: ae10757bed3ac2249257d0e1cf8fb26e351aeb7c8285ce40419a59989ec00d07e015d0c1d7d8969b91759013caa4a51b4b8418497d44ae240bcb1db8357c6019
@@ -19,12 +19,12 @@ This plugin enables some advanced features on existing HTTP input plugin
19
19
  </source>
20
20
 
21
21
 
22
- If your events contain a param named 'time' or 't' (eg. http://host:port/tag?key1=value1&t=123456789), it will be trated as timestamp for the event (Unix epoch time format)
22
+ If your events contain a param named 'time' or 't' (eg. http://host:port/tag?key1=value1&t=123456789), it will be treated as timestamp for the event (Unix epoch time format)
23
23
  It also serves /crossdomain.xml so that your flash apps can post events too.
24
24
 
25
25
  == Copyright
26
26
 
27
- Copyright:: Copyright (c) 2011 Abhishek Parolkar
27
+ Copyright:: Copyright (c) 2015 Abhishek Parolkar
28
28
  License:: Apache License, Version 2.0
29
29
 
30
30
 
@@ -5,7 +5,7 @@ Gem::Specification.new do |gem|
5
5
  gem.description = "Enhanced HTTP input plugin for Fluent event collector"
6
6
  gem.homepage = "https://github.com/parolkar/fluent-plugin-http-enhanced"
7
7
  gem.summary = gem.description
8
- gem.version = "0.0.4"
8
+ gem.version = "0.0.5"
9
9
  gem.authors = ["Abhishek Parolkar"]
10
10
  gem.email = "abhishek@parolkar.com"
11
11
  gem.has_rdoc = false
@@ -15,11 +15,10 @@ module Fluent
15
15
 
16
16
  tag = @default_tag if tag == '' && @default_tag != ''
17
17
  record = params
18
- time = params['time']
19
- time ||= params['t']
20
- time = time[0..9].to_i # just make sure that its 10 digits epoch time in seconds not miliseconds
21
- if time == 0
22
- time = Engine.now
18
+ time = (params['time'] || params['t'] || Engine.now).to_i
19
+ # Just make sure that it's a 10-digit epoch time in seconds not milliseconds
20
+ if time >= 10**10
21
+ time /= 1000
23
22
  end
24
23
  rescue
25
24
  return ["400 Bad Request", {'Content-type'=>'text/plain'}, "400 Bad Request\n#{$!}\n"]
metadata CHANGED
@@ -1,32 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-http-enhanced
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
5
- prerelease:
4
+ version: 0.0.5
6
5
  platform: ruby
7
6
  authors:
8
7
  - Abhishek Parolkar
9
- autorequire:
8
+ autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2012-08-08 00:00:00.000000000 Z
11
+ date: 2015-12-22 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: fluentd
16
- requirement: !ruby/object:Gem::Requirement
17
- none: false
15
+ version_requirements: !ruby/object:Gem::Requirement
18
16
  requirements:
19
17
  - - ~>
20
18
  - !ruby/object:Gem::Version
21
19
  version: 0.10.8
22
- type: :runtime
23
- prerelease: false
24
- version_requirements: !ruby/object:Gem::Requirement
25
- none: false
20
+ requirement: !ruby/object:Gem::Requirement
26
21
  requirements:
27
22
  - - ~>
28
23
  - !ruby/object:Gem::Version
29
24
  version: 0.10.8
25
+ prerelease: false
26
+ type: :runtime
30
27
  description: Enhanced HTTP input plugin for Fluent event collector
31
28
  email: abhishek@parolkar.com
32
29
  executables: []
@@ -38,26 +35,25 @@ files:
38
35
  - lib/fluent/plugin/in_httpenhanced.rb
39
36
  homepage: https://github.com/parolkar/fluent-plugin-http-enhanced
40
37
  licenses: []
41
- post_install_message:
38
+ metadata: {}
39
+ post_install_message:
42
40
  rdoc_options: []
43
41
  require_paths:
44
42
  - lib
45
43
  required_ruby_version: !ruby/object:Gem::Requirement
46
- none: false
47
44
  requirements:
48
- - - ! '>='
45
+ - - '>='
49
46
  - !ruby/object:Gem::Version
50
47
  version: '0'
51
48
  required_rubygems_version: !ruby/object:Gem::Requirement
52
- none: false
53
49
  requirements:
54
- - - ! '>='
50
+ - - '>='
55
51
  - !ruby/object:Gem::Version
56
52
  version: '0'
57
53
  requirements: []
58
- rubyforge_project:
59
- rubygems_version: 1.8.24
60
- signing_key:
61
- specification_version: 3
54
+ rubyforge_project:
55
+ rubygems_version: 2.2.2
56
+ signing_key:
57
+ specification_version: 4
62
58
  summary: Enhanced HTTP input plugin for Fluent event collector
63
59
  test_files: []