Command Line
pry -r ./config/app_init_file.rb
- load your app into a pry session (look at the file loaded by config.ru)pry -r ./config/environment.rb
- load your rails into a pry session
Debugger
jnp-port [master] $ bower list | |
bower check-new Checking for new versions of the project dependencies... | |
foundation-ssg#1.0.0 /Users/JoeNoPhoto/Projects/jnp-port | |
├── PreloadJS#0.6.2 | |
├── Swiper#3.3.1 | |
├── classie#1.0.1 | |
├── fastclick#1.0.6 | |
├─┬ foundation-sites#6.2.1 (6.2.3 available) | |
│ ├── jquery#2.1.4 incompatible with ~2.2.0 (2.2.4 available, latest is 3.1.1) | |
│ └── what-input#2.0.1 (latest is 4.0.1) |
# --------------------------------------------------------------------------- | |
# | |
# Description: This file holds all my BASH configurations and aliases | |
# | |
# Sections: | |
# 1. Environment Configuration | |
# 2. Make Terminal Better (remapping defaults and adding functionality) | |
# 3. File and Folder Management | |
# 4. Searching | |
# 5. Process Management |
# /Users/JoeNoPhoto/Virtualenvs/nfldb/lib/python2.7/site-packages/nflgame/update_players.py:179: | |
last_name, first_name = map(lambda s: s.strip(), name.split(','))[:2] | |
#> psql nfldb -U nfldb | |
insert into team values('JAX','Jacksonville', 'Jaguars'); | |
insert into team values('LAC','Los Angeles', 'Chargers'); | |
#> nfldb-update | |
#> nflgame-update-players |
# Your init script | |
# | |
# Atom will evaluate this file each time a new window is opened. It is run | |
# after packages are loaded/activated and after the previous editor state | |
# has been restored. | |
# | |
# An example hack to log to the console when each text editor is saved. | |
# | |
# atom.workspace.observeTextEditors (editor) -> | |
# editor.onDidSave -> |
# Support for PostgreSQL enum types in Rails 5.2 (including schema dump) | |
module ActiveRecord | |
class SchemaDumper | |
def dump(stream) | |
header(stream) | |
extensions(stream) | |
enums(stream) | |
tables(stream) | |
trailer(stream) | |
stream |
Command Line
pry -r ./config/app_init_file.rb
- load your app into a pry session (look at the file loaded by config.ru)pry -r ./config/environment.rb
- load your rails into a pry sessionDebugger