letters 0.2.1 → 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  **Letters** is a little alphabetical library that makes sophisticated debugging easy & fun.
2
2
 
3
- *Update*: Until I build a Rails-specific gem, I'm changing letters to patch Object by default. To only patch core classes, `require "letters/patch/core"`.
3
+ *Quick note about Rails*: Until I build a Rails-specific gem, I'm changing letters to patch Object by default. To only patch core classes, `require "letters/patch/core"`. For Rails support, `require "letters/patch/rails"`. Make sure to do this after `Bundler.require` in `application.rb`.
4
4
 
5
5
  For many of us, troubleshooting begins and ends with the `print` statement. Others recruit the debugger, too. (Maybe you use `print` statements to look at changes over time but the debugger to focus on a small bit of code.) These tools are good, but they are the lowest level of how we can debug in Ruby. Letters leverages `print`, the debugger, control transfer, computer beeps, and other side-effects for more well-rounded visibility into code and state.
6
6
 
@@ -16,7 +16,9 @@ By default, requiring `"letters"` monkey-patches `Object`. It goes without sayin
16
16
 
17
17
  With Letters installed, you have a suite of methods available wherever you want them in your code -- at the end of any expression, in the middle of any pipeline. Most of these methods will output some form of information, though there are more sophisticated ones that pass around control of the application.
18
18
 
19
- Let's start with the `p` method as an example. It is one of the most familiar methods. Calling it prints the receiver to STDOUT and returns the receiver:
19
+ There are almost 20 Letters methods so far. You can find them [in the documentation](http://lettersrb.com/api).
20
+
21
+ Let's use with the `p` method as an example. It is one of the most familiar methods. Calling it prints the receiver to STDOUT and returns the receiver:
20
22
 
21
23
  ```ruby
22
24
  { foo: "bar" }.p
@@ -1,4 +1,4 @@
1
- require "letters/core"
1
+ require "letters/patch/core"
2
2
 
3
3
  begin
4
4
  Letters.patch! ActiveRecord::Base
@@ -1,3 +1,3 @@
1
1
  module Letters
2
- VERSION = "0.2.1"
2
+ VERSION = "0.2.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: letters
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-09-30 00:00:00.000000000Z
12
+ date: 2012-10-01 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: awesome_print
16
- requirement: &70153762674060 !ruby/object:Gem::Requirement
16
+ requirement: &70300877008800 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70153762674060
24
+ version_requirements: *70300877008800
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: activesupport
27
- requirement: &70153762673620 !ruby/object:Gem::Requirement
27
+ requirement: &70300877008360 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: '0'
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *70153762673620
35
+ version_requirements: *70300877008360
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: xml-simple
38
- requirement: &70153762673200 !ruby/object:Gem::Requirement
38
+ requirement: &70300877007940 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: '0'
44
44
  type: :runtime
45
45
  prerelease: false
46
- version_requirements: *70153762673200
46
+ version_requirements: *70300877007940
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: colorize
49
- requirement: &70153762672780 !ruby/object:Gem::Requirement
49
+ requirement: &70300877007520 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ! '>='
@@ -54,10 +54,10 @@ dependencies:
54
54
  version: '0'
55
55
  type: :runtime
56
56
  prerelease: false
57
- version_requirements: *70153762672780
57
+ version_requirements: *70300877007520
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: debugger
60
- requirement: &70153762672360 !ruby/object:Gem::Requirement
60
+ requirement: &70300877007100 !ruby/object:Gem::Requirement
61
61
  none: false
62
62
  requirements:
63
63
  - - ! '>='
@@ -65,10 +65,10 @@ dependencies:
65
65
  version: '0'
66
66
  type: :runtime
67
67
  prerelease: false
68
- version_requirements: *70153762672360
68
+ version_requirements: *70300877007100
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: timecop
71
- requirement: &70153762671940 !ruby/object:Gem::Requirement
71
+ requirement: &70300877006680 !ruby/object:Gem::Requirement
72
72
  none: false
73
73
  requirements:
74
74
  - - ! '>='
@@ -76,10 +76,10 @@ dependencies:
76
76
  version: '0'
77
77
  type: :development
78
78
  prerelease: false
79
- version_requirements: *70153762671940
79
+ version_requirements: *70300877006680
80
80
  - !ruby/object:Gem::Dependency
81
81
  name: rspec
82
- requirement: &70153762671520 !ruby/object:Gem::Requirement
82
+ requirement: &70300877006260 !ruby/object:Gem::Requirement
83
83
  none: false
84
84
  requirements:
85
85
  - - ! '>='
@@ -87,7 +87,7 @@ dependencies:
87
87
  version: '0'
88
88
  type: :development
89
89
  prerelease: false
90
- version_requirements: *70153762671520
90
+ version_requirements: *70300877006260
91
91
  description: Letters brings Ruby debugging into the 21st century. It leverages print,
92
92
  the debugger, control transfer, even computer beeps to let you see into your code's
93
93
  state.