pangdudu-rofl 0.1.3 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/README.rdoc +25 -8
  2. data/lib/rofl_trace.rb +2 -1
  3. metadata +6 -5
data/README.rdoc CHANGED
@@ -3,31 +3,48 @@
3
3
  My little logger wrapper. Will give you easy access to logger functions with
4
4
  class and caller method info.
5
5
 
6
- rofl,lol.
7
-
8
6
  == Installation
9
7
 
10
8
  sudo gem install pangdudu-rofl --source=http://gems.github.com
11
9
 
12
10
  == Usage
13
11
 
12
+ === Logging
13
+
14
14
  look at the test_rofl.rb or simply do this:
15
15
 
16
16
  require 'rubygems'
17
17
  require 'rofl'
18
- include Rofl
19
18
 
20
- you can than use the methods: elog,wlog,ilog,dlog
19
+ you can then use the methods: elog,wlog,ilog,dlog
21
20
 
22
21
  where elog is like:
23
- logger.error (text if you like)
22
+ logger.error "text if you like"
24
23
  wlog is like:
25
- logger.warning (text if you like)
24
+ logger.warn "text if you like"
26
25
  ilog is like:
27
- logger.info (text if you like)
26
+ logger.info "text if you like"
28
27
  dlog is like:
29
- logger.debug (text if you like)
28
+ logger.debug "text if you like"
29
+
30
+
31
+ === Tracing
32
+
33
+ If you take a look at 'lib/rofl_trace.rb' you'll discover some fun stuff. :)
34
+
35
+ What might come in handy if you have no clue whats going on in somebodies code:
36
+
37
+ rofl_enable_trace
38
+ #...some code
39
+ rofl_disable_trace
40
+
41
+ You can encapsule code like that and then get flodded with all the 'calls'
42
+ that happen in the vm.
43
+
44
+ /^(call)/ is the default regexp, but there's more fun stuff to trace out there: returns, sends, ...
45
+
30
46
 
47
+ Have phun kidz!
31
48
 
32
49
  == Rule the universe!
33
50
 
data/lib/rofl_trace.rb CHANGED
@@ -1,4 +1,5 @@
1
- #this module supplies useful trace output for the logger
1
+ #= this module supplies useful trace output for debugging fun!
2
+
2
3
  module RoflTrace
3
4
  #enable vm wide tracing
4
5
  def rofl_enable_trace event_regex = /^(call)/
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pangdudu-rofl
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - pangdudu
@@ -9,11 +9,11 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-07-26 00:00:00 -07:00
12
+ date: 2009-07-27 00:00:00 -07:00
13
13
  default_executable: rofl
14
14
  dependencies: []
15
15
 
16
- description: My logger wrapper, includes funkiness.
16
+ description: My logger wrapper, includes funkyness.
17
17
  email: pangdudu@github
18
18
  executables:
19
19
  - rofl
@@ -29,6 +29,7 @@ files:
29
29
  - lib/test_rofl.rb
30
30
  has_rdoc: true
31
31
  homepage: http://github.com/pangdudu/rofl
32
+ licenses:
32
33
  post_install_message:
33
34
  rdoc_options: []
34
35
 
@@ -48,8 +49,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
48
49
  version:
49
50
  requirements: []
50
51
 
51
- rubyforge_project: rofl
52
- rubygems_version: 1.2.0
52
+ rubyforge_project:
53
+ rubygems_version: 1.3.5
53
54
  signing_key:
54
55
  specification_version: 2
55
56
  summary: rofl! peace.