sqreen 1.3.11488790967 → 1.3.21489051313

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: 60309088594b8452aae2b0a578a70b4b87968510
4
- data.tar.gz: 3eb47fe19bea321386d26740369859f1631e9579
3
+ metadata.gz: 1832eec9e4dccfbd713daa35419d991e16ea73c9
4
+ data.tar.gz: fab4c69e57b92617ffafb1f96237ecf4863d407e
5
5
  SHA512:
6
- metadata.gz: 0beaa1a34409e53c11e773cc67e003c5a3fc464f9ce06adf8a684d0a740de39c01231aec557cca4670941ef4b6ff094375c58ea03c48357829630725fa36154b
7
- data.tar.gz: 89e0ded5ca9a7be02a000a736ddefc69dd04bb7435f9f3cb27fd377a8bcfc04baff036aec531b801dbadc68ba40b5872a9d7e61e20ecc5b86795620a1359da8a
6
+ metadata.gz: a760f2d396252dd000c83d55842f0ec14db02632539d9ec465ff85fa708c76aa768665844267e7c1af111844eb0d02121e8a70c7deac6d38d8d706405c3f1fad
7
+ data.tar.gz: 8189c5212276db0bae7161d62568271f19123095ea3f66d20da6671e8da6980c34df5b6d2598afa16481f08be3e15b940c7aa2629b1402df153216f0ff055fdd
@@ -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
data/lib/sqreen/runner.rb CHANGED
@@ -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: ruby
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