Skip to content

Commit ce8536a

Browse files
authored
Merge pull request #1736 from ThisIsMissEm/feat/improve-developer-experience
Improve developer experience
2 parents e7f88ae + b4bd680 commit ce8536a

File tree

3 files changed

+8
-9
lines changed

3 files changed

+8
-9
lines changed

Gemfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,8 @@ gem "sqlite3", "~> 1.4", platform: [:ruby, :mswin, :mingw, :x64_mingw]
2727

2828
gem "tzinfo-data", platforms: %i[mingw mswin x64_mingw]
2929
gem "timecop"
30+
31+
gem 'irb', '~> 1.8'
32+
33+
# Interactive Debugging tools
34+
gem 'debug', '~> 1.8'

bin/console

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,10 @@
44
require "bundler/setup"
55
require "rails/all"
66
require "active_support/all"
7+
require "irb"
8+
require "debug"
79
require "doorkeeper"
810

9-
# You can add fixtures and/or initialization code here to make experimenting
10-
# with your gem easier. You can also use a different console, if you like.
11-
12-
# (If you use this, don't forget to add pry to your Gemfile!)
13-
# require "pry"
14-
# Pry.start
15-
1611
Rails.logger = Logger.new(STDOUT)
1712

1813
Rails.logger.info("Doorkeeper version: #{Doorkeeper::VERSION::STRING}")
@@ -32,5 +27,4 @@ ActiveRecord::Base.establish_connection(
3227
# Load database schema
3328
load File.expand_path("../spec/dummy/db/schema.rb", __dir__)
3429

35-
require "irb"
3630
IRB.start(__FILE__)

spec/dummy/config/environments/test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
config.action_controller.perform_caching = false
2424

2525
# Raise exceptions instead of rendering exception templates
26-
config.action_dispatch.show_exceptions = false
26+
config.action_dispatch.show_exceptions = :none
2727

2828
# Disable request forgery protection in test environment
2929
config.action_controller.allow_forgery_protection = false

0 commit comments

Comments
 (0)