logstash-mixin-http_client 1.0.0 → 1.0.1

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 866041325df6f6f569b40e8a0c44464f5d543c04
4
- data.tar.gz: c911cdde46a537e2a87061b1439f357b01767fef
3
+ metadata.gz: 614d270de3dce8b8103ba858085a058eb761b135
4
+ data.tar.gz: 7f2e8a54302108dd10af78fc59e9e4b1ee452024
5
5
  SHA512:
6
- metadata.gz: d0f2a27414856acd2f5235ff7b9765baa5b2a8641f23f133c15fde9dc5b89d216e70bf3d0b65b043caccaefafffd25c452cf877688621cc9e252933f8f359754
7
- data.tar.gz: 8f9e2b21bd8545a5723c4a0c57b3d13716dfec47457dfb81bb81581a520a3f309a5afa6083ed1d7148a48d88752a91dd4a4b96aa7fecbb230ab2266543ae023b
6
+ metadata.gz: c4f05fba0368cf09b30c88016df8a3c466f6ac427acbade047f9f6438ac3692cfe47092401330a6bb7fd8dab5972664cdc089f7e5de41c6b15fed6c7d5b3742a
7
+ data.tar.gz: cd035ee25419a9e7d007a52663b943adbaf11e8173419ffb34b5e8417aa9b2ce775d996b95fef439bc2bc7fdf15618289f4945e265835523250b699df700bd72
@@ -1,2 +1,4 @@
1
+ # 1.0.1
2
+ * Default to 0 automatic_retries
1
3
  # 1.0.0
2
4
  * Allow to use either V1 or V2 of the `AWS-SDK` in your plugins. Fixes: https://github.com/logstash-plugins/logstash-mixin-aws/issues/8
@@ -36,14 +36,14 @@ module LogStash::PluginMixins::HttpClient
36
36
  # Turn this on to enable HTTP keepalive support
37
37
  config :keepalive, :validate => :boolean, :default => true
38
38
 
39
- # How many times should the client retry a failing URL? Default is 3
40
- config :automatic_retries, :validate => :number, :default => 3
39
+ # How many times should the client retry a failing URL? Default is 0
40
+ config :automatic_retries, :validate => :number, :default => 0
41
41
 
42
42
  # If you need to use a custom X.509 CA (.pem certs) specify the path to that here
43
- config :ca_path, :validate => :path
43
+ config :cacert, :validate => :path
44
44
 
45
45
  # If you need to use a custom keystore (.jks) specify that here
46
- config :truststore_path, :validate => :path
46
+ config :truststore, :validate => :path
47
47
 
48
48
  # Specify the keystore password here.
49
49
  # Note, most .jks files created with keytool require a password!
@@ -90,12 +90,12 @@ module LogStash::PluginMixins::HttpClient
90
90
  end
91
91
 
92
92
  c[:ssl] = {}
93
- if @ca_path
94
- c[:ssl][:ca_file] = @ca_path
93
+ if @cacert
94
+ c[:ssl][:ca_file] = @cacert
95
95
  end
96
- if (@truststore_path)
96
+ if (@truststore)
97
97
  c[:ssl].merge!(
98
- :truststore => @truststore_path,
98
+ :truststore => @truststore,
99
99
  :truststore_type => @truststore_type
100
100
  )
101
101
 
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'logstash-mixin-http_client'
3
- s.version = '1.0.0'
3
+ s.version = '1.0.1'
4
4
  s.licenses = ['Apache License (2.0)']
5
5
  s.summary = "AWS mixins to provide a unified interface for Amazon Webservice"
6
6
  s.description = "This gem is a logstash plugin required to be installed on top of the Logstash core pipeline using $LS_HOME/bin/plugin install gemname. This gem is not a stand-alone program"
@@ -43,13 +43,13 @@ describe LogStash::PluginMixins::HttpClient do
43
43
  after { File.unlink(path)}
44
44
 
45
45
  context "with x509" do
46
- let(:conf) { basic_config.merge("ca_path" => path) }
46
+ let(:conf) { basic_config.merge("cacert" => path) }
47
47
 
48
48
  include_examples("setting ca bundles", :ca_file)
49
49
  end
50
50
 
51
51
  context "with JKS" do
52
- let(:conf) { basic_config.merge("truststore_path" => path) }
52
+ let(:conf) { basic_config.merge("truststore" => path) }
53
53
 
54
54
  include_examples("setting ca bundles", :truststore)
55
55
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logstash-mixin-http_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Elastic
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-07-09 00:00:00.000000000 Z
11
+ date: 2015-07-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: logstash-core