rack-env 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore CHANGED
@@ -14,4 +14,3 @@ rdoc
14
14
  spec/reports
15
15
  test/tmp
16
16
  test/version_tmp
17
- tmp
@@ -1,5 +1,5 @@
1
1
  module Rack
2
2
  class Env
3
- VERSION = "0.0.2"
3
+ VERSION = "0.0.3"
4
4
  end
5
5
  end
@@ -7,7 +7,7 @@ describe 'Rack::Env' do
7
7
 
8
8
  before do
9
9
  # move current_dir as ./spec
10
- Dir::chdir(File.dirname(File.dirname(__FILE__)))
10
+ Dir::chdir(File.dirname(File.dirname(__FILE__)) + '/tmp')
11
11
  end
12
12
 
13
13
  after(:all) do
@@ -41,7 +41,7 @@ describe 'Rack::Env' do
41
41
 
42
42
  it "should ENV['FOO'] is nil" do
43
43
  get '/'
44
- ENV['FOO'].should be_nil
44
+ expect(ENV['FOO']).to eq nil
45
45
  end
46
46
  end
47
47
 
@@ -53,7 +53,7 @@ describe 'Rack::Env' do
53
53
 
54
54
  it "should ENV['FOO'] == 'bar'" do
55
55
  get '/'
56
- ENV['FOO'].should == "bar"
56
+ expect(ENV['FOO']).to eq "bar"
57
57
  end
58
58
  end
59
59
 
@@ -64,7 +64,7 @@ describe 'Rack::Env' do
64
64
 
65
65
  it "should ENV['BAZ'] == 'qux'" do
66
66
  get '/'
67
- ENV['BAZ'].should == "qux"
67
+ expect(ENV['BAZ']).to eq "qux"
68
68
  end
69
69
  end
70
70
  end
File without changes
File without changes
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rack-env
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -92,10 +92,10 @@ files:
92
92
  - lib/rack/env.rb
93
93
  - lib/rack/env/version.rb
94
94
  - rack-env.gemspec
95
- - spec/.env
96
- - spec/.envfile
97
95
  - spec/rack/env_spec.rb
98
96
  - spec/spec_helper.rb
97
+ - spec/tmp/.env
98
+ - spec/tmp/.envfile
99
99
  homepage: http://github.com/banyan/rack-env
100
100
  licenses: []
101
101
  post_install_message:
@@ -110,7 +110,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
110
110
  version: '0'
111
111
  segments:
112
112
  - 0
113
- hash: 3300818071817166995
113
+ hash: -1717073382629567647
114
114
  required_rubygems_version: !ruby/object:Gem::Requirement
115
115
  none: false
116
116
  requirements:
@@ -119,7 +119,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
119
119
  version: '0'
120
120
  segments:
121
121
  - 0
122
- hash: 3300818071817166995
122
+ hash: -1717073382629567647
123
123
  requirements: []
124
124
  rubyforge_project:
125
125
  rubygems_version: 1.8.23
@@ -127,7 +127,7 @@ signing_key:
127
127
  specification_version: 3
128
128
  summary: Set .env valirables
129
129
  test_files:
130
- - spec/.env
131
- - spec/.envfile
132
130
  - spec/rack/env_spec.rb
133
131
  - spec/spec_helper.rb
132
+ - spec/tmp/.env
133
+ - spec/tmp/.envfile