sqreen 1.3.11488790967-java → 1.3.21489051313-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: 6b9c0a7b379631c9b9555fa79b169a4cda6b3616
4
- data.tar.gz: b5bedbfd493be22dc2bd45364495d30f188b909a
3
+ metadata.gz: bbd1a6355ea5535de52247ae70720a09a06dabd2
4
+ data.tar.gz: 21623d5f5560c1661a43c31d25289c058d1e8edd
5
5
  SHA512:
6
- metadata.gz: f8c1b2935556f823f1d19d3dba8ba50eb1fcc770f9beefc5746ab2758beb61c71792d1888c2230b405368a18ec99d53e2abcdbadde170480dfd552c50f34bfed
7
- data.tar.gz: 40b1f4ab0fb62101e571f3926668fb489217c0bad0a6ca188194b4e90dd9acf0ef38113c614e1daf317f6a8cbd90bdef797d96a65bfd7b6a20bd9ac5e4953ff7
6
+ metadata.gz: 3085456fa194abcdff7310b3183709307f8201ac322558336bd57a5ae3542fc7a4eb4f6cc0fbc4a2c3746c504d57a949bf31149e2d7a1196960153faf9df6221
7
+ data.tar.gz: 3e99b11d4953d41d7ed86310bcf594503bcaa258e7f3f7eb556daac21af6bf9afa9f9109f726116469555e9f800f5e43b60222356557c77872da53157b290424
@@ -36,6 +36,10 @@ module Sqreen
36
36
  }
37
37
  end
38
38
 
39
+ def development?
40
+ ENV['RACK_ENV'] == 'development'
41
+ end
42
+
39
43
  def ip_headers
40
44
  req = request
41
45
  return [] unless req
@@ -23,6 +23,10 @@ module Sqreen
23
23
  }
24
24
  end
25
25
 
26
+ def development?
27
+ Rails.env.development?
28
+ end
29
+
26
30
  def db_settings(options = {})
27
31
  adapter = options[:connection_adapter]
28
32
  return nil unless adapter
@@ -305,6 +305,10 @@ module Sqreen
305
305
 
306
306
  def logout(retrying = true)
307
307
  return unless session
308
+ if @framework.development?
309
+ @running = false
310
+ return
311
+ end
308
312
  if @logged_out_tried
309
313
  Sqreen.log.debug('Not running logout twice')
310
314
  return
@@ -2,5 +2,5 @@
2
2
  # Please refer to our terms for more information: https://www.sqreen.io/terms.html
3
3
  # Warning This file is auto generated! DO NOT edit.
4
4
  module Sqreen
5
- VERSION = "1.3.11488790967".freeze
5
+ VERSION = "1.3.21489051313".freeze
6
6
  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.3.11488790967
4
+ version: 1.3.21489051313
5
5
  platform: java
6
6
  authors:
7
7
  - Sqreen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-03-06 00:00:00.000000000 Z
11
+ date: 2017-03-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: execjs