nandi 0.11.1 → 0.11.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/nandi/instructions/remove_column.rb +6 -1
- data/lib/nandi/migration.rb +4 -4
- data/lib/nandi/version.rb +1 -1
- data/lib/templates/nandi/renderers/active_record/instructions/add_column/show.rb.erb +1 -1
- data/lib/templates/nandi/renderers/active_record/instructions/add_foreign_key/show.rb.erb +1 -1
- data/lib/templates/nandi/renderers/active_record/instructions/add_index/show.rb.erb +1 -1
- data/lib/templates/nandi/renderers/active_record/instructions/add_reference/show.rb.erb +1 -1
- data/lib/templates/nandi/renderers/active_record/instructions/remove_column/show.rb.erb +1 -1
- data/lib/templates/nandi/renderers/active_record/instructions/remove_index/show.rb.erb +1 -1
- data/lib/templates/nandi/renderers/active_record/instructions/remove_reference/show.rb.erb +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: 78ca004c815e5952f1fc51b44fa839afd81b1297fc3079e98202719eead8ac74
|
4
|
+
data.tar.gz: 3e19d0265b7e428298abb84c78f463756437c431a2757abe8d28ed232f7c6aab
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fa56e2901b20d88d59bd0cf05b4b78395fc39a3c8c0e7d80484fbc99045c3d8f099861b36a2220b5a183473a4de4f583f873510abe78f469ef700e5b1c6e5035
|
7
|
+
data.tar.gz: 91837a550c6deb7b724d5778300821cd73519cadc2e9b5999645d5884f7a1b17ea9810c24ce5ecfc3431e9fcf0ae260b1de283c6ccd0ea6828d33b7d1ffe33e0
|
data/lib/nandi/migration.rb
CHANGED
@@ -357,9 +357,9 @@ module Nandi
|
|
357
357
|
end.uniq
|
358
358
|
end
|
359
359
|
|
360
|
-
def method_missing(name, *args, &block)
|
360
|
+
def method_missing(name, *args, **kwargs, &block)
|
361
361
|
if Nandi.config.custom_methods.key?(name)
|
362
|
-
invoke_custom_method(name, *args, &block)
|
362
|
+
invoke_custom_method(name, *args, **kwargs, &block)
|
363
363
|
else
|
364
364
|
super
|
365
365
|
end
|
@@ -381,9 +381,9 @@ module Nandi
|
|
381
381
|
Nandi.config.access_exclusive_lock_timeout
|
382
382
|
end
|
383
383
|
|
384
|
-
def invoke_custom_method(name, *args, &block)
|
384
|
+
def invoke_custom_method(name, *args, **kwargs, &block)
|
385
385
|
klass = Nandi.config.custom_methods[name]
|
386
|
-
current_instructions << klass.new(*args, &block)
|
386
|
+
current_instructions << klass.new(*args, **kwargs, &block)
|
387
387
|
end
|
388
388
|
end
|
389
389
|
end
|
data/lib/nandi/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: nandi
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.11.
|
4
|
+
version: 0.11.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- GoCardless Engineering
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-09-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|