Skip to content

Instantly share code, notes, and snippets.

View michaelklishin's full-sized avatar

Michael Klishin michaelklishin

View GitHub Profile
require File.join(File.dirname(__FILE__), "spec_helper")
describe Merb::Controller, "._session_cookie_domain" do
before(:each) do
Merb::Config[:session_cookie_domain] = "specs.merbivore.com"
end
it 'is set to Merb::Config[:session_cookie_domain] by default' do
Merb::Controller._session_cookie_domain.should == "specs.merbivore.com"
Merb::Test::Fixtures::Controllers::CookiesController._session_cookie_domain.should == "specs.merbivore.com"
class Grandparent
end
class Parent < Grandparent
end
class Child < Parent
end
class Grandparent
# Set whether the Cookie is a secure cookie or not.
#
# +val+ must be a boolean.
def secure=(val)
@secure = val if val == true or val == false
@secure
end
{ssl_options, [{ciphers, ["ECDHE-ECDSA-AES256-SHA384","ECDHE-RSA-AES256-SHA384",
"ECDH-ECDSA-AES256-SHA384","ECDH-RSA-AES256-SHA384",
"DHE-RSA-AES256-SHA256","DHE-DSS-AES256-SHA256",
"AES256-SHA256","ECDHE-ECDSA-AES128-SHA256",
"ECDHE-RSA-AES128-SHA256","ECDH-ECDSA-AES128-SHA256",
"ECDH-RSA-AES128-SHA256","DHE-RSA-AES128-SHA256",
"DHE-DSS-AES128-SHA256","AES128-SHA256",
"ECDHE-ECDSA-AES256-SHA","ECDHE-RSA-AES256-SHA",
"DHE-RSA-AES256-SHA","DHE-DSS-AES256-SHA",
"ECDH-ECDSA-AES256-SHA","ECDH-RSA-AES256-SHA","AES256-SHA",
using System;
using System.Threading;
using RabbitMQ.Client;
using RabbitMQ.Client.Framing;
namespace rabbitPublisher
{
class rabbitPublisher
{
public static byte[] TestMessage = new byte[1024];
# ==== Returns
# String::
# The path to the log file. If this Merb instance is running as a daemon
# this will return +STDOUT+.
def log_file
if Merb::Config[:log_file]
Merb::Config[:log_file]
elsif Merb.testing?
log_path / "merb_test.log"
elsif !(Merb::Config[:daemonize] || Merb::Config[:cluster])
1)
ArgumentError in 'Merb::Controller callable actions should dispatch to callable actions'
Status should be of type Fixnum or known Symbol, was Symbol with value ok
/Users/antares/dev/opensource/merb/merb-core/spec/public/controller/../../../lib/merb-core/controller/merb_controller.rb:223:in `status='
/Users/antares/dev/opensource/merb/merb-core/spec/public/controller/controllers/base.rb:25:in `index'
/Users/antares/dev/opensource/merb/merb-core/spec/public/controller/../../../lib/merb-core/controller/abstract_controller.rb:269:in `send'
/Users/antares/dev/opensource/merb/merb-core/spec/public/controller/../../../lib/merb-core/controller/abstract_controller.rb:269:in `_call_action'
/Users/antares/dev/opensource/merb/merb-core/spec/public/controller/../../../lib/merb-core/controller/abstract_controller.rb:249:in `_dispatch'
/Users/antares/dev/opensource/merb/merb-core/spec/public/controller/../../../lib/merb-core/controller/merb_controller.rb:200:in `_dispatch'
/Users/antares/dev/opensource/merb/merb
commit 6697034331fca5a7277207d21bbbe3cd4a091584
Author: Michael S. Klishin <michael@novemberain.com>
Date: Thu Aug 7 18:17:24 2008 +0300
More verbose exception when status value is invalid.
diff --git a/lib/merb-core/controller/merb_controller.rb b/lib/merb-core/controller/merb_controller.rb
index f0db22a..f7e0005 100644
--- a/lib/merb-core/controller/merb_controller.rb
+++ b/lib/merb-core/controller/merb_controller.rb
git log --pretty='format:%an' --no-merges | ruby -e 'puts STDIN.read.split("\n").uniq.join("\n")' | wc -l
load File.dirname(__FILE__) / "form" / "helpers.rb"
load File.dirname(__FILE__) / "form" / "builder.rb"
class Merb::Controller
class_inheritable_accessor :_form_class
include Merb::Helpers::Form
end
Merb::BootLoader.after_app_loads do
class Merb::Controller