http_signature 0.0.6 → 0.0.7

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: 96bbb6b5351fbe8dd09acdc5bb4097fb9f1e61cd
4
- data.tar.gz: 991f6688e309f5eda0566018f7228d20234c2b0f
3
+ metadata.gz: 33793ff4276cb6c366f88d15abb0e38b69cdb468
4
+ data.tar.gz: cde3efe53a20f5ef8a94c2ed21b9341300f4ed76
5
5
  SHA512:
6
- metadata.gz: 5eece9d663a92b5d9021d36d22d733c1dcf349679fc86ad79d4267bd1672bc8d238a5a4b286c27037be5388576ec56588e9b704036a5e69193e17414281d08f2
7
- data.tar.gz: b3f23307b691d673dd70b98f8ce06e1c7a43f36c2db99ba0d521c04ab36a8b69750840cffe7044d49fba7c0099e790d65dbaedc03747f15ea2e22a27250de4a9
6
+ metadata.gz: 88cf8f428a7bafd0971b4e8d0650c8b9ee15c8f74794347afa7cdaed32da0462468f4a7f1471f1f4578886009801a822dcf990481d859dac5fa3e9b65e2e8630
7
+ data.tar.gz: 516d8a279e8a340df3e2aae7e8b1bd313229dd8e8643c81bda7caea37e321d1e812e692afabe2b4535281c6c35970b2b62286ffdd07178fa5a57ca2c63d0c72f
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- http_signature (0.0.6)
4
+ http_signature (0.0.7)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -3,7 +3,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
3
3
 
4
4
  Gem::Specification.new do |spec|
5
5
  spec.name = 'http_signature'
6
- spec.version = '0.0.6'
6
+ spec.version = '0.0.7'
7
7
  spec.authors = ['Joel Larsson']
8
8
  spec.email = ['bolmaster2@gmail.com']
9
9
 
@@ -79,8 +79,10 @@ class HTTPSignature::Rack
79
79
  end
80
80
 
81
81
  def path_excluded?(path)
82
- self.class.exclude_paths.map do |exclude_path|
82
+ matches = self.class.exclude_paths.map do |exclude_path|
83
83
  path.match(exclude_path).present?
84
- end.compact.length.positive?
84
+ end
85
+
86
+ matches.select { |v| v == true }.length.positive?
85
87
  end
86
88
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: http_signature
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joel Larsson
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-05-01 00:00:00.000000000 Z
11
+ date: 2018-05-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler