arca 2.1.1 → 2.1.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/arca.gemspec +1 -1
  3. data/lib/arca/collector.rb +4 -4
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8b9f8642d711431cd997e5621b8f967b91f04125
4
- data.tar.gz: d782d73e6f25def04d8ba5b950f37b9eea13f2b0
3
+ metadata.gz: 6f324cf6265322de192ab2ffbe195da012723177
4
+ data.tar.gz: 2162c33d3bcfea839dcd6668d309176c970bd53f
5
5
  SHA512:
6
- metadata.gz: f7d0735b3290ba98e1583bd83264c3cb317232bada579b266b1ea2ab8397a6e23f6522c7fd13f7f9e886572045c9ee55a4e4cd3e7a0f1183487abb6ec676a14c
7
- data.tar.gz: 0064caeee6d302fa6b03cab780621d3a03c3fb00ad8703193e60525c781c1c3154bfdba9a63c00997c713050a2d1e3db2039244a90262f420c4b15bd572c482b
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.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"
@@ -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 << :block
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
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: arca
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.1
4
+ version: 2.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jonathan Hoyt