dark_finger 0.5.1 → 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/dark_finger/version.rb +1 -1
- data/lib/rubocop/cop/dark_finger/migration_constants.rb +9 -4
- 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: f06337d8527c7d7bc94c7451c5f8af0c4a1b13548344a5fdf489c810424a9402
|
4
|
+
data.tar.gz: a1a572c569760aa6cc04ca162770b4331715abad52deb7bf030f9cab657cae84
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6ec349741ae2d89ec13c20c54a81f91fb4715370d3c6b40b707eac0e4d104e00a46c06262955d329217a39e0057d9dd6899f0946184f079c367b712d59d154ae
|
7
|
+
data.tar.gz: 894526aa5c3042a0e4814180bf4dc84ad1316d36882fbc20b0712ed17289f857616a6e0c2b7e1a7a66dc3c8d4866e0055615689bd769dde0c0a2dc99d86759be
|
data/lib/dark_finger/version.rb
CHANGED
@@ -6,14 +6,19 @@ module RuboCop
|
|
6
6
|
'Migration',
|
7
7
|
'ActiveRecord',
|
8
8
|
'ActiveRecord::Migration',
|
9
|
-
'ActiveRecord::Base'
|
9
|
+
'ActiveRecord::Base',
|
10
|
+
'ActiveRecord::IrreversibleMigration'
|
10
11
|
]
|
11
12
|
|
12
13
|
attr_reader :allowed_constants
|
13
14
|
|
14
|
-
def initialize(*args)
|
15
|
-
super
|
16
|
-
@
|
15
|
+
def initialize(*args, whitelisted_constants: nil, **_)
|
16
|
+
super(*args)
|
17
|
+
@whitelisted_constants = whitelisted_constants || cop_config['whitelisted_constants'] || []
|
18
|
+
@allowed_constants =
|
19
|
+
DEFAULT_ALLOWED_CONSTANTS +
|
20
|
+
allowed_top_level_constants +
|
21
|
+
@whitelisted_constants
|
17
22
|
end
|
18
23
|
|
19
24
|
def on_const(node)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dark_finger
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Professor Wang Matrix PhD
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: exe
|
11
11
|
cert_chain: []
|
12
|
-
date: 2019-
|
12
|
+
date: 2019-06-03 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|