scorched 0.25 → 0.26

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: 10528e9accf1667188d5687163e6badbdab8ef5f
4
- data.tar.gz: abfacc42fe2b69ffcf1152ca256cc31a4ec0130e
3
+ metadata.gz: 339ebd1bf63b76c2ab0b28410d961d48c979e118
4
+ data.tar.gz: 08edcb6e390139ec0bca5e29670d8685dfea7704
5
5
  SHA512:
6
- metadata.gz: d7a1e567e38bad8f7d08da253e4a396febbc9c9b5798120364ac55f8019870fb705d7d24d3042bdb5c9e1b777135f0f47e4c87bf25a3fa1a4942f3588041f02d
7
- data.tar.gz: ad78af5c05b6a89e3721c100f87320a6f21ad02f6c7bfe1bbe6f794dad9a0c87f6788beccf849ae649148776f480093d742601222646c11c7fbe2d74b904f386
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.
@@ -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? matches.first.failed_condition[0]
59
+ matches.first.failed_condition && [*conditions].include?(matches.first.failed_condition[0])
60
60
  end
61
61
  },
62
62
  host: proc { |host|
@@ -1,3 +1,3 @@
1
1
  module Scorched
2
- VERSION = '0.25'
2
+ VERSION = '0.26'
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: '0.25'
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-02-22 00:00:00.000000000 Z
11
+ date: 2016-09-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rack