active_record-sql_analyzer 0.2.1 → 0.2.2
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 36199dbc04d9d0e4e4a9cf5c936676acb546e091
|
4
|
+
data.tar.gz: 36d99d4c4c1bc6e897c28c2e83903e831fb70249
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1e87e40d478a83c12e849df385cf4d98d4275d62793c25ad2253b24cd8a5b28608945fa1890c95d946d1400e6c0327457a16d85a8b9e5079bd19c2e21b335913
|
7
|
+
data.tar.gz: 528b59ab97b3c4225a371cd8fd056e46cfa8253a2df5f9b404c9dda3ce02c2e4c1b1d1c090945729da9adde9033c7678adcdb9d703af3fe4413c62bcfb99afc5
|
@@ -98,7 +98,6 @@ RSpec.describe ActiveRecord::SqlAnalyzer::RedactedLogger do
|
|
98
98
|
end
|
99
99
|
end
|
100
100
|
|
101
|
-
|
102
101
|
context "sql escaped and quoted" do
|
103
102
|
let(:event) do
|
104
103
|
{
|
@@ -263,5 +262,20 @@ RSpec.describe ActiveRecord::SqlAnalyzer::RedactedLogger do
|
|
263
262
|
expect(filter_event[:sql]).to eq("INSERT INTO `boom` (REDACTED_COLUMNS) VALUES ('[REDACTED]')")
|
264
263
|
end
|
265
264
|
end
|
265
|
+
|
266
|
+
context "empty callstack" do
|
267
|
+
let(:event) do
|
268
|
+
{
|
269
|
+
calls: [{
|
270
|
+
caller: [],
|
271
|
+
sql: "INSERT INTO `boom` (`bam`, `foo`) VALUES ('howdy', 'dowdy')",
|
272
|
+
}]
|
273
|
+
}
|
274
|
+
end
|
275
|
+
|
276
|
+
it "redacts" do
|
277
|
+
expect(filter_event[:caller]).to eq("")
|
278
|
+
end
|
279
|
+
end
|
266
280
|
end
|
267
281
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: active_record-sql_analyzer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Zachary Anker
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2016-
|
12
|
+
date: 2016-09-19 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activerecord
|
@@ -110,7 +110,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
110
110
|
version: '0'
|
111
111
|
requirements: []
|
112
112
|
rubyforge_project:
|
113
|
-
rubygems_version: 2.
|
113
|
+
rubygems_version: 2.6.6
|
114
114
|
signing_key:
|
115
115
|
specification_version: 4
|
116
116
|
summary: Logs a subset of ActiveRecord queries and dumps them for analyses.
|