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
de: | |
flash: | |
actions: | |
create: | |
notice: "%{resource_name} wurde erfolgreich gespeichert." | |
update: | |
notice: "%{resource_name} wurde erfolgreich bearbeitet." | |
destroy: | |
notice: "%{resource_name} wurde erfolgreich gelöscht." | |
alert: "%{resource_name} konnte nicht gelöscht werden." |
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
de: | |
simple_form: | |
"yes": 'Ja' | |
"no": 'Nein' | |
required: | |
text: 'erfordert' | |
mark: '*' | |
error_notification: | |
default_message: "Es gab folgende Fehler:" |
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
namespace :ci do | |
desc "Run all required tasks to perform our build" | |
task :build do | |
RAILS_ENV = ENV['RAILS_ENV'] = 'test' | |
sh "bundle --quiet" | |
Rake::Task["db:migrate"].invoke | |
Rake::Task["db:test:prepare"].invoke | |
Rake::Task["db:seed"].invoke | |
Rake::Task["spec"].invoke | |
RAILS_ENV = ENV['RAILS_ENV'] = 'cucumber' |
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
SELECT CONCAT(permission_id, "-", role_id) AS identifier, COUNT(role_id) AS count | |
FROM permissions_roles | |
GROUP BY identifier | |
HAVING count > 1 | |
ORDER BY count; |
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
#!/usr/bin/env ruby | |
# CIJoe mail notification script. | |
# Some things in here are shamelessly ripped from | |
# http://gist.github.com/374030 | |
# | |
# Call this from your hooks (build-worked, build-failed) with something like: | |
# ~/ci/scripts/mail.rb ~/ci/PROJECT/ CIJOE_URL BRANCH | |
# | |
# Requirements |
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
#!/bin/bash | |
if [ $# -ne 1 ]; then PATHDIR=`pwd`; else PATHDIR=~/Sites/"$1"; fi | |
/usr/bin/osascript <<EOF | |
set actions to {"./script/server", "bundle exec spork rspec", "bundle exec autospec", "git pull --rebase && mate ."} | |
on new_tab() | |
tell application "System Events" to tell process "Terminal" \ | |
to keystroke "t" using command down |
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 AuthenticationHelpers | |
def current_user_session | |
return @current_user_session if defined?(@current_user_session) | |
@current_user_session = UserSession.find | |
end | |
def current_user | |
return @current_user if defined?(@current_user) | |
@current_user = current_user_session && current_user_session.user |
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
# rubygems DNS is temporarily down, put this into your /etc/hosts to install gems, | |
# but don't forget to remove the entries once their DNS is back up again | |
72.4.120.124 rubygems.org | |
207.171.181.231 production.s3.rubygems.org | |
216.137.45.24 production.cf.rubygems.org |
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
From 22f184268e27474faf93b2d06893f42593b084e1 Mon Sep 17 00:00:00 2001 | |
From: dbloete <mail@dennisbloete.de> | |
Date: Tue, 25 May 2010 22:07:35 +0200 | |
Subject: [PATCH] Fix compass/sass deprecation warnings | |
--- | |
Rakefile | 2 +- | |
stylesheets/_base.sass | 2 +- | |
stylesheets/_layout.sass | 2 +- | |
stylesheets/_library.sass | 12 +++--- |
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
html, body, div, form, fieldset, legend, label { | |
margin: 0; | |
padding: 0; | |
} | |
table { | |
border-collapse: collapse; | |
border-spacing: 0; | |
} |