gatemedia_rubocop 0.1.0 → 0.2.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
  SHA1:
3
- metadata.gz: 26e41b13ebb2e15c4a087a86c436cd24befedb90
4
- data.tar.gz: 4219a2d07733c4956034103b5c40f31d5a93fccd
3
+ metadata.gz: c1518e305ca99f82a9701be2a8f0b56ad185a3d2
4
+ data.tar.gz: 920a0c87f0e8b92e179773618fcf537c84801553
5
5
  SHA512:
6
- metadata.gz: 2edbafb31ac58835505b926f0895d187ac3161912584f742002921a28f7cc2e26a73a263b51f55cd0af04a30231dced778fa255d5074215922fe8b4eb073a22f
7
- data.tar.gz: cb5182173979ff3b47c8c57c11ede88cc9e04a6b16553341b4d1cbd5449833c593320083d42b9f066ea3e65b36e07f74f3721950ab919ea7790abec24d26c944
6
+ metadata.gz: 645036acb406c93be5125f1f0151638a91adeb0137e93d5864cfa54594fcd9441d5ea1e8ed777cf380a7f804c476acdbe83c6a16af2bffcc7b546dd2fb501244
7
+ data.tar.gz: 4464ebc99552619ddc5c5ec427860abcf14ec5eaf5cb2685da953a23edd6e2ea06e92f55f53f4759a85fb3fdeb6bfff6bb3cb73294dedec7ab5c8f35a5473a13
data/README.md CHANGED
@@ -25,6 +25,8 @@ inherit_gem:
25
25
  gatemedia_rubocop: config/.rubocop.yml
26
26
  ```
27
27
 
28
+ You could also put this file in your `$HOME` folder for a global use.
29
+
28
30
  ## Contributing
29
31
 
30
32
  Bug reports and pull requests are welcome on GitHub at https://github.com/gatemedia/gatemedia_rubocop.
data/config/.rubocop.yml CHANGED
@@ -23,7 +23,8 @@ AllCops:
23
23
  - 'db/schema.rb'
24
24
  # By default, the rails cops are not run. Override in project or home
25
25
  # directory .rubocop.yml files, or by giving the -R/--rails option.
26
- RunRailsCops: true
26
+ Rails:
27
+ Enabled: true
27
28
 
28
29
  # Indent private/protected/public as deep as method definitions
29
30
  Style/AccessModifierIndentation:
@@ -448,12 +449,26 @@ Style/TrailingBlankLines:
448
449
  - final_newline
449
450
  - final_blank_line
450
451
 
451
- Style/TrailingComma:
452
- # If EnforcedStyleForMultiline is comma, the cop allows a comma after the
453
- # last item of a list, but only for lists where each item is on its own line.
452
+ Style/TrailingCommaInArguments:
453
+ # If `comma`, the cop requires a comma after the last argument, but only for
454
+ # parenthesized method calls where each argument is on its own line.
455
+ # If `consistent_comma`, the cop requires a comma after the last argument,
456
+ # for all parenthesized method calls with arguments.
454
457
  EnforcedStyleForMultiline: no_comma
455
458
  SupportedStyles:
456
459
  - comma
460
+ - consistent_comma
461
+ - no_comma
462
+
463
+ Style/TrailingCommaInLiteral:
464
+ # If `comma`, the cop requires a comma after the last item in an array or
465
+ # hash, but only when each item is on its own line.
466
+ # If `consistent_comma`, the cop requires a comma after the last item of all
467
+ # non-empty array and hash literals.
468
+ EnforcedStyleForMultiline: no_comma
469
+ SupportedStyles:
470
+ - comma
471
+ - consistent_comma
457
472
  - no_comma
458
473
 
459
474
  # TrivialAccessors doesn't require exact name matches and doesn't allow
@@ -577,10 +592,6 @@ Rails/ActionFilter:
577
592
  Include:
578
593
  - app/controllers/**/*.rb
579
594
 
580
- Rails/DefaultScope:
581
- Include:
582
- - app/models/**/*.rb
583
-
584
595
  Rails/HasAndBelongsToMany:
585
596
  Include:
586
597
  - app/models/**/*.rb
@@ -1,3 +1,3 @@
1
1
  module GatemediaRubocop
2
- VERSION = "0.1.0"
2
+ VERSION = "0.2.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gatemedia_rubocop
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben Colon
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2015-12-09 00:00:00.000000000 Z
11
+ date: 2016-04-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -76,7 +76,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
76
76
  version: '0'
77
77
  requirements: []
78
78
  rubyforge_project:
79
- rubygems_version: 2.4.5.1
79
+ rubygems_version: 2.5.1
80
80
  signing_key:
81
81
  specification_version: 4
82
82
  summary: Rubocop config file for Gatemedia projects