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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8a412989464d1f2afec612be67f39dc54f1cd7ed9ea458b9fbc636aa36eb6e7c
4
- data.tar.gz: da396f64848b70c3c613c74f118631968589e506daa209358d06a672831759e1
3
+ metadata.gz: 806fbe5d7a5fe9b13657317d2a6824395d13dd2d2ccb4327175e48953425db4e
4
+ data.tar.gz: e81b69ee8ec233989a2cc4e2e093d0cf84809de7f728f7140180aa86f7c661d8
5
5
  SHA512:
6
- metadata.gz: 59ade708d0005ca6404eb8e6d5045bad8ea3d39d399b3a0425cdcd068684caf752bbde1add2f4893e2f7bea05900c14a6601a736c6376c16adb583347e88b738
7
- data.tar.gz: 033c0710eb18af6204ae6b0b2f55342c75a10301856d83a9c4c765457d7a2a4c88a6f25928bba158253b693457267b9ff70b15413e6339c35a174265fc663333
6
+ metadata.gz: c39c05708aa104d06f21c2889e20fa896fba6ae0ec443fcb649a51db65e40ee08ad34874100d4a17d1be923506bb87da8dc4346a88eb07624363b61f21815fa5
7
+ data.tar.gz: 186ad82eae9f3c927b2b38eb380fe2d64ff69691f59f49961b6b4bf9977c3f6f0b20049bb3db832d3c79e588ab7835469d21d4ae6c15783da539b3b9a5fe07ef
@@ -29,6 +29,8 @@ rspec ruby-2.7:
29
29
  rspec jruby-9.2:
30
30
  image: jruby:9.2-alpine
31
31
  <<: *rspec
32
+ only:
33
+ - 0-9-releases
32
34
 
33
35
  release:
34
36
  stage: deploy
@@ -1,7 +1,15 @@
1
- ## master / unreleased
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 [![Build Status](https://travis-ci.org/eval/envied.svg?branch=master)](https://travis-ci.org/eval/envied) [![project chat](https://img.shields.io/badge/zulip-join_chat-brightgreen.svg)](https://envied-rb.zulipchat.com/)
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
- 1. Fork it: http://github.com/eval/envied/fork
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`
@@ -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
@@ -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
@@ -1,3 +1,3 @@
1
1
  class ENVied
2
- VERSION = '0.9.2.rc2'
2
+ VERSION = '0.9.2'
3
3
  end
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.rc2
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: 1.3.1
129
+ version: '0'
131
130
  requirements: []
132
131
  rubygems_version: 3.0.3
133
132
  signing_key:
@@ -1,16 +0,0 @@
1
- language: ruby
2
-
3
- before_install:
4
- - "echo 'gem: --no-document' > ~/.gemrc"
5
- - gem update --system
6
- - gem install bundler
7
-
8
- rvm:
9
- - 2.4.5
10
- - 2.5.5
11
- - 2.6.2
12
- - jruby-9.2.6.0
13
-
14
- cache: bundler
15
- sudo: false
16
- fast_finish: true