env.rb 0.0.6 → 0.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/.gitignore +1 -0
- data/Gemfile +2 -1
- data/lib/env.rb +8 -0
- data/lib/env/version.rb +1 -1
- data/spec/spec_helper.rb +8 -0
- metadata +2 -2
data/.gitignore
CHANGED
data/Gemfile
CHANGED
data/lib/env.rb
CHANGED
@@ -5,6 +5,14 @@ require 'forwardable'
|
|
5
5
|
class EnvironmentError < StandardError
|
6
6
|
end
|
7
7
|
|
8
|
+
unless defined? BasicObject
|
9
|
+
class BasicObject
|
10
|
+
instance_methods.each do |m|
|
11
|
+
undef_method(m) if m.to_s !~ /(?:^__|^nil?$|^send$|^object_id$)/
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
15
|
+
|
8
16
|
module Env
|
9
17
|
RACK = %w{GEM_HOME TMPDIR HTTPS}
|
10
18
|
HEROKU = %w{TMP TEMP} + RACK
|
data/lib/env/version.rb
CHANGED
data/spec/spec_helper.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: env.rb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.7
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2011-08-
|
12
|
+
date: 2011-08-24 00:00:00.000000000 -07:00
|
13
13
|
default_executable:
|
14
14
|
dependencies: []
|
15
15
|
description: Allows your to manage many ENV vars by declaring them as dependencies
|