Skip to content

Commit

Permalink
Merge pull request #22 from daichirata/fix/keyword-arguments
Browse files Browse the repository at this point in the history
Fix automatic conversion from a hash to keyword arguments
  • Loading branch information
daichirata authored Aug 16, 2022
2 parents c3b1819 + 41cd12f commit b76a6f8
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 9 deletions.
11 changes: 10 additions & 1 deletion Gemfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
source 'https://rubygems.org'
# frozen_string_literal: true

source "https://rubygems.org"

# Specify your gem's dependencies in fluent-plugin-gcs.gemspec
gemspec

gem "rake", "~> 13.0"
gem "rr", "= 1.1.2"
gem "test-unit", ">= 3.0.8"
gem "test-unit-rr", ">= 1.0.3"
gem "timecop"
gem "solargraph"
6 changes: 0 additions & 6 deletions fluent-plugin-gcs.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,4 @@ Gem::Specification.new do |spec|

spec.add_runtime_dependency "fluentd", [">= 0.14.22", "< 2"]
spec.add_runtime_dependency "google-cloud-storage", "~> 1.1"

spec.add_development_dependency "rake", ">= 12.3.3"
spec.add_development_dependency "rr", "= 1.1.2"
spec.add_development_dependency "test-unit", ">= 3.0.8"
spec.add_development_dependency "test-unit-rr", ">= 1.0.3"
spec.add_development_dependency "timecop"
end
4 changes: 2 additions & 2 deletions lib/fluent/plugin/out_gcs.rb
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ def write(chunk)
opts.merge!(@encryption_opts)

log.debug { "out_gcs: upload chunk:#{chunk.key} to gcs://#{@bucket}/#{path} options: #{opts}" }
@gcs_bucket.upload_file(obj.path, path, opts)
@gcs_bucket.upload_file(obj.path, path, **opts)
end
end

Expand All @@ -153,7 +153,7 @@ def hex_random(chunk)

def check_object_exists(path)
if !@blind_write
return @gcs_bucket.find_file(path, @encryption_opts)
return @gcs_bucket.find_file(path, **@encryption_opts)
else
return false
end
Expand Down

0 comments on commit b76a6f8

Please # to comment.