aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGareth Rees <gareth@mysociety.org>2015-02-10 13:06:47 +0000
committerGareth Rees <gareth@mysociety.org>2015-02-10 13:06:47 +0000
commit5a36b34dffb426184e8eac9786c5d465758f0637 (patch)
tree7f9a7084845385444367838b72bf98b48091dfa7
parent11b2d86e5bf70aa244f15b84851de71454581e7b (diff)
Add pry to development gems
Pry is awesome. The main reason to add it to the Gemfile is to use `binding.pry` in views and controllers. TL;DR is that it halts execution and opens a REPL for you to dig around at the current variables at the point of the binding. See Railscast #280 [1] for a quick overview. 0.9 seems to be the last version to support Ruby 1.8 [1] http://railscasts.com/episodes/280-pry-with-rails
-rw-r--r--Gemfile1
-rw-r--r--Gemfile.lock8
2 files changed, 9 insertions, 0 deletions
diff --git a/Gemfile b/Gemfile
index cc5a41d95..6db026194 100644
--- a/Gemfile
+++ b/Gemfile
@@ -78,6 +78,7 @@ end
group :development do
gem 'capistrano', '~> 2.15.4'
gem 'mailcatcher', '~> 0.5.11'
+ gem 'pry', '~> 0.9.6'
gem 'quiet_assets', '~> 1.0.2'
gem 'rdoc', '~> 3.12.2'
end
diff --git a/Gemfile.lock b/Gemfile.lock
index 3af06fc8d..3f900d047 100644
--- a/Gemfile.lock
+++ b/Gemfile.lock
@@ -68,6 +68,7 @@ GEM
net-ssh-gateway (>= 1.1.0)
charlock_holmes (0.6.9.4)
chunky_png (1.3.3)
+ coderay (1.1.0)
coffee-rails (3.2.2)
coffee-script (>= 2.2.0)
railties (~> 3.2.0)
@@ -155,6 +156,7 @@ GEM
sqlite3 (~> 1.3)
thin (~> 1.5.0)
memcache-client (1.8.5)
+ method_source (0.8.2)
mime-types (1.25.1)
multi_json (1.10.1)
net-http-local (0.1.2)
@@ -173,6 +175,10 @@ GEM
railties (~> 3.0)
pg (0.17.1)
polyglot (0.3.5)
+ pry (0.9.12.6)
+ coderay (~> 1.0)
+ method_source (~> 0.8)
+ slop (~> 3.4)
quiet_assets (1.0.2)
railties (>= 3.1, < 5.0)
rack (1.4.5)
@@ -246,6 +252,7 @@ GEM
skinny (0.2.3)
eventmachine (~> 1.0.0)
thin (~> 1.5.0)
+ slop (3.6.0)
spork (1.0.0rc3)
spork-rails (3.2.1)
rails (>= 3.0.0, < 3.3.0)
@@ -325,6 +332,7 @@ DEPENDENCIES
newrelic_rpm
nokogiri (~> 1.5.9)
pg (~> 0.17.1)
+ pry (~> 0.9.6)
quiet_assets (~> 1.0.2)
rack (~> 1.4.5)
rails (= 3.2.21)