cldwalker-hirb 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.rdoc +3 -0
- data/README.rdoc +15 -1
- data/VERSION.yml +1 -1
- data/lib/hirb/console.rb +1 -1
- metadata +2 -2
data/CHANGELOG.rdoc
CHANGED
data/README.rdoc
CHANGED
@@ -14,11 +14,24 @@ Install the gem with:
|
|
14
14
|
|
15
15
|
sudo gem install cldwalker-hirb --source http://gems.github.com
|
16
16
|
|
17
|
+
== Pager
|
18
|
+
|
19
|
+
Hirb has both pager and formatter functionality enabled by default.
|
20
|
+
If you want to turn off the functionality of either you can pass that in at startup:
|
21
|
+
|
22
|
+
Hirb.enable :pager=>false
|
23
|
+
Hirb.enable :formatter=>false
|
24
|
+
|
25
|
+
or toggle their state at runtime:
|
26
|
+
|
27
|
+
Hirb::View.toggle_pager
|
28
|
+
Hirb::View.toggle_formatter
|
29
|
+
|
17
30
|
== Create and Configure Views
|
18
31
|
|
19
32
|
If you'd like to learn how to create and configure views, {read the docs}[http://tagaholic.me/hirb/doc/classes/Hirb/Formatter.html].
|
20
33
|
|
21
|
-
== Rails Example
|
34
|
+
== Rails Formatter Example
|
22
35
|
|
23
36
|
Let's load and enable the view framework:
|
24
37
|
bash> script/console
|
@@ -142,6 +155,7 @@ Please report them {on github}[http://github.com/cldwalker/hirb/issues].
|
|
142
155
|
== Links
|
143
156
|
* http://tagaholic.me/2009/03/13/hirb-irb-on-the-good-stuff.html
|
144
157
|
* http://tagaholic.me/2009/03/18/ruby-class-trees-rails-plugin-trees-with-hirb.html
|
158
|
+
* http://tagaholic.me/2009/06/19/page-irb-output-and-improve-ri-with-hirb.html
|
145
159
|
|
146
160
|
== Todo
|
147
161
|
* Consider applying multiple views/filters to output.
|
data/VERSION.yml
CHANGED
data/lib/hirb/console.rb
CHANGED
@@ -32,7 +32,7 @@ module Hirb
|
|
32
32
|
|
33
33
|
# Renders any specified view for the given object. Takes same options as Hirb::View.render_output.
|
34
34
|
def view(output, options={})
|
35
|
-
Console.render_output(
|
35
|
+
Console.render_output(output, options)
|
36
36
|
end
|
37
37
|
|
38
38
|
# Renders a menu given an array using Hirb::Menu.render.
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cldwalker-hirb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gabriel Horner
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-06-
|
12
|
+
date: 2009-06-20 00:00:00 -07:00
|
13
13
|
default_executable:
|
14
14
|
dependencies: []
|
15
15
|
|