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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bb482e02b102f39912a33db2441ad138c265a5a164b0c5250a1c7529be158fac
4
- data.tar.gz: 6425028186c884de0fdb1c897ad1a2c9419c2d039904ace3158650a540810946
3
+ metadata.gz: a2887f876750f69c014a2327d188ddadfd127fa1da9eedad4402a8f6e1c3b821
4
+ data.tar.gz: 43244e2075b937b53fe880032f538f645b9fc3b70c14e72ffbe4027edbcf4f37
5
5
  SHA512:
6
- metadata.gz: c397a9790a1ee56652d2ab5fc300594054def2f1f9f091dfe8572883abfffa4d74079d0b5fbb1043a2d933fb399fe31ead2f8d117b314db951a4a68caf7b1656
7
- data.tar.gz: 7bebc96dd4bc6a4fb4b3c257d980ae6007a6aea82567c9d19bd5c003011e15c01bb1b08654186e48c58d6a90e6ae443f68349f8166b94c80d2ba3c1d538086c2
6
+ metadata.gz: afe058da3dc7d385b78b48de4e81579bfeb3df79baa1c5c6c0ad9865fc54211605a77672144f33a48870c93830f211dd9d75c28695cb8812b0921594137005b5
7
+ data.tar.gz: 19d38c62f0f0e209dc15c4760537be105068138eba5aa41dbd6496fa67218c6e54c5f5df08e0bbe3ba67bffdc2b146822320bf2be801bb4b60b60300a529ee99
@@ -1,3 +1,3 @@
1
1
  module ActiveRecordAnalyze
2
- VERSION = "0.11.0"
2
+ VERSION = "0.11.1"
3
3
  end
@@ -91,5 +91,6 @@ module ActiveRecordAnalyze
91
91
  .gsub(/\(\s?\s?\s?,/, "(")
92
92
  .gsub(/\s,\s/, " ")
93
93
  .gsub(/\(\s?\)/, "")
94
+ .gsub(/,\s+\)/, ")")
94
95
  end
95
96
  end
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.0
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: 2022-07-27 00:00:00.000000000 Z
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.1.6
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: