Skip to content

Commit

Permalink
Time to release 0.6.0 compatible with latest Rails.
Browse files Browse the repository at this point in the history
  • Loading branch information
josevalim committed Apr 3, 2010
1 parent 357b710 commit 4789412
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 11 deletions.
7 changes: 3 additions & 4 deletions README.rdoc
Expand Up @@ -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:
Expand All @@ -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
Expand All @@ -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
2 changes: 1 addition & 1 deletion lib/responders/version.rb
@@ -1,3 +1,3 @@
module Responders
VERSION = "0.5.5".freeze
VERSION = "0.6.0".freeze
end
8 changes: 5 additions & 3 deletions responders.gemspec
Expand Up @@ -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 = [
Expand All @@ -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",
Expand All @@ -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"
]
Expand Down
11 changes: 8 additions & 3 deletions 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
Expand Down Expand Up @@ -33,16 +38,16 @@ 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'
end

class ActiveSupport::TestCase
setup do
@router = Responders::Router
@routes = Responders::Routes
end
end

Expand Down

0 comments on commit 4789412

Please sign in to comment.