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
# switch default editor for pry to sublime text | |
Pry.config.editor = "subl" | |
# format prompt to be <Rails version>@<ruby version>(<object>)> | |
Pry.config.prompt = proc do |obj, level, _| | |
prompt = "\e[1;30m" | |
prompt << "#{Rails.version} @ " if defined?(Rails) | |
prompt << "#{RUBY_VERSION}" | |
"#{prompt} (#{obj})>\e[0m" | |
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
### Gemfile | |
source 'https://rubygems.org' | |
gem 'rspec', '2.11.0' | |
gem 'api_matchers', '0.1.1' | |
### spec | |
require 'api_matchers' | |
include APIMatchers::RSpecMatchers |
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 'json' | |
require "httparty" | |
require 'awesome_print' | |
class DynectPostBackTest | |
include HTTParty | |
base_uri 'https://emailapi.dynect.net/rest/json' | |
debug_output $stdout |
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
~/work$ cd bundle_check/ | |
~/work/bundle_check$ DEBUG_RESOLVER=1 bundle update | |
Fetching gem metadata from https://rubygems.org/........ | |
==== Iterating ==== | |
Activated: | |
Requirements: | |
tidy_ffi (= 0.1.4) ruby |
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
api_taster (0.4.7) lib/api_taster/route.rb:34:in `block in normalise_routes!' | |
journey (1.0.4) lib/journey/routes.rb:28:in `each' | |
journey (1.0.4) lib/journey/routes.rb:28:in `each' | |
api_taster (0.4.7) lib/api_taster/route.rb:29:in `normalise_routes!' | |
api_taster (0.4.7) lib/api_taster/route.rb:16:in `map_routes' | |
api_taster (0.4.7) app/controllers/api_taster/routes_controller.rb:27:in `map_routes' | |
activesupport (3.2.6) lib/active_support/callbacks.rb:418:in `_run__3802028313801974835__process_action__2474343883616983151__callbacks' | |
activesupport (3.2.6) lib/active_support/callbacks.rb:405:in `__run_callback' | |
activesupport (3.2.6) lib/active_support/callbacks.rb:385:in `_run_process_action_callbacks' | |
activesupport (3.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' |
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
# Resque tasks | |
require 'resque/tasks' | |
require 'resque_scheduler/tasks' | |
namespace :resque do | |
# slight modification of rake resque:work | |
# https://github.com/defunkt/resque/blob/master/lib/resque/tasks.rb | |
task :work_dont_fork => ["resque:preload", "resque:setup"] do | |
require 'resque' |
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
tail -n 500 newrelic_agent.log | |
[06/25/12 15:26:59 +0000 jobserver1.carrierpigeon-v2.production.ds.dfw1.incutio.com (16548)] DEBUG : Uncompressed content returned | |
[06/25/12 15:26:59 +0000 jobserver1.carrierpigeon-v2.production.ds.dfw1.incutio.com (16548)] DEBUG : Connect to collector-3.newrelic.com:80/agent_listener/8/8ad200de607a87ea5aea69753a686917843622b8/connect | |
[06/25/12 15:26:59 +0000 jobserver1.carrierpigeon-v2.production.ds.dfw1.incutio.com (16548)] DEBUG : Http Connection opened to 204.93.223.153:80 | |
[06/25/12 15:26:59 +0000 jobserver1.carrierpigeon-v2.production.ds.dfw1.incutio.com (16565)] DEBUG : Uncompressed content returned | |
[06/25/12 15:26:59 +0000 jobserver1.carrierpigeon-v2.production.ds.dfw1.incutio.com (16565)] DEBUG : Connect to collector-3.newrelic.com:80/agent_listener/8/8ad200de607a87ea5aea69753a686917843622b8/connect | |
[06/25/12 15:26:59 +0000 jobserver1.carrierpigeon-v2.production.ds.dfw1.incutio.com (16565)] DEBUG : Http Connection opened to 204.93.223.153:80 | |
[06/25/12 15:26:59 +0000 job |
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
Connecting to database specified by database.yml | |
New Relic Agent not running. | |
New Relic Agent not running. | |
(0.4ms) SELECT @@FOREIGN_KEY_CHECKS | |
(0.4ms) SET FOREIGN_KEY_CHECKS = 0 | |
(0.2ms) BEGIN | |
Fixture Delete (0.4ms) DELETE FROM `accounts` | |
snip.. |
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 'simplecov' | |
# SimpleCov.start 'rails' | |
# This file is copied to spec/ when you run 'rails generate rspec:install' | |
ENV["RAILS_ENV"] ||= 'test' | |
require File.expand_path("../../config/environment", __FILE__) | |
require 'rspec/rails' | |
require 'rspec/autorun' | |
require "cancan/matchers" | |
require 'database_cleaner' |