Skip to content

Commit c10427d

Browse files
committed
add pry and add readme info
1 parent d9e2dac commit c10427d

File tree

4 files changed

+22
-3
lines changed

4 files changed

+22
-3
lines changed

Gemfile

+2
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,5 @@ gem 'sqlite3'
1717
gem 'standalone_migrations'
1818
gem 'timecop'
1919
gem 'zeitwerk'
20+
21+
gem 'pry'

Gemfile.lock

+5
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,8 @@ GEM
7474
minitest (5.20.0)
7575
nenv (0.3.0)
7676
nio4r (2.5.9)
77+
nokogiri (1.15.4-arm64-darwin)
78+
racc (~> 1.4)
7779
nokogiri (1.15.4-x86_64-linux)
7880
racc (~> 1.4)
7981
notiffany (0.1.3)
@@ -162,6 +164,7 @@ GEM
162164
ruby-next-core (0.15.3)
163165
ruby-progressbar (1.13.0)
164166
shellany (0.0.1)
167+
sqlite3 (1.6.6-arm64-darwin)
165168
sqlite3 (1.6.6-x86_64-linux)
166169
standalone_migrations (7.1.1)
167170
activerecord (>= 4.2.7, < 7.1.0, != 5.2.3.rc1, != 5.2.3)
@@ -177,6 +180,7 @@ GEM
177180
zeitwerk (2.6.12)
178181

179182
PLATFORMS
183+
arm64-darwin-22
180184
x86_64-linux
181185

182186
DEPENDENCIES
@@ -186,6 +190,7 @@ DEPENDENCIES
186190
debug
187191
guard
188192
guard-rspec
193+
pry
189194
rake
190195
rspec
191196
rubocop

README.md

+13-3
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,18 @@ This is a ruby kata exploring coupling &amp; cohesion in a typical messy app.
44
## Getting Started
55
- If you don't use [asdf](https://asdf-vm.com/), ensure you have the right ruby installed (see [.tool-versions](.tool-versions)).
66
- If you don't use [direnv](https://direnv.net/), ensure you have all the environment variables set (see [.envrc](.envrc)).
7-
- Run `bundle install`
8-
- Run `rake db:create db:migrate`
9-
- Run `rspec`
7+
1. Run `bundle install`
8+
2. Run `rake db:create db:migrate`
9+
3. Run `rspec`
1010

11+
Usage without variables is:
12+
1. Run `export SCHEMA=db/schema.rb`
13+
2. Run `bundle install`
14+
3. Run `rake db:create db:migrate`
15+
4. Run `rspec`
1116

17+
When in doubt do (or if you mess up the environment) use:
18+
```
19+
SCHEMA=db/schema.rb rake db:environment:set RAILS_ENV=development
20+
SCHEMA=db/schema.rb rake db:drop db:create db:migrate
21+
```

app/application.rb

+2
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
require 'controller'
88
require 'view'
99

10+
require 'pry'
11+
1012
loader = Zeitwerk::Loader.for_gem
1113

1214
loader.push_dir(__dir__)

0 commit comments

Comments
 (0)