unenviable 0.4.1 → 0.4.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/unenviable/railtie.rb +8 -0
  3. metadata +2 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4b00bd2edb56f48b1ea70b6cac720330eb3e24fc
4
- data.tar.gz: ddcb3b8a88c6ea6d0e4a10c3e6592048395bf57e
3
+ metadata.gz: 82231a8b154a00405199a3c0bf50c51dea476d27
4
+ data.tar.gz: f1058960ca6ba45bb6d284a314614b4df0c3b42f
5
5
  SHA512:
6
- metadata.gz: a1985570425fd802b767ef1ae5f74f05bc22a89dd798ef0fc20136c4e89e89cb04f507e251eea4243de40358e0ebeac4fc9558ecf32fb784456980cfb1cb4339
7
- data.tar.gz: be02fed22b69c6a8b5aa4123da1f5e88b09ac6d4587072a2dc98bb2c6213f7c256b308be943f9dc095b17d9420a460b4a350dbeae8a02885d570193e294e1d28
6
+ metadata.gz: 42e3ad0cecba031004d71edfd9152c80d53528a6ae7e321c7f70b17e9ecaecb707e757cbba54df5d33d62824e26e85929676bed0af07d0f059af3d821b741856
7
+ data.tar.gz: 7395a7f620347effe1a5de866ab9c5b7dded2c9c22ab990a21de84d6e60c6b918bb6df9d60caf91877187789a0b85d28a132809aed40a7367ecb222aa0915c96
@@ -0,0 +1,8 @@
1
+ module Unenviable
2
+ # Adds hook to flag ENV calls outside of rails initialization
3
+ class Railtie < Rails::Railtie
4
+ config.after_initialize do
5
+ ENV.close_wrapper if ENV.respond_to?(:close_wrapper)
6
+ end
7
+ end
8
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: unenviable
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1
4
+ version: 0.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - K M Lawrence
@@ -34,6 +34,7 @@ files:
34
34
  - bin/unenviable
35
35
  - lib/unenviable.rb
36
36
  - lib/unenviable/env_wrapper.rb
37
+ - lib/unenviable/railtie.rb
37
38
  homepage: http://rubygems.org/gems/unenviable
38
39
  licenses:
39
40
  - MIT