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
# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4 | |
# $Id: Portfile 50687 2009-05-06 22:32:26Z [email protected] $ | |
PortSystem 1.0 | |
name tokyocabinet | |
version 1.4.19 | |
categories databases | |
maintainers nomaintainer | |
platforms darwin |
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
# $Id: Portfile 49827 2009-04-18 17:27:01Z [email protected] $ | |
PortSystem 1.0 | |
name tokyotyrant | |
version 1.1.24 | |
categories databases | |
maintainers openmaintainer [email protected] | |
platforms darwin | |
description Tokyo Cabinet remote server |
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
diff --git a/vendor/ohm-0.0.17/lib/ohm.rb b/vendor/ohm-0.0.17/lib/ohm.rb | |
index 3496ec3..6beb682 100644 | |
--- a/vendor/ohm-0.0.17/lib/ohm.rb | |
+++ b/vendor/ohm-0.0.17/lib/ohm.rb | |
@@ -535,7 +535,7 @@ module Ohm | |
end | |
def write_remote(att, value) | |
- db.set(key(att), value) | |
+ value.nil? ? db.del(att) : db.set(key(att), 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
diff --git a/lib/bureaucrat/fields.rb b/lib/bureaucrat/fields.rb | |
index fcf8ff0..983a83c 100644 | |
--- a/lib/bureaucrat/fields.rb | |
+++ b/lib/bureaucrat/fields.rb | |
@@ -131,8 +131,9 @@ module Bureaucrat | |
def initialize_copy(original) | |
super(original) | |
- @initial = original.initial ? original.initial.dup : original.initial | |
- @label = original.label ? original.label.dup : original.label |
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
bruno@faust ~> brew install cmus | |
==> Downloading http://downloads.sourceforge.net/sourceforge/lame/lame-3.98.4.tar.gz | |
######################################################################## 100.0% | |
==> ./configure --disable-debug --prefix='/usr/local/Cellar/lame/3.98.4' --enable-nasm | |
==> make install | |
/usr/local/Cellar/lame/3.98.4: 19 files, 1.8M, built in 38 seconds | |
==> Downloading https://sourceforge.net/projects/cmus/files/cmus-v2.3.3.tar.bz2/download | |
######################################################################## 100.0% | |
==> ./configure prefix=/usr/local/Cellar/cmus/2.3.3 mandir=/usr/local/Cellar/cmus/2.3.3/share/man | |
==> make install |
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 Bureaucrat | |
module Quickfields | |
def date(name, options = {}) | |
field name, DateField.new(options) | |
end | |
end | |
module Fields | |
class DateField < RegexField | |
DATE_RE = %r{^(19|20)\d\d[- /.](0[1-9]|1[012])[- /.](0[1-9]|[12][0-9]|3[01])$} |
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
# ==== Database connection | |
DATABASE_URL = if File.exists?(root_path('config/database.yml')) | |
YAML.load(File.read('config/database.yml'))[RACK_ENV.to_sym] | |
end | |
if DATABASE_URL | |
DB = Sequel.connect(DATABASE_URL) | |
else | |
# Use in-memory sqlite if no db has been specified (probably running tests) |
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 Cutest | |
VERSION = "1.0.0.beta" | |
class AssertionFailed < StandardError | |
end | |
class Scope | |
def initialize(&scope) | |
@scope = scope | |
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
def login(username, password) | |
user_id = authenticate(:user, username, password) | |
if user_id | |
session[:user] = user_id | |
return true | |
else | |
return false | |
end | |
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
class Widget | |
include Utils | |
class << self | |
attr_accessor :needs_multipart_form, :is_hidden | |
end | |
@needs_multipart_form = false | |
@is_hidden = false |
OlderNewer