gitlab-styles 2.6.1 → 2.6.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/gitlab/styles/rubocop/model_helpers.rb +1 -1
- data/lib/gitlab/styles/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: abcb1bd69dc686eec874933a3ea18d7f46edbc5f1f79e7ddff28bad2b3c695d4
|
4
|
+
data.tar.gz: 409bdef068a6902590657108fa76f34c50e613a5a6df36ae60f9e38c8b919b1b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4e161e24ad9bba4fa63811c558d4bac2e78456b38b0df8c16c779135cce1d638afc7643d6ed3f58cbff81389128c3c9e93c3a71f10f8aa0eecd816222a367e52
|
7
|
+
data.tar.gz: 9f1ef9e3ea18abd032363c9eb4fac534c463173769d7e194bcead9e15ad607c93be3369683f8d2ae9f05570f68228e74e5d35b5cb0815718c6df5f18d87afde3
|
@@ -5,7 +5,7 @@ module Gitlab
|
|
5
5
|
# Returns true if the given node originated from the models directory.
|
6
6
|
def in_model?(node)
|
7
7
|
path = node.location.expression.source_buffer.name
|
8
|
-
pwd =
|
8
|
+
pwd = RuboCop::PathUtil.pwd
|
9
9
|
models_path = File.join(pwd, 'app', 'models')
|
10
10
|
ee_models_path = File.join(pwd, 'ee', 'app', 'models')
|
11
11
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gitlab-styles
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.6.
|
4
|
+
version: 2.6.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- GitLab
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-05-
|
11
|
+
date: 2019-05-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rubocop
|