Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Time to release 0.6.0 compatible with latest Rails.

  • Loading branch information...
commit 478941268df5b9dbc48f50a7a21dd5ce9d80e435 1 parent 357b710
@josevalim josevalim authored
View
7 README.rdoc
@@ -46,7 +46,7 @@ to be used with Rails 2.3 together with Inherited Resources, please check this b
The first step is instal responders gem and configure it in your application:
- sudo gem install responders
+ gem install responders
Responders only provides a set of modules, to use them, you have to create your own
responder. This can be done in an initializer for example:
@@ -62,8 +62,7 @@ Or, for your convenience, just do:
== Controller method
-This gem also includes the controller method 'responders', which allows you to cherry-pick which responders
-you want included in your controller.
+This gem also includes the controller method 'responders', which allows you to cherry-pick which responders you want included in your controller.
class InvitationsController < ApplicationController
responders :flash, :http_cache
@@ -81,4 +80,4 @@ If you discover any bugs or want to drop a line, feel free to create an issue on
http://github.com/plataformatec/responders/issues
-MIT License. Copyright 2009 Plataforma Tecnologia. http://blog.plataformatec.com.br
+MIT License. Copyright 2010 Plataforma Tecnologia. http://blog.plataformatec.com.br
View
2  lib/responders/version.rb
@@ -1,3 +1,3 @@
module Responders
- VERSION = "0.5.5".freeze
+ VERSION = "0.6.0".freeze
end
View
8 responders.gemspec
@@ -5,11 +5,11 @@
Gem::Specification.new do |s|
s.name = %q{responders}
- s.version = "0.5.5"
+ s.version = "0.6.0"
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
s.authors = ["Jos\303\251 Valim"]
- s.date = %q{2010-03-26}
+ s.date = %q{2010-04-03}
s.description = %q{A set of Rails 3 responders to dry up your application}
s.email = %q{contact@plataformatec.com.br}
s.extra_rdoc_files = [
@@ -25,6 +25,7 @@ Gem::Specification.new do |s|
"lib/generators/rails/templates/controller.rb",
"lib/generators/responders_install_generator.rb",
"lib/responders.rb",
+ "lib/responders/controller_method.rb",
"lib/responders/flash_responder.rb",
"lib/responders/http_cache_responder.rb",
"lib/responders/locales/en.yml",
@@ -36,7 +37,8 @@ Gem::Specification.new do |s|
s.rubygems_version = %q{1.3.6}
s.summary = %q{A set of Rails 3 responders to dry up your application}
s.test_files = [
- "test/flash_responder_test.rb",
+ "test/controller_method_test.rb",
+ "test/flash_responder_test.rb",
"test/http_cache_responder_test.rb",
"test/test_helper.rb"
]
View
11 test/test_helper.rb
@@ -1,5 +1,10 @@
require 'rubygems'
+gem 'activesupport', '3.0.0.beta2'
+gem 'activemodel', '3.0.0.beta2'
+gem 'actionpack', '3.0.0.beta2'
+gem 'railties', '3.0.0.beta2'
+
begin
gem "test-unit"
rescue LoadError
@@ -33,8 +38,8 @@ class ApplicationController < ActionController::Base
ActionController::Base.view_paths = File.join(File.dirname(__FILE__), 'views')
-Responders::Router = ActionDispatch::Routing::RouteSet.new
-Responders::Router.draw do |map|
+Responders::Routes = ActionDispatch::Routing::RouteSet.new
+Responders::Routes.draw do |map|
map.connect 'admin/:action', :controller => "admin/addresses"
map.connect ':controller/:action/:id'
map.connect ':controller/:action'
@@ -42,7 +47,7 @@ class ApplicationController < ActionController::Base
class ActiveSupport::TestCase
setup do
- @router = Responders::Router
+ @routes = Responders::Routes
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.