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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: df1c61cb8ccb03b0bae14dda80b50f22e00530be
4
- data.tar.gz: 8782b7f14fcf6986d200dcb2964f30604c78be1b
3
+ metadata.gz: 9cfd09f983045de40a162ba3c00f39af13cda29d
4
+ data.tar.gz: 9479de024f509cfc65923a966f1b86d515ff58c8
5
5
  SHA512:
6
- metadata.gz: b4ccefaee00f1c66b57736510051d81a6381b840b8daee5f4cb0b69f17591b13a43c29568f8cebba6b7ba179d85ca4e6bf578c3d049486b7d8f727c543b7d942
7
- data.tar.gz: '05990c3fa144a24f72557a6379aeab375a86827b7c196f5aeaa7b1dbb79f44f9d7d6c19023131443c058baab3e9cbd51593f4469246c739dda27f59eb236b0df'
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
@@ -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
  },
@@ -1,3 +1,3 @@
1
1
  module Scorched
2
- VERSION = '1.0.0.pre3'
2
+ VERSION = '1.0.0.pre4'
3
3
  end
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.pre3
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-04 00:00:00.000000000 Z
11
+ date: 2017-07-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rack