fluent-plugin-cloudwatch-ingest 0.1.11 → 0.1.12

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: d1b864e75c65f7db99aecdf2827b787475cbaa29
4
- data.tar.gz: 9cd0c044b9eefb544eefba6a688c71ce38aea1b4
3
+ metadata.gz: 034596977698b1afc31bf2207e3a6557e489cfbd
4
+ data.tar.gz: 5556b9aefcddfbad6fc5a174a2e09fad2f2d72c5
5
5
  SHA512:
6
- metadata.gz: 3aa61610468f41b422de5dd04fd3a8a3046c494b9a0d116470654156f0472139ae67016241d593e72ac8611151b40301ec878435028160cd0b8bf0143bcc867f
7
- data.tar.gz: 8afcf2d61bb71486c76f17d64b33e2743da7c73c7b0476e26462555ad6fe0f7decc6aad017a6baaeee98c949f0e596ef45f7bf04b3442e7df36c60db81e2f293
6
+ metadata.gz: 7bede5e6edd7c61bcfb7c171c235063e29cfe2aaa5e312e493510c6ae9cb289e8170c06dd5774801233c2920017be06c143f4106a70e47c4c52e6a4159c22168
7
+ data.tar.gz: f3c06d4a5160281764e0cfb09348a5b3c7ccbf9c4c39bbefab944362d66fea5d42ab72a542e5cf4726d11cfeb73cd2fd9e9076d165f778acc7b8f3a935e570c6
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # Fluent::Plugin::Cloudwatch::Ingest [![Circle CI](https://circleci.com/gh/sampointer/fluent-plugin-cloudwatch-ingest.svg?style=svg)](https://circleci.com/gh/sampointer/fluent-plugin-cloudwatch-ingest)
1
+ # Fluentd Cloudwatch Plugin [![Circle CI](https://circleci.com/gh/sampointer/fluent-plugin-cloudwatch-ingest.svg?style=shield)](https://circleci.com/gh/sampointer/fluent-plugin-cloudwatch-ingest) [![Gem Version](https://badge.fury.io/rb/fluent-plugin-cloudwatch-ingest.svg)](https://badge.fury.io/rb/fluent-plugin-cloudwatch-ingest) ![](http://ruby-gem-downloads-badge.herokuapp.com/fluent-plugin-cloudwatch-ingest?type=total)
2
2
 
3
3
  **This gem is not yet ready for production release or use.**
4
4
 
@@ -2,7 +2,7 @@ module Fluent
2
2
  module Plugin
3
3
  module Cloudwatch
4
4
  module Ingest
5
- VERSION = '0.1.11'.freeze
5
+ VERSION = '0.1.12'.freeze
6
6
  end
7
7
  end
8
8
  end
@@ -132,7 +132,7 @@ module Fluent::Plugin
132
132
  def run
133
133
  until @finished
134
134
  begin
135
- state = State.new(@state_file_name)
135
+ state = State.new(@state_file_name, log)
136
136
  rescue => boom
137
137
  log.info("Failed lock state. Sleeping for #{@interval}: #{boom}")
138
138
  sleep @interval
@@ -190,7 +190,7 @@ module Fluent::Plugin
190
190
  class LockFailed < RuntimeError; end
191
191
  attr_accessor :statefile
192
192
 
193
- def initialize(filepath)
193
+ def initialize(filepath, log)
194
194
  self.statefile = Pathname.new(filepath).open('w')
195
195
  unless File.exist?(statefile)
196
196
  log.warn("No state file #{statefile} Creating a new one.")
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-cloudwatch-ingest
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.11
4
+ version: 0.1.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sam Pointer