dark_finger 0.5.1 → 0.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 23fb62829315ff2c6ee77ff2d0731948250480c1bdf23abcb97efb85c23139b7
4
- data.tar.gz: 9959e4a1995a033feab1361ee74b32a3a948767654bb81fce6687d76f40c1fdf
3
+ metadata.gz: f06337d8527c7d7bc94c7451c5f8af0c4a1b13548344a5fdf489c810424a9402
4
+ data.tar.gz: a1a572c569760aa6cc04ca162770b4331715abad52deb7bf030f9cab657cae84
5
5
  SHA512:
6
- metadata.gz: 30d0f1666e440e035521415e3be596880725f286b2fbbd49fc342c4c34630ddc8ea3c4574d532c8118707c02a6edc8d4394275aff3c333feea4a4e91446edb99
7
- data.tar.gz: 61e46f1213ff59c53de7ae8fad863a68d1c4e7f9f307a3392058ab1b5409d0a4fb2f8cab881f27012667ac5332fb729916594277129b3175f934db86a4a21087
6
+ metadata.gz: 6ec349741ae2d89ec13c20c54a81f91fb4715370d3c6b40b707eac0e4d104e00a46c06262955d329217a39e0057d9dd6899f0946184f079c367b712d59d154ae
7
+ data.tar.gz: 894526aa5c3042a0e4814180bf4dc84ad1316d36882fbc20b0712ed17289f857616a6e0c2b7e1a7a66dc3c8d4866e0055615689bd769dde0c0a2dc99d86759be
@@ -1,3 +1,3 @@
1
1
  module DarkFinger
2
- VERSION = "0.5.1"
2
+ VERSION = "0.6.0"
3
3
  end
@@ -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
- @allowed_constants = DEFAULT_ALLOWED_CONSTANTS + allowed_top_level_constants
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.5.1
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-01-29 00:00:00.000000000 Z
12
+ date: 2019-06-03 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler