mixin_comment 0.1.0 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/ci.yml +26 -4
- data/.gitignore +1 -1
- data/CHANGELOG.md +8 -0
- data/README.md +7 -0
- data/gemfiles/rails50.gemfile +2 -0
- data/gemfiles/rails51.gemfile +2 -0
- data/gemfiles/rails52.gemfile +2 -0
- data/gemfiles/rails60.gemfile +2 -0
- data/gemfiles/rails61.gemfile +1 -0
- data/gemfiles/rails70.gemfile +6 -0
- data/gemfiles/rails71.gemfile +6 -0
- data/lib/mixin_comment/tasks/verify.rake +3 -0
- data/lib/mixin_comment/version.rb +1 -1
- data/lib/mixin_comment.rb +2 -0
- metadata +8 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 98dfa8c2bfbf1da2033ec4a2f78f7a32df5635e4fcd4e774bdfb9c4d6d27f4a0
|
4
|
+
data.tar.gz: 84e2d4c4d181de3017130fd835baac46e98fad7feb06589f3ec75a0491f5d747
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 43dd6df4a05e2c62844b35835e01ae44034f68141074bcd3a2c99a38bb3939a68ff4b1a5a93bbccae66cc0a9dae6369de38773bfa0938a9c4faec63fd2a6f6ec
|
7
|
+
data.tar.gz: 82a2ef58fbf3cc044d379449ff3d369af9236ad15509926c835bf027901a1b95c6e8d99639187c52efbac19330cd9eb6dff405166831fe479eb3caf6b622e02f
|
data/.github/workflows/ci.yml
CHANGED
@@ -4,19 +4,41 @@ on: [push, pull_request]
|
|
4
4
|
|
5
5
|
jobs:
|
6
6
|
test:
|
7
|
-
runs-on: ubuntu-
|
7
|
+
runs-on: ubuntu-22.04
|
8
8
|
strategy:
|
9
9
|
fail-fast: false
|
10
10
|
matrix:
|
11
|
-
ruby: [2.6, 2.7, 3.0]
|
12
|
-
gemfile: ['rails50', 'rails51', 'rails52', 'rails60', 'rails61']
|
11
|
+
ruby: [2.6, 2.7, '3.0', 3.1, 3.2, 3.3]
|
12
|
+
gemfile: ['rails50', 'rails51', 'rails52', 'rails60', 'rails61', 'rails70', 'rails71']
|
13
13
|
exclude:
|
14
|
+
- ruby: 2.6
|
15
|
+
gemfile: rails70
|
16
|
+
- ruby: 2.6
|
17
|
+
gemfile: rails71
|
14
18
|
- ruby: 3.0
|
15
19
|
gemfile: rails50
|
16
20
|
- ruby: 3.0
|
17
21
|
gemfile: rails51
|
18
22
|
- ruby: 3.0
|
19
23
|
gemfile: rails52
|
24
|
+
- ruby: 3.1
|
25
|
+
gemfile: rails50
|
26
|
+
- ruby: 3.1
|
27
|
+
gemfile: rails51
|
28
|
+
- ruby: 3.1
|
29
|
+
gemfile: rails52
|
30
|
+
- ruby: 3.2
|
31
|
+
gemfile: rails50
|
32
|
+
- ruby: 3.2
|
33
|
+
gemfile: rails51
|
34
|
+
- ruby: 3.2
|
35
|
+
gemfile: rails52
|
36
|
+
- ruby: 3.3
|
37
|
+
gemfile: rails50
|
38
|
+
- ruby: 3.3
|
39
|
+
gemfile: rails51
|
40
|
+
- ruby: 3.3
|
41
|
+
gemfile: rails52
|
20
42
|
|
21
43
|
name: ruby ${{ matrix.ruby }}, ${{ matrix.gemfile }}
|
22
44
|
|
@@ -24,7 +46,7 @@ jobs:
|
|
24
46
|
BUNDLE_GEMFILE: gemfiles/${{ matrix.gemfile }}.gemfile
|
25
47
|
|
26
48
|
steps:
|
27
|
-
- uses: actions/checkout@
|
49
|
+
- uses: actions/checkout@v4
|
28
50
|
- uses: ruby/setup-ruby@v1
|
29
51
|
with:
|
30
52
|
ruby-version: ${{ matrix.ruby }}
|
data/.gitignore
CHANGED
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -48,6 +48,8 @@ The label `[required methods]` means that the class `Item` which includes the mo
|
|
48
48
|
You can verify validity of classes as follows:
|
49
49
|
|
50
50
|
```ruby
|
51
|
+
require 'mixin_comment'
|
52
|
+
|
51
53
|
# speficy your directory which contains *.rb files
|
52
54
|
results = MixinComment.verify('app')
|
53
55
|
|
@@ -79,6 +81,11 @@ Special labels for ActiveRecord models are also available:
|
|
79
81
|
|
80
82
|
In case you develops rails application, rake task is available:
|
81
83
|
|
84
|
+
```ruby
|
85
|
+
# load only rake task
|
86
|
+
gem 'mixin_comment', require: 'mixin_comment/railtie'
|
87
|
+
```
|
88
|
+
|
82
89
|
```shell-session
|
83
90
|
$ bundle exec rake mixin_comment:verify
|
84
91
|
Item#method2 is required method by A
|
data/gemfiles/rails50.gemfile
CHANGED
data/gemfiles/rails51.gemfile
CHANGED
data/gemfiles/rails52.gemfile
CHANGED
data/gemfiles/rails60.gemfile
CHANGED
data/gemfiles/rails61.gemfile
CHANGED
@@ -1,6 +1,9 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
namespace :mixin_comment do
|
2
4
|
desc 'Verify mixin comments'
|
3
5
|
task :verify => :environment do
|
6
|
+
require 'mixin_comment'
|
4
7
|
dirs = ENV.key?('DIRS') ? ENV['DIRS'].split(',') : [Rails.root.join('app').to_s]
|
5
8
|
results = MixinComment.verify(dirs)
|
6
9
|
results.each(&:show_errors)
|
data/lib/mixin_comment.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mixin_comment
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Yoshikazu Kaneta
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-06-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -130,6 +130,8 @@ files:
|
|
130
130
|
- gemfiles/rails52.gemfile
|
131
131
|
- gemfiles/rails60.gemfile
|
132
132
|
- gemfiles/rails61.gemfile
|
133
|
+
- gemfiles/rails70.gemfile
|
134
|
+
- gemfiles/rails71.gemfile
|
133
135
|
- lib/mixin_comment.rb
|
134
136
|
- lib/mixin_comment/loader.rb
|
135
137
|
- lib/mixin_comment/parser.rb
|
@@ -142,7 +144,7 @@ files:
|
|
142
144
|
homepage: https://github.com/kanety/mixin_comment
|
143
145
|
licenses: []
|
144
146
|
metadata: {}
|
145
|
-
post_install_message:
|
147
|
+
post_install_message:
|
146
148
|
rdoc_options: []
|
147
149
|
require_paths:
|
148
150
|
- lib
|
@@ -157,8 +159,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
157
159
|
- !ruby/object:Gem::Version
|
158
160
|
version: '0'
|
159
161
|
requirements: []
|
160
|
-
rubygems_version: 3.
|
161
|
-
signing_key:
|
162
|
+
rubygems_version: 3.3.3
|
163
|
+
signing_key:
|
162
164
|
specification_version: 4
|
163
165
|
summary: Verification of comments for roughly designed mixin module
|
164
166
|
test_files: []
|