Skip to content

Commit

Permalink
Use pry-rails in conjunction with awesome_print instead of ugly irb
Browse files Browse the repository at this point in the history
And pry-byebug for debugging

Conflicts:
	Gemfile
	Gemfile.lock
  • Loading branch information
AlexBelov committed Aug 18, 2015
1 parent cb8e81a commit 511ae05
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .pryrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
begin
require 'awesome_print'
Pry.config.print = proc { |output, value| Pry::Helpers::BaseHelpers.stagger_output("=> #{value.ai}", output) }
rescue LoadError => err
puts "no awesome_print :("
end
5 changes: 4 additions & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@ group :development do
gem 'i18n-tasks'
gem 'rubocop'
gem 'bullet'
gem 'rack-mini-profiler', require: false
gem 'pry-rails'
gem 'pry-byebug'
gem 'awesome_print'
end

group :development, :test do
Expand Down Expand Up @@ -178,4 +182,3 @@ gem 'truncate_html'
gem 'sunspot-rails-http-basic-auth', github: 'jwachira/sunspot-rails-http-basic-auth'

gem 'activerecord-session_store'

21 changes: 21 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ GEM
ast (2.0.0)
astrolabe (1.3.0)
parser (>= 2.2.0.pre.3, < 3.0)
awesome_print (1.6.1)
aws-sdk (1.64.0)
aws-sdk-v1 (= 1.64.0)
aws-sdk-v1 (1.64.0)
Expand All @@ -124,6 +125,8 @@ GEM
bullet (4.14.7)
activesupport (>= 3.0.0)
uniform_notifier (~> 1.9.0)
byebug (5.0.0)
columnize (= 0.9.0)
cancancan (1.12.0)
capistrano (3.4.0)
i18n
Expand Down Expand Up @@ -175,6 +178,7 @@ GEM
execjs
coffee-script-source (1.9.1.1)
colorize (0.7.7)
columnize (0.9.0)
connection_pool (2.2.0)
cookiejar (0.3.2)
crass (1.0.2)
Expand Down Expand Up @@ -312,6 +316,7 @@ GEM
nokogiri
premailer-rails
rails (>= 4.0.0)
method_source (0.8.2)
mime-types (2.6.1)
mimemagic (0.3.0)
mini_portile (0.6.2)
Expand Down Expand Up @@ -385,6 +390,15 @@ GEM
premailer (~> 1.7, >= 1.7.9)
private_pub (1.0.3)
faye
pry (0.10.1)
coderay (~> 1.1.0)
method_source (~> 0.8.1)
slop (~> 3.4)
pry-byebug (3.2.0)
byebug (~> 5.0)
pry (~> 0.10)
pry-rails (0.3.4)
pry (>= 0.9.10)
quiet_assets (1.1.0)
railties (>= 3.1, < 5.0)
rack (1.6.4)
Expand Down Expand Up @@ -528,6 +542,7 @@ GEM
activesupport (>= 3.1, < 5.0)
railties (>= 3.1, < 5.0)
slim (~> 3.0)
slop (3.6.0)
spring (1.3.6)
sprockets (2.12.4)
hike (~> 1.2)
Expand Down Expand Up @@ -605,6 +620,7 @@ PLATFORMS

DEPENDENCIES
activerecord-session_store
awesome_print
aws-sdk (< 2.0)
better_errors
binding_of_caller
Expand Down Expand Up @@ -662,6 +678,8 @@ DEPENDENCIES
pg
premailer-rails
private_pub
pry-byebug
pry-rails
quiet_assets
rack-mini-profiler
rails (~> 4.2.0)
Expand Down Expand Up @@ -708,3 +726,6 @@ DEPENDENCIES
vote-schulze!
wicked_pdf
workflow

BUNDLED WITH
1.10.6

0 comments on commit 511ae05

Please sign in to comment.