Skip to content

Commit b0a8f85

Browse files
committed
Update for changes to styleguide
1 parent 730c4e1 commit b0a8f85

File tree

4 files changed

+6
-8
lines changed

4 files changed

+6
-8
lines changed

Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
source "https://rubygems.org"
22

3-
gem "fluentd", "0.12.31"
3+
gem "fluentd", "0.12.43"
44
gemspec

fluent-plugin-systemd.gemspec

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
# -*- encoding: utf-8 -*-
2-
3-
lib = File.expand_path("../lib", __FILE__)
1+
lib = File.expand_path("lib", __dir__)
42
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
53

64
Gem::Specification.new do |spec|
@@ -20,8 +18,8 @@ Gem::Specification.new do |spec|
2018

2119
spec.add_development_dependency "bundler", "~> 1.10"
2220
spec.add_development_dependency "rake"
23-
spec.add_development_dependency "test-unit", "~> 2.5"
2421
spec.add_development_dependency "reevoocop"
22+
spec.add_development_dependency "test-unit", "~> 2.5"
2523

2624
spec.add_runtime_dependency "fluentd", "~> 0.12"
2725
spec.add_runtime_dependency "systemd-journal", "~> 1.2"

lib/fluent/plugin/in_systemd.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ def run
7070
watch do |entry|
7171
begin
7272
router.emit(@tag, entry.realtime_timestamp.to_i, formatted(entry))
73-
rescue => e
73+
rescue => e # rubocop:disable Style/RescueStandardError
7474
log.error("Exception emitting record: #{e}")
7575
end
7676
end

lib/fluent/plugin/systemd/pos_writer.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ def shutdown
2626
write_pos
2727
end
2828

29-
def update(c)
30-
@lock.synchronize { @cursor = c }
29+
def update(cursor)
30+
@lock.synchronize { @cursor = cursor }
3131
end
3232

3333
private

0 commit comments

Comments
 (0)