spring_onion 0.2.3 → 0.2.4

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
  SHA256:
3
- metadata.gz: 72b6f835a238acda75a1f45b10f30e79af2ea57f1c65cce762579efb2696aaa3
4
- data.tar.gz: 8980630d0a4c270a5aaed49a1b1b47ec44b6ebf94f9bce8b3ee734427329a4ba
3
+ metadata.gz: c1595c8062e3c68c43d22fcdef65de9009563866bc376e6e3fc38ad271be8570
4
+ data.tar.gz: fed541d24b204eb19329cd912322c03703ba0783988d6b9549bbd4226ee0b70b
5
5
  SHA512:
6
- metadata.gz: 0d8c45b21bd448d30149367efbc6e43cdefd58790f403b216c40ff02eae1642fb4b0bf69838591061f12c8db1618e4f2aeeeb08d8c6359db8a0973930a95e94d
7
- data.tar.gz: 2847712ab07bcd40b4115e4efc0190dec21a1a75b500de3b0293f72ba0e121c48c24fe8d6c2f8227be2453d0430af61f8ecd253fa8135b8eec82da2304328616
6
+ metadata.gz: 16c450c694a7379b03eb2d09652b1189ad96d243a3d0608e7506aa78ea01916f4896b7fbbbf025deeda7bf643c75846d50ae4612197f91b2d979b97a849cce61
7
+ data.tar.gz: eaf72fcb1ad6c1fc4ecb76fc7b28bbd7f0e6c4a2921f4c321405c0aca86f8433035fd3b019b28a74fce8827dfce7b5d6608556f73ac90cb821b9cfaf30d83414
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- spring_onion (0.2.3)
4
+ spring_onion (0.2.4)
5
5
  activerecord
6
6
  coderay
7
7
  mysql2
@@ -12,7 +12,7 @@ module SpringOnion
12
12
 
13
13
  def _with_explain(sql)
14
14
  begin
15
- if SpringOnion.enabled && sql =~ /^SELECT\b/ && SpringOnion.sql_filter.call(sql)
15
+ if SpringOnion.enabled && sql =~ /\A\s*SELECT\b/i && SpringOnion.sql_filter.call(sql)
16
16
  trace = SpringOnion.source_filter.call(caller)
17
17
 
18
18
  unless trace.length.zero?
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module SpringOnion
4
- VERSION = '0.2.3'
4
+ VERSION = '0.2.4'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spring_onion
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 0.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - winebarrel