Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Release 0.2.1

  • Loading branch information...
commit d3c7d07f9893b6c9abfe9cc6276ebb1074253810 1 parent fe58321
@michaeldv michaeldv authored
Showing with 18 additions and 5 deletions.
  1. +4 −0 CHANGELOG
  2. +7 −1 README.md
  3. +1 −1  VERSION
  4. +6 −3 awesome_print.gemspec
View
4 CHANGELOG
@@ -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
View
8 README.md
@@ -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``.
View
2  VERSION
@@ -1 +1 @@
-0.2.0
+0.2.1
View
9 awesome_print.gemspec
@@ -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",
Please sign in to comment.
Something went wrong with that request. Please try again.