easy-hook 0.1.7 → 0.1.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/easy-hook.rb +4 -1
  2. metadata +4 -3
@@ -38,6 +38,7 @@ module EasyHook
38
38
  return false unless timer
39
39
  timer.start = Time.now
40
40
  timer.time = nil
41
+ true
41
42
  end
42
43
 
43
44
  def self.stop(id)
@@ -114,4 +115,6 @@ module EasyHook
114
115
  def EasyHook.included(base)
115
116
  base.extend(ClassMethods)
116
117
  end
117
- end
118
+ end
119
+
120
+ #http://stackoverflow.com/questions/2463612/passing-multiple-codeblocks-as-arguments
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: easy-hook
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.7
4
+ version: 0.1.8
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-04-04 00:00:00.000000000 Z
12
+ date: 2013-04-05 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: Quickly create before and after callbacks around ruby methods using blocks.
15
15
  Add them to multiple methods at once to track or modify calls. http://github.com/jeffrwells/easy-hook
@@ -43,5 +43,6 @@ rubyforge_project:
43
43
  rubygems_version: 1.8.23
44
44
  signing_key:
45
45
  specification_version: 3
46
- summary: Easily add before and after callbacks to ruby methods with blocks.
46
+ summary: Easily add before and after callbacks to ruby methods with blocks. Includes
47
+ a timer to time method executions.
47
48
  test_files: []