First, add pry-rails to your Gemfile:
https://github.com/rweng/pry-rails
gem 'pry-rails', group: :developmentThen you'll want to rebuild your Docker container to install the gems
First, add pry-rails to your Gemfile:
https://github.com/rweng/pry-rails
gem 'pry-rails', group: :developmentThen you'll want to rebuild your Docker container to install the gems
| #!/bin/bash | |
| PROJECT_NAME=MyApp | |
| SCHEME_NAME=MyApp | |
| STARTTIME=$(date +%s); | |
| set -e | |
| set -x | |
| ### Install dependencies | |
| echo "--- Install dependencies [Time Elapsed $(($(date +%s) - $STARTTIME))s]" |
| # encoding: UTF-8 | |
| require 'optparse' | |
| require 'net/http' | |
| require 'json' | |
| def parse_options(argv) | |
| opts = {} | |
| @parser = OptionParser.new do |o| |
| #!/usr/bin/env zsh | |
| git show-branch -a \ | |
| | grep '\*' \ | |
| | grep -v `git rev-parse --abbrev-ref HEAD` \ | |
| | head -n1 \ | |
| | sed 's/.*\[\(.*\)\].*/\1/' \ | |
| | sed 's/[\^~].*//' | |
| # How it works: |
| # The fact that YAML.load will instantiate arbitrary ruby objects | |
| # means that calling `YAML.load` on untrusted data is virtually always | |
| # equivalent to executing arbitrary code in a complex app. | |
| # This code fragment globally neuters YAML to disable this behavior, | |
| # which should (hopefully) cut off all such attacks from the start. | |
| # I don't promise this closes all possible attacks, but this closes | |
| # off the trivial case. You should audit and upgrade all your | |
| # dependencies, as well. |
| # How expensive is DCI in Ruby? | |
| # http://news.ycombinator.com/item?id=4997498 | |
| RUBY_VERSION # => "1.9.3" | |
| RUBY_PATCHLEVEL # => 362 | |
| RUBY_PLATFORM # => "x86_64-darwin12.2.0" | |
| require 'benchmark' | |
| require 'delegate' | |
| require 'forwardable' |
| loadLocked = false | |
| page = 0 | |
| EndlessScroll = | |
| willPaginateEl: (selector = '.pagination') -> | |
| $(selector) | |
| initScroll: (el) -> | |
| el = @willPaginateEl() unless el |
| $stack, $draws = [], {} | |
| def method_missing *args | |
| return if args[0][/^to_/] | |
| $stack << args.map { |a| a or $stack.pop } | |
| $draws[$stack.pop(2)[0][0]] = args[1] if args[0] == :< | |
| end | |
| class Array | |
| def +@ |
| # SSL self signed localhost for rails start to finish, no red warnings. | |
| # 1) Create your private key (any password will do, we remove it below) | |
| $ openssl genrsa -des3 -out server.orig.key 2048 | |
| # 2) Remove the password | |
| $ openssl rsa -in server.orig.key -out server.key |