prosopite 1.0.1 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f4f17a47aa9ab87c866f3fb9c493d3b5baae8248781346e497b90b3dc23f488d
4
- data.tar.gz: b9e0e29a7774adb0f8600d8fedeb2de8f9a8149468d216e1ac2e05e587445939
3
+ metadata.gz: 8c01f842ae2f77f85afad80b9333d9e08532763b0a2f4da8b947fd224bd8ad5e
4
+ data.tar.gz: b7355dba60a61af1936fabc438838cd6c5e68c2bf99ad4f89250f0fbb56da6f7
5
5
  SHA512:
6
- metadata.gz: c143ec186f20ee7e770619074a532f1bec494f2149e572be083eea05ee569ded551611043e22acfbe36e016285081cb43502b6f79e786491eaab4d04900fd47c
7
- data.tar.gz: 1e5331db9ff3ce75299cd10468ab48341a54d8f451a2487d08646f757a801a193d930c4512991d7b2fec6be3766a34cb80a081cfddef620df6a31dd82c58f25b
6
+ metadata.gz: d667f984caa2c358dd1268a515d4784bad98d86c39f42535cc97c7161c5f9131dbdf8dd57786aebc6fc20b55d1fcc660f4700260db08e47df3400797e4f7e3da
7
+ data.tar.gz: 1b31e428871d38f29fb3f46f1c637cc822addbc5c826366da5b98ebe149bc1af63912f69a8a50cec277ed8e2c34c185bdc11e3f58d302a43fedd97c5b20622cc
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- prosopite (1.0.0)
4
+ prosopite (1.0.1)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Prosopite
4
- VERSION = "1.0.1"
4
+ VERSION = "1.0.2"
5
5
  end
data/lib/prosopite.rb CHANGED
@@ -175,9 +175,9 @@ module Prosopite
175
175
  return if @subscribed
176
176
 
177
177
  ActiveSupport::Notifications.subscribe 'sql.active_record' do |_, _, _, _, data|
178
- sql = data[:sql]
178
+ sql, name = data[:sql], data[:name]
179
179
 
180
- if scan? && sql.include?('SELECT') && data[:cached].nil?
180
+ if scan? && name != "SCHEMA" && sql.include?('SELECT') && data[:cached].nil?
181
181
  location_key = Digest::SHA1.hexdigest(caller.join)
182
182
 
183
183
  tc[:prosopite_query_counter][location_key] += 1
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: prosopite
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mpampis Kostas
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-04-07 00:00:00.000000000 Z
11
+ date: 2021-09-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pry