arca 2.1.1 → 2.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/arca.gemspec +1 -1
- data/lib/arca/collector.rb +4 -4
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6f324cf6265322de192ab2ffbe195da012723177
|
4
|
+
data.tar.gz: 2162c33d3bcfea839dcd6668d309176c970bd53f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7486c93a707e646e8329bf59f074d4ab47a76d2deed9efc3e5a3f9440ae78ad592118097677b5b5a5c15cccc433dfdcd34b474a58971ec4b9ca54704d0d3fcf2
|
7
|
+
data.tar.gz: 687bea23e7d21d3ab9cf533be2f91bd94b9598dfbfadb150f497b2dced75306b87fdfb0b842ca34370e67d227bd358d793a7c63c17dabc94b29d846dbcfa8f38
|
data/arca.gemspec
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |spec|
|
2
2
|
spec.name = "arca"
|
3
|
-
spec.version = "2.1.
|
3
|
+
spec.version = "2.1.2"
|
4
4
|
spec.date = "2015-08-07"
|
5
5
|
spec.summary = "ActiveRecord callback analyzer"
|
6
6
|
spec.description = "Arca is a callback analyzer for ActiveRecord ideally suited for digging yourself out of callback hell"
|
data/lib/arca/collector.rb
CHANGED
@@ -35,12 +35,12 @@ module Arca
|
|
35
35
|
|
36
36
|
# Add target_symbol :block to args_copy if a block was given.
|
37
37
|
if block
|
38
|
-
args_copy
|
39
|
-
else
|
40
|
-
# Get the options hash from the end of the args Array if it exists.
|
41
|
-
options = args_copy.pop if args[-1].is_a?(Hash)
|
38
|
+
args_copy.unshift(:block)
|
42
39
|
end
|
43
40
|
|
41
|
+
# Get the options hash from the end of the args Array if it exists.
|
42
|
+
options = args_copy.pop if args[-1].is_a?(Hash)
|
43
|
+
|
44
44
|
# Get the callback file path and line number from the caller stack.
|
45
45
|
callback_file_path, callback_line_number = ARCA_CALLBACK_FINDER_REGEXP.match(caller.first)[1..2]
|
46
46
|
|