envied 0.9.2.rc2 → 0.9.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitlab-ci.yml +2 -0
- data/CHANGELOG.md +9 -1
- data/README.md +7 -2
- data/examples/extensive_envfile +2 -0
- data/lib/envied/configuration.rb +10 -0
- data/lib/envied/version.rb +1 -1
- metadata +3 -4
- data/.travis.yml +0 -16
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 806fbe5d7a5fe9b13657317d2a6824395d13dd2d2ccb4327175e48953425db4e
|
4
|
+
data.tar.gz: e81b69ee8ec233989a2cc4e2e093d0cf84809de7f728f7140180aa86f7c661d8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c39c05708aa104d06f21c2889e20fa896fba6ae0ec443fcb649a51db65e40ee08ad34874100d4a17d1be923506bb87da8dc4346a88eb07624363b61f21815fa5
|
7
|
+
data.tar.gz: 186ad82eae9f3c927b2b38eb380fe2d64ff69691f59f49961b6b4bf9977c3f6f0b20049bb3db832d3c79e588ab7835469d21d4ae6c15783da539b3b9a5fe07ef
|
data/.gitlab-ci.yml
CHANGED
data/CHANGELOG.md
CHANGED
@@ -1,7 +1,15 @@
|
|
1
|
-
##
|
1
|
+
## 0.9.2 / 2019-06-29
|
2
2
|
|
3
|
+
* Project moved to GitLab (https://gitlab.com/envied/envied)
|
3
4
|
* Now requiring Ruby 2.4+ [#48], [#51]
|
4
5
|
* Removed `coercible` dependency as now all coercion functionality is implemented locally. This is a backwards compatible change. [#49]
|
6
|
+
* Lots of refactoring and bringing the project up-to-date
|
7
|
+
|
8
|
+
### Deprecated
|
9
|
+
|
10
|
+
* default values
|
11
|
+
|
12
|
+
See https://gitlab.com/envied/envied/tree/0-9-releases#defaults
|
5
13
|
|
6
14
|
## 0.9.1 / 2017-07-06
|
7
15
|
|
data/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# ENVied [![
|
1
|
+
# ENVied [![pipeline status](https://gitlab.com/envied/envied/badges/0-9-releases/pipeline.svg)](https://gitlab.com/envied/envied/commits/0-9-releases) [![project chat](https://img.shields.io/badge/zulip-join_chat-brightgreen.svg)](https://envied-rb.zulipchat.com/)
|
2
2
|
|
3
3
|
### TL;DR ensure presence and type of your app's ENV-variables.
|
4
4
|
|
@@ -133,6 +133,9 @@ ENVied.require(nil)
|
|
133
133
|
|
134
134
|
### Defaults
|
135
135
|
|
136
|
+
> *NOTE*: default values will be removed in the next minor-release (i.e. > v0.9). See https://gitlab.com/envied/envied/tree/master#what-happened-to-default-values for more information and how to migrate.
|
137
|
+
> While your project depends on this feature it's recommended to pin the gem to 0.9-releases, i.e. `gem 'envied', '~> 0.9.2'`.
|
138
|
+
|
136
139
|
In order to let other developers easily bootstrap the application, you can assign defaults to variables.
|
137
140
|
Defaults can be a value or a `Proc` (see example below).
|
138
141
|
|
@@ -224,7 +227,9 @@ bin/console
|
|
224
227
|
|
225
228
|
## Contributing
|
226
229
|
|
227
|
-
|
230
|
+
To suggest a new feature, [open an Issue](https://gitlab.com/envied/envied/issues/new) before opening a PR.
|
231
|
+
|
232
|
+
1. Fork it: https://gitlab.com/envied/envied/-/forks/new
|
228
233
|
2. Create your feature branch: `git checkout -b my-new-feature`
|
229
234
|
3. Commit your changes: `git commit -am 'Add some feature'`
|
230
235
|
4. Push to the branch: `git push origin my-new-feature`
|
data/examples/extensive_envfile
CHANGED
@@ -1,4 +1,6 @@
|
|
1
1
|
# -*- mode: ruby -*-¬
|
2
|
+
# NOTE: defaults are deprecated and will be removed in > v0.9
|
3
|
+
|
2
4
|
# We allow defaults for local development (and local tests), but want our CI
|
3
5
|
# to mimic our production as much as possible.
|
4
6
|
# New developers that don't have RACK_ENV set, will in this way not be presented with a huge
|
data/lib/envied/configuration.rb
CHANGED
@@ -16,6 +16,7 @@ class ENVied
|
|
16
16
|
end
|
17
17
|
|
18
18
|
def enable_defaults!(value = true, &block)
|
19
|
+
default_values_deprecation
|
19
20
|
@defaults_enabled = block_given? ? block.call : value
|
20
21
|
end
|
21
22
|
|
@@ -48,6 +49,15 @@ class ENVied
|
|
48
49
|
|
49
50
|
private
|
50
51
|
|
52
|
+
def default_values_deprecation
|
53
|
+
warning = "Default values will be removed in the next minor-release of ENVied (i.e. > v0.9). For more info see https://gitlab.com/envied/envied/tree/0-9-releases#defaults."
|
54
|
+
if defined?(ActiveSupport::Deprecation)
|
55
|
+
ActiveSupport::Deprecation.warn warning
|
56
|
+
else
|
57
|
+
$stderr.puts "DEPRECATION WARNING: #{warning}"
|
58
|
+
end
|
59
|
+
end
|
60
|
+
|
51
61
|
def defaults_enabled_default
|
52
62
|
if ENV['ENVIED_ENABLE_DEFAULTS'].nil?
|
53
63
|
false
|
data/lib/envied/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: envied
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.2
|
4
|
+
version: 0.9.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gert Goet
|
@@ -81,7 +81,6 @@ files:
|
|
81
81
|
- ".gitignore"
|
82
82
|
- ".gitlab-ci.yml"
|
83
83
|
- ".rspec"
|
84
|
-
- ".travis.yml"
|
85
84
|
- CHANGELOG.md
|
86
85
|
- Gemfile
|
87
86
|
- LICENSE.txt
|
@@ -125,9 +124,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
125
124
|
version: '2.4'
|
126
125
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
127
126
|
requirements:
|
128
|
-
- - "
|
127
|
+
- - ">="
|
129
128
|
- !ruby/object:Gem::Version
|
130
|
-
version:
|
129
|
+
version: '0'
|
131
130
|
requirements: []
|
132
131
|
rubygems_version: 3.0.3
|
133
132
|
signing_key:
|
data/.travis.yml
DELETED