mirror of
https://github.com/awesome-print/awesome_print
synced 2023-03-27 23:22:34 -04:00
Release 0.2.1
This commit is contained in:
parent
fe58321517
commit
d3c7d07f98
4 changed files with 18 additions and 5 deletions
|
@ -1,3 +1,7 @@
|
|||
0.2.1
|
||||
- ap can now be used within Rails templates (ex. <%= ap object %>)
|
||||
- Added support for printing Struct
|
||||
|
||||
0.2.0
|
||||
- Added support for logger.ap (including Rails logger)
|
||||
- Added support for HashWithIndifferentAccess from ActiveSupport
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
## Awesome Print ##
|
||||
Awesome Print is Ruby library that pretty prints Ruby objects in full color
|
||||
exposing their internal structure with proper indentation. Rails ActiveRecord
|
||||
objects are supported via included mixin.
|
||||
objects and usage within Rails templates are supported via included mixins.
|
||||
|
||||
### Installation ###
|
||||
# Installing as Ruby gem
|
||||
|
@ -170,6 +170,12 @@ in the custom defaults (see below), or you can override on a per call basis with
|
|||
|
||||
logger.ap object, :warn
|
||||
|
||||
### ActionView Convenience Method ###
|
||||
awesome_print adds an ap method to the ActionView::Base class making it available
|
||||
within Rails templates. For example:
|
||||
|
||||
<%= ap @accounts.first %>
|
||||
|
||||
### Setting Custom Defaults ###
|
||||
You can set your own default options by creating ``.aprc`` file in your home
|
||||
directory. Within that file assign your defaults to ``AwesomePrint.defaults``.
|
||||
|
|
2
VERSION
2
VERSION
|
@ -1 +1 @@
|
|||
0.2.0
|
||||
0.2.1
|
||||
|
|
|
@ -5,11 +5,11 @@
|
|||
|
||||
Gem::Specification.new do |s|
|
||||
s.name = %q{awesome_print}
|
||||
s.version = "0.2.0"
|
||||
s.version = "0.2.1"
|
||||
|
||||
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
||||
s.authors = ["Michael Dvorkin"]
|
||||
s.date = %q{2010-05-05}
|
||||
s.date = %q{2010-06-03}
|
||||
s.description = %q{Great Ruby dubugging companion: pretty print Ruby objects to visualize their structure. Supports Rails ActiveRecord objects via included mixin.}
|
||||
s.email = %q{mike@dvorkin.net}
|
||||
s.extra_rdoc_files = [
|
||||
|
@ -28,9 +28,11 @@ Gem::Specification.new do |s|
|
|||
"lib/ap/core_ext/kernel.rb",
|
||||
"lib/ap/core_ext/logger.rb",
|
||||
"lib/ap/core_ext/string.rb",
|
||||
"lib/ap/mixin/action_view.rb",
|
||||
"lib/ap/mixin/active_record.rb",
|
||||
"lib/ap/mixin/active_support.rb",
|
||||
"rails/init.rb",
|
||||
"spec/action_view_spec.rb",
|
||||
"spec/active_record_spec.rb",
|
||||
"spec/awesome_print_spec.rb",
|
||||
"spec/logger_spec.rb",
|
||||
|
@ -45,7 +47,8 @@ Gem::Specification.new do |s|
|
|||
s.rubygems_version = %q{1.3.6}
|
||||
s.summary = %q{Pretty print Ruby objects with proper indentation and colors.}
|
||||
s.test_files = [
|
||||
"spec/active_record_spec.rb",
|
||||
"spec/action_view_spec.rb",
|
||||
"spec/active_record_spec.rb",
|
||||
"spec/awesome_print_spec.rb",
|
||||
"spec/logger_spec.rb",
|
||||
"spec/spec_helper.rb",
|
||||
|
|
Loading…
Reference in a new issue