CallBaecker 0.0.4 → 0.0.5
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 +13 -5
- data/.travis.yml +10 -1
- data/README.md +3 -0
- data/lib/CallBaecker.rb +14 -2
- data/lib/CallBaecker/version.rb +1 -1
- metadata +13 -14
checksums.yaml
CHANGED
@@ -1,7 +1,15 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
|
2
|
+
!binary "U0hBMQ==":
|
3
|
+
metadata.gz: !binary |-
|
4
|
+
MDg4NjgwZDgxNGEyMGYxMTIzMGVmZjJjYzkyYTFlOTkxNzdiYjA2Mg==
|
5
|
+
data.tar.gz: !binary |-
|
6
|
+
NDFjNjkxNmE4NzE4NjFhYmNhZGRmOTRlMmVmOTFlNGIwMTJmNTM2MA==
|
5
7
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
|
8
|
+
metadata.gz: !binary |-
|
9
|
+
MWViOTE2ZDE0NzY2N2YxMjc1YTRjZDQ0Y2Q0MmVlMTNmNDIyMjlmNjQ4ZWVj
|
10
|
+
NmY0YWIzNTJjNGRkNWU0NGNlODgzZDJjZTYzZTk5NjQ1ODIyMDYzMTFlNDc4
|
11
|
+
ZGM2YTMzMGI0YzhjZmM3YjZmM2Y0OTc0ZTIxNWMxMDQzOGVlZGI=
|
12
|
+
data.tar.gz: !binary |-
|
13
|
+
MmQyYjc3NGIzNDU5ZWUyYTc0NGFlMzFiYjNiOGNhN2Y5ZTJkZjE3NTFjYTMx
|
14
|
+
ODZkZTQwYjhmNWM3NzZjMGY0NzMzYjlhZTExOTlhNmZkOGE0OWExMzFlY2Yz
|
15
|
+
YmU0ODk2YjcwOWE2NTUxZDFiM2Y5M2VhNWYwZDM4ZDI3YzA3YmU=
|
data/.travis.yml
CHANGED
@@ -1,3 +1,12 @@
|
|
1
1
|
language: ruby
|
2
2
|
rvm:
|
3
|
-
|
3
|
+
- 2.1.0
|
4
|
+
deploy:
|
5
|
+
provider: rubygems
|
6
|
+
api_key:
|
7
|
+
secure: BvbynU1lUbqZX0Fyc9zovRttep5uyKWMyLOjAkHwE9kZ0DIDR4Ivpz3Rqo75Ep0wIFQHfbH+R/eOGDbTN3KwwU8UGFPQbCL+RH00mmobgZl0cN1/iTJOxNbjLYdzsRBTQqYPajQaMu01yKBhD8PXiQxCwSjrE3Ac4LjXgdkPThw=
|
8
|
+
gem: CallBaecker
|
9
|
+
on:
|
10
|
+
all_branches: true
|
11
|
+
tags: true
|
12
|
+
repo: doodzik/CallBaecker
|
data/README.md
CHANGED
data/lib/CallBaecker.rb
CHANGED
@@ -31,7 +31,13 @@ module CallBaecker
|
|
31
31
|
if has_before_hook
|
32
32
|
*args = _self.instance_variable_get(:@__before_hook).call(params, args[0], callee, self, name)
|
33
33
|
end
|
34
|
-
send without, *args, &block
|
34
|
+
value = send without, *args, &block
|
35
|
+
data = {}
|
36
|
+
data[:value] = value
|
37
|
+
if has_before_hook
|
38
|
+
data = _self.instance_variable_get(:@__after_hook).call(data)
|
39
|
+
end
|
40
|
+
data[:value]
|
35
41
|
end
|
36
42
|
end
|
37
43
|
# teardow
|
@@ -65,7 +71,13 @@ module CallBaecker
|
|
65
71
|
if has_before_hook
|
66
72
|
*args = @__before_hook.call(params, args[0], callee, self, name)
|
67
73
|
end
|
68
|
-
send without, *args, &block
|
74
|
+
value = send without, *args, &block
|
75
|
+
data = {}
|
76
|
+
data[:value] = value
|
77
|
+
if has_before_hook
|
78
|
+
data = @__after_hook.call(data)
|
79
|
+
end
|
80
|
+
data[:value]
|
69
81
|
end
|
70
82
|
end
|
71
83
|
# TODO teardown
|
data/lib/CallBaecker/version.rb
CHANGED
metadata
CHANGED
@@ -1,55 +1,55 @@
|
|
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.5
|
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-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - ~>
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '1.6'
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- -
|
24
|
+
- - ~>
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '1.6'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rake
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- -
|
31
|
+
- - ~>
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '10.0'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- -
|
38
|
+
- - ~>
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '10.0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: minitest
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- -
|
45
|
+
- - ! '>='
|
46
46
|
- !ruby/object:Gem::Version
|
47
47
|
version: '0'
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- -
|
52
|
+
- - ! '>='
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '0'
|
55
55
|
description:
|
@@ -59,8 +59,8 @@ executables: []
|
|
59
59
|
extensions: []
|
60
60
|
extra_rdoc_files: []
|
61
61
|
files:
|
62
|
-
-
|
63
|
-
-
|
62
|
+
- .gitignore
|
63
|
+
- .travis.yml
|
64
64
|
- CallBaecker.gemspec
|
65
65
|
- Gemfile
|
66
66
|
- LICENSE.txt
|
@@ -79,21 +79,20 @@ require_paths:
|
|
79
79
|
- lib
|
80
80
|
required_ruby_version: !ruby/object:Gem::Requirement
|
81
81
|
requirements:
|
82
|
-
- -
|
82
|
+
- - ! '>='
|
83
83
|
- !ruby/object:Gem::Version
|
84
84
|
version: '0'
|
85
85
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
|
-
- -
|
87
|
+
- - ! '>='
|
88
88
|
- !ruby/object:Gem::Version
|
89
89
|
version: '0'
|
90
90
|
requirements: []
|
91
91
|
rubyforge_project:
|
92
|
-
rubygems_version: 2.
|
92
|
+
rubygems_version: 2.4.2
|
93
93
|
signing_key:
|
94
94
|
specification_version: 4
|
95
95
|
summary: Intercepts method calls inorder to save arguments and to allow to terminate
|
96
96
|
function from within a nested method
|
97
97
|
test_files:
|
98
98
|
- test/test_CallBaecker.rb
|
99
|
-
has_rdoc:
|