autolog 0.1.0 → 0.1.1

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.
Files changed (3) hide show
  1. data/README.md +8 -3
  2. data/lib/autolog/version.rb +1 -1
  3. metadata +2 -2
data/README.md CHANGED
@@ -42,6 +42,8 @@ Then:
42
42
 
43
43
  In the main object/IRB, or in any object, call autolog with parameters, e.g.:
44
44
 
45
+ # "convenience methods" to have readable names
46
+ autolog
45
47
  autolog :methods
46
48
  autolog :c_calls
47
49
  autolog :c_returns
@@ -55,13 +57,15 @@ In the main object/IRB, or in any object, call autolog with parameters, e.g.:
55
57
  autolog :lines
56
58
  autolog :raises
57
59
  autolog :trace
58
- autolog :event :c_return
59
- autolog :events 'raise', 'c-call'
60
- autolog :events :raise, :c_call
60
+ # log individual events using their usual names from http://apidock.com/ruby/Kernel/set_trace_func
61
+ autolog :raise, :c_call
62
+ autolog 'raise', 'c-call'
63
+ # note: autolog :event, ... and autolog :events, ... also works
61
64
  autolog :off
62
65
 
63
66
  Or call it on Autolog if that is easier:
64
67
 
68
+ # "convenience methods" to have readable names
65
69
  Autolog.c_calls
66
70
  Autolog.c_returns
67
71
  Autolog.c_calls_and_returns
@@ -74,6 +78,7 @@ Or call it on Autolog if that is easier:
74
78
  Autolog.lines
75
79
  Autolog.raises
76
80
  Autolog.trace
81
+ # log individual events using their usual names from http://apidock.com/ruby/Kernel/set_trace_func
77
82
  Autolog.event :c_return
78
83
  Autolog.events 'raise', 'c-call'
79
84
  Autolog.events :raise, :c_call
@@ -1,3 +1,3 @@
1
1
  module Autolog
2
- VERSION = '0.1.0'
2
+ VERSION = '0.1.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: autolog
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
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: 2012-10-17 00:00:00.000000000 Z
12
+ date: 2012-10-18 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: Automatically log events like executed lines, methods, class and module
15
15
  definitions, C-language routines, and/or raises in Ruby.