jazz_hands 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.md +10 -0
- data/README.md +8 -2
- data/jazz_hands.gemspec +2 -1
- data/lib/jazz_hands/hirb_ext.rb +26 -0
- data/lib/jazz_hands/railtie.rb +1 -0
- data/lib/jazz_hands/version.rb +1 -1
- metadata +31 -19
data/CHANGELOG.md
CHANGED
@@ -1,16 +1,25 @@
|
|
1
|
+
## 0.0.5 (2011-12-01)
|
2
|
+
|
3
|
+
* Add [Hirb][hirb] support. Enable with `Hirb.enable` in the console.
|
4
|
+
* Upgrade [pry-nav][pry-nav] to 0.0.3.
|
5
|
+
|
6
|
+
|
1
7
|
## 0.0.4 (2011-11-30)
|
2
8
|
|
3
9
|
* Add explicit requires for pry plugin gems.
|
4
10
|
|
11
|
+
|
5
12
|
## 0.0.3 (2011-11-30)
|
6
13
|
|
7
14
|
* Add [pry-nav][pry-nav].
|
8
15
|
* Upgrade [awesome_print][awesome_print] to 1.0.1.
|
9
16
|
|
17
|
+
|
10
18
|
## 0.0.2 (2011-11-25)
|
11
19
|
|
12
20
|
* Add pry-doc.
|
13
21
|
|
22
|
+
|
14
23
|
## 0.0.1 (2011-11-25)
|
15
24
|
|
16
25
|
* First release. Combine [pry][pry], [awesome_print][awesome_print],
|
@@ -26,3 +35,4 @@
|
|
26
35
|
[pry-remote]: https://github.com/Mon-Ouie/pry-remote
|
27
36
|
[coolline]: https://github.com/Mon-Ouie/coolline
|
28
37
|
[coderay]: https://github.com/rubychan/coderay
|
38
|
+
[hirb]: https://github.com/cldwalker/hirb
|
data/README.md
CHANGED
@@ -8,13 +8,14 @@ hard-working hands!
|
|
8
8
|
|
9
9
|
* [**Pry**][pry] for a powerful shell alternative to IRB.
|
10
10
|
* [**Awesome Print**][awesome_print] for stylish pretty print.
|
11
|
-
* [**
|
11
|
+
* [**Hirb**][hirb] for tabular collection output.
|
12
|
+
* **Pry Doc** to browse Ruby source, including C, directly from the console.
|
12
13
|
* [**Pry Git**][pry-git] to teach the console about git. Diffs, blames, and
|
13
14
|
commits on methods and classes, not just files.
|
14
15
|
* [**Pry Nav**][pry-nav] to turn the console into a simple debugger.
|
15
16
|
* [**Pry Remote**][pry-remote] to connect remotely to a Pry console.
|
16
17
|
* [**Coolline**][coolline] and [**Coderay**][coderay] for syntax highlighting as
|
17
|
-
you type
|
18
|
+
you type. _Ruby 1.9.3 only_
|
18
19
|
|
19
20
|
|
20
21
|
## Usage
|
@@ -27,6 +28,10 @@ group :development, :test do
|
|
27
28
|
end
|
28
29
|
```
|
29
30
|
|
31
|
+
That's it. Run `rails console` as usual.
|
32
|
+
|
33
|
+
[Hirb][hirb] isn't enabled by default. To use, run `Hirb.enable` in the console.
|
34
|
+
|
30
35
|
|
31
36
|
## Contributing
|
32
37
|
|
@@ -36,6 +41,7 @@ file an [issue][issues]. [Project changelog][changelog].
|
|
36
41
|
|
37
42
|
[pry]: http://pry.github.com
|
38
43
|
[awesome_print]: https://github.com/michaeldv/awesome_print
|
44
|
+
[hirb]: https://github.com/cldwalker/hirb
|
39
45
|
[pry-git]: https://github.com/pry/pry-git
|
40
46
|
[pry-nav]: https://github.com/nixme/pry-nav
|
41
47
|
[pry-remote]: https://github.com/Mon-Ouie/pry-remote
|
data/jazz_hands.gemspec
CHANGED
@@ -23,7 +23,8 @@ Gem::Specification.new do |gem|
|
|
23
23
|
gem.add_runtime_dependency 'pry-doc', '~> 0.3.0'
|
24
24
|
gem.add_runtime_dependency 'pry-git', '~> 0.2.2'
|
25
25
|
gem.add_runtime_dependency 'pry-remote', '>= 0.1.0'
|
26
|
-
gem.add_runtime_dependency 'pry-nav', '>= 0.0.
|
26
|
+
gem.add_runtime_dependency 'pry-nav', '>= 0.0.3'
|
27
|
+
gem.add_runtime_dependency 'hirb', '= 0.6.0'
|
27
28
|
gem.add_runtime_dependency 'coolline', '>= 0.1.0'
|
28
29
|
gem.add_runtime_dependency 'coderay', '>= 0.9.8'
|
29
30
|
gem.add_runtime_dependency 'awesome_print', '~> 1.0.1'
|
@@ -0,0 +1,26 @@
|
|
1
|
+
require 'hirb'
|
2
|
+
require 'pry'
|
3
|
+
|
4
|
+
class << Hirb::View
|
5
|
+
alias_method :enable_output_method_existing, :enable_output_method
|
6
|
+
alias_method :disable_output_method_existing, :disable_output_method
|
7
|
+
|
8
|
+
def enable_output_method
|
9
|
+
@output_method = true
|
10
|
+
|
11
|
+
# Adjust Pry output to try Hirb before its existing mechanism
|
12
|
+
@old_pry_print = Pry.config.print
|
13
|
+
Pry.config.print = ->(output, value) do
|
14
|
+
view_or_page_output(value) || @old_pry_print.call(output, value)
|
15
|
+
end
|
16
|
+
|
17
|
+
enable_output_method_existing
|
18
|
+
end
|
19
|
+
|
20
|
+
def disable_output_method
|
21
|
+
# Set Pry back to its existing output mechanism
|
22
|
+
Pry.config.print = @old_pry_print
|
23
|
+
|
24
|
+
disable_output_method_existing
|
25
|
+
end
|
26
|
+
end
|
data/lib/jazz_hands/railtie.rb
CHANGED
data/lib/jazz_hands/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jazz_hands
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
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: 2011-
|
12
|
+
date: 2011-12-01 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: pry
|
16
|
-
requirement: &
|
16
|
+
requirement: &70144764269780 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ~>
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: 0.9.7.4
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *70144764269780
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: pry-doc
|
27
|
-
requirement: &
|
27
|
+
requirement: &70144764268120 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ~>
|
@@ -32,10 +32,10 @@ dependencies:
|
|
32
32
|
version: 0.3.0
|
33
33
|
type: :runtime
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *70144764268120
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: pry-git
|
38
|
-
requirement: &
|
38
|
+
requirement: &70144764266020 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
40
40
|
requirements:
|
41
41
|
- - ~>
|
@@ -43,10 +43,10 @@ dependencies:
|
|
43
43
|
version: 0.2.2
|
44
44
|
type: :runtime
|
45
45
|
prerelease: false
|
46
|
-
version_requirements: *
|
46
|
+
version_requirements: *70144764266020
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: pry-remote
|
49
|
-
requirement: &
|
49
|
+
requirement: &70144764264660 !ruby/object:Gem::Requirement
|
50
50
|
none: false
|
51
51
|
requirements:
|
52
52
|
- - ! '>='
|
@@ -54,21 +54,32 @@ dependencies:
|
|
54
54
|
version: 0.1.0
|
55
55
|
type: :runtime
|
56
56
|
prerelease: false
|
57
|
-
version_requirements: *
|
57
|
+
version_requirements: *70144764264660
|
58
58
|
- !ruby/object:Gem::Dependency
|
59
59
|
name: pry-nav
|
60
|
-
requirement: &
|
60
|
+
requirement: &70144764263080 !ruby/object:Gem::Requirement
|
61
61
|
none: false
|
62
62
|
requirements:
|
63
63
|
- - ! '>='
|
64
64
|
- !ruby/object:Gem::Version
|
65
|
-
version: 0.0.
|
65
|
+
version: 0.0.3
|
66
66
|
type: :runtime
|
67
67
|
prerelease: false
|
68
|
-
version_requirements: *
|
68
|
+
version_requirements: *70144764263080
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: hirb
|
71
|
+
requirement: &70144764260780 !ruby/object:Gem::Requirement
|
72
|
+
none: false
|
73
|
+
requirements:
|
74
|
+
- - =
|
75
|
+
- !ruby/object:Gem::Version
|
76
|
+
version: 0.6.0
|
77
|
+
type: :runtime
|
78
|
+
prerelease: false
|
79
|
+
version_requirements: *70144764260780
|
69
80
|
- !ruby/object:Gem::Dependency
|
70
81
|
name: coolline
|
71
|
-
requirement: &
|
82
|
+
requirement: &70144760158280 !ruby/object:Gem::Requirement
|
72
83
|
none: false
|
73
84
|
requirements:
|
74
85
|
- - ! '>='
|
@@ -76,10 +87,10 @@ dependencies:
|
|
76
87
|
version: 0.1.0
|
77
88
|
type: :runtime
|
78
89
|
prerelease: false
|
79
|
-
version_requirements: *
|
90
|
+
version_requirements: *70144760158280
|
80
91
|
- !ruby/object:Gem::Dependency
|
81
92
|
name: coderay
|
82
|
-
requirement: &
|
93
|
+
requirement: &70144760156440 !ruby/object:Gem::Requirement
|
83
94
|
none: false
|
84
95
|
requirements:
|
85
96
|
- - ! '>='
|
@@ -87,10 +98,10 @@ dependencies:
|
|
87
98
|
version: 0.9.8
|
88
99
|
type: :runtime
|
89
100
|
prerelease: false
|
90
|
-
version_requirements: *
|
101
|
+
version_requirements: *70144760156440
|
91
102
|
- !ruby/object:Gem::Dependency
|
92
103
|
name: awesome_print
|
93
|
-
requirement: &
|
104
|
+
requirement: &70144760155440 !ruby/object:Gem::Requirement
|
94
105
|
none: false
|
95
106
|
requirements:
|
96
107
|
- - ~>
|
@@ -98,7 +109,7 @@ dependencies:
|
|
98
109
|
version: 1.0.1
|
99
110
|
type: :runtime
|
100
111
|
prerelease: false
|
101
|
-
version_requirements: *
|
112
|
+
version_requirements: *70144760155440
|
102
113
|
description: Spending hours in the rails console? Spruce it up and show off those
|
103
114
|
hard-working hands! jazz_hands replaces IRB with Pry, improves output through awesome_print,
|
104
115
|
and has some other goodies up its sleeves.
|
@@ -116,6 +127,7 @@ files:
|
|
116
127
|
- Rakefile
|
117
128
|
- jazz_hands.gemspec
|
118
129
|
- lib/jazz_hands.rb
|
130
|
+
- lib/jazz_hands/hirb_ext.rb
|
119
131
|
- lib/jazz_hands/railtie.rb
|
120
132
|
- lib/jazz_hands/version.rb
|
121
133
|
homepage: https://github.com/nixme/jazz_hands
|