diff --git a/lib/moonshot/artifact_repository/s3_bucket.rb b/lib/moonshot/artifact_repository/s3_bucket.rb index 70f23444..448dfbce 100644 --- a/lib/moonshot/artifact_repository/s3_bucket.rb +++ b/lib/moonshot/artifact_repository/s3_bucket.rb @@ -40,6 +40,7 @@ def filename_for_version(version_name) def upload_to_s3(file, key) s3_client.put_object( + acl: 'bucket-owner-full-control', key: key, body: File.open(file), bucket: @bucket_name, diff --git a/moonshot.gemspec b/moonshot.gemspec index d1a05bf7..43a1a013 100644 --- a/moonshot.gemspec +++ b/moonshot.gemspec @@ -17,6 +17,9 @@ Gem::Specification.new do |s| s.add_dependency('interactive-logger', '~> 0.1.1') s.add_dependency('rotp', '~> 2.1.1') s.add_dependency('ruby-duration', '~> 3.2.3') + # Pin back activesupport (ruby-duration dependency) until we only support + # Ruby >= 2.2.2. + s.add_dependency('activesupport', '< 5.0.0') s.add_dependency('thor', '~> 0.19.1') s.add_dependency('semantic') s.add_dependency('vandamme')