barcoop 0.2.4 → 0.2.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +2 -0
- data/barcoop.gemspec +1 -1
- data/conf/rubocop.yml +4 -4
- data/lib/barcoop/cop/barcoo/avoid_rails_env.rb +1 -1
- data/lib/barcoop/version.rb +1 -1
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e63769d464f697f4ba830962df4d6f9a5d04dd41
|
4
|
+
data.tar.gz: '09d0de3a1f83e17c8aa6325fcc9ee7b54105b491'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 934e61958f1ced91502b5b5f3bd655d1f3fbfde1a883db7205c8751bebe786eb32bea1a3d54cb7e5ab9c244f087edbeb42bb0bb790f9fee829dfbecdfe3e5ba2
|
7
|
+
data.tar.gz: 8e353575affa00b02afd2de4d69e4ddbedc7de8d3cb52f32896d25a359e6c76555f325aeb0b6acf9ea4e120aaa94441af0a60a289830a572358333f54feddcee
|
data/.gitignore
CHANGED
data/barcoop.gemspec
CHANGED
@@ -21,7 +21,7 @@ Gem::Specification.new do |spec|
|
|
21
21
|
|
22
22
|
spec.require_paths = ['lib']
|
23
23
|
|
24
|
-
spec.add_runtime_dependency 'rubocop'
|
24
|
+
spec.add_runtime_dependency 'rubocop', '~> 0.49.1'
|
25
25
|
|
26
26
|
spec.add_development_dependency 'bundler', '~> 1.14'
|
27
27
|
spec.add_development_dependency 'rake', '~> 10.0'
|
data/conf/rubocop.yml
CHANGED
@@ -52,10 +52,10 @@ Style/RedundantReturn:
|
|
52
52
|
Style/GuardClause:
|
53
53
|
Enabled: false
|
54
54
|
|
55
|
-
|
55
|
+
Layout/IndentHash:
|
56
56
|
EnforcedStyle: consistent
|
57
57
|
|
58
|
-
|
58
|
+
Layout/IndentArray:
|
59
59
|
EnforcedStyle: consistent
|
60
60
|
|
61
61
|
Metrics/ClassLength:
|
@@ -70,10 +70,10 @@ Style/NegatedIf:
|
|
70
70
|
Style/DefWithParentheses:
|
71
71
|
Enabled: false
|
72
72
|
|
73
|
-
|
73
|
+
Layout/MultilineMethodCallIndentation:
|
74
74
|
EnforcedStyle: indented
|
75
75
|
|
76
|
-
|
76
|
+
Layout/AlignParameters:
|
77
77
|
EnforcedStyle: with_fixed_indentation
|
78
78
|
|
79
79
|
Style/SingleLineBlockParams:
|
@@ -20,7 +20,7 @@ module Barcoop
|
|
20
20
|
|
21
21
|
def on_send(node)
|
22
22
|
receiver, method_name = *node
|
23
|
-
if %i
|
23
|
+
if %i[production? development? test?].include?(method_name)
|
24
24
|
msg = 'Avoid using Rails.env.environment? and prefer adding a feature flag in the configuration file.'
|
25
25
|
add_offense(node, :expression, msg) if rails_env?(receiver)
|
26
26
|
end
|
data/lib/barcoop/version.rb
CHANGED
metadata
CHANGED
@@ -1,29 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: barcoop
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sergio Medina
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-07-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rubocop
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: 0.49.1
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - "
|
24
|
+
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
26
|
+
version: 0.49.1
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: bundler
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -91,7 +91,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
91
91
|
version: '0'
|
92
92
|
requirements: []
|
93
93
|
rubyforge_project:
|
94
|
-
rubygems_version: 2.6.
|
94
|
+
rubygems_version: 2.6.12
|
95
95
|
signing_key:
|
96
96
|
specification_version: 4
|
97
97
|
summary: barcoo's rubocop config and cops
|