From d3c7d07f9893b6c9abfe9cc6276ebb1074253810 Mon Sep 17 00:00:00 2001 From: Mike Dvorkin Date: Thu, 3 Jun 2010 19:53:47 -0700 Subject: [PATCH] Release 0.2.1 --- CHANGELOG | 4 ++++ README.md | 8 +++++++- VERSION | 2 +- awesome_print.gemspec | 9 ++++++--- 4 files changed, 18 insertions(+), 5 deletions(-) diff --git a/CHANGELOG b/CHANGELOG index 6c9ce28..68132d8 100644 --- a/CHANGELOG +++ b/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 diff --git a/README.md b/README.md index cd049c4..7913b00 100644 --- a/README.md +++ b/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``. diff --git a/VERSION b/VERSION index 0ea3a94..0c62199 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.2.0 +0.2.1 diff --git a/awesome_print.gemspec b/awesome_print.gemspec index d4a83ab..36387a3 100644 --- a/awesome_print.gemspec +++ b/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",