env_bang-rails 0.2.5

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 +7 -0
  2. data/lib/env_bang-rails.rb +17 -0
  3. metadata +60 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: f801fbab70f7190ed409c0b19bc33baeb411e60e
4
+ data.tar.gz: ffd023a45abb50b7cb089ba7f9ce59856186ed9e
5
+ SHA512:
6
+ metadata.gz: 029065587784f1568af0a78ab4906e67946bd8f45a9deb5ff147a83963b1c537fe5e3a1333d71644fab2a7e5d794eb0c650331329b7df65c5a3a978d05bfea75
7
+ data.tar.gz: 9dba2788eea00d16ccbc7630c4592dfdcd809a4a2deea33eea7e81404691cea1efc40a5ad3c8b1b77198cfa055a15285dd361b14c3927c149fe9aa425657dcc6
@@ -0,0 +1,17 @@
1
+ require 'env_bang'
2
+
3
+ class ENV_BANG
4
+ class Railtie < Rails::Railtie
5
+ def env_rb_file
6
+ File.join(Rails.root, 'config/env.rb')
7
+ end
8
+
9
+ config.before_configuration do
10
+ if File.exists?(env_rb_file)
11
+ load env_rb_file
12
+ else
13
+ Rails.logger.warn "ENV! could not find your environment variable configuration. Please create #{env_rb_file} to set set up environment variables at Rails boot."
14
+ end
15
+ end
16
+ end
17
+ end
metadata ADDED
@@ -0,0 +1,60 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: env_bang-rails
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.2.5
5
+ platform: ruby
6
+ authors:
7
+ - Jonathan Camenisch
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2013-12-10 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: env_bang
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - '='
18
+ - !ruby/object:Gem::Version
19
+ version: 0.2.5
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - '='
25
+ - !ruby/object:Gem::Version
26
+ version: 0.2.5
27
+ description: ENV! provides a thin wrapper around ENV to encourage central, self-documenting
28
+ configuration and helpful error message.
29
+ email:
30
+ - jonathan@camenisch.net
31
+ executables: []
32
+ extensions: []
33
+ extra_rdoc_files: []
34
+ files:
35
+ - lib/env_bang-rails.rb
36
+ homepage: https://github.com/jcamenisch/ENV_BANG
37
+ licenses:
38
+ - MIT
39
+ metadata: {}
40
+ post_install_message:
41
+ rdoc_options: []
42
+ require_paths:
43
+ - lib
44
+ required_ruby_version: !ruby/object:Gem::Requirement
45
+ requirements:
46
+ - - ">="
47
+ - !ruby/object:Gem::Version
48
+ version: '0'
49
+ required_rubygems_version: !ruby/object:Gem::Requirement
50
+ requirements:
51
+ - - ">="
52
+ - !ruby/object:Gem::Version
53
+ version: '0'
54
+ requirements: []
55
+ rubyforge_project:
56
+ rubygems_version: 2.1.10
57
+ signing_key:
58
+ specification_version: 4
59
+ summary: Use ENV! in Rails
60
+ test_files: []