puts_pyramid 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/README +40 -0
  2. data/VERSION +1 -0
  3. data/lib/puts_pyramid.rb +9 -0
  4. metadata +69 -0
data/README ADDED
@@ -0,0 +1,40 @@
1
+ Trying to debug your Ruby or Rails code? Using "puts" but having trouble
2
+ digging your debugging output from the log? Make your debugging more
3
+ prominent with puts_pyramid!
4
+
5
+ puts "foo":
6
+ foo # This is stupid and easy to lose!
7
+ puts_pyramid "foo":
8
+ *
9
+ **
10
+ ***
11
+ foo # This is easy to find!
12
+ ***
13
+ **
14
+ *
15
+
16
+ If the default pyramid is still too small, pass in an optional height
17
+ argument:
18
+
19
+ puts_pyramid "foo", 10:
20
+ *
21
+ **
22
+ ***
23
+ ****
24
+ *****
25
+ ******
26
+ *******
27
+ ********
28
+ *********
29
+ **********
30
+ foo
31
+ **********
32
+ *********
33
+ ********
34
+ *******
35
+ ******
36
+ *****
37
+ ****
38
+ ***
39
+ **
40
+ *
data/VERSION ADDED
@@ -0,0 +1 @@
1
+ 0.0.1
@@ -0,0 +1,9 @@
1
+ def puts_pyramid(message, height=3)
2
+ height.times do |i|
3
+ puts "*" * (i + 1)
4
+ end
5
+ puts message
6
+ height.times do |i|
7
+ puts "*" * (height-i)
8
+ end
9
+ end
metadata ADDED
@@ -0,0 +1,69 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: puts_pyramid
3
+ version: !ruby/object:Gem::Version
4
+ hash: 29
5
+ prerelease:
6
+ segments:
7
+ - 0
8
+ - 0
9
+ - 1
10
+ version: 0.0.1
11
+ platform: ruby
12
+ authors:
13
+ - Philip L. Welch
14
+ autorequire:
15
+ bindir: bin
16
+ cert_chain: []
17
+
18
+ date: 2011-04-20 00:00:00 -07:00
19
+ default_executable:
20
+ dependencies: []
21
+
22
+ description: A tool to make debugging output more obvious
23
+ email: phil@philipwelch.com
24
+ executables: []
25
+
26
+ extensions: []
27
+
28
+ extra_rdoc_files:
29
+ - README
30
+ files:
31
+ - VERSION
32
+ - lib/puts_pyramid.rb
33
+ - README
34
+ has_rdoc: true
35
+ homepage: http://github.com/philwelch/puts_pyramid
36
+ licenses: []
37
+
38
+ post_install_message:
39
+ rdoc_options: []
40
+
41
+ require_paths:
42
+ - lib
43
+ required_ruby_version: !ruby/object:Gem::Requirement
44
+ none: false
45
+ requirements:
46
+ - - ">="
47
+ - !ruby/object:Gem::Version
48
+ hash: 3
49
+ segments:
50
+ - 0
51
+ version: "0"
52
+ required_rubygems_version: !ruby/object:Gem::Requirement
53
+ none: false
54
+ requirements:
55
+ - - ">="
56
+ - !ruby/object:Gem::Version
57
+ hash: 3
58
+ segments:
59
+ - 0
60
+ version: "0"
61
+ requirements: []
62
+
63
+ rubyforge_project:
64
+ rubygems_version: 1.6.2
65
+ signing_key:
66
+ specification_version: 3
67
+ summary: A tool to make debugging output more obvious
68
+ test_files: []
69
+