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 CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- NzVjZDZmZThjMzQwY2ViM2JjMmM3NGIxYTNmMWQ2NGYxZWZlZTZiNA==
4
+ YTEwZDFjNTYzMjEwMWI1OTE5NTZiZjg4Y2VjMjE3OWQ4MGQ5MDhiNQ==
5
5
  data.tar.gz: !binary |-
6
- Yjg2ZmQ1ZGY4NDlmNTk2NjQwYTUyNjhlMTljZGM5OTZkYTc3ZDllYw==
6
+ MjZmODQwNGZmMDkxMzM2NGY1YjhkYzNjYWY3OTdjMDgxODQ4NjU1OQ==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- ZDFkNjYyYjA4MWIwN2E4NzYwM2Y0MTc0NzcyYTY3ZmYyYTE5YWEzZGZlMDJh
10
- NWI1OWUwNDkyMWNiYjcwMmM2MjVhNDMzOWE3NjJlYjhmNzFiNWJiZThkMmNk
11
- M2EzMTJlODUyMGRiZTdlMDQxYjc2MGUxN2I4NjA4NWViN2E2YTI=
9
+ ZWQ2MGQxZGQ0ZGJlODdkMzUzNDNkZjhiNDMzZmI2YWMyYWVmOWZjZWFmYjBm
10
+ NDNlNWQwMmNlMDExZDYxOGE1ZTc4YWQ1OGY2NDI1N2MwMDhkOWJlYTA0Nzlh
11
+ MzM5YjM5NTI1Nzc3MzdkYTdhYTNlMmMwODMzYjk5MWI0YjhiMzQ=
12
12
  data.tar.gz: !binary |-
13
- ZTc0YTBlMDIyNjU4MDM2MDFjYjA0OGJjNDJkOGIxNGY2NTA4NmJhYmYwOTkx
14
- M2YxYmM0NWZjMTQ2OGJiOThkYTJmZDQzNjA4ZjI0ODIxNWM4YWVmNDgzYWE1
15
- MjI2NDg1MTE2ODhhMGJjNmViYmUwZTg4N2VhZmFjZDVhMTlmODI=
13
+ ZjFlMzIzZDRmNjY2NTRjNWZiNmU2MTRhMmUzZTM1Y2M5M2UwZDVmOTE4MTIy
14
+ YTJhNzA4ZjhmMjYzOWY4ZmJmZjc1ZWMyNDAyYjY4MzgzNjY1OTcxMjk4ZDg5
15
+ YWFmZmYzN2UwN2Q4ZTliZTcwYWE2YjhlMThiZTlkOTc1M2ZkYjk=
@@ -1,4 +1,8 @@
1
1
 
2
+ ### 0.0.5 (2013-06-26)
3
+
4
+ * pass AWS creds through gemrc file
5
+
2
6
  ### 0.0.4 (2013-06-26)
3
7
 
4
8
  * support for rubygems 1.8.3
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 ||= ::AWS::S3.new
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
 
@@ -17,5 +17,5 @@
17
17
 
18
18
 
19
19
  module Geminabucket
20
- VERSION = "0.0.4"
20
+ VERSION = "0.0.5"
21
21
  end
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
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-25 00:00:00.000000000 Z
11
+ date: 2013-06-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk