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
[13] pry(main)> page.driver.headers = { "User-Agent" => "Poltergeist" } | |
2016-11-01T02:28:22 [DEBUG] CookieJar - Created but will not store cookies (use option '--cookies-file=<filename>' to enable persistent cookie storage) | |
2016-11-01T02:28:22 [DEBUG] Set "http" proxy to: "" : 1080 | |
2016-11-01T02:28:22 [DEBUG] Phantom - execute: Configuration | |
2016-11-01T02:28:22 [DEBUG] 0 objectName : "" | |
2016-11-01T02:28:22 [DEBUG] 1 cookiesFile : "" | |
2016-11-01T02:28:22 [DEBUG] 2 diskCacheEnabled : "false" | |
2016-11-01T02:28:22 [DEBUG] 3 maxDiskCacheSize : "-1" | |
2016-11-01T02:28:22 [DEBUG] 4 diskCachePath : "" | |
2016-11-01T02:28:22 [DEBUG] 5 ignoreSslErrors : "true" |
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
RAILS_TIMEZONES_TO_IOS = { | |
"Abu Dhabi" => "Asia/Muscat", | |
"Adelaide" => "Australia/Adelaide", | |
"Alaska" => "America/Juneau", | |
"Almaty" => "Asia/Almaty", | |
"Amsterdam" => "Europe/Amsterdam", | |
"Arizona" => "America/Phoenix", | |
"Astana" => "Asia/Dhaka", | |
"Athens" => "Europe/Athens", | |
"Atlantic Time (Canada)" => "America/Halifax", |
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
IOS_TIMEZONES_TO_RAILS = { | |
"Australia/Adelaide" => "Adelaide", | |
"Australia/Broken_Hill" => "Adelaide", | |
"America/Anchorage" => "Alaska", | |
"America/Juneau" => "Alaska", | |
"America/Nome" => "Alaska", | |
"America/Yakutat" => "Alaska", | |
"Pacific/Gambier" => "Alaska", | |
"Asia/Almaty" => "Almaty", | |
"Europe/Amsterdam" => "Amsterdam", |
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
➜ Rallyhood-Rails git:(add-nylas-for-email-contacts) ✗ bundle exec rspec spec/features | |
Run options: include {:focus=>true} | |
All examples were filtered out; ignoring {:focus=>true} | |
Randomized with seed 38308 | |
F.FF.FFF.F.FF..F.FFFFFFFFF..........The "fb-root" div has not been created, auto-creating | |
. | |
Failures: |
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 DeepFetch | |
def deep_fetch(*keys, &fetch_default) | |
throw_fetch_default = fetch_default && lambda {|key, coll| | |
args = [key, coll] | |
# only provide extra block args if requested | |
args = args.slice(0, fetch_default.arity) if fetch_default.arity >= 0 | |
# If we need the default, we need to stop processing the loop immediately | |
throw :df_value, fetch_default.call(*args) | |
} | |
catch(:df_value){ |
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
class Blur | |
include Mongoid::Document | |
field :name, type: String | |
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
development: | |
# Configure available database sessions. (required) | |
sessions: | |
# Defines the default session. (required) | |
default: | |
# Defines the name of the default database that Mongoid can connect to. | |
# (required). | |
database: milliards_development | |
# Provides the hosts the default session can connect to. Must be an array | |
# of host:port pairs. (required) |
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
/* | |
Copyright 2012 Igor Vaynberg | |
Version: 3.2 Timestamp: Mon Sep 10 10:38:04 PDT 2012 | |
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this work except in | |
compliance with the License. You may obtain a copy of the License in the LICENSE file, or at: | |
http://www.apache.org/licenses/LICENSE-2.0 |
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
# SQLite version 3.x | |
# gem install sqlite3 | |
# | |
# Ensure the SQLite 3 gem is defined in your Gemfile | |
# gem 'sqlite3' | |
development: | |
adapter: sqlite3 | |
database: db/development.sqlite3 | |
pool: 5 | |
timeout: 5000 |
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
GEM | |
remote: https://rubygems.org/ | |
specs: | |
actionmailer (4.0.0) | |
actionpack (= 4.0.0) | |
mail (~> 2.5.3) | |
actionpack (4.0.0) | |
activesupport (= 4.0.0) | |
builder (~> 3.1.0) | |
erubis (~> 2.7.0) |