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 'lib/helpers.rb' | |
class Rdoc < Thor | |
desc "generate", "generates the rDoc documentation" | |
def generate | |
require 'rdoc' | |
require 'rake/rdoctask' | |
gem 'darkfish-rdoc' | |
require 'darkfish-rdoc' | |
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 Merb | |
module FlansHelper | |
def sexify(model) | |
model.class.properties.each do |p| | |
t = ::DataMapper::Types | |
result = '' | |
case p.type | |
when t::Boolean, TrueClass | |
result += label :"#{p.name}" | |
result += check_box :"#{p.name}" |
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 | |
base = File.dirname(__FILE__) + "/../code/git-wiki" | |
require base + '/git-wiki' | |
set :public, base + '/public' | |
set :port, 4567 | |
set :env, :production | |
disable :run, :reload | |
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
==> Installing desktop file: pida.desktop | |
==> WARNING: fblint says some needed variables are missing or incomplete. | |
Abort the build unless you know what you are doing. | |
==> Attempting to mount chroot directories... | |
mount: none already mounted or /var/chroot/current/proc busy | |
mount: according to mtab, none is already mounted on /var/chroot/current/proc | |
mount: none already mounted or /var/chroot/current/sys busy | |
mount: according to mtab, none is already mounted on /var/chroot/current/sys | |
==> Successfully mounted chroot directories. | |
==> Updating the chroot environment |
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
# Compiling time: 0.04 SBU | |
# Contributor: Othmane Benkirane (Rhyhann) <eo-at-rhyhann-net> | |
# Maintainer: | |
# Software | |
pkgname=pida | |
pkgver=0.5.1 | |
pkgrel=0 | |
pkgdesc="A python IDE that uses vim/emacs as its editor" | |
url="http://pida.co.uk" |
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
# Generations | |
%w( | |
rubygems dm-core | |
haml dm-aggregates | |
sinatra dm-is-paginated | |
uv dm-is-slugged | |
ostruct dm-tags | |
).each {|n| require(n)} | |
configure do |
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
# Generations | |
%w( | |
rubygems dm-core | |
sinatra dm-aggregates | |
uv dm-is-paginated | |
ostruct dm-types | |
ritex dm-tags | |
maruku dm-validations | |
).each {|n| require(n)} | |
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
(hy@sb) irb | |
irb(main):001:0> require 'blog.rb' | |
== Performing Up Migration #1: auto_migrate | |
ALTER TABLE "posts" ADD COLUMN "categories" VARCHAR DEFAULT NULL | |
-> 0.0030s | |
ALTER TABLE "posts" ADD COLUMN "tags" VARCHAR DEFAULT NULL | |
-> 0.0015s | |
-> 0.0056s | |
=> true | |
irb(main):002:0> Post.all |
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 'dm-migrations' | |
require 'migration_runner' | |
module DataMapper | |
module Types | |
class TagCollection < DataMapper::Type | |
primitive String | |
def self.load(value, property) | |
value.split(', ').to_a | |
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
(hy@sb) ruby spec.rb | |
/usr/lib/ruby/gems/1.8/gems/rspec-1.1.11/lib/spec/interop/test/unit/testcase.rb:23: uninitialized constant Test::Unit::TestCase::Spec (NameError) | |
from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require' | |
from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require' | |
from /usr/lib/ruby/gems/1.8/gems/rspec-1.1.11/lib/spec/interop/test.rb:4 | |
from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require' | |
from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `require' | |
from /usr/lib/ruby/gems/1.8/gems/sinatra-0.3.2/lib/sinatra/test/rspec.rb:2 | |
from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require' | |
from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require' |
OlderNewer