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 'rubygems' | |
require 'sinatra' | |
require 'redis' | |
# To use, simply start your Redis server and boot this | |
# example app with: | |
# ruby example_note_keeping_app.rb | |
# | |
# Point your browser to http://localhost:4567 and enjoy! | |
# |
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 46b84175dfac14a92fd6bcf3b03bc3c3715ab6cb Mon Sep 17 00:00:00 2001 | |
From: nahi <nahi@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | |
Date: Sat, 6 Mar 2010 21:47:30 +0000 | |
Subject: [PATCH] backport the commit from trunk: | |
Sun Feb 28 11:49:35 2010 NARUSE, Yui <[email protected]> | |
* openssl/ossl.c (OSSL_IMPL_SK2ARY): for OpenSSL 1.0. | |
patched by Jeroen van Meeuwen at [ruby-core:25210] | |
fixed by Nobuyoshi Nakada [ruby-core:25238], | |
Hongli Lai [ruby-core:27417], |
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 | |
# | |
# http://gmarik.info/blog/2010/05/02/installing-ruby-1.8.6-on-OSX | |
# | |
sudo -s <<EOC | |
port install wget | |
port install git-core +bash_completion+doc+svn | |
port install ruby186 #apply http://gist.github.com/395524 patch | |
port install rb-rubygems +ruby186 | |
port install mysql5-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
From cb62ef6b779af793e17c4fdd2f4e915d993c228e Mon Sep 17 00:00:00 2001 | |
From: gmarik <[email protected]> | |
Date: Sat, 8 May 2010 00:56:15 +0300 | |
Subject: [PATCH] Fixes 'uninitialized constant User::Digest' error during rake db:setup | |
--- | |
config/initializers/d.libs/libs.rb | 1 + | |
1 files changed, 1 insertions(+), 0 deletions(-) | |
diff --git a/config/initializers/d.libs/libs.rb b/config/initializers/d.libs/libs.rb |
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
commit ad2d933b8e7152569260b2c90006045e63db708e | |
Author: nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | |
Date: Fri Jan 11 04:50:38 2008 | |
* dln.c: use dlopen on Mac OS X 10.3 or later. backport from trunk. | |
git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@14986 b2dd03c8-39d4-4d8f-98ff-823fe69b080e | |
diff --git dln.c dln.c |
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
# vim: ts=2:sw=2:et:ft=sh:: | |
pkgname=ruby | |
pkgver=1.8.6_p399 | |
_pkgver=1.8.6-p399 | |
pkgrel=1 | |
pkgdesc="Ruby - programmers best friend!" | |
arch=(i686 x86_64) | |
license=('custom') | |
url="http://www.ruby-lang.org/en/" | |
depends=('gdbm>=1.8.3' 'db>=4.7.25' 'openssl>=1.0' 'zlib>=1.2.3.3' 'readline>=5.2.013') |
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/sh | |
which rvm >/dev/null 2>&1 || (echo 'requires RVM' && exit 1) | |
RUBY=$(rvm list default string) | |
function install() | |
{ | |
echo " | |
Plan: |
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 | |
# | |
# http://gmarik.info/blog/2010/10/16/scraping-asp-net-site-with-mechanize | |
require 'rubygems' | |
require 'mechanize' | |
require 'logger' | |
user = 'user' | |
pass = 'pass' |
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
$ ARCHFLAGS="-arch i386 -arch x86_64" gem install -V mysql -- --with-mysql-config=/usr/local/mysql/bin/mysql_config | |
GET http://cdscm/latest_specs.4.8.gz | |
200 OK | |
GET http://rubygems.org/latest_specs.4.8.gz | |
302 Moved Temporarily | |
GET http://production.s3.rubygems.org/latest_specs.4.8.gz | |
200 OK | |
GET http://gemcutter.org/latest_specs.4.8.gz | |
302 Moved Temporarily | |
GET http://production.s3.rubygems.org/latest_specs.4.8.gz |
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
# Return the directories where we need to load configuration files | |
def process_model_dirs(app_manifest_filename=nil) | |
File.open(app_manifest_filename).each do |line| | |
str = line.chomp | |
if str != nil and str.length > 0 | |
#puts "model file: #{str}" | |
modelName = File.basename(File.dirname(str)) | |
Rhom::RhomObjectFactory.init_object(modelName) | |
require str |
OlderNewer