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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a3ba1d04a4df226d3003ee545eff150313db134be536c2d9947222400c0b4713
4
- data.tar.gz: 6c925dcf01c961cbc2232070d47bc8eac9c4ddba0c6f211c3ec6190c430d962e
3
+ metadata.gz: 262bcc59542300ece645b940b1e172069c6637faaf54cedc469d73a4ba649ff8
4
+ data.tar.gz: 765894e3fe0ea2520654497f494d188b2235028f018e40358d839607934ed8ae
5
5
  SHA512:
6
- metadata.gz: ffd54ff8b9a130c673f07820d9a0afb2fe2ee97ddcc508de4d0ea43ba2b8532f3d7b658976e8e8714ab447045caaa2af8d24cbe3b3dcb64e98790030cfce720a
7
- data.tar.gz: a056874441c344682264bc6f4c1d6b123af42db0c46fb556416d5d5c4f003e0a68afc360f16f18772e358772720a688334a7fbe9c2cf0bfe5936d7195efdd510
6
+ metadata.gz: ccf45175d934dc69420a707423b7f7256ffdff841a4b05e7da68f699da37e3f1702c789a2f8f3478dcbf4dec103bf03b9ca1229df7c51613cd39152b86492523
7
+ data.tar.gz: ab94a5005c4e7a39ec09d0cb974927f57b55fa3417ac86b7cf5949d946051850dff08cd8dae7f3837b7245b7010d69a3077ba188f1a1b3914d707dfa8bdd5c5a
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## 0.1.1
4
+
5
+ * Partial requirement for rake task.
6
+
3
7
  ## 0.1.0
4
8
 
5
9
  * First release.
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)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module MixinComment
4
- VERSION = '0.1.0'
4
+ VERSION = '0.1.1'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mixin_comment
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yoshikazu Kaneta