activerecord-analyze 0.11.0 → 0.11.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/activerecord-analyze/version.rb +1 -1
- data/lib/activerecord-analyze.rb +1 -0
- data/spec/main_spec.rb +7 -0
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a2887f876750f69c014a2327d188ddadfd127fa1da9eedad4402a8f6e1c3b821
|
4
|
+
data.tar.gz: 43244e2075b937b53fe880032f538f645b9fc3b70c14e72ffbe4027edbcf4f37
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: afe058da3dc7d385b78b48de4e81579bfeb3df79baa1c5c6c0ad9865fc54211605a77672144f33a48870c93830f211dd9d75c28695cb8812b0921594137005b5
|
7
|
+
data.tar.gz: 19d38c62f0f0e209dc15c4760537be105068138eba5aa41dbd6496fa67218c6e54c5f5df08e0bbe3ba67bffdc2b146822320bf2be801bb4b60b60300a529ee99
|
data/lib/activerecord-analyze.rb
CHANGED
data/spec/main_spec.rb
CHANGED
@@ -50,6 +50,13 @@ describe "ActiveRecord analyze" do
|
|
50
50
|
end
|
51
51
|
end
|
52
52
|
|
53
|
+
describe "analyze:false with some format option" do
|
54
|
+
it "works" do
|
55
|
+
result = User.all.analyze(format: :pretty_json, analyze: false)
|
56
|
+
expect(JSON.parse(result)[0].keys.sort).to eq ["Plan"]
|
57
|
+
end
|
58
|
+
end
|
59
|
+
|
53
60
|
describe "full_debug" do
|
54
61
|
it "works" do
|
55
62
|
result = User.all.analyze(full_debug: true)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: activerecord-analyze
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.11.
|
4
|
+
version: 0.11.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- pawurb
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-03-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|
@@ -108,7 +108,7 @@ homepage: http://github.com/pawurb/activerecord-analyze
|
|
108
108
|
licenses:
|
109
109
|
- MIT
|
110
110
|
metadata: {}
|
111
|
-
post_install_message:
|
111
|
+
post_install_message:
|
112
112
|
rdoc_options: []
|
113
113
|
require_paths:
|
114
114
|
- lib
|
@@ -123,8 +123,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
123
123
|
- !ruby/object:Gem::Version
|
124
124
|
version: '0'
|
125
125
|
requirements: []
|
126
|
-
rubygems_version: 3.
|
127
|
-
signing_key:
|
126
|
+
rubygems_version: 3.3.7
|
127
|
+
signing_key:
|
128
128
|
specification_version: 4
|
129
129
|
summary: Add EXPLAIN ANALYZE to Active Record query objects
|
130
130
|
test_files:
|