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 +8 -8
- data/Gemfile.lock +1 -1
- data/fluent-plugin-cloud-feeds.gemspec +1 -1
- data/lib/fluent/plugin/out_rackspace_cloud_feeds.rb +7 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
---
|
|
2
2
|
!binary "U0hBMQ==":
|
|
3
3
|
metadata.gz: !binary |-
|
|
4
|
-
|
|
4
|
+
YWI1MmIzMjM0NjZmYzk3ZmZmMmU0YzZlNzE2ZDNhNjViMjdjNThhZQ==
|
|
5
5
|
data.tar.gz: !binary |-
|
|
6
|
-
|
|
6
|
+
ZTg1YWE4ZGM0ODk2OThmZDI4NTFjOGEwODU4YzkwY2ExM2I5ZmE3Zg==
|
|
7
7
|
SHA512:
|
|
8
8
|
metadata.gz: !binary |-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
YjhiNjEzYTgwY2FjNmYzYzE1MmJiZDMyZWU2MmM1ZmYxZjdmODFlNzAyNDgw
|
|
10
|
+
YzEyMmYzNThhZTQ4NGFhNDI3ZjAwNjhmOWJiMzhhZWM0NTI5MDhkMTEzYzk5
|
|
11
|
+
NjdlODE3M2QwZDVmYTc0ZmZjY2NmM2UyNWQ1ZjliY2JjYTE0ZGI=
|
|
12
12
|
data.tar.gz: !binary |-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
OWE2NzgwZTA5NDNhODU5MmEzYTY4NjM5Y2I1MTQ5YTY4YzVlNDQ2MjA5NzY2
|
|
14
|
+
NGI2ZjcxNGVlZjBlZGYyY2I2MTdlZWMyNjUxMzFhYzBlM2M2NTdjYWM0ZjY0
|
|
15
|
+
YzIzNWE5NTFhZDc0MGFkNjFiNWMxYTA1MzZjY2Y5NmMyYzI3MzA=
|
data/Gemfile.lock
CHANGED
|
@@ -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.
|
|
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 =
|
|
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.
|
|
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-
|
|
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
|