fluent-plugin-timber 1.0.1 → 2.0.0

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: 44b8ee267100fb87a1db9fa3937a26da452bc0f8
4
- data.tar.gz: 8776259a74b9ca2c1c05e2c7abb0c3710748ade0
3
+ metadata.gz: d06c706cac74062d636e96605409a63c89f4ccb8
4
+ data.tar.gz: e709109cce1197be06da855d7374e808ba8bbef2
5
5
  SHA512:
6
- metadata.gz: '02820d632dc32d924a557f8be3b647c72ca8c1646602998305ed3b24bd7ed108a7489090c0f202b033c32f1635bf2761e06e71a1f14a0cd7b88e59ebe8734edb'
7
- data.tar.gz: 982bff76269b31ee9f25b8322b608691534113a9ca6f0a0e0db3a09479b22c0c9351637aa5f49eb14ba4ab71bccf0f0870ec9cc18599b72dc22f1eb8cb765211
6
+ metadata.gz: 6d909b7f3a485136f710dca51adc72c82c477e9ae244d9f99f5243716a7da4e5949b2c0de2659f6800bd79253c3dc7700b84a624ad748b941e82ba5f782f48e8
7
+ data.tar.gz: ed3d338bb751e6fe578bb5fbafdd8223e11a042292ee46d980f37fdff991e8ce817ef6bcc755e59c530db44a7f9978df26bc683b8ffbc8e64ec43c893d80ac29
data/.gitignore CHANGED
@@ -4,6 +4,7 @@
4
4
  coverage
5
5
  *.swp
6
6
  *.gem
7
+ Gemfile.lock
7
8
 
8
9
  gemfiles/*.lock
9
10
 
@@ -0,0 +1,14 @@
1
+ # Changelog
2
+
3
+ All notable changes to this project will be documented in this file.
4
+
5
+ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
6
+ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
7
+
8
+ ## Unreleased
9
+
10
+ ## 1.0.2 - 2019-02-23
11
+
12
+ ### Changed
13
+
14
+ - Updated the logs endpoint from `/sources/:source_id` to `/sources/:source_id/frames`
@@ -3,7 +3,7 @@ require 'date'
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = 'fluent-plugin-timber'
6
- s.version = '1.0.1'
6
+ s.version = '2.0.0'
7
7
  s.date = Date.today.to_s
8
8
  s.summary = 'Timber.io plugin for Fluentd'
9
9
  s.description = 'Streams Fluentd logs to the Timber.io logging service.'
@@ -20,10 +20,11 @@ module Fluent
20
20
  config_param :ip, :string, default: nil
21
21
 
22
22
  def configure(conf)
23
- encoded_api_key = Base64.urlsafe_encode64(conf["api_key"]).chomp
24
- authorization_value = "Basic #{encoded_api_key}"
23
+ source_id = conf["source_id"]
24
+ api_key = conf["api_key"]
25
+ @path = "/sources/#{source_id}/frames"
25
26
  @headers = {
26
- "Authorization" => authorization_value,
27
+ "Authorization" => "Bearer #{api_key}",
27
28
  "Content-Type" => CONTENT_TYPE,
28
29
  "User-Agent" => USER_AGENT
29
30
  }
@@ -59,7 +60,7 @@ module Fluent
59
60
  end
60
61
 
61
62
  body = chunk.read
62
- response = @http_client.headers(@headers).post(PATH, body: body)
63
+ response = @http_client.headers(@headers).post(@path, body: body)
63
64
  response.flush
64
65
  code = response.code
65
66
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-timber
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 2.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Timber.io
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-07-16 00:00:00.000000000 Z
11
+ date: 2019-02-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fluentd
@@ -100,8 +100,8 @@ extra_rdoc_files: []
100
100
  files:
101
101
  - ".gitignore"
102
102
  - ".travis.yml"
103
+ - CHANGELOG.md
103
104
  - Gemfile
104
- - Gemfile.lock
105
105
  - LICENSE.md
106
106
  - README.md
107
107
  - fluent-plugin-timber.gemspec
@@ -128,7 +128,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
128
128
  version: '0'
129
129
  requirements: []
130
130
  rubyforge_project:
131
- rubygems_version: 2.5.2
131
+ rubygems_version: 2.5.2.3
132
132
  signing_key:
133
133
  specification_version: 4
134
134
  summary: Timber.io plugin for Fluentd
@@ -1,86 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- fluent-plugin-timber (1.0.0)
5
- fluentd (>= 0.12.0, < 2)
6
- http (~> 2.0, >= 2.0.3)
7
-
8
- GEM
9
- remote: https://rubygems.org/
10
- specs:
11
- addressable (2.5.1)
12
- public_suffix (~> 2.0, >= 2.0.2)
13
- cool.io (1.5.0)
14
- crack (0.4.3)
15
- safe_yaml (~> 1.0.0)
16
- diff-lcs (1.3)
17
- domain_name (0.5.20170404)
18
- unf (>= 0.0.5, < 1.0.0)
19
- fluentd (0.14.19)
20
- cool.io (>= 1.4.5, < 2.0.0)
21
- http_parser.rb (>= 0.5.1, < 0.7.0)
22
- msgpack (>= 0.7.0, < 2.0.0)
23
- serverengine (>= 2.0.4, < 3.0.0)
24
- sigdump (~> 0.2.2)
25
- strptime (~> 0.1.7)
26
- tzinfo (~> 1.0)
27
- tzinfo-data (~> 1.0)
28
- yajl-ruby (~> 1.0)
29
- hashdiff (0.3.2)
30
- http (2.2.2)
31
- addressable (~> 2.3)
32
- http-cookie (~> 1.0)
33
- http-form_data (~> 1.0.1)
34
- http_parser.rb (~> 0.6.0)
35
- http-cookie (1.0.3)
36
- domain_name (~> 0.5)
37
- http-form_data (1.0.3)
38
- http_parser.rb (0.6.0)
39
- msgpack (1.1.0)
40
- power_assert (0.2.6)
41
- public_suffix (2.0.5)
42
- rspec (3.6.0)
43
- rspec-core (~> 3.6.0)
44
- rspec-expectations (~> 3.6.0)
45
- rspec-mocks (~> 3.6.0)
46
- rspec-core (3.6.0)
47
- rspec-support (~> 3.6.0)
48
- rspec-expectations (3.6.0)
49
- diff-lcs (>= 1.2.0, < 2.0)
50
- rspec-support (~> 3.6.0)
51
- rspec-mocks (3.6.0)
52
- diff-lcs (>= 1.2.0, < 2.0)
53
- rspec-support (~> 3.6.0)
54
- rspec-support (3.6.0)
55
- safe_yaml (1.0.4)
56
- serverengine (2.0.5)
57
- sigdump (~> 0.2.2)
58
- sigdump (0.2.4)
59
- strptime (0.1.9)
60
- test-unit (3.1.5)
61
- power_assert
62
- thread_safe (0.3.6)
63
- tzinfo (1.2.3)
64
- thread_safe (~> 0.1)
65
- tzinfo-data (1.2017.2)
66
- tzinfo (>= 1.0.0)
67
- unf (0.1.4)
68
- unf_ext
69
- unf_ext (0.0.7.4)
70
- webmock (2.3.2)
71
- addressable (>= 2.3.6)
72
- crack (>= 0.3.2)
73
- hashdiff
74
- yajl-ruby (1.3.0)
75
-
76
- PLATFORMS
77
- ruby
78
-
79
- DEPENDENCIES
80
- fluent-plugin-timber!
81
- rspec (~> 3.4)
82
- test-unit (~> 3.1.0)
83
- webmock (~> 2.3)
84
-
85
- BUNDLED WITH
86
- 1.15.1