mirror of
https://github.com/awesome-print/awesome_print
synced 2023-03-27 23:22:34 -04:00
Updated README and CHANGELOG files
This commit is contained in:
parent
8432aa9086
commit
e2039d9f06
2 changed files with 50 additions and 1 deletions
|
@ -1,3 +1,10 @@
|
|||
0.3.0
|
||||
- Display object.methods and family in human readable format
|
||||
- Objects inherited from Array, Hash, File, Dir, and Struct are shown as their base class
|
||||
- Added option to suppress array index in output (Sean Gallagher)
|
||||
- Updated README on how to set up ~/.irbrc for MacRuby (Eloy Duran)
|
||||
- Specs pass 100% with Ruby 1.8.7/RSpec 1.3 and Ruby 1.9.2/RSpec 2.0
|
||||
|
||||
0.2.1
|
||||
- ap can now be used within Rails templates (ex. <%= ap object %>)
|
||||
- Added support for printing Struct
|
||||
|
|
44
README.md
44
README.md
|
@ -86,6 +86,34 @@ Supported color names:
|
|||
$ ruby 3.rb
|
||||
[ false, 42, [ "forty", "two" ], [...] ]
|
||||
|
||||
$ cat > 4.rb
|
||||
require "ap"
|
||||
ap (''.methods - Object.methods).grep(/!/)
|
||||
^D
|
||||
$ ruby 4.rb
|
||||
[
|
||||
[ 0] capitalize!() String
|
||||
[ 1] chomp!(*arg1) String
|
||||
[ 2] chop!() String
|
||||
[ 3] delete!(*arg1) String
|
||||
[ 4] downcase!() String
|
||||
[ 5] encode!(*arg1) String
|
||||
[ 6] gsub!(*arg1) String
|
||||
[ 7] lstrip!() String
|
||||
[ 8] next!() String
|
||||
[ 9] reverse!() String
|
||||
[10] rstrip!() String
|
||||
[11] slice!(*arg1) String
|
||||
[12] squeeze!(*arg1) String
|
||||
[13] strip!() String
|
||||
[14] sub!(*arg1) String
|
||||
[15] succ!() String
|
||||
[16] swapcase!() String
|
||||
[17] tr!(arg1, arg2) String
|
||||
[18] tr_s!(arg1, arg2) String
|
||||
[19] upcase!() String
|
||||
]
|
||||
|
||||
### Example (Rails console) ###
|
||||
$ ruby script/console
|
||||
Loading development environment (Rails 2.3.5)
|
||||
|
@ -199,6 +227,18 @@ For example:
|
|||
}
|
||||
}
|
||||
|
||||
### Running Specs ###
|
||||
|
||||
Ruby 1.8.7 and RSpec 1.3+:
|
||||
|
||||
$ rake spec # Entire spec suite.
|
||||
$ ruby -rubygems spec/logger_spec.rb # Individual spec file.
|
||||
|
||||
Ruby 1.9.2 and RSpec 2.0+:
|
||||
|
||||
$ rake spec # Entire spec suite.
|
||||
$ rspec spec/logger_spec.rb # Individual spec file.
|
||||
|
||||
### Note on Patches/Pull Requests ###
|
||||
* Fork the project on Github.
|
||||
* Make your feature addition or bug fix.
|
||||
|
@ -209,7 +249,9 @@ For example:
|
|||
### Contributors ###
|
||||
|
||||
* Daniel Bretoi -- http://github.com/danielb2
|
||||
* eregon -- http://github.com/eregon
|
||||
* Eloy Duran -- http://github.com/alloy
|
||||
* Benoit Daloze -- http://github.com/eregon
|
||||
* Sean Gallagher -- http://github.com/torandu
|
||||
* Tobias Crawley -- http://github.com/tobias
|
||||
|
||||
### License ###
|
||||
|
|
Loading…
Reference in a new issue