s3_config 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rbenv-vars.example +1 -1
- data/README.md +1 -1
- data/lib/s3_config/application.rb +1 -1
- data/lib/s3_config/cli.rb +1 -1
- data/lib/s3_config/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6b2ae834c3846614bdc21b5583fb8805da16fb1d
|
4
|
+
data.tar.gz: 15f920f9301fb00f2cbfe5997daf849504b73db8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0bec3e8eddbef626fb738d63e6382fdc90f65fa047cd82b30da08e1f376e272f585ac525f2b1ae4f6e69d2356d12a083ff134e8387050b570d77acb1918390c6
|
7
|
+
data.tar.gz: c3c3644b50d1d001139410d693fa760854f3fbe32d5c1c5f96f43069ca2c3c222818d75c43c54e1ba68ee07515b4bfe8900a3f27f7e1eb90a88f92ac93ebb4aa
|
data/.rbenv-vars.example
CHANGED
data/README.md
CHANGED
@@ -20,7 +20,7 @@ Or install it yourself as:
|
|
20
20
|
|
21
21
|
## Setup
|
22
22
|
|
23
|
-
`AWS_ACCESS_KEY_ID`, `
|
23
|
+
`AWS_ACCESS_KEY_ID`, `AWS_SECRET_ACCESS_KEY`, and `S3_CONFIG_BUCKET` must be defined in your ENV.
|
24
24
|
|
25
25
|
## Usage
|
26
26
|
|
@@ -87,7 +87,7 @@ module S3Config
|
|
87
87
|
private
|
88
88
|
|
89
89
|
def client
|
90
|
-
@s3 ||= Aws::S3::Client.new(
|
90
|
+
@s3 ||= Aws::S3::Client.new(region: ::ENV.fetch("AWS_REGION", "us-east-1"))
|
91
91
|
end
|
92
92
|
|
93
93
|
def bucket
|
data/lib/s3_config/cli.rb
CHANGED
@@ -9,7 +9,7 @@ module S3Config
|
|
9
9
|
def validate_installed!
|
10
10
|
unless S3Config.adapter.new.valid?
|
11
11
|
error "Not installed!"
|
12
|
-
error "`AWS_ACCESS_KEY_ID`, `
|
12
|
+
error "`AWS_ACCESS_KEY_ID`, `AWS_SECRET_ACCESS_KEY`, and `S3_CONFIG_BUCKET` must be defined in your ENV."
|
13
13
|
false
|
14
14
|
else
|
15
15
|
true
|
data/lib/s3_config/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: s3_config
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Zane Shannon
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-09-
|
11
|
+
date: 2016-09-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk
|