scorched 0.25 → 0.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGES.md +2 -0
- data/lib/scorched/controller.rb +1 -1
- 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: 339ebd1bf63b76c2ab0b28410d961d48c979e118
|
|
4
|
+
data.tar.gz: 08edcb6e390139ec0bca5e29670d8685dfea7704
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ad4c58d8ce1254c46d2190428cc16a14d4f75139d8170b79470a842effeda37ca8435b4897cbad517c123790b1bd8d15358fe667fce95fd5e8f8b13541c2f05f
|
|
7
|
+
data.tar.gz: d26845ad1086bbe70d469a6c76ae06a4839103073f94876e8e04e65dbb28161d3833f33bf26095a76467f2ee6eab788470f29d379890c07d5bd607f9cc43880e
|
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
|
+
### v0.26
|
|
7
|
+
* Fixed issue with `failed_condition` condition resulting in `NoMethodError: undefined method '[]' for nil:NilClass`
|
|
6
8
|
### v0.25
|
|
7
9
|
* Added symbol matchers, which are basically just named regex. Only two symbol matchers included by default, `:numeric` and `:alpha_numeric`. It's intended that users add their own as per their applications requirements. E.g. `symbol_matchers[:article_id] = /[a-f][0-9]{4}/`. A symbol matcher can optionally take a two-element array, where the first element is the regex, and the second is a proc for the sake of coercing the matched value into the desired form, such as an integer.
|
|
8
10
|
* Changed Rack::Logger to Rack::CommonLogger.
|
data/lib/scorched/controller.rb
CHANGED
|
@@ -56,7 +56,7 @@ module Scorched
|
|
|
56
56
|
},
|
|
57
57
|
failed_condition: proc { |conditions|
|
|
58
58
|
if !matches.empty? && matches.any? { |m| m.failed_condition } && !@_handled
|
|
59
|
-
[*conditions].include?
|
|
59
|
+
matches.first.failed_condition && [*conditions].include?(matches.first.failed_condition[0])
|
|
60
60
|
end
|
|
61
61
|
},
|
|
62
62
|
host: proc { |host|
|
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: '0.
|
|
4
|
+
version: '0.26'
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Tom Wardrop
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2016-
|
|
11
|
+
date: 2016-09-30 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rack
|