Public Gists by paul

Gravatar
Tue Nov 17 11:45:36 -0800 2009
1
2
3
# Common Accept headers
* FF: `text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8`
* Safari: `application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5`
Gravatar
Tue Nov 17 09:22:56 -0800 2009
1
2
3
diff --git a/actionpack/test/dispatch/request_test.rb b/actionpack/test/dispatch/request_test.rb
index b62df9a..e1e7383 100644
--- a/actionpack/test/dispatch/request_test.rb
Gravatar
Mon Nov 09 13:01:14 -0800 2009
1
2
3
require 'rubygems'
require 'rbench'
 
Gravatar
Thu Oct 15 09:30:57 -0700 2009
1
2
3
% rake spec --trace
(in /home/rando/development/api/alarm)
** Invoke spec (first_time)
Gravatar
Wed Oct 14 15:31:30 -0700 2009
1
2
3
module ActionView
  module TemplateHandlers
    class SsjRb < TemplateHandler
Gravatar
Tue Oct 13 10:36:26 -0700 2009
1
2
3
{
  :href => article_url(@article),
  :title => "Lorem Ipsum",
Gravatar
Fri Oct 09 16:25:17 -0700 2009
1
2
3
module Rack
  class AccessControl
 
Gravatar
Fri Oct 09 16:22:12 -0700 2009
1
2
3
require 'hitimes'
 
module Rack
Gravatar
Wed Oct 07 10:29:26 -0700 2009
1
2
3
<h1><%= header %></h1>
<% if not item.empty? %>
  <ul>
Gravatar
Fri Sep 04 17:43:13 -0700 2009
1
2
3
module ActionView
  module TemplateHandlers
    class JsonRb < TemplateHandler
Gravatar
Fri Sep 04 17:37:04 -0700 2009
1
2
3
require 'json'
 
class BigDecimal
Gravatar
Fri Aug 14 09:47:17 -0700 2009
1
2
3
% /usr/bin/ruby -e "puts 0.15"
0.15
 
Gravatar
Thu Aug 13 17:36:47 -0700 2009
1
2
3
% /usr/bin/ruby --version
ruby 1.8.7 (2009-06-08 patchlevel 173) [x86_64-linux]
 
Gravatar
Thu Jul 30 09:45:45 -0700 2009
1
2
3
package "dev-db/postgresql-server"
 
service "postgresql" do
Gravatar
Thu Jul 30 09:44:48 -0700 2009
1
2
3
package "dev-db/postgresql-server"
 
service "postgresql" do
Gravatar
Mon Jul 27 19:33:45 -0700 2009
1
2
3
require 'rubygems'
require 'rack'
 
Gravatar
Wed Jul 22 15:29:27 -0700 2009
1
2
3
irb(main):021:0> pp Article.relationships
{"last_comment"=>
  #<DataMapper::Associations::OneToOne::Relationship:0x7fd0f0b1f260
Gravatar
Wed Jul 22 15:15:11 -0700 2009
1
2
3
#<DataMapper::Reference:0x7f1ebe721760
  @child_key=[#<DataMapper::Property @model=Comment @name=:article_href>],
  @child_model=Comment,
Gravatar
Sun Jul 19 21:06:26 -0700 2009
1
2
3
 
# Your Web Service Might Not Be RESTful If...
 
Gravatar
Fri Jul 17 13:00:14 -0700 2009
1
2
3
 
# Your Web Service Might Not Be RESTful If...