mixin_comment 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/README.md +7 -0
- data/lib/mixin_comment/tasks/verify.rake +1 -0
- data/lib/mixin_comment/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 262bcc59542300ece645b940b1e172069c6637faaf54cedc469d73a4ba649ff8
|
4
|
+
data.tar.gz: 765894e3fe0ea2520654497f494d188b2235028f018e40358d839607934ed8ae
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ccf45175d934dc69420a707423b7f7256ffdff841a4b05e7da68f699da37e3f1702c789a2f8f3478dcbf4dec103bf03b9ca1229df7c51613cd39152b86492523
|
7
|
+
data.tar.gz: ab94a5005c4e7a39ec09d0cb974927f57b55fa3417ac86b7cf5949d946051850dff08cd8dae7f3837b7245b7010d69a3077ba188f1a1b3914d707dfa8bdd5c5a
|
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
|
@@ -1,6 +1,7 @@
|
|
1
1
|
namespace :mixin_comment do
|
2
2
|
desc 'Verify mixin comments'
|
3
3
|
task :verify => :environment do
|
4
|
+
require 'mixin_comment'
|
4
5
|
dirs = ENV.key?('DIRS') ? ENV['DIRS'].split(',') : [Rails.root.join('app').to_s]
|
5
6
|
results = MixinComment.verify(dirs)
|
6
7
|
results.each(&:show_errors)
|