1 2345678910...
|
# Supress errors while executing a block, with execptions.
#
# CREDIT: David Heinemeier Hansson, Thomas Sawyer
def self.suppress(*exception_classes)
exception_classes.each do |e|
Language: Ruby LOC: 13 Spider_366 : Facets - An Extensive Additions and Extensions Li (project search) : .../lib/core/facets/exception/suppress.rb
|
# Supress errors while executing a block, with execptions.
#
# CREDIT: David Heinemeier Hansson, Thomas Sawyer
def self.suppress(*exception_classes)
exception_classes.each do |e|
Language: Ruby LOC: 13 Spider_366 : Facets - An Extensive Additions and Extensions Li (project search) : .../lib/core/facets/exception/suppress.rb
|
Copied from a ruby-talk posting by David Heinemeier Hansson:
==========================
LoadModule ruby_module libexec/httpd/mod_ruby.so
Language: Ruby LOC: 13 Spider_rubyforge01 : RubyForge Snippet - httpd.conf entry for mod_ruby (project search) : .../repository/rubyforge/RubyForge_Snippet_-_httpd.conf_entry_for_mod_ruby/RFSnippet26.rb
|
end
def test_mail_to
assert_equal "<a href=\"mailto:david@loudthinking.com\">david@loudthinking.com</a>", mail_to("david@loudthinking.com")
assert_equal "<a href=\"mailto:david@loudthinking.com\">David Heinemeier Hansson</a>", mail_to("david@loudthinking.com"...
assert_equal(
Language: Ruby LOC: 41 RubyForge (SVN) : Blinki - A Cool Ruby Wiki _ Blog (project search) : .../vendor/actionpack/test/template/url_helper_test.rb
|
# puts 'But this will'
#
# CREDIT: David Heinemeier Hansson
def silence_stream(*streams) #:yeild:
on_hold = streams.collect{ |stream| stream.dup }
Language: Ruby LOC: 36 Spider_366 : Facets - An Extensive Additions and Extensions Li (project search) : .../lib/core/facets/kernel/silence.rb
|
# puts 'But this will'
#
# CREDIT: David Heinemeier Hansson
def silence_stream(*streams) #:yeild:
on_hold = streams.collect{ |stream| stream.dup }
Language: Ruby LOC: 36 Spider_366 : Facets - An Extensive Additions and Extensions Li (project search) : .../lib/core/facets/kernel/silence.rb
|
# method. Accordingly, #mattr has been deprecated.
#
# CREDIT: David Heinemeier Hansson
def cattr( *syms )
writers, readers = syms.flatten.partition{ |a| a.to_s =~ /=$/ }
Language: Ruby LOC: 45 Spider_366 : Facets - An Extensive Additions and Extensions Li (project search) : .../lib/core/facets/class/cattr.rb
|
# method. Accordingly, #mattr has been deprecated.
#
# CREDIT: David Heinemeier Hansson
def cattr( *syms )
writers, readers = syms.flatten.partition{ |a| a.to_s =~ /=$/ }
Language: Ruby LOC: 45 Spider_366 : Facets - An Extensive Additions and Extensions Li (project search) : .../lib/core/facets/class/cattr.rb
|
# == Authors
#
# * David Heinemeier Hansson
#
# == Copying
Language: Ruby (c) 2006 David Heinemeier Hansson LOC: 13 Spider_366 : Facets - An Extensive Additions and Extensions Li (project search) : .../facets-2.7.0/lib/more/facets/daemonize.rb
|
# == Authors
#
# * David Heinemeier Hansson
#
# == Copying
Language: Ruby (c) 2006 David Heinemeier Hansson LOC: 13 Spider_366 : Facets - An Extensive Additions and Extensions Li (project search) : .../data.tar.gz.---/lib/more/facets/daemonize.rb
|
* This file is part of the symfony package.
* (c) 2004-2006 Fabien Potencier <fabien.potencier@symfony-project.com>
* (c) 2004 David Heinemeier Hansson
*
* For the full copyright and license information, please view the LICENSE
Language: PHP (c) 2004 David Heinemeier Hansson... LOC: 54 Google : swimtimes - Webapp to store swimming split...ults. (project search) : .../swimtimes/lib/symfony/helper/TagHelper.php
|
def make_dhh_moderator_of_Ruby_meeting
ruby_meeting = Meeting.find_or_create_by_name('Ruby')
dhh = User.find_by_username( "David Heinemeier Hansson" )
dhh = User.create( :username => "David Heinemeier Hansson", :password => "David Heinemeier Hansson" ) if dhh.nil?
ruby_meeting.accepts_role 'moderator', dhh
Language: Ruby LOC: 70 RubyForge (SVN) : School Demerits System (project search) : .../trunk/school_demerit_system/app/controllers/object_roles_controller.rb
|
* This file is part of the symfony package.
* (c) 2004-2006 Fabien Potencier <fabien.potencier@symfony-project.com>
* (c) 2004 David Heinemeier Hansson
*
* For the full copyright and license information, please view the LICENSE
Language: PHP (c) 2004 David Heinemeier Hansson... LOC: 62 Spider_293 : WiserPlatform (project search) : .../symfony-stable.tgz.---/symfony-1.0.12/lib/helper/TagHelper.php
|
* This file is part of the symfony package.
* (c) 2004-2006 Fabien Potencier <fabien.potencier@symfony-project.com>
* (c) 2004 David Heinemeier Hansson
*
* For the full copyright and license information, please view the LICENSE
Language: PHP (c) 2004 David Heinemeier Hansson... LOC: 62 Spider_320 : openyalim (project search) : .../openyalim/lib/symfony/helper/TagHelper.php
|
* This file is part of the symfony package.
* (c) 2004-2006 Fabien Potencier <fabien.potencier@symfony-project.com>
* (c) 2004 David Heinemeier Hansson
*
* For the full copyright and license information, please view the LICENSE
Language: PHP (c) 2004 David Heinemeier Hansson... LOC: 62 Spider_320 : openyalim (project search) : .../web/lib/symfony/helper/TagHelper.php
|
* This file is part of the symfony package.
* (c) 2004-2006 Fabien Potencier <fabien.potencier@symfony-project.com>
* (c) 2004 David Heinemeier Hansson
*
* For the full copyright and license information, please view the LICENSE
Language: PHP (c) 2004 David Heinemeier Hansson... LOC: 62 Spider_20090120_inc : Open Eats (project search) : .../oe_1.0/lib/symfony/helper/TagHelper.php
|
* This file is part of the symfony package.
* (c) 2004-2006 Fabien Potencier <fabien.potencier@symfony-project.com>
* (c) 2004 David Heinemeier Hansson
*
* For the full copyright and license information, please view the LICENSE
Language: PHP (c) 2004 David Heinemeier Hansson... LOC: 62 Spider_299 : Symfony Web PHP Framework (project search) : .../symfony-1.0.21.tgz/symfony-1.0.21/lib/helper/TagHelper.php
|
* This file is part of the symfony package.
* (c) 2004-2006 Fabien Potencier <fabien.potencier@symfony-project.com>
* (c) 2004 David Heinemeier Hansson
*
* For the full copyright and license information, please view the LICENSE
Language: PHP (c) 2004 David Heinemeier Hansson... LOC: 62 Spider_mobile_001 : Feedo, Voice enabled RSS aggregator (project search) : .../feedo/lib/symfony/helper/TagHelper.php
|
test "query string" do
assert_parses(
{"action" => "create_customer", "full_name" => "David Heinemeier Hansson", "customerId" => "1"},
"action=create_customer&full_name=David%20Heinemeier%20Hansson&customerId=1"
)
Language: Ruby LOC: 101 Spider_315 : ctBlog (project search) : .../actionpack/test/controller/request/query_string_parsing_test.rb
|
test "query string" do
assert_parses(
{"action" => "create_customer", "full_name" => "David Heinemeier Hansson", "customerId" => "1"},
"action=create_customer&full_name=David%20Heinemeier%20Hansson&customerId=1"
)
Language: Ruby LOC: 101 Spider_320 : Ruby/Rails Distro for OpenSolaris (project search) : .../data.tar.gz.---/test/controller/request/query_string_parsing_test.rb
|
test "query string" do
assert_parses(
{"action" => "create_customer", "full_name" => "David Heinemeier Hansson", "customerId" => "1"},
"action=create_customer&full_name=David%20Heinemeier%20Hansson&customerId=1"
)
Language: Ruby LOC: 101 Spider_364 : Mountain Climbing Journal (project search) : .../data.tar.gz.---/test/controller/request/query_string_parsing_test.rb
|
test "query string" do
assert_parses(
{"action" => "create_customer", "full_name" => "David Heinemeier Hansson", "customerId" => "1"},
"action=create_customer&full_name=David%20Heinemeier%20Hansson&customerId=1"
)
Language: Ruby LOC: 101 Spider_364 : Mountain Climbing Journal (project search) : .../actionpack-2.3.4/test/controller/request/query_string_parsing_test.rb
|
test "query string" do
assert_parses(
{"action" => "create_customer", "full_name" => "David Heinemeier Hansson", "customerId" => "1"},
"action=create_customer&full_name=David%20Heinemeier%20Hansson&customerId=1"
)
Language: Ruby LOC: 101 Spider_318 : Ajisto Schools (project search) : .../actionpack/test/controller/request/query_string_parsing_test.rb
|
test "query string" do
assert_parses(
{"action" => "create_customer", "full_name" => "David Heinemeier Hansson", "customerId" => "1"},
"action=create_customer&full_name=David%20Heinemeier%20Hansson&customerId=1"
)
Language: Ruby LOC: 101 Spider_331 : TrackRecord (project search) : .../actionpack/test/controller/request/query_string_parsing_test.rb
|
test "query string" do
assert_parses(
{"action" => "create_customer", "full_name" => "David Heinemeier Hansson", "customerId" => "1"},
"action=create_customer&full_name=David%20Heinemeier%20Hansson&customerId=1"
)
Language: Ruby LOC: 101 Spider_320 : Library a la Carte (project search) : .../actionpack/test/controller/request/query_string_parsing_test.rb
|
1 2345678910...
|