econfig-keychain 1.0.2 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +9 -6
- data/econfig-keychain.gemspec +1 -1
- data/lib/econfig/keychain/version.rb +1 -1
- data/lib/econfig-keychain.rb +0 -8
- metadata +7 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 470f3d19f1db3d9779d0bf035cfe902f84fa90c5
|
4
|
+
data.tar.gz: c42eac479ba18c06ab08d9d79a38a3cb3ecd8be4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c55059239ed39bc3051103bdc747974bc41513411a9baadea0b7b7914aa139352bc8012c62d4823674b94e48afb8c7977214abb7efb6cc32cf9cc4d40c3403f2
|
7
|
+
data.tar.gz: 58d3947d41a0670dcb6c6f76b37bd1178fd23bd9b8b641e50cbf108d86fd31ccf8849cb3f1dde18e38f7912ccc73e9fda3905c69c2ff3f1de339753a5564617e
|
data/README.md
CHANGED
@@ -17,13 +17,16 @@ Second, create a keychain you wish to store configuration in, name it something
|
|
17
17
|
clever like `thanks-a-latte`. Within `config/application.rb` write the following:
|
18
18
|
|
19
19
|
``` ruby
|
20
|
-
# … some rails setup previously
|
21
20
|
module MyApp
|
22
21
|
extend Econfig::Shortcut
|
23
|
-
|
24
|
-
|
22
|
+
|
23
|
+
if Rails.env.development?
|
24
|
+
Econfig.backends.use :keychain, Econfig::Keychain.new("thanks-a-latte")
|
25
|
+
end
|
26
|
+
|
25
27
|
class Application < Rails::Application
|
26
|
-
|
28
|
+
# … rest of the configuration
|
29
|
+
end
|
27
30
|
```
|
28
31
|
|
29
32
|
That's it!
|
@@ -31,7 +34,7 @@ That's it!
|
|
31
34
|
Econfig::Keychain will automatically create an empty secure note using the name of the directory your project is located at, in the `thanks-a-latte` keychain. If you wish to specify the name yourself, you can do so:
|
32
35
|
|
33
36
|
``` ruby
|
34
|
-
Econfig.
|
37
|
+
Econfig.backends.use :keychain, Econfig::Keychain.new("thanks-a-latte", name: "project name")
|
35
38
|
```
|
36
39
|
|
37
40
|
## Changing configuration
|
@@ -39,7 +42,7 @@ Econfig.use_keychain "thanks-a-latte", name: "project name"
|
|
39
42
|
Econfig::Keychain supports changing configuration by setting values, e.g. from the Rails console:
|
40
43
|
|
41
44
|
``` ruby
|
42
|
-
MyApp.aws_access_key_id = "xyz"
|
45
|
+
MyApp.config[:keychain, :aws_access_key_id] = "xyz"
|
43
46
|
```
|
44
47
|
|
45
48
|
You can also edit your configuration with your `$EDITOR` manually using the Mellon CLI:
|
data/econfig-keychain.gemspec
CHANGED
data/lib/econfig-keychain.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: econfig-keychain
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 2.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kim Burgestrand
|
@@ -9,22 +9,22 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-
|
12
|
+
date: 2014-05-26 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: econfig
|
16
16
|
requirement: !ruby/object:Gem::Requirement
|
17
17
|
requirements:
|
18
|
-
- - "
|
18
|
+
- - "~>"
|
19
19
|
- !ruby/object:Gem::Version
|
20
|
-
version: '0'
|
20
|
+
version: '1.0'
|
21
21
|
type: :runtime
|
22
22
|
prerelease: false
|
23
23
|
version_requirements: !ruby/object:Gem::Requirement
|
24
24
|
requirements:
|
25
|
-
- - "
|
25
|
+
- - "~>"
|
26
26
|
- !ruby/object:Gem::Version
|
27
|
-
version: '0'
|
27
|
+
version: '1.0'
|
28
28
|
- !ruby/object:Gem::Dependency
|
29
29
|
name: mellon
|
30
30
|
requirement: !ruby/object:Gem::Requirement
|
@@ -128,3 +128,4 @@ summary: An OSX keychain adapter for Econfig.
|
|
128
128
|
test_files:
|
129
129
|
- spec/econfig/keychain_spec.rb
|
130
130
|
- spec/econfig/osx.keychain
|
131
|
+
has_rdoc:
|