onkcop 0.43.0.0 → 0.43.0.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
  SHA1:
3
- metadata.gz: fc2559c1040e4b5f0b53a188f82fa27bdb883a4d
4
- data.tar.gz: 0f4949ef104aaadb838b04ed3edf6f3c01ce6f84
3
+ metadata.gz: bf205fe6bf94f8d450acaf8c081e16a9a5164051
4
+ data.tar.gz: e78df0e2d65cfcc82becaf8ef9a59401886052fa
5
5
  SHA512:
6
- metadata.gz: c299b8a78454a8de1d3a37e470613386eb008e083d0e5b751aed782cb6cfb6a4f5c32297c6896d90aa59647148e089c85b7fbbdf92826b5ff6f0cc284da2209f
7
- data.tar.gz: 7bd979b1d039e4168d74dc24851b478f6bc9ea2297880f9625f131f65a96522273a410faba2bd6457d3be34d69dcaef4ae02170ed3cef6979add2e7f0525b086
6
+ metadata.gz: bc396a9d6185a87cd4329a8e13077de45b19cec915009225eb73bfe3903d376e810057e078afb3e8668231a46b6b5deb3d6daff4778c0cf5315a533832d4afe5
7
+ data.tar.gz: a756038a17510c180d362eb4c93fb16635bb7bf198e6693b01a6c0e2ee00210fb14d7f8d091bf446793920ca02381af698e71724b60e7a6e569e80abaed3cc87
data/README.md CHANGED
@@ -11,13 +11,13 @@ Add the following directive to your `.rubocop.yml`:
11
11
 
12
12
  ```yaml
13
13
  inherit_gem:
14
- onkcop: "config/rubocop.yml"
14
+ onkcop:
15
+ - "config/rubocop.yml"
16
+ # uncomment if use rails cops
17
+ # - "config/rails.yml"
15
18
 
16
19
  AllCops:
17
20
  TargetRubyVersion: 2.3
18
-
19
- # Rails:
20
- # Enabled: true
21
21
  ```
22
22
 
23
23
  ```sh
@@ -0,0 +1,15 @@
1
+ Rails:
2
+ Enabled: true
3
+
4
+ # slug とか created_by とか、NOT NULL だが create_table 時に
5
+ # default 値を定義できないカラムは存在する。
6
+ Rails/NotNullColumn:
7
+ Enabled: false
8
+
9
+ # method_missing を隠したい場合は respond_to? を使うべき
10
+ Rails/SafeNavigation:
11
+ ConvertTry: true
12
+
13
+ # valid? チェックし忘れを防ぎたい
14
+ Rails/SaveBang:
15
+ Enabled: true
@@ -1,3 +1,3 @@
1
1
  module Onkcop
2
- VERSION = "0.43.0.0"
2
+ VERSION = "0.43.0.1"
3
3
  end
@@ -20,6 +20,6 @@ Gem::Specification.new do |spec|
20
20
  spec.require_paths = ["lib"]
21
21
 
22
22
  spec.add_dependency "rubocop", "~> 0.43.0"
23
- spec.add_development_dependency "bundler", "~> 1.11"
24
- spec.add_development_dependency "rake", "~> 11.0"
23
+ spec.add_development_dependency "bundler"
24
+ spec.add_development_dependency "rake"
25
25
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: onkcop
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.43.0.0
4
+ version: 0.43.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Takafumi ONAKA
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-09-19 00:00:00.000000000 Z
11
+ date: 2016-09-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubocop
@@ -28,30 +28,30 @@ dependencies:
28
28
  name: bundler
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - "~>"
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: '1.11'
33
+ version: '0'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - "~>"
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
- version: '1.11'
40
+ version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rake
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - "~>"
45
+ - - ">="
46
46
  - !ruby/object:Gem::Version
47
- version: '11.0'
47
+ version: '0'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - "~>"
52
+ - - ">="
53
53
  - !ruby/object:Gem::Version
54
- version: '11.0'
54
+ version: '0'
55
55
  description: OnkCop is a RuboCop configration gem.
56
56
  email:
57
57
  - takafumi.onaka@gmail.com
@@ -67,6 +67,7 @@ files:
67
67
  - Rakefile
68
68
  - bin/console
69
69
  - bin/setup
70
+ - config/rails.yml
70
71
  - config/rubocop.yml
71
72
  - lib/onkcop.rb
72
73
  - lib/onkcop/version.rb