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 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" |
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
class Grandparent | |
end | |
class Parent < Grandparent | |
end | |
class Child < Parent | |
end | |
class Grandparent |
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
# 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 |
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
{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", |
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
using System; | |
using System.Threading; | |
using RabbitMQ.Client; | |
using RabbitMQ.Client.Framing; | |
namespace rabbitPublisher | |
{ | |
class rabbitPublisher | |
{ | |
public static byte[] TestMessage = new byte[1024]; |
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
# ==== 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]) |
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
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 |
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 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 |
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
git log --pretty='format:%an' --no-merges | ruby -e 'puts STDIN.read.split("\n").uniq.join("\n")' | wc -l |
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
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 |