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
| module DeprecateAssertions | |
| def self.methods_to_replace | |
| [ | |
| :assert, | |
| :assert_block, | |
| :assert_equal, | |
| :assert_no_match, | |
| :assert_not_equal, | |
| :assert_nothing_raised, |
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
| #!/bin/bash | |
| ## Short introduction ## | |
| # It is supposed that you have MySQL and lot of files to backup. Done via mk-parallel-dump (maatkit). | |
| # Files (as well as DB dumps) are keept versioned, so you can revert to any state during last 20 days. Done via rdiff-backup. | |
| # Afterwards, files (with versioning metainfo) are transfered to FTP server. Done via duplicity. | |
| # Required software: | |
| # 1. maatkit (mk-parallel-dump) | |
| # 2. rdiff-backup |
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
| (function() { | |
| this.JST || (this.JST = {}); | |
| this.JST["templates/request_dialog/dialog"] = (function() { | |
| this.HandlebarsTemplates || (this.HandlebarsTemplates = {}); | |
| this.HandlebarsTemplates["request_dialog/dialog"] = Handlebars.template(function(Handlebars, depth0, helpers, partials, data) { | |
| helpers = helpers || Handlebars.helpers; | |
| var foundHelper, self = this; | |
| return "= form_tag :url => requests_path, :html => { :remote => true } do\n .error_messages\n"; |
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
| diff --git a/activerecord/lib/active_record/railties/databases.rake b/activerecord/lib/active_record/railties/databases.rake | |
| index f26e18b..d925d29 100644 | |
| --- a/activerecord/lib/active_record/railties/databases.rake | |
| +++ b/activerecord/lib/active_record/railties/databases.rake | |
| @@ -399,9 +399,11 @@ db_namespace = namespace :db do | |
| abcs = ActiveRecord::Base.configurations | |
| filename = ENV['DB_STRUCTURE'] || File.join(Rails.root, "db", "structure.sql") | |
| case abcs[Rails.env]['adapter'] | |
| - when /mysql/, 'oci', 'oracle' | |
| + when 'oci', 'oracle' |
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
| namespace :structure do | |
| desc 'Dump the database structure to an SQL file' | |
| task :dump => :environment do | |
| abcs = ActiveRecord::Base.configurations | |
| case abcs[Rails.env]['adapter'] | |
| when /mysql/, 'oci', 'oracle' | |
| ActiveRecord::Base.establish_connection(abcs[Rails.env]) | |
| File.open("#{Rails.root}/db/#{Rails.env}_structure.sql", "w+") { |f| f << ActiveRecord::Base.connection.structure_dump } | |
| when /postgresql/ | |
| ENV['PGHOST'] = abcs[Rails.env]['host'] if abcs[Rails.env]['host'] |
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
| (function() { | |
| var AdminVacationSorter; | |
| AdminVacationSorter = (function() { | |
| function AdminVacationSorter(parent_selector, children_selector) { | |
| var options; | |
| this.parent_selector = parent_selector; | |
| this.children_selector = children_selector; | |
| options = { |
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
| AdminVacationSorter = function(selector) { | |
| var selector = selector; | |
| var sortable = null; | |
| var options = { | |
| axis: 'y', | |
| containment: 'parent', | |
| cursor: 'move', | |
| update: update_handler, | |
| helper: ui_helper | |
| }; |
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
| root@tankbusta:~# cat /etc/logrotate.d/apache2 | |
| /var/log/apache2/*.log | |
| /var/www/*/logs/*-access.log | |
| /var/www/*/logs/*-error.log | |
| /var/www/*/www/*/log/production.log | |
| /var/www/*/www/*/log/development.log { | |
| daily | |
| missingok | |
| rotate 10 | |
| compress |
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
| ~/Projects/tmp/rails/activerecord git:(master*) (ruby-1.9.3-p0@rails32)» ruby -Itest test/cases/relations_test.rb -n test_except | |
| Using sqlite3 with Identity Map off | |
| Run options: -n test_except --seed 29142 | |
| # Running tests: | |
| F | |
| Finished tests in 0.250804s, 3.9872 tests/s, 15.9487 assertions/s. |
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 'base64' | |
| class WebMailViewer < Sinatra::Base | |
| configure(:integration, :development, :test) do | |
| enable :logging | |
| end | |
| before do | |
| if ActionMailer::Base.delivery_method != :file |