fluent-plugin-growthforecast 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/fluent-plugin-growthforecast.gemspec +2 -1
- data/lib/fluent/plugin/out_growthforecast.rb +4 -1
- metadata +18 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0cf5cb0f54cf50577a7e557f580d37eabce2eb2d
|
4
|
+
data.tar.gz: 84b3867f83dbb33f2d6b234c9f8ff5ea2107f07c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ef3ef30ce55018d3fff64344302fb60880f51b6cb23d45a46febfad23fe08be2adca98fb4d07fbc2a423d6b88abc8e3772da6f1c9b1bb6e51a365d3917a88202
|
7
|
+
data.tar.gz: 80dcc0dc54e7870ec050dc37d69156f0035910003ed30a6c29ef02d49dede29d4bf996570866e5ebe7e4fb058df3abdcf91f4ca6d02ce1f707386c30fef15ccd
|
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |gem|
|
4
4
|
gem.name = "fluent-plugin-growthforecast"
|
5
|
-
gem.version = "0.2.
|
5
|
+
gem.version = "0.2.1"
|
6
6
|
gem.authors = ["TAGOMORI Satoshi"]
|
7
7
|
gem.email = ["tagomoris@gmail.com"]
|
8
8
|
gem.summary = %q{Fluentd output plugin to post numbers to GrowthForecast (by kazeburo)}
|
@@ -17,4 +17,5 @@ Gem::Specification.new do |gem|
|
|
17
17
|
gem.add_development_dependency "rake"
|
18
18
|
gem.add_runtime_dependency "fluentd"
|
19
19
|
gem.add_runtime_dependency "fluent-mixin-config-placeholders"
|
20
|
+
gem.add_runtime_dependency "resolve-hostname"
|
20
21
|
end
|
@@ -5,6 +5,7 @@ class Fluent::GrowthForecastOutput < Fluent::Output
|
|
5
5
|
super
|
6
6
|
require 'net/http'
|
7
7
|
require 'uri'
|
8
|
+
require 'resolve/hostname'
|
8
9
|
end
|
9
10
|
|
10
11
|
config_param :gfapi_url, :string # growth.forecast.local/api/
|
@@ -78,6 +79,7 @@ class Fluent::GrowthForecastOutput < Fluent::Output
|
|
78
79
|
else
|
79
80
|
:none
|
80
81
|
end
|
82
|
+
@resolver = Resolve::Hostname.new(:system_resolver => true)
|
81
83
|
end
|
82
84
|
|
83
85
|
def start
|
@@ -112,7 +114,7 @@ class Fluent::GrowthForecastOutput < Fluent::Output
|
|
112
114
|
end
|
113
115
|
|
114
116
|
def http_connection(host, port)
|
115
|
-
http = Net::HTTP.new(host, port)
|
117
|
+
http = Net::HTTP.new(@resolver.getaddress(host), port)
|
116
118
|
if @ssl
|
117
119
|
http.use_ssl = true
|
118
120
|
unless @verify_ssl
|
@@ -128,6 +130,7 @@ class Fluent::GrowthForecastOutput < Fluent::Output
|
|
128
130
|
if @auth and @auth == :basic
|
129
131
|
req.basic_auth(@username, @password)
|
130
132
|
end
|
133
|
+
req['Host'] = url.host
|
131
134
|
if @keepalive
|
132
135
|
req['Connection'] = 'Keep-Alive'
|
133
136
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fluent-plugin-growthforecast
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- TAGOMORI Satoshi
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-
|
11
|
+
date: 2013-07-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -52,6 +52,20 @@ dependencies:
|
|
52
52
|
- - '>='
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: resolve-hostname
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - '>='
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
type: :runtime
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - '>='
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
55
69
|
description: For GrowthForecast, see http://kazeburo.github.com/GrowthForecast/
|
56
70
|
email:
|
57
71
|
- tagomoris@gmail.com
|
@@ -90,10 +104,11 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
90
104
|
version: '0'
|
91
105
|
requirements: []
|
92
106
|
rubyforge_project:
|
93
|
-
rubygems_version: 2.0.
|
107
|
+
rubygems_version: 2.0.2
|
94
108
|
signing_key:
|
95
109
|
specification_version: 4
|
96
110
|
summary: Fluentd output plugin to post numbers to GrowthForecast (by kazeburo)
|
97
111
|
test_files:
|
98
112
|
- test/helper.rb
|
99
113
|
- test/plugin/test_out_growthforecast.rb
|
114
|
+
has_rdoc:
|