scorched 1.0.0.pre3 → 1.0.0.pre4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGES.md +2 -0
- data/lib/scorched/controller.rb +3 -0
- data/lib/scorched/version.rb +1 -1
- 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: 9cfd09f983045de40a162ba3c00f39af13cda29d
|
4
|
+
data.tar.gz: 9479de024f509cfc65923a966f1b86d515ff58c8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f414372fc3126dbb289bfaa5b63752e1184cb52d3e82aa6fcf3e7f6a7165a03c2b4e4a752cc0fcd2395aa62c00b4ca6d65e269d69ed23edc4fe8262491b962f4
|
7
|
+
data.tar.gz: ce50215534e187507035f309e69d46ed8301f8e60f6ce36c854cfceca8d2b7350e0f3315e98625805ae37b5a9a6df7b25a6dec102daf6dd644ab1e3175f8f6b6
|
data/CHANGES.md
CHANGED
@@ -3,6 +3,8 @@ Changelog
|
|
3
3
|
|
4
4
|
_Note that Scorched is yet to reach a v1.0 release. This means breaking changes may still be made. If upgrading the version of Scorched for your project, review this changelog carefully._
|
5
5
|
|
6
|
+
### v1.0.0.pre4
|
7
|
+
* Added `dispatched` condition which performs a similar role to the recently removed `handled` condition.
|
6
8
|
### v1.0.0.pre3
|
7
9
|
* APP_ENV now preferred over RACK_ENV for setting the environment.
|
8
10
|
### v1.0.0.pre2
|
data/lib/scorched/controller.rb
CHANGED
@@ -51,6 +51,9 @@ module Scorched
|
|
51
51
|
content_type: proc { |content_types|
|
52
52
|
[*content_types].include? env['CONTENT_TYPE']
|
53
53
|
},
|
54
|
+
dispatched: proc { |bool|
|
55
|
+
!!@_dispatched == bool
|
56
|
+
},
|
54
57
|
encoding: proc { |encodings|
|
55
58
|
[*encodings].any? { |encoding| env['rack-accept.request'].encoding? encoding }
|
56
59
|
},
|
data/lib/scorched/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: scorched
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.0.
|
4
|
+
version: 1.0.0.pre4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tom Wardrop
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-07-
|
11
|
+
date: 2017-07-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rack
|