sqreen 1.6.0-java → 1.6.1-java

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: b6b96afe645e834947aa8a4ba899a0c94d9b8037
4
- data.tar.gz: b09d59bff4ba050f2d3409c2896e7df6ba26c5b7
3
+ metadata.gz: 1d47dfb1722f411b17e821c166366ea087f8a0c0
4
+ data.tar.gz: a6819fb36a34620e30b4413973c14334272c2915
5
5
  SHA512:
6
- metadata.gz: bf2acd08c3047ba024c7479859118cd5b4eeef937a5562184bb83c329bc60d266ccf35d6da7318e59d8b3fc79a0d33ec9fd0d888a37f3afc70306507cde7a700
7
- data.tar.gz: b22575e52f4df22aea73f12bd1b719238fbcd7062c659f75d70c69c0c65a98112efca7c887b81847a74be27c76cc02d4afbe110ecb90be2c245eca90a1524efc
6
+ metadata.gz: 39373fa12de260b079c9f9827304e0ff60a3df65db08b930f85ea088428f351a944e8dda0592bdc027d314c28ab30104a2bab0366ea19c848bb5c1c94dee60dc
7
+ data.tar.gz: a26f75c80fa84b807f912eba48fa33c30c0432ea0d5ede3a5da15dbc3ff30baee980784f84ff7209ea7e8825813916e95e1d491c9c823ef4dc6c93962f45e08f
@@ -79,6 +79,7 @@ module Sqreen
79
79
  def self.startup
80
80
  initializer 'sqreen.startup' do |app|
81
81
  app.middleware.insert_before(Rack::Runtime, Sqreen::Middleware)
82
+ app.middleware.insert_after(ActionDispatch::DebugExceptions, Sqreen::RailsMiddleware)
82
83
  app.middleware.insert_after(ActionDispatch::DebugExceptions, Sqreen::ErrorHandlingMiddleware)
83
84
  yield app
84
85
  end
@@ -486,7 +486,7 @@ module Sqreen
486
486
  def instrument!(rules, framework)
487
487
  verifier = nil
488
488
  if Sqreen.features['rules_signature'] &&
489
- Sqreen.config_get(:rules_verify_signature) &&
489
+ Sqreen.config_get(:rules_verify_signature) == true &&
490
490
  !defined?(::JRUBY_VERSION)
491
491
  verifier = Sqreen::SqreenSignedVerifier.new
492
492
  else
@@ -21,4 +21,14 @@ module Sqreen
21
21
  @app.call(env)
22
22
  end
23
23
  end
24
+
25
+ class RailsMiddleware
26
+ def initialize(app)
27
+ @app = app
28
+ end
29
+
30
+ def call(env)
31
+ @app.call(env)
32
+ end
33
+ end
24
34
  end
@@ -1,5 +1,5 @@
1
1
  # Copyright (c) 2015 Sqreen. All Rights Reserved.
2
2
  # Please refer to our terms for more information: https://www.sqreen.io/terms.html
3
3
  module Sqreen
4
- VERSION = '1.6.0'.freeze
4
+ VERSION = '1.6.1'.freeze
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sqreen
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.0
4
+ version: 1.6.1
5
5
  platform: java
6
6
  authors:
7
7
  - Sqreen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-05-12 00:00:00.000000000 Z
11
+ date: 2017-05-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: execjs