geminabucket 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/Changelog.md +4 -0
- data/README.md +8 -0
- data/lib/geminabucket/remote_fetcher.rb +9 -1
- data/lib/geminabucket/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
YTEwZDFjNTYzMjEwMWI1OTE5NTZiZjg4Y2VjMjE3OWQ4MGQ5MDhiNQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
MjZmODQwNGZmMDkxMzM2NGY1YjhkYzNjYWY3OTdjMDgxODQ4NjU1OQ==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
ZWQ2MGQxZGQ0ZGJlODdkMzUzNDNkZjhiNDMzZmI2YWMyYWVmOWZjZWFmYjBm
|
10
|
+
NDNlNWQwMmNlMDExZDYxOGE1ZTc4YWQ1OGY2NDI1N2MwMDhkOWJlYTA0Nzlh
|
11
|
+
MzM5YjM5NTI1Nzc3MzdkYTdhYTNlMmMwODMzYjk5MWI0YjhiMzQ=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ZjFlMzIzZDRmNjY2NTRjNWZiNmU2MTRhMmUzZTM1Y2M5M2UwZDVmOTE4MTIy
|
14
|
+
YTJhNzA4ZjhmMjYzOWY4ZmJmZjc1ZWMyNDAyYjY4MzgzNjY1OTcxMjk4ZDg5
|
15
|
+
YWFmZmYzN2UwN2Q4ZTliZTcwYWE2YjhlMThiZTlkOTc1M2ZkYjk=
|
data/Changelog.md
CHANGED
data/README.md
CHANGED
@@ -47,6 +47,14 @@ From the [documentation](http://docs.aws.amazon.com/AWSRubySDK/latest/AWS/Core/C
|
|
47
47
|
> * The environment (e.g. ENV['AWS_ACCESS_KEY_ID'] or ENV['AMAZON_ACCESS_KEY_ID'])
|
48
48
|
> * EC2 metadata service (checks for credentials provided by roles for instances).
|
49
49
|
|
50
|
+
In addition, an AWS key can be set in a `gemrc` config file (`/etc/gemrc` or `~.gemrc`):
|
51
|
+
```yaml
|
52
|
+
---
|
53
|
+
geminabucket: {
|
54
|
+
access_key_id: "...",
|
55
|
+
secret_access_key: "..."
|
56
|
+
}
|
57
|
+
```
|
50
58
|
|
51
59
|
## Contributing
|
52
60
|
|
@@ -128,7 +128,15 @@ class Geminabucket::RemoteFetcher < Gem::RemoteFetcher
|
|
128
128
|
end
|
129
129
|
|
130
130
|
def s3
|
131
|
-
@s3
|
131
|
+
unless @s3
|
132
|
+
creds = {}
|
133
|
+
if o = Gem.configuration["geminabucket"]
|
134
|
+
creds[:access_key_id] = o["access_key_id"]
|
135
|
+
creds[:secret_access_key] = o["secret_access_key"]
|
136
|
+
end
|
137
|
+
@s3 = ::AWS::S3.new(creds)
|
138
|
+
end
|
139
|
+
@s3
|
132
140
|
end
|
133
141
|
end
|
134
142
|
|
data/lib/geminabucket/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: geminabucket
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alexis Midon
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-06-
|
11
|
+
date: 2013-06-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk
|