CallBaecker 0.0.3 → 0.0.4
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 +4 -4
- data/.travis.yml +3 -0
- data/CallBaecker.gemspec +1 -0
- data/README.md +2 -0
- data/lib/CallBaecker.rb +2 -2
- data/lib/CallBaecker/version.rb +1 -1
- data/test/test_CallBaecker.rb +0 -4
- metadata +17 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e0e80fc89a54ed863b34d4793cb965d88db92dec
|
|
4
|
+
data.tar.gz: be013990a8b6a6b4be552f453ded0cd27792804b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 07103da0bb269fe5c455c026c440654aac364ccf805e72b37e34e4950892b2de5bf53bbabcee7466df328d41f0ca4750ec7cd4ba40fcec1e6477e9ee55f8ce1e
|
|
7
|
+
data.tar.gz: 2351d7d607628b7c5e6f16d3e242642027f89e8811c8346fff73a80104f06c71a424ad31ad23545971e2615a863594edee03794050ae48260aab002f9e421fc4
|
data/.travis.yml
ADDED
data/CallBaecker.gemspec
CHANGED
data/README.md
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
# CallBaecker
|
|
2
2
|
|
|
3
|
+
[](https://travis-ci.org/doodzik/CallBaecker)
|
|
4
|
+
|
|
3
5
|
Intercepts method calls inorder to save arguments and to allow to terminate function from within a nested method
|
|
4
6
|
|
|
5
7
|
## Installation
|
data/lib/CallBaecker.rb
CHANGED
|
@@ -29,7 +29,7 @@ module CallBaecker
|
|
|
29
29
|
# TODO make it pluggable
|
|
30
30
|
# it shouldnt be limited to rubisierung
|
|
31
31
|
if has_before_hook
|
|
32
|
-
*args = _self.instance_variable_get(:@__before_hook).call(params, args[0], callee)
|
|
32
|
+
*args = _self.instance_variable_get(:@__before_hook).call(params, args[0], callee, self, name)
|
|
33
33
|
end
|
|
34
34
|
send without, *args, &block
|
|
35
35
|
end
|
|
@@ -63,7 +63,7 @@ module CallBaecker
|
|
|
63
63
|
# TODO make it pluggable
|
|
64
64
|
# it shouldnt be limited to rubisierung
|
|
65
65
|
if has_before_hook
|
|
66
|
-
*args = @__before_hook.call(params, args[0], callee)
|
|
66
|
+
*args = @__before_hook.call(params, args[0], callee, self, name)
|
|
67
67
|
end
|
|
68
68
|
send without, *args, &block
|
|
69
69
|
end
|
data/lib/CallBaecker/version.rb
CHANGED
data/test/test_CallBaecker.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: CallBaecker
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- doodzik
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2014-11-
|
|
11
|
+
date: 2014-11-26 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|
|
@@ -38,6 +38,20 @@ dependencies:
|
|
|
38
38
|
- - "~>"
|
|
39
39
|
- !ruby/object:Gem::Version
|
|
40
40
|
version: '10.0'
|
|
41
|
+
- !ruby/object:Gem::Dependency
|
|
42
|
+
name: minitest
|
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
|
44
|
+
requirements:
|
|
45
|
+
- - ">="
|
|
46
|
+
- !ruby/object:Gem::Version
|
|
47
|
+
version: '0'
|
|
48
|
+
type: :development
|
|
49
|
+
prerelease: false
|
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
51
|
+
requirements:
|
|
52
|
+
- - ">="
|
|
53
|
+
- !ruby/object:Gem::Version
|
|
54
|
+
version: '0'
|
|
41
55
|
description:
|
|
42
56
|
email:
|
|
43
57
|
- 4004blog@gmail.com
|
|
@@ -46,6 +60,7 @@ extensions: []
|
|
|
46
60
|
extra_rdoc_files: []
|
|
47
61
|
files:
|
|
48
62
|
- ".gitignore"
|
|
63
|
+
- ".travis.yml"
|
|
49
64
|
- CallBaecker.gemspec
|
|
50
65
|
- Gemfile
|
|
51
66
|
- LICENSE.txt
|