This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'ostruct' | |
require 'pry/config' | |
class Pry | |
# The RC Files to load. | |
HOME_RC_FILE = ENV["PRYRC"] || "~/.pryrc" | |
LOCAL_RC_FILE = "./.pryrc" | |
# @return [Hash] Pry's `Thread.current` hash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'ostruct' | |
require 'pry/config' | |
class Pry | |
# The RC Files to load. | |
HOME_RC_FILE = ENV["PRYRC"] || "~/.pryrc" | |
LOCAL_RC_FILE = "./.pryrc" | |
# @return [Hash] Pry's `Thread.current` hash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'pry/terminal' | |
# A pager is an `IO`-like object that accepts text and either prints it | |
# immediately, prints it one page at a time, or streams it to an external | |
# program to print one page at a time. | |
module Pry::Pager | |
class StopPaging < StandardError | |
end | |
# Send the given text through the best available pager (if `Pry.pager` is |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'thor' | |
require 'guard' | |
require 'guard/version' | |
require 'guard/dsl_describer' | |
require 'guard/guardfile' | |
module Guard | |
# Facade for the Guard command line interface managed by [Thor](https://github.com/wycats/thor). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Guard | |
module Commander | |
# Start Guard by evaluating the `Guardfile`, initializing declared Guard plugins | |
# and starting the available file change listener. | |
# Main method for Guard that is called from the CLI when Guard starts. | |
# | |
# - Setup Guard internals | |
# - Evaluate the `Guardfile` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'active_support/core_ext' | |
module M | |
end | |
class C | |
def m | |
puts 'm' | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Capybara | |
## | |
# | |
# The Session class represents a single user's interaction with the system. The Session can use | |
# any of the underlying drivers. A session can be initialized manually like this: | |
# | |
# session = Capybara::Session.new(:culerity, MyRackApp) | |
# | |
# The application given as the second argument is optional. When running Capybara against an external |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'celluloid' | |
require 'open-uri' | |
require 'cgi' | |
require 'benchmark' | |
module Enumerable | |
def pmap(&block) | |
futures = map do |elem| | |
puts "future" | |
Celluloid::Future.new(elem, &block) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'bundler/setup' | |
require 'pry' | |
require 'celluloid' | |
require 'capybara/dsl' | |
require 'capybara/webkit' | |
require 'faker' | |
require 'cgi' | |
Capybara.register_driver :selenium do |app| |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="row"> | |
<div class="col-xs-8 "> | |
<div class="post"> | |
<ul class="list-unstyled"> | |
<% @posts.each do |post| %> | |
<div class="title"> | |
<li class="text-left"> | |
<h4><%= link_to post.title, post, class: '' %></h4> | |
</li> | |
<li> |