spit 0.1.1 → 0.1.2

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.rdoc +29 -3
  2. data/VERSION +1 -1
  3. data/spit.gemspec +1 -1
  4. metadata +3 -3
data/README.rdoc CHANGED
@@ -1,8 +1,34 @@
1
- = Spit
1
+ == Summary
2
2
 
3
- Print variables in your rails log in a noticeable color. It adds a sensible label automatically.
3
+ Spit variables out to your log in a noticeable color. It adds a sensible label automatically.
4
4
 
5
- The point is to make it easier during development to print out values of variables and have them stand out in the log... pretty simple concept. There might be something out there like it - I didn't look around very much.
5
+ == Usage Example
6
+
7
+ You use it by doing something like this:
8
+
9
+ Spit account
10
+
11
+ And it puts something like this in the log output:
12
+
13
+ *account:* <#Account @name="Steve">
14
+
15
+ == The Point
16
+
17
+ So you don't have to keep typing things like this over and over while developing / debugging:
18
+
19
+ print "foo: #{foo}"
20
+
21
+ It's intended to make it easier during development to print out values of variables and have them stand out in the log... pretty simple concept. There might be something out there like it - I didn't look around very much.
22
+
23
+ == How it works
24
+
25
+ The only tricky thing about spit is how it creates the label. Under the covers it uses caller() to get the file and line, and then goes and grabs the label from the actual source file. This isn't super-efficient, but will likely be almost intstantaneous unless you print out a rather large number of variables at once.
26
+
27
+ == Future plans
28
+
29
+ Support for multiple variables, like: Spit(account, user)
30
+
31
+ Support for choosing a color, like: Spit.red account
6
32
 
7
33
  == Copyright
8
34
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.1
1
+ 0.1.2
data/spit.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{spit}
8
- s.version = "0.1.1"
8
+ s.version = "0.1.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["trogdoro"]
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spit
3
3
  version: !ruby/object:Gem::Version
4
- hash: 25
4
+ hash: 31
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 1
10
- version: 0.1.1
9
+ - 2
10
+ version: 0.1.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - trogdoro