prebundler 0.9.1 → 0.10.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f49a9f3fcf95202953b7e9b0ff30de9fc464a773e2e7758b66405aa785fdf469
4
- data.tar.gz: efc796dedb3083913832bd140cf3e7d94d7591177beb199f24f98ef0b5ea659d
3
+ metadata.gz: f85ac1db1104a8d0cef038b2957c5745cabe60744cd042ec4d2f6112faba0dda
4
+ data.tar.gz: 70595a0b3f049f1a77066542107d74a5297e0e7572bcdcbc2a3603edcfcf331e
5
5
  SHA512:
6
- metadata.gz: 53ba3344cdc671135fd4ec13bced1631ad7207c76a08086544ce3c012bf15a4af363b5d1314afb59b26f6642e107110ecd51f9d409b8b4816640e5bbaf4d61e2
7
- data.tar.gz: 58575cb59c0101a01578c27e171f131b32a471af4b7f0d7161ba68a342d502578311525a1689a62c563dc17457a2b3b141a757debdab08ccf4364b3dd4b1ab95
6
+ metadata.gz: a339b1e9a90f87c3a67e1c418518902ac88663f1360511f9c04a2fe28469b295dbb947b5bc8689c716c87adea10dc4a4835a3133613ca6890d9bd02ff7f457fd
7
+ data.tar.gz: f64888ba39a9f1eb347cf395d1628f6e4c4e9aad714ab895ea84311813e1ab1240885543a7e40c6c82494a046d0d27d7a93de9d28f4499e78bd1985c7cfab1ef
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ 0.10.0
2
+ ===
3
+ - Update aws-sdk client creation to be able to support non-aws s3 api endpoints (e.g. minio)
4
+
1
5
  0.9.1
2
6
  ===
3
7
  - Woops, also use platform version when determining the gems that have already been built.
@@ -2,13 +2,15 @@ require 'aws-sdk'
2
2
 
3
3
  module Prebundler
4
4
  class S3Backend
5
- attr_reader :access_key_id, :secret_access_key, :bucket, :region
5
+ attr_reader :access_key_id, :secret_access_key, :bucket, :region, :endpoint, :force_path_style
6
6
 
7
7
  def initialize(options = {})
8
8
  @access_key_id = options.fetch(:access_key_id)
9
9
  @secret_access_key = options.fetch(:secret_access_key)
10
10
  @bucket = options.fetch(:bucket)
11
- @region = options.fetch(:region)
11
+ @region = options.fetch(:region) { 'us-east-1' }
12
+ @endpoint = options.fetch(:endpoint) { 's3.amazonaws.com' }
13
+ @force_path_style = options.fetch(:force_path_style) { false }
12
14
  end
13
15
 
14
16
  def store_file(source_file, dest_file)
@@ -60,7 +62,7 @@ module Prebundler
60
62
  private
61
63
 
62
64
  def client
63
- @client ||= Aws::S3::Client.new(region: region, credentials: credentials)
65
+ @client ||= Aws::S3::Client.new(region: region, credentials: credentials, endpoint: endpoint, force_path_style: force_path_style)
64
66
  end
65
67
 
66
68
  def credentials
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Prebundler
2
- VERSION = '0.9.1'
4
+ VERSION = '0.10.0'
3
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: prebundler
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.1
4
+ version: 0.10.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cameron Dutro
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-04-06 00:00:00.000000000 Z
11
+ date: 2019-05-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler