omg 0.0.2 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +6 -3
- data/VERSION +1 -1
- data/lib/omg/kernel.rb +1 -1
- data/lib/omg/omg.rb +11 -4
- data/omg.gemspec +1 -1
- metadata +3 -3
data/README.rdoc
CHANGED
@@ -11,9 +11,12 @@ Sometimes you just want to see whether a method was called. Those times you don'
|
|
11
11
|
|
12
12
|
When the method is called, in the log you will find
|
13
13
|
|
14
|
-
|
15
|
-
|
16
|
-
|
14
|
+
~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
15
|
+
OMG!
|
16
|
+
some_method called!
|
17
|
+
~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
18
|
+
|
19
|
+
Or, pass an object to omg! and it will print out the result of the object's inspect method
|
17
20
|
|
18
21
|
Easy.
|
19
22
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.4
|
data/lib/omg/kernel.rb
CHANGED
data/lib/omg/omg.rb
CHANGED
@@ -1,7 +1,14 @@
|
|
1
1
|
module Omg
|
2
|
-
def omg!
|
3
|
-
Rails.logger.debug('
|
4
|
-
Rails.logger.debug
|
5
|
-
Rails.logger.debug
|
2
|
+
def omg!(obj=nil)
|
3
|
+
Rails.logger.debug('')
|
4
|
+
Rails.logger.debug('~~~~~~~~~~~~~~~~~~~~~~~~~~~')
|
5
|
+
Rails.logger.debug "OMG!"
|
6
|
+
if obj
|
7
|
+
Rails.logger.debug obj.inspect
|
8
|
+
else
|
9
|
+
Rails.logger.debug "#{omg_method} called!"
|
10
|
+
end
|
11
|
+
Rails.logger.debug('~~~~~~~~~~~~~~~~~~~~~~~~~~~')
|
12
|
+
Rails.logger.debug('')
|
6
13
|
end
|
7
14
|
end
|
data/omg.gemspec
CHANGED
metadata
CHANGED