fluent-plugin-cloud-feeds 1.3.0 → 1.3.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,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- YzI2Njg3NGJhNzJkOWQwZjdjOWNiZjIyMWNiYjUzMTdkNmQyN2Q2OA==
4
+ YWI1MmIzMjM0NjZmYzk3ZmZmMmU0YzZlNzE2ZDNhNjViMjdjNThhZQ==
5
5
  data.tar.gz: !binary |-
6
- ZTc0MWM2NDQ0NWRjMGU5YTE3Yzg2ZDhiM2M1NTZkMzRkMzI3NDMxMQ==
6
+ ZTg1YWE4ZGM0ODk2OThmZDI4NTFjOGEwODU4YzkwY2ExM2I5ZmE3Zg==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- MWE1NmUxNWFhNDFiY2FiZTllZTM5OTEwNTBmODhiNGQ4MWJlZTFjOTgxYWQ1
10
- NmZkNzY2ZTkwYWQxZWViMWM5OTY3N2JiNTAyOTc3OGVkY2RjOTE5OWE2NTU5
11
- ZTM5MjNmZjcwZTM2NDk2NTE0NTA5M2NmMjc3ZDQxN2ZlZDlhYWI=
9
+ YjhiNjEzYTgwY2FjNmYzYzE1MmJiZDMyZWU2MmM1ZmYxZjdmODFlNzAyNDgw
10
+ YzEyMmYzNThhZTQ4NGFhNDI3ZjAwNjhmOWJiMzhhZWM0NTI5MDhkMTEzYzk5
11
+ NjdlODE3M2QwZDVmYTc0ZmZjY2NmM2UyNWQ1ZjliY2JjYTE0ZGI=
12
12
  data.tar.gz: !binary |-
13
- MjFiOWZmZmY4YjAyODRkMzVmYWJlMzNmNmVmZDY3ZDA5Mzk1MDZjNmFkNjc2
14
- MmE0NjY3M2UxNzllMjhjZmZjZWE4OTE3ZTkwY2QwZjgxMmUwZTdlZTcxNDI4
15
- MzMwYjhkNTE1MTRiNDAxZWFlNzAyOGRmZWExNjQ3NThjZDU3YjY=
13
+ OWE2NzgwZTA5NDNhODU5MmEzYTY4NjM5Y2I1MTQ5YTY4YzVlNDQ2MjA5NzY2
14
+ NGI2ZjcxNGVlZjBlZGYyY2I2MTdlZWMyNjUxMzFhYzBlM2M2NTdjYWM0ZjY0
15
+ YzIzNWE5NTFhZDc0MGFkNjFiNWMxYTA1MzZjY2Y5NmMyYzI3MzA=
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- fluent-plugin-cloud-feeds (1.2.0)
4
+ fluent-plugin-cloud-feeds (1.3.1)
5
5
  fluentd (= 0.12.7)
6
6
  net-http-persistent (>= 2.7)
7
7
 
@@ -2,7 +2,7 @@ $:.push File.expand_path("../lib", __FILE__)
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = "fluent-plugin-cloud-feeds"
5
- s.version = "1.3.0"
5
+ s.version = "1.3.1"
6
6
  s.authors = ["David Kowis", "Tyler Royal"]
7
7
  s.email= ["david.kowis@rackspace.com", "tyler.royal@rackspace.com"]
8
8
  s.homepage = "https://github.com/rackerlabs/fluent-plugin-cloud-feeds"
@@ -107,6 +107,11 @@ EOF
107
107
 
108
108
  def emit(tag, es, chain)
109
109
  es.each { |time, record|
110
+ http = Net::HTTP.new(@feeds_uri.host, @feeds_uri.port)
111
+ if @feeds_uri.scheme == 'https'
112
+ http.use_ssl = true
113
+ end
114
+
110
115
  # take the data, put it in to an abdera envelope
111
116
  post = Net::HTTP::Post.new @feeds_uri.path
112
117
 
@@ -118,7 +123,8 @@ EOF
118
123
  post['x-auth-token'] = @auth_token
119
124
 
120
125
  begin
121
- response = @feeds_http.request @feeds_uri, post
126
+ response = http.request(post)
127
+
122
128
  if response.code !~ /2\d\d/
123
129
  @auth_token = nil
124
130
  raise "NOT AUTHORIZED TO POST TO FEED ENDPOINT #{@feeds_endpoint}"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-cloud-feeds
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.0
4
+ version: 1.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Kowis
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-05-11 00:00:00.000000000 Z
12
+ date: 2015-05-14 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: net-http-persistent