anyway_config 1.0.0.rc1 → 1.0.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 +2 -2
- data/README.md +6 -4
- data/anyway_config.gemspec +2 -2
- data/lib/anyway/version.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: efb55eb76ff8fe050d265f9f73af34e1ca813134
|
4
|
+
data.tar.gz: ea56b66f8d7eb4b6d63a4fb068c1631feb6d49e9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a282acf7111e9dab9fbcc995f97604ded970617b0fdf8c5db7b5db612911253bf6aea75cbc7f1e21c383237aab6e45798a9c159d69c4bccf21a54a05af5d2763
|
7
|
+
data.tar.gz: 66aa6cefebd02087c6926927d805803a7885399b10b31e729e9d33cf7a8f8722e3dcb0cf1c453f580aaf8394b21d4325503a73afb4282b8f6ed2e6d1156aa378
|
data/CHANGELOG.md
CHANGED
@@ -2,9 +2,9 @@
|
|
2
2
|
|
3
3
|
## 1.0.0 (2017-06-20)
|
4
4
|
|
5
|
-
- Lazy load and parse ENV configurtaion
|
5
|
+
- Lazy load and parse ENV configurtaion. ([@palkan][])
|
6
6
|
|
7
|
-
- Add support for ERB in YML configuration
|
7
|
+
- Add support for ERB in YML configuration. ([@palkan][])
|
8
8
|
|
9
9
|
## 0.5.0 (2017-01-20)
|
10
10
|
|
data/README.md
CHANGED
@@ -4,7 +4,9 @@
|
|
4
4
|
|
5
5
|
Rails/Ruby plugin/application configuration tool which allows you to load parameters from different sources: YAML, Rails secrets, environment.
|
6
6
|
|
7
|
-
|
7
|
+
Allows you to easily follow the [twelve-factor application](https://12factor.net/config) principles and adds zero complexity to your development process.
|
8
|
+
|
9
|
+
Libraries using Anyway Config:
|
8
10
|
|
9
11
|
- [Influxer](https://github.com/palkan/influxer)
|
10
12
|
|
@@ -74,7 +76,7 @@ MyCoolGem.config.user #=> 'root'
|
|
74
76
|
|
75
77
|
#### Customize name
|
76
78
|
|
77
|
-
By default,
|
79
|
+
By default, Anyway Config uses the namespace (the outer module name) as the config name, but you can set it manually:
|
78
80
|
|
79
81
|
```ruby
|
80
82
|
module MyCoolGem
|
@@ -106,7 +108,7 @@ Your config will be filled up with values from the following sources (ordered by
|
|
106
108
|
|
107
109
|
### Using with Ruby
|
108
110
|
|
109
|
-
By default
|
111
|
+
By default, Anyway Config is looking for a config YAML at `./config/<config-name>.yml`. You can override this setting
|
110
112
|
through special environment variable – 'MYGEM_CONF' – containing the path to the YAML file.
|
111
113
|
|
112
114
|
Environmental variables work the same way as with Rails.
|
@@ -122,7 +124,7 @@ There are `#clear` and `#reload` functions on your config (which do exactly what
|
|
122
124
|
Rails 4.2 introduced new feature: `Rails.application.config_for`. It looks very similar to
|
123
125
|
`Anyway::Config.for`, but there are some differences:
|
124
126
|
|
125
|
-
| Feature | Rails | Anyway
|
127
|
+
| Feature | Rails | Anyway Config |
|
126
128
|
| ------------- |:-------------:| -----:|
|
127
129
|
| load data from `config/app.yml` | yes | yes |
|
128
130
|
| load data from `secrets` | no | yes |
|
data/anyway_config.gemspec
CHANGED
@@ -15,14 +15,14 @@ Gem::Specification.new do |s|
|
|
15
15
|
s.description = %{
|
16
16
|
Configuration DSL for Ruby libraries and applications.
|
17
17
|
|
18
|
-
Allows you to easily follow the
|
18
|
+
Allows you to easily follow the twelve-factor application principles (https://12factor.net/config).
|
19
19
|
}
|
20
20
|
|
21
21
|
s.license = "MIT"
|
22
22
|
|
23
23
|
s.files = `git ls-files`.split($INPUT_RECORD_SEPARATOR)
|
24
24
|
s.require_paths = ["lib"]
|
25
|
-
s.required_ruby_version = '>= 2'
|
25
|
+
s.required_ruby_version = '>= 2.2'
|
26
26
|
|
27
27
|
s.add_development_dependency "simplecov", ">= 0.3.8"
|
28
28
|
s.add_development_dependency "rspec", "~> 3.5.0"
|
data/lib/anyway/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: anyway_config
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.0
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Vladimir Dementyev
|
@@ -53,7 +53,7 @@ dependencies:
|
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '0.49'
|
55
55
|
description: "\n Configuration DSL for Ruby libraries and applications.\n\n Allows
|
56
|
-
you to easily follow the
|
56
|
+
you to easily follow the twelve-factor application principles (https://12factor.net/config).\n
|
57
57
|
\ "
|
58
58
|
email:
|
59
59
|
- dementiev.vm@gmail.com
|
@@ -113,12 +113,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
113
113
|
requirements:
|
114
114
|
- - ">="
|
115
115
|
- !ruby/object:Gem::Version
|
116
|
-
version: '2'
|
116
|
+
version: '2.2'
|
117
117
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
118
118
|
requirements:
|
119
|
-
- - "
|
119
|
+
- - ">="
|
120
120
|
- !ruby/object:Gem::Version
|
121
|
-
version:
|
121
|
+
version: '0'
|
122
122
|
requirements: []
|
123
123
|
rubyforge_project:
|
124
124
|
rubygems_version: 2.6.4
|