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
diff --git a/merb-core/Rakefile b/merb-core/Rakefile | |
index 1dbabaa..448e3c1 100644 | |
--- a/merb-core/Rakefile | |
+++ b/merb-core/Rakefile | |
@@ -230,6 +230,11 @@ end | |
setup_specs("mri", "spec") | |
setup_specs("jruby", "jruby -S spec") | |
+task "specs:core_ext" do | |
+ require "lib/merb-core/test/run_specs" |
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 required files | |
require 'rubygems' | |
gem 'merb-core', '>= 0' | |
require 'merb-core' | |
require 'rack/handler/grizzly' | |
require 'rack/adapter/merb' | |
require 'jruby/rack/grizzly_helper' | |
Merb::Rack::Adapter.register %w{grizzly}, :GrizzlyMerb | |
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
def add_variables(grizzly_env, env) | |
grizzly_env.to_hash.each do |k,v| | |
env[k] ||= v | |
end | |
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
## TEMPLATES | |
# Render an action | |
render :symbol | |
# Render a string | |
render "string" | |
# Render an object; will call to_#{content-type} on this if the default template is not found | |
display @obj |
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 "webrat/core" | |
module Webrat | |
class Session | |
include Merb::Test::MakeRequest | |
attr_accessor :response | |
def get(url, data, headers = nil) | |
do_request(url, data, headers, "GET") |
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
def self.load_dependencies | |
dependencies.each {|d| puts d} | |
dependencies.each do |dependency| | |
puts "ABOUT TO LOAD: #{dependency.to_s}" | |
Kernel.load_dependency(dependency) | |
end | |
nil | |
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
ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAtY3Of5hXBuEVA2+fmOjcsIuHf0zj5dwo5xcesA9EE6+J+mAEGeJHhk30IC41B0GBA0L0geBIy7tOieRSArVrsai6AeoyNMJ8nZT99DALA2NAdfKqWvDIDH+c5Ddq1YSKCnGgzaWOXBt28GWwMZ851TKN1U7iKJ2d3itxbH0b3jrvEaWbJVBAeCe7wgSiBy2AXAl42IAdQizhMYqf2QjFZuaq9PIaeH1ARDVV+RZJvNImHqZS0yAYAfpz3O7EcXPp5WUvw2+x6eletqwPJbvSTAc3eA29BfehDxw4tt8ugXpZie+o87fAJcr/YfLqdKiEjYRcBs0Wy69vIcIcTRGVsQ== [email protected] |
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
ey00-s00063 ~ # free -m | |
total used free shared buffers cached | |
Mem: 728 244 483 0 33 12 | |
-/+ buffers/cache: 197 530 | |
Swap: 783 83 700 | |
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
Merb::Router.prepare do | |
resources :foos | |
end | |
class Foos < Application | |
def show(foo) | |
# here you have access to the foo resource (either the raw DM object or a wrapper) | |
end | |
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
require 'hotcocoa' | |
include HotCocoa | |
# Replace the following code with your own hotcocoa code | |
class DemoApplication | |
def self.register(view_class) | |
view_classes << view_class |