rubocop-codeur 0.3.0 → 0.4.0

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: 420f3301ff009bf96c52547e4246fa419d902281f56c7f47700572a144c92f09
4
- data.tar.gz: 5e9d83bbb45232a8d37ec82e6635a1861a5d6a30c600c65fe12d00f8bdb8ae2b
3
+ metadata.gz: a56423208cd7dbf9fb560a4182d1dcc4797409152af850c6d39d9bb7657e4c88
4
+ data.tar.gz: 2a13447627e8a3d20c9bbb9ef8ce6b80d77009cc0f2217077d8ea23ad5d82468
5
5
  SHA512:
6
- metadata.gz: 207d14d404508d364b8abca572ae641ecf3c223b30cbdc69e9d3a665e9f54d6ee034081ef3d277bf8290026b62e2dbfb5f1619e393a8b6a5a7ae743dc8011c91
7
- data.tar.gz: 0d71a43971ce29790b74fc25ecd5555c1d263a5edf8cc55a64e03c9be82419616a3e79b5ce4b304779bbe339f910c066db0ebe18d757c3c2bac560632afd9e94
6
+ metadata.gz: 02b24eb5c2f71d76ced69ab7b3b2ddb05e049ef4779f8716554f21f697441392311dcacfe04e360f5237e4dbfe37be4ab24134d22efedd45c12d7148f73c8a53
7
+ data.tar.gz: bc38e5651872d4f1957b696dd632cf9caf6cdebcf71c41efed66bba0e02a1f3013b5ca595c351d9c71701a9969a6e56100bb9a0f8a7ec421350e953979e92f12
data/.rubocop.yml CHANGED
@@ -1,4 +1,5 @@
1
1
  AllCops:
2
+ SuggestExtensions: false
2
3
  NewCops: enable
3
4
 
4
5
  Naming/FileName:
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rubocop-codeur (0.3.0)
4
+ rubocop-codeur (0.4.0)
5
5
  rubocop (~> 1.25)
6
6
  rubocop-minitest (~> 0.10, >= 0.10.2)
7
7
  rubocop-performance (~> 1.9, >= 1.9.2)
data/README.md CHANGED
@@ -48,6 +48,17 @@ AllCops:
48
48
 
49
49
  Note that those overriding should be avoided as much as possible.
50
50
 
51
+ ## Testing
52
+
53
+ Run:
54
+ ```bash
55
+ bin/rake test
56
+ ```
57
+ or simply:
58
+ ```bash
59
+ bin/rake
60
+ ```
61
+
51
62
  ## Release
52
63
  Before all, configure your credentials for RubyGems :
53
64
 
@@ -2,6 +2,6 @@
2
2
 
3
3
  module RuboCop
4
4
  module Codeur
5
- VERSION = '0.3.0'
5
+ VERSION = '0.4.0'
6
6
  end
7
7
  end
@@ -55,7 +55,7 @@ module RuboCop
55
55
  end
56
56
 
57
57
  def pattern_from_path(path)
58
- return nil unless path.match(%r{/app/(?<pattern>.+)/.+})
58
+ return nil unless path.match(%r{/(?<folder>app|test)/(?<pattern>.+)/.+})
59
59
 
60
60
  Regexp.last_match(:pattern)
61
61
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubocop-codeur
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Codeur