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 +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/prebundler/s3_backend.rb +5 -3
- data/lib/prebundler/version.rb +3 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f85ac1db1104a8d0cef038b2957c5745cabe60744cd042ec4d2f6112faba0dda
|
4
|
+
data.tar.gz: 70595a0b3f049f1a77066542107d74a5297e0e7572bcdcbc2a3603edcfcf331e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a339b1e9a90f87c3a67e1c418518902ac88663f1360511f9c04a2fe28469b295dbb947b5bc8689c716c87adea10dc4a4835a3133613ca6890d9bd02ff7f457fd
|
7
|
+
data.tar.gz: f64888ba39a9f1eb347cf395d1628f6e4c4e9aad714ab895ea84311813e1ab1240885543a7e40c6c82494a046d0d27d7a93de9d28f4499e78bd1985c7cfab1ef
|
data/CHANGELOG.md
CHANGED
@@ -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
|
data/lib/prebundler/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2019-05-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|