cartage-rack 2.0 → 2.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/History.md +6 -1
  3. data/lib/cartage/rack.rb +3 -2
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d5a4c6d4534c0c22344e4d68cf994fe99c0f54fa
4
- data.tar.gz: f78be99cb18afaa227d7b8744fb598854d3ac29b
3
+ metadata.gz: f2ff5b79fccc786f315f9269e5b4029dc3712210
4
+ data.tar.gz: a926ac738731f626e7aef89051432d0f2ddeea0f
5
5
  SHA512:
6
- metadata.gz: c741b9362c81fddcbad5cdaa564f011a461041bf43e69b542974dcefc6e7cb8dfd2996f844a36fddb99b7e1eb92443fc9bd3e659bc4963f6a9c21426729bebe8
7
- data.tar.gz: 75dbebdc7378edc6ff711a02cb63edf84ce23f14431e884438c6ad66af64f7a2884e47a66419cc1503df53d9e81620ab9ef55a0d9a72fd4ebb3c1937d116725d
6
+ metadata.gz: 195ad85dddd5128cced2f1104502d103d864c8a0d569ee5bfd2daf77d010a72294410db537febd1095c3d3fa5ab373227a6155854634bd9ca62de9e74769d7f7
7
+ data.tar.gz: d6e8ba01329def7fe85668577434553b5749a7d79f7852eb4a95c8906cd57faaf1b6721ade8cebe2048ab6520b0ff9323fce290357fca1ccc4de20d7611165f7
data/History.md CHANGED
@@ -1,4 +1,9 @@
1
- ### 2.0 / 2016-05-DD
1
+ ### 2.1 / 2016-06-28
2
+
3
+ * Fix default env issue where ENV['RAILS_ENV'] nor ENV['RACK_ENV'] is set
4
+ by adding default string.
5
+
6
+ ### 2.0 / 2016-05-31
2
7
 
3
8
  * Rewrote for compatibility with cartage 2.0.
4
9
 
@@ -15,7 +15,7 @@ class Cartage
15
15
  # +application/json+ value, or as a +text/plain+ string if called with
16
16
  # +.text+ or +.txt+.
17
17
  class Rack
18
- VERSION = '2.0' #:nodoc:
18
+ VERSION = '2.1' #:nodoc:
19
19
 
20
20
  class << self
21
21
  # When +true+, Cartage::Rack and Cartage::Rack::Simple will raise an
@@ -32,7 +32,8 @@ class Cartage
32
32
  private
33
33
 
34
34
  def default_require_metadata
35
- (ENV['RAILS_ENV'] || ENV['RACK_ENV']).to_s !~ /\A(?:development|test)\z/i
35
+ environment = ENV['RAILS_ENV'] || ENV['RACK_ENV'] || 'development'
36
+ environment !~ /\A(?:development|test)\z/i
36
37
  end
37
38
  end
38
39
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cartage-rack
3
3
  version: !ruby/object:Gem::Version
4
- version: '2.0'
4
+ version: '2.1'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Austin Ziegler
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-05-31 00:00:00.000000000 Z
11
+ date: 2016-06-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: minitest