rails_best_practices 1.23.1 → 1.23.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 +4 -4
- data/.ruby-version +1 -1
- data/CHANGELOG.md +4 -0
- data/Gemfile +1 -1
- data/Gemfile.lock +25 -23
- data/Gemfile.ruby-2.6 +1 -1
- data/Gemfile.ruby-2.6.lock +12 -12
- data/README.md +1 -1
- data/lib/rails_best_practices/version.rb +1 -1
- data/rails_best_practices.gemspec +1 -1
- data/spec/rails_best_practices/analyzer_spec.rb +4 -4
- metadata +4 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 184e634dda813019a60e4f5dd6499ce20cf976ff711979d6788b2e9fcf040216
|
|
4
|
+
data.tar.gz: 5a7a40cffe06f255d0b6a5fbb7c320aafe0e666510b3e7159faf32e3ae5751af
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e1257de0e97847588db0598456bb4583089ca19ce8a093e4447360a80cae9c908821ee1af0ddce5585d5d530a05d4cd10b9d97285b4eb52578d111cca9ed900d
|
|
7
|
+
data.tar.gz: 377c696f09ee81fc1f8780f6ef5d6db8a70879fb29363436f6628cd2fa7adfb56bdb238a2774add079799bd4a40d612c993afbba0c4b1e701a5eedd2ff7145ec
|
data/.ruby-version
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
3.1.
|
|
1
|
+
3.1.2
|
data/CHANGELOG.md
CHANGED
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
rails_best_practices (1.23.
|
|
4
|
+
rails_best_practices (1.23.2)
|
|
5
5
|
activesupport
|
|
6
6
|
code_analyzer (~> 0.5.5)
|
|
7
7
|
erubis
|
|
@@ -13,7 +13,7 @@ PATH
|
|
|
13
13
|
GEM
|
|
14
14
|
remote: https://rubygems.org/
|
|
15
15
|
specs:
|
|
16
|
-
activesupport (7.0.
|
|
16
|
+
activesupport (7.0.4)
|
|
17
17
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
|
18
18
|
i18n (>= 1.6, < 2)
|
|
19
19
|
minitest (>= 5.1)
|
|
@@ -22,15 +22,14 @@ GEM
|
|
|
22
22
|
code_analyzer (0.5.5)
|
|
23
23
|
sexp_processor
|
|
24
24
|
coderay (1.1.3)
|
|
25
|
-
concurrent-ruby (1.1.
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
tins (~> 1.6)
|
|
25
|
+
concurrent-ruby (1.1.10)
|
|
26
|
+
coveralls_reborn (0.24.0)
|
|
27
|
+
simplecov (>= 0.18.1, < 0.22.0)
|
|
28
|
+
term-ansicolor (~> 1.6)
|
|
29
|
+
thor (>= 0.20.3, < 2.0)
|
|
30
|
+
tins (~> 1.16)
|
|
32
31
|
diff-lcs (1.4.4)
|
|
33
|
-
docile (1.
|
|
32
|
+
docile (1.4.0)
|
|
34
33
|
erubis (2.7.0)
|
|
35
34
|
ffi (1.15.4)
|
|
36
35
|
formatador (0.3.0)
|
|
@@ -51,15 +50,15 @@ GEM
|
|
|
51
50
|
haml (5.1.2)
|
|
52
51
|
temple (>= 0.8.0)
|
|
53
52
|
tilt
|
|
54
|
-
i18n (1.
|
|
53
|
+
i18n (1.12.0)
|
|
55
54
|
concurrent-ruby (~> 1.0)
|
|
56
|
-
json (2.
|
|
55
|
+
json (2.6.2)
|
|
57
56
|
listen (3.7.0)
|
|
58
57
|
rb-fsevent (~> 0.10, >= 0.10.3)
|
|
59
58
|
rb-inotify (~> 0.9, >= 0.9.10)
|
|
60
59
|
lumberjack (1.2.8)
|
|
61
60
|
method_source (1.0.0)
|
|
62
|
-
minitest (5.
|
|
61
|
+
minitest (5.16.3)
|
|
63
62
|
nenv (0.3.0)
|
|
64
63
|
notiffany (0.1.3)
|
|
65
64
|
nenv (~> 0.1)
|
|
@@ -86,23 +85,26 @@ GEM
|
|
|
86
85
|
rspec-support (~> 3.10.0)
|
|
87
86
|
rspec-support (3.10.2)
|
|
88
87
|
ruby-progressbar (1.11.0)
|
|
89
|
-
sexp_processor (4.16.
|
|
88
|
+
sexp_processor (4.16.1)
|
|
90
89
|
shellany (0.0.1)
|
|
91
|
-
simplecov (0.
|
|
90
|
+
simplecov (0.21.2)
|
|
92
91
|
docile (~> 1.1)
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
simplecov-html (0.
|
|
92
|
+
simplecov-html (~> 0.11)
|
|
93
|
+
simplecov_json_formatter (~> 0.1)
|
|
94
|
+
simplecov-html (0.12.3)
|
|
95
|
+
simplecov_json_formatter (0.1.4)
|
|
96
96
|
slim (4.0.1)
|
|
97
97
|
temple (>= 0.7.6, < 0.9)
|
|
98
98
|
tilt (>= 2.0.6, < 2.1)
|
|
99
|
+
sync (0.5.0)
|
|
99
100
|
temple (0.8.2)
|
|
100
101
|
term-ansicolor (1.7.1)
|
|
101
102
|
tins (~> 1.0)
|
|
102
|
-
thor (1.1
|
|
103
|
+
thor (1.2.1)
|
|
103
104
|
tilt (2.0.10)
|
|
104
|
-
tins (1.
|
|
105
|
-
|
|
105
|
+
tins (1.31.1)
|
|
106
|
+
sync
|
|
107
|
+
tzinfo (2.0.5)
|
|
106
108
|
concurrent-ruby (~> 1.0)
|
|
107
109
|
|
|
108
110
|
PLATFORMS
|
|
@@ -111,7 +113,7 @@ PLATFORMS
|
|
|
111
113
|
DEPENDENCIES
|
|
112
114
|
awesome_print
|
|
113
115
|
bundler
|
|
114
|
-
|
|
116
|
+
coveralls_reborn
|
|
115
117
|
guard
|
|
116
118
|
guard-rspec
|
|
117
119
|
haml
|
|
@@ -122,4 +124,4 @@ DEPENDENCIES
|
|
|
122
124
|
slim
|
|
123
125
|
|
|
124
126
|
BUNDLED WITH
|
|
125
|
-
2.
|
|
127
|
+
2.3.15
|
data/Gemfile.ruby-2.6
CHANGED
data/Gemfile.ruby-2.6.lock
CHANGED
|
@@ -24,12 +24,11 @@ GEM
|
|
|
24
24
|
sexp_processor
|
|
25
25
|
coderay (1.1.3)
|
|
26
26
|
concurrent-ruby (1.1.9)
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
tins (~> 1.6)
|
|
27
|
+
coveralls_reborn (0.24.0)
|
|
28
|
+
simplecov (>= 0.18.1, < 0.22.0)
|
|
29
|
+
term-ansicolor (~> 1.6)
|
|
30
|
+
thor (>= 0.20.3, < 2.0)
|
|
31
|
+
tins (~> 1.16)
|
|
33
32
|
diff-lcs (1.5.0)
|
|
34
33
|
docile (1.4.0)
|
|
35
34
|
erubis (2.7.0)
|
|
@@ -89,11 +88,12 @@ GEM
|
|
|
89
88
|
ruby-progressbar (1.11.0)
|
|
90
89
|
sexp_processor (4.16.0)
|
|
91
90
|
shellany (0.0.1)
|
|
92
|
-
simplecov (0.
|
|
91
|
+
simplecov (0.21.2)
|
|
93
92
|
docile (~> 1.1)
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
simplecov-html (0.
|
|
93
|
+
simplecov-html (~> 0.11)
|
|
94
|
+
simplecov_json_formatter (~> 0.1)
|
|
95
|
+
simplecov-html (0.12.3)
|
|
96
|
+
simplecov_json_formatter (0.1.4)
|
|
97
97
|
slim (4.1.0)
|
|
98
98
|
temple (>= 0.7.6, < 0.9)
|
|
99
99
|
tilt (>= 2.0.6, < 2.1)
|
|
@@ -103,7 +103,7 @@ GEM
|
|
|
103
103
|
tins (~> 1.0)
|
|
104
104
|
thor (1.2.1)
|
|
105
105
|
tilt (2.0.10)
|
|
106
|
-
tins (1.31.
|
|
106
|
+
tins (1.31.1)
|
|
107
107
|
sync
|
|
108
108
|
tzinfo (2.0.4)
|
|
109
109
|
concurrent-ruby (~> 1.0)
|
|
@@ -116,7 +116,7 @@ DEPENDENCIES
|
|
|
116
116
|
activesupport (~> 6.1.4)
|
|
117
117
|
awesome_print
|
|
118
118
|
bundler
|
|
119
|
-
|
|
119
|
+
coveralls_reborn
|
|
120
120
|
guard
|
|
121
121
|
guard-rspec
|
|
122
122
|
haml
|
data/README.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# rails_best_practices
|
|
2
2
|
|
|
3
3
|
[](http://badge.fury.io/rb/rails_best_practices)
|
|
4
|
-
[](https://github.com/flyerhzm/rails_best_practices/actions/workflows/main.yml)
|
|
5
5
|
[](https://coveralls.io/r/railsbp/rails_best_practices)
|
|
6
6
|
[](https://awesomecode.io/repos/flyerhzm/rails_best_practices)
|
|
7
7
|
|
|
@@ -15,7 +15,7 @@ Gem::Specification.new do |spec|
|
|
|
15
15
|
spec.description = 'a code metric tool for rails codes, written in Ruby.'
|
|
16
16
|
spec.license = 'MIT'
|
|
17
17
|
|
|
18
|
-
spec.required_ruby_version = '>=
|
|
18
|
+
spec.required_ruby_version = '>= 2.3.0'
|
|
19
19
|
spec.required_rubygems_version = '>= 1.3.6'
|
|
20
20
|
|
|
21
21
|
spec.add_runtime_dependency('activesupport')
|
|
@@ -77,10 +77,10 @@ module RailsBestPractices
|
|
|
77
77
|
subject { described_class.new('.', 'format' => format) }
|
|
78
78
|
|
|
79
79
|
before do
|
|
80
|
-
subject.
|
|
81
|
-
subject.
|
|
82
|
-
subject.
|
|
83
|
-
subject.
|
|
80
|
+
allow(subject).to receive(:output_terminal_errors)
|
|
81
|
+
allow(subject).to receive(:output_html_errors)
|
|
82
|
+
allow(subject).to receive(:output_yaml_errors)
|
|
83
|
+
allow(subject).to receive(:output_xml_errors)
|
|
84
84
|
|
|
85
85
|
subject.output
|
|
86
86
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: rails_best_practices
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.23.
|
|
4
|
+
version: 1.23.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Richard Huang
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2022-
|
|
11
|
+
date: 2022-09-24 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activesupport
|
|
@@ -399,14 +399,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
399
399
|
requirements:
|
|
400
400
|
- - ">="
|
|
401
401
|
- !ruby/object:Gem::Version
|
|
402
|
-
version:
|
|
402
|
+
version: 2.3.0
|
|
403
403
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
404
404
|
requirements:
|
|
405
405
|
- - ">="
|
|
406
406
|
- !ruby/object:Gem::Version
|
|
407
407
|
version: 1.3.6
|
|
408
408
|
requirements: []
|
|
409
|
-
rubygems_version: 3.3.
|
|
409
|
+
rubygems_version: 3.3.7
|
|
410
410
|
signing_key:
|
|
411
411
|
specification_version: 4
|
|
412
412
|
summary: a code metric tool for rails codes.
|