Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dekz/env
Track ENV usage
https://github.com/dekz/env
Last synced: 25 days ago
JSON representation
Track ENV usage
- Host: GitHub
- URL: https://github.com/dekz/env
- Owner: dekz
- Created: 2013-08-23T04:56:52.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2013-08-23T05:04:16.000Z (over 11 years ago)
- Last Synced: 2024-04-17T02:56:43.582Z (9 months ago)
- Language: Ruby
- Size: 105 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
env
===Track ENV usage
```ruby
require_relative './env.rb'
Env.hijack!require 'rake'
require 'pp'pp ENV.usages
```
```ruby
{"GEM_SKIP"=>
[{:lineno=>
"/Users/dekz/.rbenv/versions/2.0.0-p0/lib/ruby/2.0.0/rubygems/core_ext/kernel_gem.rb:33:in `gem'",
:value=>nil}],
"GEM_HOME"=>
[{:lineno=>
"/Users/dekz/.rbenv/versions/2.0.0-p0/lib/ruby/2.0.0/rubygems/path_support.rb:24:in `initialize'",
:value=>nil},
{:lineno=>
"/Users/dekz/.rbenv/versions/2.0.0-p0/lib/ruby/2.0.0/rubygems/path_support.rb:24:in `initialize'",
:value=>nil}],
"GEM_PATH"=>
[{:lineno=>
"/Users/dekz/.rbenv/versions/2.0.0-p0/lib/ruby/2.0.0/rubygems/path_support.rb:30:in `initialize'",
:value=>nil},
{:lineno=>
"/Users/dekz/.rbenv/versions/2.0.0-p0/lib/ruby/2.0.0/rubygems/path_support.rb:30:in `initialize'",
:value=>nil},
{:lineno=>
"/Users/dekz/.rbenv/versions/2.0.0-p0/lib/ruby/2.0.0/rubygems/path_support.rb:51:in `path='",
:value=>nil}],
"RUBY"=>
[{:lineno=>
"/Users/dekz/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0/gems/rake-10.0.4/lib/rake/file_utils.rb:9:in `'",
:value=>nil}],
"ENV_TEST"=>
[{:lineno=>"test.rb:8:in `'", :value=>nil},
{:lineno=>"test.rb:9:in `'", :value=>"TEST"},
{:lineno=>"test.rb:10:in `'", :value=>"TEST"}]}```