rails_best_practices 1.23.0 → 1.23.2

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: 6130c27d1f5ad49baeed9bd6595188a99f77e10260f709e7b2dc49bce191d06e
4
- data.tar.gz: 856313c260d0e66d2625885bdb6f4f1614fa2184303a182d7fb016fb76dac304
3
+ metadata.gz: 184e634dda813019a60e4f5dd6499ce20cf976ff711979d6788b2e9fcf040216
4
+ data.tar.gz: 5a7a40cffe06f255d0b6a5fbb7c320aafe0e666510b3e7159faf32e3ae5751af
5
5
  SHA512:
6
- metadata.gz: 66c463631584235d020ea1ee12d748119827de1c9347660ccf5fde82191038ab75cd07f9266933c199a2fd6c722abf566eb75ec906f1c717a557c4e19e327278
7
- data.tar.gz: 453991a40ccdf9f0549dbe6842e8823034a41e5b253efdccde0e4442a0ea17b654046747dea4de54ac4312eae89bd4ec946c45ded98c356d7f12465294b34d8d
6
+ metadata.gz: e1257de0e97847588db0598456bb4583089ca19ce8a093e4447360a80cae9c908821ee1af0ddce5585d5d530a05d4cd10b9d97285b4eb52578d111cca9ed900d
7
+ data.tar.gz: 377c696f09ee81fc1f8780f6ef5d6db8a70879fb29363436f6628cd2fa7adfb56bdb238a2774add079799bd4a40d612c993afbba0c4b1e701a5eedd2ff7145ec
@@ -14,11 +14,28 @@ on:
14
14
  branches: [ master ]
15
15
 
16
16
  jobs:
17
- test:
17
+ test_ruby_2_6:
18
18
  runs-on: ubuntu-latest
19
19
  strategy:
20
20
  matrix:
21
- ruby-version: ['2.6', '2.7', '3.0', '3.1']
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
24
+
25
+ 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']
22
39
 
23
40
  steps:
24
41
  - uses: actions/checkout@v2
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 3.1.0
1
+ 3.1.2
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Next Release
2
2
 
3
+ ## 1.23.2 (2022-09-24)
4
+
5
+ * require_ruby_version 2.3.0
6
+
7
+ ## 1.23.1 (2022-02-12)
8
+
9
+ * Do not strict activesupport dependency version
10
+
3
11
  ## 1.23.0 (2022-01-31)
4
12
 
5
13
  * Support hash short syntax
data/Gemfile CHANGED
@@ -3,7 +3,7 @@
3
3
  source 'https://rubygems.org'
4
4
  gemspec
5
5
 
6
- gem 'coveralls', require: false
6
+ gem 'coveralls_reborn', require: false
7
7
 
8
8
  gem 'guard'
9
9
  gem 'guard-rspec'
data/Gemfile.lock CHANGED
@@ -1,8 +1,8 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rails_best_practices (1.23.0)
5
- activesupport (~> 6.1.4)
4
+ rails_best_practices (1.23.2)
5
+ activesupport
6
6
  code_analyzer (~> 0.5.5)
7
7
  erubis
8
8
  i18n
@@ -13,25 +13,23 @@ PATH
13
13
  GEM
14
14
  remote: https://rubygems.org/
15
15
  specs:
16
- activesupport (6.1.4.4)
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)
20
20
  tzinfo (~> 2.0)
21
- zeitwerk (~> 2.3)
22
21
  awesome_print (1.8.0)
23
22
  code_analyzer (0.5.5)
24
23
  sexp_processor
25
24
  coderay (1.1.3)
26
- concurrent-ruby (1.1.9)
27
- coveralls (0.8.23)
28
- json (>= 1.8, < 3)
29
- simplecov (~> 0.16.1)
30
- term-ansicolor (~> 1.3)
31
- thor (>= 0.19.4, < 2.0)
32
- 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)
33
31
  diff-lcs (1.4.4)
34
- docile (1.3.2)
32
+ docile (1.4.0)
35
33
  erubis (2.7.0)
36
34
  ffi (1.15.4)
37
35
  formatador (0.3.0)
@@ -52,15 +50,15 @@ GEM
52
50
  haml (5.1.2)
53
51
  temple (>= 0.8.0)
54
52
  tilt
55
- i18n (1.9.1)
53
+ i18n (1.12.0)
56
54
  concurrent-ruby (~> 1.0)
57
- json (2.3.0)
55
+ json (2.6.2)
58
56
  listen (3.7.0)
59
57
  rb-fsevent (~> 0.10, >= 0.10.3)
60
58
  rb-inotify (~> 0.9, >= 0.9.10)
61
59
  lumberjack (1.2.8)
62
60
  method_source (1.0.0)
63
- minitest (5.15.0)
61
+ minitest (5.16.3)
64
62
  nenv (0.3.0)
65
63
  notiffany (0.1.3)
66
64
  nenv (~> 0.1)
@@ -87,25 +85,27 @@ GEM
87
85
  rspec-support (~> 3.10.0)
88
86
  rspec-support (3.10.2)
89
87
  ruby-progressbar (1.11.0)
90
- sexp_processor (4.16.0)
88
+ sexp_processor (4.16.1)
91
89
  shellany (0.0.1)
92
- simplecov (0.16.1)
90
+ simplecov (0.21.2)
93
91
  docile (~> 1.1)
94
- json (>= 1.8, < 3)
95
- simplecov-html (~> 0.10.0)
96
- simplecov-html (0.10.2)
92
+ simplecov-html (~> 0.11)
93
+ simplecov_json_formatter (~> 0.1)
94
+ simplecov-html (0.12.3)
95
+ simplecov_json_formatter (0.1.4)
97
96
  slim (4.0.1)
98
97
  temple (>= 0.7.6, < 0.9)
99
98
  tilt (>= 2.0.6, < 2.1)
99
+ sync (0.5.0)
100
100
  temple (0.8.2)
101
101
  term-ansicolor (1.7.1)
102
102
  tins (~> 1.0)
103
- thor (1.1.0)
103
+ thor (1.2.1)
104
104
  tilt (2.0.10)
105
- tins (1.22.2)
106
- tzinfo (2.0.4)
105
+ tins (1.31.1)
106
+ sync
107
+ tzinfo (2.0.5)
107
108
  concurrent-ruby (~> 1.0)
108
- zeitwerk (2.5.4)
109
109
 
110
110
  PLATFORMS
111
111
  ruby
@@ -113,7 +113,7 @@ PLATFORMS
113
113
  DEPENDENCIES
114
114
  awesome_print
115
115
  bundler
116
- coveralls
116
+ coveralls_reborn
117
117
  guard
118
118
  guard-rspec
119
119
  haml
@@ -124,4 +124,4 @@ DEPENDENCIES
124
124
  slim
125
125
 
126
126
  BUNDLED WITH
127
- 2.2.22
127
+ 2.3.15
data/Gemfile.ruby-2.6 ADDED
@@ -0,0 +1,11 @@
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'
@@ -0,0 +1,130 @@
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
data/README.md CHANGED
@@ -1,7 +1,7 @@
1
1
  # rails_best_practices
2
2
 
3
3
  [![Gem Version](https://badge.fury.io/rb/rails_best_practices.svg)](http://badge.fury.io/rb/rails_best_practices)
4
- [![Build Status](https://secure.travis-ci.org/flyerhzm/rails_best_practices.svg)](http://travis-ci.org/flyerhzm/rails_best_practices)
4
+ [![CI](https://github.com/flyerhzm/rails_best_practices/actions/workflows/main.yml/badge.svg)](https://github.com/flyerhzm/rails_best_practices/actions/workflows/main.yml)
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
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RailsBestPractices
4
- VERSION = '1.23.0'
4
+ VERSION = '1.23.2'
5
5
  end
@@ -15,10 +15,10 @@ 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 = '>= 1.9.0'
18
+ spec.required_ruby_version = '>= 2.3.0'
19
19
  spec.required_rubygems_version = '>= 1.3.6'
20
20
 
21
- spec.add_runtime_dependency('activesupport', '~> 6.1.4')
21
+ spec.add_runtime_dependency('activesupport')
22
22
  spec.add_runtime_dependency('code_analyzer', '~> 0.5.5')
23
23
  spec.add_runtime_dependency('erubis')
24
24
  spec.add_runtime_dependency('i18n')
@@ -77,10 +77,10 @@ module RailsBestPractices
77
77
  subject { described_class.new('.', 'format' => format) }
78
78
 
79
79
  before do
80
- subject.stub(:output_terminal_errors)
81
- subject.stub(:output_html_errors)
82
- subject.stub(:output_yaml_errors)
83
- subject.stub(:output_xml_errors)
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,29 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_best_practices
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.23.0
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-01-30 00:00:00.000000000 Z
11
+ date: 2022-09-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 6.1.4
19
+ version: '0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - "~>"
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: 6.1.4
26
+ version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: code_analyzer
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -207,6 +207,8 @@ files:
207
207
  - CHANGELOG.md
208
208
  - Gemfile
209
209
  - Gemfile.lock
210
+ - Gemfile.ruby-2.6
211
+ - Gemfile.ruby-2.6.lock
210
212
  - Guardfile
211
213
  - MIT_LICENSE
212
214
  - README.md
@@ -397,14 +399,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
397
399
  requirements:
398
400
  - - ">="
399
401
  - !ruby/object:Gem::Version
400
- version: 1.9.0
402
+ version: 2.3.0
401
403
  required_rubygems_version: !ruby/object:Gem::Requirement
402
404
  requirements:
403
405
  - - ">="
404
406
  - !ruby/object:Gem::Version
405
407
  version: 1.3.6
406
408
  requirements: []
407
- rubygems_version: 3.3.3
409
+ rubygems_version: 3.3.7
408
410
  signing_key:
409
411
  specification_version: 4
410
412
  summary: a code metric tool for rails codes.