env.rb 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile CHANGED
@@ -4,3 +4,4 @@ source "http://rubygems.org"
4
4
  gemspec
5
5
 
6
6
  gem 'ruby-debug19'
7
+ gem 'rspec'
data/lib/env/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Env
2
- VERSION = "0.0.5"
2
+ VERSION = "0.0.6"
3
3
  end
data/lib/env.rb CHANGED
@@ -123,7 +123,7 @@ module Env
123
123
 
124
124
  class UriProxy < BasicObject
125
125
  extend ::Forwardable
126
- def_delegators :@uri, :scheme, :user, :password, :host
126
+ def_delegators :@uri, :scheme, :user, :password, :host, :port
127
127
 
128
128
  def initialize(uri)
129
129
  @original = uri
data/spec/uri_spec.rb CHANGED
@@ -15,7 +15,7 @@ describe Env, 'uri support' do
15
15
  end
16
16
 
17
17
  context "with a value FOO that is a URI" do
18
- URL = 'http://username:password@this.domain.example.com/path?var=val'
18
+ URL = 'http://username:password@this.domain.example.com:3000/path?var=val'
19
19
 
20
20
  before do
21
21
  envfile(%{
@@ -48,5 +48,9 @@ describe Env, 'uri support' do
48
48
  it "should respond to #user with the user" do
49
49
  ENV['FOO'].user.should == 'username'
50
50
  end
51
+
52
+ it "should respond to #port with the port" do
53
+ ENV['FOO'].port.should == 3000
54
+ end
51
55
  end
52
56
  end
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.5
4
+ version: 0.0.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: