fluent-plugin-out-http-ext 0.1.7 → 0.1.8

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: ef02eece34dcaef1ec42972fee354179d5dcca77
4
+ data.tar.gz: efe74b98276c2bec27d146a1b9538e9af43655a4
5
+ SHA512:
6
+ metadata.gz: fc0ddf81a5dda2873c73d1db05bacb1545238351ec0c5eb22665c5f140c31bde74b3e06e47a07b1b9d988e7e26216a30293a44a293ebaf421f1285532e285096
7
+ data.tar.gz: 2dee7b6aafada7ebb2cc8d85c800c4cafdbf71e360c5cfe6d42ce4a724cbc4651e0f4a667fb8fda2f58f056ac68ce4dac9398aad49046cb1c34b4f7b9cd17a3b
data/.travis.yml CHANGED
@@ -1,6 +1,4 @@
1
1
  rvm:
2
- - 1.9.3
3
- - 2.0.0
4
2
  - 2.1
5
3
  - 2.2
6
4
  - ruby-head
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.1.8
4
+ * Add verify ssl option
5
+ * Restrict ruby version to more than 2.1.0
6
+
7
+ ## 0.1.7
8
+ * Specify http status codes with witch this plugin does not raise error
9
+
10
+
3
11
  ## 0.1.5
4
12
  * Add headers directive
5
13
  * Add use_ssl directive
data/README.md CHANGED
@@ -19,11 +19,12 @@ A generic [fluentd][1] output plugin for sending logs to an HTTP endpoint
19
19
  read_timeout 10 # default: 60
20
20
  raise_on_error false # default: true
21
21
  raise_on_http_failure true # default: false
22
- ignore_http_status_code 300,400..499 # default: nil # do not raise on these http_hstatus codes
22
+ ignore_http_status_code 300,400..499 # default: nil # do not raise on these http_status codes
23
23
  authentication basic # default: none
24
24
  username alice # default: ''
25
25
  password bobpop # default: '', secret: true
26
26
  use_ssl true # default: false
27
+ verify_ssl false # default: true
27
28
  <headers>
28
29
  HeaderExample1 header1
29
30
  HeaderExample2 header2
@@ -34,6 +35,25 @@ A generic [fluentd][1] output plugin for sending logs to an HTTP endpoint
34
35
 
35
36
  If you'd like to retry failed requests, consider using [fluent-plugin-bufferize][3].
36
37
 
38
+ ## how to release
39
+
40
+ **Include these changes to pull request**
41
+
42
+ - update `CHANGELOG.md`
43
+ - update `README.md`
44
+
45
+ **After master is updated**
46
+
47
+ ```
48
+ # bump `gem.version` in `fluent-plugin-out-http-ext.gemspec`
49
+
50
+ # upload to rubygems
51
+ $ bundle exec rake release
52
+
53
+ # push updates
54
+ $ git push --follow-tags
55
+ ```
56
+
37
57
  ----
38
58
 
39
59
  Heavily based on [fluent-plugin-growthforecast][2]
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |gem|
4
4
  gem.name = "fluent-plugin-out-http-ext"
5
- gem.version = "0.1.7"
5
+ gem.version = "0.1.8"
6
6
  gem.authors = ["Toshiya Kawasaki"]
7
7
  gem.email = ["kawasakitoshiya@gmail.com"]
8
8
  gem.summary = %q{A generic Fluentd output plugin to send logs to an HTTP endpoint with SSL and Header option}
@@ -14,6 +14,8 @@ Gem::Specification.new do |gem|
14
14
  gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
15
15
  gem.require_paths = ["lib"]
16
16
 
17
+ gem.required_ruby_version = ">= 2.1.0"
18
+
17
19
  gem.add_runtime_dependency "yajl-ruby", "~> 1.0"
18
20
  gem.add_runtime_dependency "fluentd", [">= 0.10.0", "< 2"]
19
21
  gem.add_development_dependency "bundler"
@@ -86,6 +86,7 @@ class Fluent::HTTPOutput < Fluent::Output
86
86
 
87
87
  config_param :open_timeout, :integer, :default => nil
88
88
  config_param :read_timeout, :integer, :default => 60
89
+ config_param :verify_ssl, :bool, :default => true
89
90
 
90
91
  # Simple rate limiting: ignore any records within `rate_limit_msec`
91
92
  # since the last one.
@@ -208,6 +209,9 @@ class Fluent::HTTPOutput < Fluent::Output
208
209
  if @use_ssl
209
210
  client.use_ssl = true
210
211
  client.ca_file = OpenSSL::X509::DEFAULT_CERT_FILE
212
+ unless @verify_ssl
213
+ client.verify_mode = OpenSSL::SSL::VERIFY_NONE
214
+ end
211
215
  end
212
216
  res = client.start {|http|
213
217
  http.open_timeout = @open_timeout
@@ -272,7 +272,7 @@ class HTTPOutputTest < HTTPOutputTestBase
272
272
  end
273
273
 
274
274
  def test_emit_json
275
- binary_string = "\xe3\x81\x82".force_encoding("ascii-8bit")
275
+ binary_string = ""
276
276
  d = create_driver CONFIG_JSON
277
277
  d.emit({ 'field1' => 50, 'field2' => 20, 'field3' => 10, 'otherfield' => 1, 'binary' => binary_string })
278
278
  d.run
metadata CHANGED
@@ -1,116 +1,103 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-out-http-ext
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.7
5
- prerelease:
4
+ version: 0.1.8
6
5
  platform: ruby
7
6
  authors:
8
7
  - Toshiya Kawasaki
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2016-01-14 00:00:00.000000000 Z
11
+ date: 2016-10-10 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: yajl-ruby
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
- - - ~>
17
+ - - "~>"
20
18
  - !ruby/object:Gem::Version
21
19
  version: '1.0'
22
20
  type: :runtime
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
- - - ~>
24
+ - - "~>"
28
25
  - !ruby/object:Gem::Version
29
26
  version: '1.0'
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: fluentd
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
- - - ! '>='
31
+ - - ">="
36
32
  - !ruby/object:Gem::Version
37
33
  version: 0.10.0
38
- - - <
34
+ - - "<"
39
35
  - !ruby/object:Gem::Version
40
36
  version: '2'
41
37
  type: :runtime
42
38
  prerelease: false
43
39
  version_requirements: !ruby/object:Gem::Requirement
44
- none: false
45
40
  requirements:
46
- - - ! '>='
41
+ - - ">="
47
42
  - !ruby/object:Gem::Version
48
43
  version: 0.10.0
49
- - - <
44
+ - - "<"
50
45
  - !ruby/object:Gem::Version
51
46
  version: '2'
52
47
  - !ruby/object:Gem::Dependency
53
48
  name: bundler
54
49
  requirement: !ruby/object:Gem::Requirement
55
- none: false
56
50
  requirements:
57
- - - ! '>='
51
+ - - ">="
58
52
  - !ruby/object:Gem::Version
59
53
  version: '0'
60
54
  type: :development
61
55
  prerelease: false
62
56
  version_requirements: !ruby/object:Gem::Requirement
63
- none: false
64
57
  requirements:
65
- - - ! '>='
58
+ - - ">="
66
59
  - !ruby/object:Gem::Version
67
60
  version: '0'
68
61
  - !ruby/object:Gem::Dependency
69
62
  name: rake
70
63
  requirement: !ruby/object:Gem::Requirement
71
- none: false
72
64
  requirements:
73
- - - ! '>='
65
+ - - ">="
74
66
  - !ruby/object:Gem::Version
75
67
  version: '0'
76
68
  type: :development
77
69
  prerelease: false
78
70
  version_requirements: !ruby/object:Gem::Requirement
79
- none: false
80
71
  requirements:
81
- - - ! '>='
72
+ - - ">="
82
73
  - !ruby/object:Gem::Version
83
74
  version: '0'
84
75
  - !ruby/object:Gem::Dependency
85
76
  name: test-unit
86
77
  requirement: !ruby/object:Gem::Requirement
87
- none: false
88
78
  requirements:
89
- - - ! '>='
79
+ - - ">="
90
80
  - !ruby/object:Gem::Version
91
81
  version: 3.1.0
92
82
  type: :development
93
83
  prerelease: false
94
84
  version_requirements: !ruby/object:Gem::Requirement
95
- none: false
96
85
  requirements:
97
- - - ! '>='
86
+ - - ">="
98
87
  - !ruby/object:Gem::Version
99
88
  version: 3.1.0
100
89
  - !ruby/object:Gem::Dependency
101
90
  name: coveralls
102
91
  requirement: !ruby/object:Gem::Requirement
103
- none: false
104
92
  requirements:
105
- - - ! '>='
93
+ - - ">="
106
94
  - !ruby/object:Gem::Version
107
95
  version: '0'
108
96
  type: :development
109
97
  prerelease: false
110
98
  version_requirements: !ruby/object:Gem::Requirement
111
- none: false
112
99
  requirements:
113
- - - ! '>='
100
+ - - ">="
114
101
  - !ruby/object:Gem::Version
115
102
  version: '0'
116
103
  description: A generic Fluentd output plugin to send logs to an HTTP endpoint with
@@ -121,9 +108,9 @@ executables: []
121
108
  extensions: []
122
109
  extra_rdoc_files: []
123
110
  files:
124
- - .coveralls.yml
125
- - .gitignore
126
- - .travis.yml
111
+ - ".coveralls.yml"
112
+ - ".gitignore"
113
+ - ".travis.yml"
127
114
  - CHANGELOG.md
128
115
  - Gemfile
129
116
  - LICENSE.txt
@@ -137,27 +124,26 @@ files:
137
124
  homepage:
138
125
  licenses:
139
126
  - Apache-2.0
127
+ metadata: {}
140
128
  post_install_message:
141
129
  rdoc_options: []
142
130
  require_paths:
143
131
  - lib
144
132
  required_ruby_version: !ruby/object:Gem::Requirement
145
- none: false
146
133
  requirements:
147
- - - ! '>='
134
+ - - ">="
148
135
  - !ruby/object:Gem::Version
149
- version: '0'
136
+ version: 2.1.0
150
137
  required_rubygems_version: !ruby/object:Gem::Requirement
151
- none: false
152
138
  requirements:
153
- - - ! '>='
139
+ - - ">="
154
140
  - !ruby/object:Gem::Version
155
141
  version: '0'
156
142
  requirements: []
157
143
  rubyforge_project:
158
- rubygems_version: 1.8.23
144
+ rubygems_version: 2.5.1
159
145
  signing_key:
160
- specification_version: 3
146
+ specification_version: 4
161
147
  summary: A generic Fluentd output plugin to send logs to an HTTP endpoint with SSL
162
148
  and Header option
163
149
  test_files: