From eb1cf1d0fed5f9f9be22ea082ed78079c00bbd65 Mon Sep 17 00:00:00 2001 From: Mike Dvorkin Date: Sun, 4 Apr 2010 20:18:19 -0700 Subject: [PATCH] Release 0.1.1 --- README.md | 6 ++++++ VERSION | 2 +- awesome_print.gemspec | 4 ++-- lib/ap/awesome_print.rb | 2 +- 4 files changed, 10 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 849cb09..6a07e39 100644 --- a/README.md +++ b/README.md @@ -59,6 +59,12 @@ objects are supported via included mixin. :distance => 4.2e+43 } ] + irb> ap data[3], :indent => -2 # Left align hash keys. + { + :class => Time < Object, + :now => Fri Apr 02 19:55:53 -0700 2010, + :distance => 4.2e+43 + } irb> ap data, :multiline => false [ false, 42, [ "fourty", "two" ], { :class => Time < Object, :distance => 4.2e+43, :now => Fri Apr 02 19:44:52 -0700 2010 } ] irb> diff --git a/VERSION b/VERSION index 6e8bf73..17e51c3 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.1.0 +0.1.1 diff --git a/awesome_print.gemspec b/awesome_print.gemspec index 51c4d2b..bd96837 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.1.0" + s.version = "0.1.1" s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version= s.authors = ["Michael Dvorkin"] - s.date = %q{2010-04-02} + s.date = %q{2010-04-04} 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 = [ diff --git a/lib/ap/awesome_print.rb b/lib/ap/awesome_print.rb index 5cb0bbe..b6c1fee 100755 --- a/lib/ap/awesome_print.rb +++ b/lib/ap/awesome_print.rb @@ -72,7 +72,7 @@ class AwesomePrint data = data.inject([]) do |arr, (key, value)| if @options[:multiline] - formatted_key = (@options[:indent] > 0 ? key.rjust(width) : indent + key.ljust(width)) + formatted_key = (@options[:indent] >= 0 ? key.rjust(width) : indent + key.ljust(width)) else formatted_key = key end