```
r: reload-code # reload current file, or given file; only works in .rb files (not ERB), and doesn't reload the currently-executing method
q: exit
```
In .pryrc, these are specified as `Pry.commands.alias_command "c", "continue"` and so on.
Also: ~/.irbrc works similarly for binding.irb!
```
r: reload-code # reload current file, or given file; only works in .rb files (not ERB), and doesn't reload the currently-executing method
q: exit
```
In .pryrc, these are specified as `Pry.commands.alias_command "c", "continue"` and so on.
Also: ~/.irbrc works similarly for binding.irb!
```
c: continue
n: next # execute next line
s: step # step into next method call
f: finish # finish current frame (e.g. method)
v: ls -l # show local vars
i: ls -i # show ivars
w: whereami
t: backtrace
u: up # move up call stack
d: down # move down call stack
```
```
c: continue
n: next # execute next line
s: step # step into next method call
f: finish # finish current frame (e.g. method)
v: ls -l # show local vars
i: ls -i # show ivars
w: whereami
t: backtrace
u: up # move up call stack
d: down # move down call stack
```
github.com/palkan/isola... – detects non-atomic interactions within DB transactions
github.com/Darhazer/act... – custom RSpec matchers for record creation
github.com/widefix/actu... – automatically keeps DB schema in sync across branches
github.com/palkan/isola... – detects non-atomic interactions within DB transactions
github.com/Darhazer/act... – custom RSpec matchers for record creation
github.com/widefix/actu... – automatically keeps DB schema in sync across branches
github.com/heartcombo/h... – map incoming controller parameters to named scopes
Better AR-like objects:
github.com/kaspth/activ... – extract collaborator objects from records
github.com/DmitryTsepel... – wrap JSON-backed DB columns with ActiveModel-like classes
github.com/heartcombo/h... – map incoming controller parameters to named scopes
Better AR-like objects:
github.com/kaspth/activ... – extract collaborator objects from records
github.com/DmitryTsepel... – wrap JSON-backed DB columns with ActiveModel-like classes
github.com/keygen-sh/un... – create associations that combine multiple associations
github.com/bensheldon/a... – association methods for "top N" queries
github.com/MaxLap/activ... – apply conditions based on the associations of your records
github.com/keygen-sh/un... – create associations that combine multiple associations
github.com/bensheldon/a... – association methods for "top N" queries
github.com/MaxLap/activ... – apply conditions based on the associations of your records
github.com/jenseng/hair... – if you'd rather define triggers inside models
github.com/nepalez/pg_t... – the kitchen sink for migrations
github.com/fatkodima/on... – detects unsafe migrations; like strong_migrations but more automated, and Postgres-specific
github.com/jenseng/hair... – if you'd rather define triggers inside models
github.com/nepalez/pg_t... – the kitchen sink for migrations
github.com/fatkodima/on... – detects unsafe migrations; like strong_migrations but more automated, and Postgres-specific
github.com/ilyakatz/dat... – data migrations
github.com/scenic-views... – DB view migrations
github.com/teoljungberg... – DB trigger and function migrations
github.com/ilyakatz/dat... – data migrations
github.com/scenic-views... – DB view migrations
github.com/teoljungberg... – DB trigger and function migrations
github.com/djezzzl/data... – detects mismatches between the schema and models
github.com/toptal/datab... – improve performance by using DB validations within Active Record
github.com/jhollinger/o... – high-performance query API for use alongside Active Record
github.com/djezzzl/data... – detects mismatches between the schema and models
github.com/toptal/datab... – improve performance by using DB validations within Active Record
github.com/jhollinger/o... – high-performance query API for use alongside Active Record
github.com/plentz/lol_dba – scans models to find columns that should be indexed
github.com/gregnavis/ac... – detects schema issues to keep your DB performant and correct
github.com/plentz/lol_dba – scans models to find columns that should be indexed
github.com/gregnavis/ac... – detects schema issues to keep your DB performant and correct
github.com/ankane/dexter – automatic indexer for Postgres
github.com/pawurb/ruby-... – Postgres performance insights
github.com/ankane/dexter – automatic indexer for Postgres
github.com/pawurb/ruby-... – Postgres performance insights
IRB.conf[:COMMAND_ALIASES][:c] = :continue
IRB.conf[:COMMAND_ALIASES][:c] = :continue
I added this to a monitoring mixin, so that the name of the method where something is logged doesn't have to be passed explicitly.
I added this to a monitoring mixin, so that the name of the method where something is logged doesn't have to be passed explicitly.
The `.split(" ").last` is because the caller location is a string that can be either just the method name, or something like `"rescue in method_name"`, `"block in method_name"`, and a few other variations.
The `.split(" ").last` is because the caller location is a string that can be either just the method name, or something like `"rescue in method_name"`, `"block in method_name"`, and a few other variations.