fluent-plugin-sumologic-caugustus 0.0.2 → 0.0.3

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: a2a7eb753d213478e6fa622a47319e9761c61282
4
- data.tar.gz: 769de6ec86e8d1675359a6dd9d2631c9d6768a32
3
+ metadata.gz: 9968d268c9cbb72e125857d688f0aff48549296f
4
+ data.tar.gz: f2332d07311b31795d89664324554b5fe9bd1431
5
5
  SHA512:
6
- metadata.gz: 82595ea6fbe33eeab43cd8205b15717c7690882f54aea98b8dd7f71d1e4a6be2cb82dce59f0c5f40a61cb64188c08a36e11d84cc491be23a5abaf1c46575eeff
7
- data.tar.gz: 81b8ae9ea3ea267bec817d74bdead17441ba0d5d37222adbf9e3a34d5c664bd1a6c47f972448244d2eddbec62180d7fdd2cb8faf0cc632dae5bc3d2d5bcfb694
6
+ metadata.gz: f821cd7f336b533b9fe18f5f1e0c8991438396aeccdc8a8cc1a6e572c1ba15e7796aebc079177bb802ef0c699c3036d26ff05524f685d075ac5714e01fbef67e
7
+ data.tar.gz: 69510fdad947eac51f654136fb1e5b46f694cc60f8fbfdd051ae1c1df1f96e734413a6e19d0c02080fce9f09f7582a2c7d2586d283f7a6fe35a63da6aa12c25e
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = "fluent-plugin-sumologic-caugustus"
7
- spec.version = "0.0.2"
7
+ spec.version = "0.0.3"
8
8
  spec.authors = ["memorycraft"]
9
9
  spec.email = ["memorycraft@gmail.com"]
10
10
  spec.description = %q{fluent plugin for sumologic}
@@ -64,8 +64,12 @@ class Fluent::SumologicOutput< Fluent::BufferedOutput
64
64
  end
65
65
  end
66
66
 
67
- (proxy,proxy_port) = ENV['http_proxy'].split(':')
68
- http = Net::HTTP::Proxy(proxy,proxy_port).new(@host, @port.to_i)
67
+ http = Net::HTTP.new(@host, @port.to_i)
68
+ proxy_string = if ENV['http_proxy'] then ENV['http_proxy'] else @proxy end
69
+ if proxy_string then
70
+ (proxy,proxy_port) = proxy_string.split(':')
71
+ http = Net::HTTP::Proxy(proxy,proxy_port).new(@host, @port.to_i)
72
+ end
69
73
  http.use_ssl = true
70
74
  http.verify_mode = @verify_ssl ? OpenSSL::SSL::VERIFY_PEER : OpenSSL::SSL::VERIFY_NONE
71
75
  http.set_debug_output $stderr if @debug
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-sumologic-caugustus
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - memorycraft
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-10-19 00:00:00.000000000 Z
11
+ date: 2017-01-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler