cartage-rack 2.0 → 2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/History.md +6 -1
- data/lib/cartage/rack.rb +3 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f2ff5b79fccc786f315f9269e5b4029dc3712210
|
4
|
+
data.tar.gz: a926ac738731f626e7aef89051432d0f2ddeea0f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 195ad85dddd5128cced2f1104502d103d864c8a0d569ee5bfd2daf77d010a72294410db537febd1095c3d3fa5ab373227a6155854634bd9ca62de9e74769d7f7
|
7
|
+
data.tar.gz: d6e8ba01329def7fe85668577434553b5749a7d79f7852eb4a95c8906cd57faaf1b6721ade8cebe2048ab6520b0ff9323fce290357fca1ccc4de20d7611165f7
|
data/History.md
CHANGED
data/lib/cartage/rack.rb
CHANGED
@@ -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.
|
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
|
-
|
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.
|
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-
|
11
|
+
date: 2016-06-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: minitest
|