DG MS; queue works. just need to move some tests over.
This commit is contained in:
parent
4cecb522b6
commit
3371b87fff
4 changed files with 8 additions and 10 deletions
7
Gemfile
7
Gemfile
|
|
@ -5,18 +5,17 @@ gem 'mongrel'
|
||||||
gem 'thin'
|
gem 'thin'
|
||||||
gem 'em-http-request'
|
gem 'em-http-request'
|
||||||
gem 'addressable'
|
gem 'addressable'
|
||||||
gem "mongoid", :git => "http://github.com/durran/mongoid.git"
|
gem "mongoid", :git => "git://github.com/durran/mongoid.git"
|
||||||
gem "bson_ext", "1.0.1"
|
gem "bson_ext", "1.0.1"
|
||||||
gem "haml"
|
gem "haml"
|
||||||
gem "devise", :git => "git://github.com/plataformatec/devise.git"
|
gem "devise", :git => "git://github.com/plataformatec/devise.git"
|
||||||
gem 'roxml', :git => "git://github.com/Empact/roxml.git"
|
gem 'roxml', :git => "git://github.com/Empact/roxml.git"
|
||||||
|
|
||||||
|
|
||||||
|
gem 'dm-core'
|
||||||
gem "dm-core"
|
|
||||||
|
|
||||||
group :test do
|
group :test do
|
||||||
gem 'rspec', '>= 2.0.0.beta.10'
|
gem 'rspec', '>= 2.0.0.beta.12'
|
||||||
gem 'rspec-rails', ">= 2.0.0.beta.8"
|
gem 'rspec-rails', ">= 2.0.0.beta.8"
|
||||||
gem "mocha"
|
gem "mocha"
|
||||||
gem 'webrat'
|
gem 'webrat'
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,11 @@
|
||||||
class ApplicationController < ActionController::Base
|
class ApplicationController < ActionController::Base
|
||||||
protect_from_forgery
|
protect_from_forgery :except => :receive
|
||||||
layout 'application'
|
layout 'application'
|
||||||
|
|
||||||
def receive
|
def receive
|
||||||
puts response.inspect
|
puts params.inspect
|
||||||
puts "holy boner batman"
|
puts "holy boner batman"
|
||||||
|
render :nothing => true
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,4 @@
|
||||||
require 'active_support'
|
require 'addressable/uri'
|
||||||
require 'active_support/core_ext'
|
|
||||||
require 'roxml'
|
|
||||||
require 'dm-core'
|
|
||||||
require 'eventmachine'
|
require 'eventmachine'
|
||||||
require 'em-http'
|
require 'em-http'
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,7 @@
|
||||||
class Curl
|
class Curl
|
||||||
def self.post(s)
|
def self.post(s)
|
||||||
`curl -X POST -d #{s}`;;
|
`curl -X POST -d #{s}`;;
|
||||||
|
true
|
||||||
end
|
end
|
||||||
|
|
||||||
def self.get(s)
|
def self.get(s)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue