smart_env 1.0.1 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -13,8 +13,7 @@ Attach hooks to your ENV vars and wrap them in Proxy Objects.
13
13
  ENV['SERVICE'] = 'http://username:password@example.com:3000/"
14
14
 
15
15
  ENV['SERVICE'] #=> 'http://username:password@example.com:3000/"
16
- ENV['SERVICE'].base_uri #=> 'http://example.com/"
17
- ENV['SERVICE'].url #=> 'http://example.com/"
16
+ ENV['SERVICE'].base_uri #=> 'http://example.com:3000"
18
17
  ENV['SERVICE'].user #=> 'username'
19
18
  ENV['SERVICE'].password #=> 'password'
20
19
  ENV['SERVICE'].host #=> 'example.com'
@@ -48,5 +48,3 @@ module SmartEnv
48
48
  end
49
49
  end
50
50
  end
51
-
52
- ENV.extend SmartEnv
@@ -0,0 +1,3 @@
1
+ require 'smart_env'
2
+
3
+ ENV.extend SmartEnv
@@ -1,3 +1,3 @@
1
1
  module SmartEnv
2
- VERSION = "1.0.1"
2
+ VERSION = "2.0.0"
3
3
  end
@@ -1,5 +1,6 @@
1
1
  require File.expand_path('../../lib/smart_env', __FILE__)
2
2
  require 'rspec/core'
3
+ require 'smart_env/auto'
3
4
 
4
5
  RSpec.configure do |config|
5
6
  config.after(:each) do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: smart_env
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 2.0.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,12 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-10-12 00:00:00.000000000 -07:00
13
- default_executable:
12
+ date: 2012-01-26 00:00:00.000000000 Z
14
13
  dependencies:
15
14
  - !ruby/object:Gem::Dependency
16
15
  name: rspec
17
- requirement: &2168469180 !ruby/object:Gem::Requirement
16
+ requirement: &70268106271400 !ruby/object:Gem::Requirement
18
17
  none: false
19
18
  requirements:
20
19
  - - ~>
@@ -22,10 +21,10 @@ dependencies:
22
21
  version: '2.0'
23
22
  type: :development
24
23
  prerelease: false
25
- version_requirements: *2168469180
24
+ version_requirements: *70268106271400
26
25
  - !ruby/object:Gem::Dependency
27
26
  name: rcov
28
- requirement: &2168468540 !ruby/object:Gem::Requirement
27
+ requirement: &70268106270940 !ruby/object:Gem::Requirement
29
28
  none: false
30
29
  requirements:
31
30
  - - ! '>='
@@ -33,7 +32,7 @@ dependencies:
33
32
  version: '0'
34
33
  type: :development
35
34
  prerelease: false
36
- version_requirements: *2168468540
35
+ version_requirements: *70268106270940
37
36
  description: Allows you to register Proxy classes for ENV vars by using blocks to
38
37
  match keys and values
39
38
  email:
@@ -48,6 +47,7 @@ files:
48
47
  - README.md
49
48
  - Rakefile
50
49
  - lib/smart_env.rb
50
+ - lib/smart_env/auto.rb
51
51
  - lib/smart_env/uri_proxy.rb
52
52
  - lib/smart_env/version.rb
53
53
  - smart_env.gemspec
@@ -56,7 +56,6 @@ files:
56
56
  - spec/registry_spec.rb
57
57
  - spec/spec_helper.rb
58
58
  - spec/uri_spec.rb
59
- has_rdoc: true
60
59
  homepage: ''
61
60
  licenses: []
62
61
  post_install_message:
@@ -71,7 +70,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
71
70
  version: '0'
72
71
  segments:
73
72
  - 0
74
- hash: -2010000766017814403
73
+ hash: 3361827544882758592
75
74
  required_rubygems_version: !ruby/object:Gem::Requirement
76
75
  none: false
77
76
  requirements:
@@ -80,10 +79,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
80
79
  version: '0'
81
80
  segments:
82
81
  - 0
83
- hash: -2010000766017814403
82
+ hash: 3361827544882758592
84
83
  requirements: []
85
84
  rubyforge_project: smart_env
86
- rubygems_version: 1.6.2
85
+ rubygems_version: 1.8.10
87
86
  signing_key:
88
87
  specification_version: 3
89
88
  summary: Lazily proxy ENV values