This file contains hidden or 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
| config.active_support.deprecation = proc do |message| | |
| @deprecation_messages ||= [] | |
| unless @deprecation_messages.include?(message) | |
| @deprecation_messages << message | |
| warn message | |
| end | |
| end |
This file contains hidden or 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
| #!/usr/bin/env ruby | |
| require 'rest-client' | |
| require 'json' | |
| USER = 'username' | |
| PASSWORD = 'password' | |
| CCI_API_URL = 'https://cci.example.com/api/v1' | |
| PIPELINE = 'cr' | |
| def resource(path) |
This file contains hidden or 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
| Stripe.card.createToken = function(form, handler){ handler(200, { error: { type: 'api_error', message: '**TEST** There was a problem with the Stripe API' } }) } |
This file contains hidden or 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
| Sidekiq::Testing.fake! do | |
| expect( | |
| Sidetiq::Handler.new.dispatch(CreateStatementsFromBillingDetails, Time.now - 1800) | |
| ).to be_truthy | |
| expect( | |
| Sidetiq::Handler.new.dispatch(CreateStatementsFromBillingDetails, Time.now - 900) | |
| ).to be_truthy | |
| end |
This file contains hidden or 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 'rack' | |
| describe 'config.ru' do | |
| it 'should parse' do | |
| expect do | |
| Rack::Builder.parse_file(File.expand_path('../../../config.ru', __FILE__)) | |
| end.not_to raise_error | |
| end | |
| end |
This file contains hidden or 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
| # Generated by app.launchthing.com on 2012-11-28 13:28:08. | |
| # This rule helps LaunchThing monitor your site. | |
| r301 "/launchthing/verify.site", "/launchthing/verify.site.1354109287" | |
| # : http://app.launchthing.com/projects/study-collection/rules/509e5f1adea69fd51a000002 | |
| r301 /explodingcinema/, "/explore?s=exploding%20cinema" | |
| # : http://app.launchthing.com/projects/study-collection/rules/509e5f1adea69fd51a000003 |
This file contains hidden or 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
| # Generated by app.launchthing.com on 2012-11-25 20:50:31. | |
| # http://app.launchthing.com/projects/study-collection/rules/509e5f1adea69fd51a000002 | |
| r301 /explodingcinema/, "/explore?s=exploding%20cinema" | |
| # http://app.launchthing.com/projects/study-collection/rules/509e5f1adea69fd51a000003 | |
| r301 /^\/(maziere|onlinekira)\//, "/explore?s=$1" | |
| # http://app.launchthing.com/projects/study-collection/rules/509e5f1adea69fd51a000004 | |
| r301 /^\/artistfiles\/(.*)?\.html?$/, "/explore?s=$1" |
This file contains hidden or 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
| # Generated by app.launchthing.com on 2012-11-24 22:35:47. | |
| # | |
| # LaunchThing project: http://app.launchthing.com/projects/study-collection/ | |
| # | |
| # http://app.launchthing.com/projects/study-collection/rules/509e5f1adea69fd51a000002 | |
| r301 /explodingcinema/, "/explore?s=exploding%20cinema" | |
| # http://app.launchthing.com/projects/study-collection/rules/509e5f1adea69fd51a000003 | |
| r301 /^\/(maziere|onlinekira)\//, "/explore?s=$1" |
This file contains hidden or 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
| DateTime.parse(ActiveRecord::Base.connection.execute("SELECT NOW();").fetch_row[0]).hour < 6 |
This file contains hidden or 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
| sudo lsof|grep -i gems|awk '{ print $9 }'|grep -oE "[^/]+\-[0-9\.]+\/"|sort|uniq |
NewerOlder