Skip to content
Snippets Groups Projects
Commit d0fcfd8e authored by Brian Gann's avatar Brian Gann Committed by Tom Wilkie
Browse files

fixes rspec dependencies and rubocop errors (#391)

parent 8b0469f2
No related branches found
No related tags found
No related merge requests found
--require spec_helper
--format documentation
--color
--require spec_helper
......@@ -2,5 +2,7 @@ source 'https://rubygems.org'
gemspec
gem 'fluentd', '1.4.0'
gem 'rubocop-rspec'
gem 'simplecov', require: false, group: :test
gem 'test-unit'
source 'https://rubygems.org'
gem 'fluent-plugin-systemd', '~> 1.0.1'
gem 'fluent-plugin-kubernetes_metadata_filter', '~> 0.7.0'
gem 'fluent-plugin-systemd', '~> 1.0.1'
gem 'fluentd', '1.3.2'
......@@ -14,7 +14,7 @@ Gem::Specification.new do |spec|
# test_files, files = `git ls-files -z`.split("\x0").partition do |f|
# f.match(%r{^(test|spec|features)/})
# end
spec.files = Dir.glob('{bin,lib}/**/*') + %w[LICENSE.txt README.md]
spec.files = Dir.glob('{bin,lib}/**/*') + %w[../../LICENSE README.md]
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
spec.require_paths = ['lib']
......
......@@ -142,7 +142,7 @@ module Fluent
# 'labels' => '{worker="0"}',
payload.push(
'labels' => labels_to_protocol(k),
'entries' => v.sort_by { |hsh| Time.parse(hsh["ts"])}
'entries' => v.sort_by { |hsh| Time.parse(hsh['ts']) }
)
end
payload
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment