whoop 1.0.4 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +51 -49
- data/lib/generators/whoop/install_generator.rb +23 -0
- data/lib/whoop/formatters/sql_formatter.rb +1 -1
- data/lib/whoop/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 81bf8fe803a7a41184c6bf4600abc8059665bbc040d621b3cc39235915d0c80a
|
4
|
+
data.tar.gz: 54f408ce9613144520e6b318af06353d61e997a3891e4c315e712da1b6208159
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b6be592483ea7056091c04733bba3d5c6642f1b28aa52ef2837d07db13c8c555157fce39effb6055c2c3473c2d536db546eebb52e001fcff81837641c02fe5fe
|
7
|
+
data.tar.gz: fbad092eb0aca584c4668df1b1682d948d6b67104e14763b3f884019efdf1ba79b6ee6b2c51290defc9dbee4f4c41d01147c5f88c20c2eda27424d21e96816ae
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
whoop (1.0
|
4
|
+
whoop (1.1.0)
|
5
5
|
activerecord (>= 6.1.4)
|
6
6
|
activesupport (>= 6.1.4)
|
7
7
|
anbt-sql-formatter
|
@@ -11,12 +11,12 @@ PATH
|
|
11
11
|
GEM
|
12
12
|
remote: https://rubygems.org/
|
13
13
|
specs:
|
14
|
-
activemodel (7.0.4)
|
15
|
-
activesupport (= 7.0.4)
|
16
|
-
activerecord (7.0.4)
|
17
|
-
activemodel (= 7.0.4)
|
18
|
-
activesupport (= 7.0.4)
|
19
|
-
activesupport (7.0.4)
|
14
|
+
activemodel (7.0.4.3)
|
15
|
+
activesupport (= 7.0.4.3)
|
16
|
+
activerecord (7.0.4.3)
|
17
|
+
activemodel (= 7.0.4.3)
|
18
|
+
activesupport (= 7.0.4.3)
|
19
|
+
activesupport (7.0.4.3)
|
20
20
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
21
21
|
i18n (>= 1.6, < 2)
|
22
22
|
minitest (>= 5.1)
|
@@ -31,25 +31,26 @@ GEM
|
|
31
31
|
colorize (0.8.1)
|
32
32
|
commander (4.6.0)
|
33
33
|
highline (~> 2.0.0)
|
34
|
-
concurrent-ruby (1.
|
34
|
+
concurrent-ruby (1.2.2)
|
35
35
|
diff-lcs (1.5.0)
|
36
36
|
docile (1.4.0)
|
37
37
|
highline (2.0.3)
|
38
38
|
i18n (1.12.0)
|
39
39
|
concurrent-ruby (~> 1.0)
|
40
|
-
json (2.6.
|
40
|
+
json (2.6.3)
|
41
|
+
language_server-protocol (3.17.0.3)
|
41
42
|
magic_frozen_string_literal (1.2.0)
|
42
43
|
method_source (1.0.0)
|
43
|
-
minitest (5.
|
44
|
+
minitest (5.18.0)
|
44
45
|
parallel (1.22.1)
|
45
46
|
parlour (5.0.0)
|
46
47
|
commander (~> 4.5)
|
47
48
|
parser
|
48
49
|
rainbow (~> 3.0)
|
49
50
|
sorbet-runtime (>= 0.5)
|
50
|
-
parser (3.
|
51
|
+
parser (3.2.2.0)
|
51
52
|
ast (~> 2.4.1)
|
52
|
-
pry (0.14.
|
53
|
+
pry (0.14.2)
|
53
54
|
coderay (~> 1.1)
|
54
55
|
method_source (~> 1.0)
|
55
56
|
pry-byebug (3.10.1)
|
@@ -57,61 +58,62 @@ GEM
|
|
57
58
|
pry (>= 0.13, < 0.15)
|
58
59
|
rainbow (3.1.1)
|
59
60
|
rake (13.0.6)
|
60
|
-
|
61
|
+
rbs (2.8.4)
|
62
|
+
regexp_parser (2.8.0)
|
61
63
|
rexml (3.2.5)
|
62
|
-
rouge (4.
|
63
|
-
rspec (3.
|
64
|
-
rspec-core (~> 3.
|
65
|
-
rspec-expectations (~> 3.
|
66
|
-
rspec-mocks (~> 3.
|
67
|
-
rspec-core (3.
|
68
|
-
rspec-support (~> 3.
|
69
|
-
rspec-expectations (3.
|
64
|
+
rouge (4.1.0)
|
65
|
+
rspec (3.12.0)
|
66
|
+
rspec-core (~> 3.12.0)
|
67
|
+
rspec-expectations (~> 3.12.0)
|
68
|
+
rspec-mocks (~> 3.12.0)
|
69
|
+
rspec-core (3.12.1)
|
70
|
+
rspec-support (~> 3.12.0)
|
71
|
+
rspec-expectations (3.12.2)
|
70
72
|
diff-lcs (>= 1.2.0, < 2.0)
|
71
|
-
rspec-support (~> 3.
|
72
|
-
rspec-mocks (3.
|
73
|
+
rspec-support (~> 3.12.0)
|
74
|
+
rspec-mocks (3.12.5)
|
73
75
|
diff-lcs (>= 1.2.0, < 2.0)
|
74
|
-
rspec-support (~> 3.
|
75
|
-
rspec-support (3.
|
76
|
-
rubocop (1.
|
76
|
+
rspec-support (~> 3.12.0)
|
77
|
+
rspec-support (3.12.0)
|
78
|
+
rubocop (1.48.1)
|
77
79
|
json (~> 2.3)
|
78
80
|
parallel (~> 1.10)
|
79
|
-
parser (>= 3.
|
81
|
+
parser (>= 3.2.0.0)
|
80
82
|
rainbow (>= 2.2.2, < 4.0)
|
81
83
|
regexp_parser (>= 1.8, < 3.0)
|
82
84
|
rexml (>= 3.2.5, < 4.0)
|
83
|
-
rubocop-ast (>= 1.
|
85
|
+
rubocop-ast (>= 1.26.0, < 2.0)
|
84
86
|
ruby-progressbar (~> 1.7)
|
85
|
-
unicode-display_width (>=
|
86
|
-
rubocop-ast (1.
|
87
|
-
parser (>= 3.
|
88
|
-
rubocop-performance (1.
|
87
|
+
unicode-display_width (>= 2.4.0, < 3.0)
|
88
|
+
rubocop-ast (1.28.0)
|
89
|
+
parser (>= 3.2.1.0)
|
90
|
+
rubocop-performance (1.16.0)
|
89
91
|
rubocop (>= 1.7.0, < 2.0)
|
90
92
|
rubocop-ast (>= 0.4.0)
|
91
|
-
ruby-progressbar (1.
|
92
|
-
simplecov (0.
|
93
|
+
ruby-progressbar (1.13.0)
|
94
|
+
simplecov (0.21.2)
|
93
95
|
docile (~> 1.1)
|
94
|
-
|
95
|
-
|
96
|
-
simplecov-html (0.
|
97
|
-
|
98
|
-
|
96
|
+
simplecov-html (~> 0.11)
|
97
|
+
simplecov_json_formatter (~> 0.1)
|
98
|
+
simplecov-html (0.12.3)
|
99
|
+
simplecov_json_formatter (0.1.4)
|
100
|
+
sorbet-runtime (0.5.10784)
|
101
|
+
sord (5.0.0)
|
99
102
|
commander (~> 4.5)
|
100
103
|
parlour (~> 5.0)
|
104
|
+
rbs (~> 2.0)
|
101
105
|
sorbet-runtime
|
102
106
|
yard
|
103
|
-
standard (1.
|
104
|
-
|
105
|
-
rubocop
|
106
|
-
|
107
|
+
standard (1.26.0)
|
108
|
+
language_server-protocol (~> 3.17.0.2)
|
109
|
+
rubocop (~> 1.48.1)
|
110
|
+
rubocop-performance (~> 1.16.0)
|
111
|
+
tzinfo (2.0.6)
|
107
112
|
concurrent-ruby (~> 1.0)
|
108
|
-
unicode-display_width (2.
|
109
|
-
|
110
|
-
yard (0.9.28)
|
111
|
-
webrick (~> 1.7.0)
|
113
|
+
unicode-display_width (2.4.2)
|
114
|
+
yard (0.9.34)
|
112
115
|
|
113
116
|
PLATFORMS
|
114
|
-
arm64-darwin-21
|
115
117
|
x86_64-linux
|
116
118
|
|
117
119
|
DEPENDENCIES
|
@@ -127,4 +129,4 @@ DEPENDENCIES
|
|
127
129
|
whoop!
|
128
130
|
|
129
131
|
BUNDLED WITH
|
130
|
-
2.
|
132
|
+
2.4.9
|
@@ -0,0 +1,23 @@
|
|
1
|
+
module Whoop
|
2
|
+
class InstallGenerator < Rails::Generators::Base
|
3
|
+
desc "This generator creates an initializer file for the Whoop gem at config/initializers/whoop.rb, with default settings."
|
4
|
+
|
5
|
+
def install
|
6
|
+
file_contents = <<~TEXT
|
7
|
+
Whoop.setup do |config|
|
8
|
+
config.logger = ActiveSupport::Logger.new("log/debug.log")
|
9
|
+
# config.logger = ActiveSupport::Logger.new("log/\#{Rails.env}.log")
|
10
|
+
# config.logger = ActiveSupport::Logger.new($stdout)
|
11
|
+
# config.logger = nil # uses `puts`
|
12
|
+
|
13
|
+
config.level = :debug # or :info, :warn, :error
|
14
|
+
# config.level = :info
|
15
|
+
# config.level = :warn
|
16
|
+
# config.level = :error
|
17
|
+
end
|
18
|
+
TEXT
|
19
|
+
|
20
|
+
create_file "config/initializers/whoop.rb", file_contents
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
@@ -92,7 +92,7 @@ module Whoop
|
|
92
92
|
pretty_explain = []
|
93
93
|
pretty_explain += lines.map { |line| " #{line}" }
|
94
94
|
nrows = result.rows.length
|
95
|
-
rows_label = nrows == 1 ? "row" : "rows"
|
95
|
+
rows_label = (nrows == 1) ? "row" : "rows"
|
96
96
|
pretty_explain << "\n(#{nrows} #{rows_label})"
|
97
97
|
|
98
98
|
pretty_explain.join("\n")
|
data/lib/whoop/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: whoop
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Eric Berry
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-04-
|
11
|
+
date: 2023-04-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|
@@ -222,6 +222,7 @@ files:
|
|
222
222
|
- LICENSE.txt
|
223
223
|
- README.md
|
224
224
|
- Rakefile
|
225
|
+
- lib/generators/whoop/install_generator.rb
|
225
226
|
- lib/whoop.rb
|
226
227
|
- lib/whoop/formatters/json_formatter.rb
|
227
228
|
- lib/whoop/formatters/sql_formatter.rb
|