rack-dev-mark 0.4.4 → 0.4.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- NDk1ZDY4YWRhZjU5NDM4Y2Y5MzhlZmY0MmY3N2NkYjE0NGJjOTBjNg==
4
+ ODliMDc5NTY2M2JkMzJhZmRlZmQ2YTA2OGYwNzk0NTJiNGRlYmQ5OA==
5
5
  data.tar.gz: !binary |-
6
- YTg2ODY2N2Y4YzkxOGQ5MTQyZWQ2MzA3ZjUwMDNlNWQwZmQ1ZjIzZg==
6
+ ZTgzMWI3MmQzMWQwN2IzZmI4ZTZmMzE4OTMxMWZhOTQxNzU1YmQ3Mg==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- YTdmYjNiYzgxZTMwYjU2OTlmZjgwYWVjOTg1YTY0NzM4MTM4ZTRlNzliYWVl
10
- NGFlNmRiZDgwZDYxZjc5ZTEyMTViM2FkMDZmZmNhZjdmOTE3YmY0OWE5Y2Nl
11
- ZTJlZmIxZDk3YWNlNDA1ZDFmYjNkMjdlMzVmYjAwMmVmZWRmZWE=
9
+ ZWVkYTM3MjVhZTE4OTQyNWYwODJhMGZmYzdkNTRjNDdkNWE3NWFmZDEyODM5
10
+ NjAxODBkZTU0MWIyNTNjMTBkZDE5OTMwN2FhNzZlOTlhN2VmZmFhOWJlYjhi
11
+ Mjc5ZTg0OWQ0ODVhMTg4OTIyZDBiMmNiYmYwN2FiMmZjMTgxN2Y=
12
12
  data.tar.gz: !binary |-
13
- N2NkYzllZTYxMTU2NWRkOWUwNDA3MGRiN2QyNzBiMTI2MGMyMDdlZGUzYTFj
14
- YTUyY2I0ODQ3NmY0M2QyNzM0OTFjZDQzZjhmMWIxN2YzYjUxOTA0NzI3YTUx
15
- MzdmOTgxOWRmNDIyMzAxZmM3N2VkNGI1MDhiNmM2NGZlNzk3MGM=
13
+ MTZiY2IxNzY5OTE5ZTI3OWY3MjgzZDU4ZTJmOTgxMzk0MjE0ZDVmZDQ3ZTRi
14
+ NmI5MjMyMjlhNmNmM2UyOWU2NDk3NTE2N2U1NGU1ZDFkODJlMjUyNzMwNzJm
15
+ NmQxMGViZGUxOWI4YzEyY2MxMmE0MzUwNjdjOWRjYzRlMDk3OTE=
data/lib/rack/dev-mark.rb CHANGED
@@ -8,7 +8,7 @@ require 'rack/dev-mark/version'
8
8
  module Rack
9
9
  module DevMark
10
10
  def self.env
11
- @env ||= ENV['RAILS_ENV'] || ENV['RACK_ENV']
11
+ @env ||= ENV['RAILS_ENV'] || ENV['RACK_ENV'] || 'development'
12
12
  end
13
13
 
14
14
  def self.revision
@@ -1,5 +1,5 @@
1
1
  module Rack
2
2
  module DevMark
3
- VERSION = '0.4.4'
3
+ VERSION = '0.4.5'
4
4
  end
5
5
  end
@@ -12,10 +12,10 @@ describe Rack::DevMark do
12
12
  subject.instance_variable_set("@env", nil)
13
13
  end
14
14
  describe "::env" do
15
- it "returns nil" do
15
+ it "returns development as default" do
16
16
  ENV['RAILS_ENV'] = nil
17
17
  ENV['RACK_ENV'] = nil
18
- expect(subject.env).to eq(nil)
18
+ expect(subject.env).to eq('development')
19
19
  end
20
20
  it "returns rack_env" do
21
21
  ENV['RAILS_ENV'] = nil
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rack-dev-mark
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.4
4
+ version: 0.4.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daisuke Taniwaki