rails_best_practices 1.23.2 → 1.23.3

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 184e634dda813019a60e4f5dd6499ce20cf976ff711979d6788b2e9fcf040216
4
- data.tar.gz: 5a7a40cffe06f255d0b6a5fbb7c320aafe0e666510b3e7159faf32e3ae5751af
3
+ metadata.gz: 45bd3e5bf9771d0f9c35424c5af13a11a0e0e05bfe571a1401f6f2e9f72e4ff0
4
+ data.tar.gz: e3f26d99ef59919f95bd125a96055bd99fea9042bb05fceebacc6a679d4ead67
5
5
  SHA512:
6
- metadata.gz: e1257de0e97847588db0598456bb4583089ca19ce8a093e4447360a80cae9c908821ee1af0ddce5585d5d530a05d4cd10b9d97285b4eb52578d111cca9ed900d
7
- data.tar.gz: 377c696f09ee81fc1f8780f6ef5d6db8a70879fb29363436f6628cd2fa7adfb56bdb238a2774add079799bd4a40d612c993afbba0c4b1e701a5eedd2ff7145ec
6
+ metadata.gz: b6164cb8d9f456dd5d3b99cfd824b721804ebd71d4b404d09767bbdb80e265a488bcc375606a6209d834a0292d428f62273268da37294efc7b97331f1feab138
7
+ data.tar.gz: d49f88f137c66a616758b06172f501e4f162730b4ee2665de8d19f06ae9ff0649c72dbacbc2054fd8fd469abb3ffc63a8827d73b584c7522fc594e56d1434db6
@@ -14,31 +14,14 @@ on:
14
14
  branches: [ master ]
15
15
 
16
16
  jobs:
17
- test_ruby_2_6:
17
+ test:
18
18
  runs-on: ubuntu-latest
19
19
  strategy:
20
20
  matrix:
21
- ruby-version: ['2.6']
22
- env: # $BUNDLE_GEMFILE must be set at the job level, so it is set for all steps
23
- BUNDLE_GEMFILE: Gemfile.ruby-2.6
21
+ ruby-version: ['2.7', '3.0', '3.1', '3.2', '3.3']
24
22
 
25
23
  steps:
26
- - uses: actions/checkout@v2
27
- - name: Set up Ruby
28
- uses: ruby/setup-ruby@v1
29
- with:
30
- ruby-version: ${{ matrix.ruby-version }}
31
- bundler-cache: true
32
- - name: Run tests
33
- run: bundle exec rspec spec
34
- test_ruby_2_7_above:
35
- runs-on: ubuntu-latest
36
- strategy:
37
- matrix:
38
- ruby-version: ['2.7', '3.0', '3.1']
39
-
40
- steps:
41
- - uses: actions/checkout@v2
24
+ - uses: actions/checkout@v4
42
25
  - name: Set up Ruby
43
26
  uses: ruby/setup-ruby@v1
44
27
  with:
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 3.1.2
1
+ 3.4.7
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Next Release
2
2
 
3
+ ## 1.23.3 (2025-11-04)
4
+
5
+ * Fix klass at the end_class
6
+ * Fix links
7
+
3
8
  ## 1.23.2 (2022-09-24)
4
9
 
5
10
  * require_ruby_version 2.3.0
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rails_best_practices (1.23.2)
4
+ rails_best_practices (1.23.3)
5
5
  activesupport
6
6
  code_analyzer (~> 0.5.5)
7
7
  erubis
@@ -124,4 +124,4 @@ DEPENDENCIES
124
124
  slim
125
125
 
126
126
  BUNDLED WITH
127
- 2.3.15
127
+ 2.6.9
data/README.md CHANGED
@@ -5,9 +5,6 @@
5
5
  [![Coverage Status](https://coveralls.io/repos/railsbp/rails_best_practices/badge.svg?branch=master)](https://coveralls.io/r/railsbp/rails_best_practices)
6
6
  [![AwesomeCode Status for flyerhzm/rails_best_practices](https://awesomecode.io/projects/d02ecd70-e068-4ad4-b61a-7003ac24b49a/status)](https://awesomecode.io/repos/flyerhzm/rails_best_practices)
7
7
 
8
- [![Coderwall Endorse](http://api.coderwall.com/flyerhzm/endorsecount.png)](http://coderwall.com/flyerhzm)
9
- [![Click here to lend your support to: rails best practices and make a donation at www.pledgie.com !](https://pledgie.com/campaigns/12057.png?skin_name=chrome)](https://pledgie.com/campaigns/12057)
10
-
11
8
  rails_best_practices is a code metric tool to check the quality of Rails code.
12
9
 
13
10
  It supports the following ORM/ODMs:
@@ -90,15 +87,15 @@ To see the full list of command-line options, run:
90
87
 
91
88
  Homepage: <http://rails-bestpractices.com>
92
89
 
93
- GitHub: <http://github.com/railsbp/rails_best_practices>
90
+ GitHub: <http://github.com/flyerhzm/rails_best_practices>
94
91
 
95
92
  Team Blog <http://rails-bestpractices.com>
96
93
 
97
94
  Google Group: <https://groups.google.com/group/rails_best_practices>
98
95
 
99
- Wiki: <http://github.com/railsbp/rails_best_practices/wiki>
96
+ Wiki: <http://github.com/flyerhzm/rails_best_practices/wiki>
100
97
 
101
- Issue Tracker: <http://github.com/railsbp/rails_best_practices/issues>
98
+ Issue Tracker: <http://github.com/flyerhzm/rails_best_practices/issues>
102
99
 
103
100
  ## Install
104
101
 
@@ -287,4 +284,4 @@ Send us email: <team@railsbp.com>
287
284
  Copyright © 2009 - 2022 Richard Huang (flyerhzm@gmail.com), released under the MIT license
288
285
 
289
286
 
290
- [1]: https://github.com/railsbp/rails_best_practices/wiki/How-to-write-your-own-check-list
287
+ [1]: https://github.com/flyerhzm/rails_best_practices/wiki/How-to-write-your-own-check-list
@@ -138,7 +138,7 @@ module RailsBestPractices
138
138
  # end of the class
139
139
  add_callback :end_class do |_node|
140
140
  klasses.pop
141
- @klass = nil
141
+ @klass = klasses.last
142
142
  end
143
143
  end
144
144
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RailsBestPractices
4
- VERSION = '1.23.2'
4
+ VERSION = '1.23.3'
5
5
  end
@@ -10,9 +10,13 @@ Gem::Specification.new do |spec|
10
10
  spec.platform = Gem::Platform::RUBY
11
11
  spec.authors = ['Richard Huang']
12
12
  spec.email = ['flyerhzm@gmail.com']
13
- spec.homepage = 'http://rails-bestpractices.com'
13
+ spec.homepage = 'https://github.com/flyerhzm/rails_best_practices'
14
14
  spec.summary = 'a code metric tool for rails codes.'
15
15
  spec.description = 'a code metric tool for rails codes, written in Ruby.'
16
+ spec.metadata = {
17
+ 'changelog_uri' => 'https://github.com/flyerhzm/rails_best_practices/blob/main/CHANGELOG.md',
18
+ 'source_code_uri' => 'https://github.com/flyerhzm/rails_best_practices'
19
+ }
16
20
  spec.license = 'MIT'
17
21
 
18
22
  spec.required_ruby_version = '>= 2.3.0'
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_best_practices
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.23.2
4
+ version: 1.23.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Richard Huang
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2022-09-24 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: activesupport
@@ -207,8 +206,6 @@ files:
207
206
  - CHANGELOG.md
208
207
  - Gemfile
209
208
  - Gemfile.lock
210
- - Gemfile.ruby-2.6
211
- - Gemfile.ruby-2.6.lock
212
209
  - Guardfile
213
210
  - MIT_LICENSE
214
211
  - README.md
@@ -373,10 +370,12 @@ files:
373
370
  - spec/rails_best_practices/reviews/use_scope_access_review_spec.rb
374
371
  - spec/rails_best_practices/reviews/use_turbo_sprockets_rails3_review_spec.rb
375
372
  - spec/spec_helper.rb
376
- homepage: http://rails-bestpractices.com
373
+ homepage: https://github.com/flyerhzm/rails_best_practices
377
374
  licenses:
378
375
  - MIT
379
- metadata: {}
376
+ metadata:
377
+ changelog_uri: https://github.com/flyerhzm/rails_best_practices/blob/main/CHANGELOG.md
378
+ source_code_uri: https://github.com/flyerhzm/rails_best_practices
380
379
  post_install_message: |
381
380
  ********************************************************************************
382
381
 
@@ -406,8 +405,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
406
405
  - !ruby/object:Gem::Version
407
406
  version: 1.3.6
408
407
  requirements: []
409
- rubygems_version: 3.3.7
410
- signing_key:
408
+ rubygems_version: 3.6.9
411
409
  specification_version: 4
412
410
  summary: a code metric tool for rails codes.
413
411
  test_files:
data/Gemfile.ruby-2.6 DELETED
@@ -1,11 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- source 'https://rubygems.org'
4
- gemspec
5
-
6
- gem 'activesupport', '~> 6.1.4'
7
- gem 'coveralls_reborn', require: false
8
-
9
- gem 'guard'
10
- gem 'guard-rspec'
11
- gem 'pry'
@@ -1,130 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- rails_best_practices (1.23.1)
5
- activesupport
6
- code_analyzer (~> 0.5.5)
7
- erubis
8
- i18n
9
- json
10
- require_all (~> 3.0)
11
- ruby-progressbar
12
-
13
- GEM
14
- remote: https://rubygems.org/
15
- specs:
16
- activesupport (6.1.4.6)
17
- concurrent-ruby (~> 1.0, >= 1.0.2)
18
- i18n (>= 1.6, < 2)
19
- minitest (>= 5.1)
20
- tzinfo (~> 2.0)
21
- zeitwerk (~> 2.3)
22
- awesome_print (1.9.2)
23
- code_analyzer (0.5.5)
24
- sexp_processor
25
- coderay (1.1.3)
26
- concurrent-ruby (1.1.9)
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)
32
- diff-lcs (1.5.0)
33
- docile (1.4.0)
34
- erubis (2.7.0)
35
- ffi (1.15.5)
36
- formatador (1.1.0)
37
- guard (2.18.0)
38
- formatador (>= 0.2.4)
39
- listen (>= 2.7, < 4.0)
40
- lumberjack (>= 1.0.12, < 2.0)
41
- nenv (~> 0.1)
42
- notiffany (~> 0.0)
43
- pry (>= 0.13.0)
44
- shellany (~> 0.0)
45
- thor (>= 0.18.1)
46
- guard-compat (1.2.1)
47
- guard-rspec (4.7.3)
48
- guard (~> 2.1)
49
- guard-compat (~> 1.1)
50
- rspec (>= 2.99.0, < 4.0)
51
- haml (5.2.2)
52
- temple (>= 0.8.0)
53
- tilt
54
- i18n (1.9.1)
55
- concurrent-ruby (~> 1.0)
56
- json (2.6.1)
57
- listen (3.7.1)
58
- rb-fsevent (~> 0.10, >= 0.10.3)
59
- rb-inotify (~> 0.9, >= 0.9.10)
60
- lumberjack (1.2.8)
61
- method_source (1.0.0)
62
- minitest (5.15.0)
63
- nenv (0.3.0)
64
- notiffany (0.1.3)
65
- nenv (~> 0.1)
66
- shellany (~> 0.0)
67
- pry (0.14.1)
68
- coderay (~> 1.1)
69
- method_source (~> 1.0)
70
- rake (13.0.6)
71
- rb-fsevent (0.11.1)
72
- rb-inotify (0.10.1)
73
- ffi (~> 1.0)
74
- require_all (3.0.0)
75
- rspec (3.11.0)
76
- rspec-core (~> 3.11.0)
77
- rspec-expectations (~> 3.11.0)
78
- rspec-mocks (~> 3.11.0)
79
- rspec-core (3.11.0)
80
- rspec-support (~> 3.11.0)
81
- rspec-expectations (3.11.0)
82
- diff-lcs (>= 1.2.0, < 2.0)
83
- rspec-support (~> 3.11.0)
84
- rspec-mocks (3.11.0)
85
- diff-lcs (>= 1.2.0, < 2.0)
86
- rspec-support (~> 3.11.0)
87
- rspec-support (3.11.0)
88
- ruby-progressbar (1.11.0)
89
- sexp_processor (4.16.0)
90
- shellany (0.0.1)
91
- simplecov (0.21.2)
92
- docile (~> 1.1)
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
- slim (4.1.0)
98
- temple (>= 0.7.6, < 0.9)
99
- tilt (>= 2.0.6, < 2.1)
100
- sync (0.5.0)
101
- temple (0.8.2)
102
- term-ansicolor (1.7.1)
103
- tins (~> 1.0)
104
- thor (1.2.1)
105
- tilt (2.0.10)
106
- tins (1.31.1)
107
- sync
108
- tzinfo (2.0.4)
109
- concurrent-ruby (~> 1.0)
110
- zeitwerk (2.5.4)
111
-
112
- PLATFORMS
113
- ruby
114
-
115
- DEPENDENCIES
116
- activesupport (~> 6.1.4)
117
- awesome_print
118
- bundler
119
- coveralls_reborn
120
- guard
121
- guard-rspec
122
- haml
123
- pry
124
- rails_best_practices!
125
- rake
126
- rspec
127
- slim
128
-
129
- BUNDLED WITH
130
- 1.17.3