Public Gists by ddollar

Gravatar
Thu Nov 12 15:54:40 -0800 2009
1
2
3
require 'rubygems'
require 'rack'
require 'ruby-debug'
Gravatar
Thu Nov 05 12:43:26 -0800 2009
1
2
3
require File.dirname(__FILE__) + '/spec_helper'
 
describe "The library itself" do
gist: 218969 Bundler Preinitializer
Gravatar
Mon Oct 26 12:50:16 -0700 2009
1
2
3
require "#{File.dirname(__FILE__)}/../vendor/bundler_gems/environment"
 
class Rails::Boot
Gravatar
Fri Oct 23 13:13:38 -0700 2009
1
2
3
[~/Code/gemcutter] git push gemcutter-staging +my-gem-downloads:master
Counting objects: 22, done.
Delta compression using up to 4 threads.
Gravatar
Wed Oct 21 12:45:53 -0700 2009
1
2
3
From cfb7445d347e53ec15e47f0f9e1372db627b315b Mon Sep 17 00:00:00 2001
From: David Dollar <ddollar@gmail.com>
Date: Wed, 21 Oct 2009 15:44:57 -0400
Gravatar
Wed Oct 21 12:42:09 -0700 2009
1
2
3
[~/Code/gemcutter] rake --trace
(in /Users/ddollar/Code/gemcutter)
rake aborted!
Gravatar
Wed Oct 21 12:38:48 -0700 2009
1
2
gemcutter> Version.release.latest.select { |v| v.rubygem.name == 'json' }.map { |v| "#{v.number} #{v.platform}" }
=> ["1.1.9 ruby", "1.1.9 x86-mswin32", "1.1.5 x86-linux", "1.1.1 mswin32"]
Gravatar
Wed Oct 21 11:29:15 -0700 2009
1
2
3
require 'cgi'
require 'rubygems'
require 'rest_client'
Gravatar
Fri Oct 16 16:16:43 -0700 2009
1
2
3
$ git clone git@gist.github.com:150410.git gist-150410
 
Initialized empty Git repository in /Users/david/Code/gist-150410/.git/
Gravatar
Thu Oct 15 11:46:28 -0700 2009
1
2
3
** Last message in was {'EXIT',<0.11894.35>,
                        {{nocatch,
                          {'EXIT',
Gravatar
Thu Oct 15 08:09:22 -0700 2009
1
2
3
[ddollar@platinum.local] [00:06]
[/tmp] curl http://gemcutter.org/gems/win32-nio.json
{"downloads":4,"name":"win32-nio","authors":"Daniel J. Berger","version":"0.0.2","rubyforge_project":"win32utils","info":" The win32-nio library implements certain IO methods using native\n Windows function calls rather than using the POSIX compatibility\n layer that MRI typically uses. In addition, some methods provide\n additional event handling capability.\n"}
gist: 209307 Encode/Decode
Gravatar
Tue Oct 13 08:54:00 -0700 2009
1
2
3
require 'rubygems'
require 'uuidtools'
 
Gravatar
Fri Oct 02 07:06:45 -0700 2009
1
2
3
  named_scope :matches, lambda { |value| {
    :select => sanitize_sql(["addresses.*, match(value) against(? in boolean mode) as relevancy", wildcardize(value)]),
    :conditions => ["match(value) against(? in boolean mode)", wildcardize(value)],
Gravatar
Wed Sep 30 11:04:48 -0700 2009
1
2
3
$ wget http://gemcutter.org/latest_specs.4.8.gz
--2009-09-30 14:04:03-- http://gemcutter.org/latest_specs.4.8.gz
Resolving gemcutter.org (gemcutter.org)... 75.101.145.87
Gravatar
Tue Sep 22 16:12:29 -0700 2009
1
2
3
#!/usr/bin/env ruby
 
# requires the rick-linode gem
Gravatar
Mon Sep 21 19:27:06 -0700 2009
1
2
3
$ irb
>> require 'mongomapper'
NameError: undefined method `==' for class `ActiveSupport::BasicObject'
Gravatar
Sun Sep 20 14:12:47 -0700 2009
1
2
3
I have documents
 
{ name:'one', options:[1,2,3,4,5] }
gist: 177416 Installed Ports
Gravatar
Fri Aug 28 23:45:55 -0700 2009
1
2
3
#!/usr/bin/env ruby
 
desired = File.read(File.expand_path('~/.port_leaves.exclude')).split("\n")
Gravatar
Wed Aug 26 19:15:44 -0700 2009
1
2
3
%h1 foo
 
#stuff
Gravatar
Tue Aug 25 18:04:17 -0700 2009
1
2
3
  # truncates html text to the desired text length.
  # Like the Rails _truncate_ helper but doesn't break HTML tags or entities.
  #