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/sh | |
# | |
# MacPorts generated daemondo support script | |
# | |
# | |
# Init | |
# | |
prefix=/opt/local |
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 | |
def run | |
require 'rubygems' | |
require 'nokogiri' | |
require 'open-uri' | |
lh_api = "c969b955085e607c2450a58a0f3cde66be4f7c5f"; | |
gem 'rails', '2.3.5' |
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 | |
section_start = '## devstart -- section marker - do not touch' | |
section_end = '## devend -- section marker - do not touch' | |
ips = { | |
:vidal => '3.141', | |
:jose => '3.138', | |
:alejandro => '3.139', | |
:roberto => '3.140', |
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
+apache2 | |
+bash_completion | |
+fastcgi | |
+graphviz | |
+gs | |
+gzip_static | |
+no_x11 | |
+passenger | |
+pear | |
+perl |
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 | |
project = ARGV.shift or raise "Project not provided" | |
require 'rubygems' | |
gem 'rails', '<3' | |
gem 'lighthouse-api', '<2' | |
require 'lighthouse' | |
lh_api = "c969b955085e607c2450a58a0f3cde66be4f7c5f"; |
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
abstract (1.0.0) | |
actionmailer (3.0.0, 2.3.9, 2.3.8, 2.3.5, 2.3.4, 2.3.2) | |
actionpack (3.0.0, 2.3.9, 2.3.8, 2.3.5, 2.3.4, 2.3.2) | |
activemodel (3.0.0, 3.0.0.beta3) | |
activerecord (3.0.0, 2.3.9, 2.3.8, 2.3.5, 2.3.4, 2.3.2) | |
activeresource (3.0.0, 2.3.9, 2.3.8, 2.3.5, 2.3.4, 2.3.2) | |
activesupport (3.0.0, 2.3.9, 2.3.8, 2.3.5, 2.3.4, 2.3.2) | |
acts-as-taggable-on (2.0.6, 1.1.7) | |
addressable (2.1.1) | |
ansi (1.2.2) |
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
## subclass for chained labelling methods | |
class LabellingFormBuilder < ActionView::Helpers::FormBuilder | |
include ActionView::Helpers::TagHelper | |
def text_field_with_labelling( method, options={}) | |
label(method) + text_field_without_labelling( method, options) | |
end | |
alias_method_chain :text_field, :labelling | |
def date_select_with_labelling( method, options={}, html_options={}) | |
label(method) + date_select_without_labelling( method, options, html_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
class CatalogArea | |
# == Schema Information | |
# | |
# Table name: catalog_areas | |
# | |
# id :integer(4) not null, primary key | |
# name :string(255) | |
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
namespace :test do | |
Rake::TestTask.new(:master => "test:prepare") do |t| | |
def t.file_list | |
changed_since_checkin = silence_stderr { `git diff --name-only master` }.map { |path| path.chomp } | |
models = changed_since_checkin.select { |path| path =~ /app[\\\/]models[\\\/].*\.rb$/ } | |
controllers = changed_since_checkin.select { |path| path =~ /app[\\\/]controllers[\\\/].*\.rb$/ } | |
unit_tests = models.map { |model| "test/unit/#{File.basename(model, '.rb')}_test.rb" } | |
functional_tests = controllers.map { |controller| "test/functional/#{File.basename(controller, '.rb')}_test.rb" } |
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
def guid | |
secs, microsecs = ("%.6f" % Time.now.to_f).split('.') | |
sprintf( "%05x%s-%s-%s-%s-%08x%s", microsecs.to_i, rand_hex(3), rand_hex(4), rand_hex(4), rand_hex(4), secs.to_i, rand_hex(4)) | |
end |