From ed222959631b5eda3c69ace92f2642cdf599bfdd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Valim?= Date: Sun, 13 Jun 2010 10:51:46 +0200 Subject: [PATCH] Fix a couple things based on community feedback (love ya!) --- Rakefile | 2 +- devise.gemspec | 4 ++-- lib/devise/rails.rb | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Rakefile b/Rakefile index 801fc57f..1d89cb9b 100644 --- a/Rakefile +++ b/Rakefile @@ -51,5 +51,5 @@ begin Jeweler::GemcutterTasks.new rescue LoadError - puts "Jeweler, or one of its dependencies, is not available. Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com" + puts "Jeweler, or one of its dependencies, is not available. Install it with: gem install jeweler" end diff --git a/devise.gemspec b/devise.gemspec index e7115788..52df03ad 100644 --- a/devise.gemspec +++ b/devise.gemspec @@ -8,8 +8,8 @@ Gem::Specification.new do |s| s.version = "1.1.rc1" s.required_rubygems_version = Gem::Requirement.new("> 1.3.1") if s.respond_to? :required_rubygems_version= - s.authors = ["José Valim", "Carlos Antônio"] - s.date = %q{2010-06-12} + s.authors = ["Jos\303\251 Valim", "Carlos Ant\303\264nio"] + s.date = %q{2010-06-13} s.description = %q{Flexible authentication solution for Rails with Warden} s.email = %q{contact@plataformatec.com.br} s.extra_rdoc_files = [ diff --git a/lib/devise/rails.rb b/lib/devise/rails.rb index 463f66b9..7242ff4e 100644 --- a/lib/devise/rails.rb +++ b/lib/devise/rails.rb @@ -31,7 +31,7 @@ module Devise translations = begin I18n.t("devise.mailer", :raise => true).map { |k, v| k if v.is_a?(String) }.compact rescue Exception => e # Do not care if something fails - {} + [] end keys = actions & translations @@ -48,7 +48,7 @@ module Devise translations = begin I18n.t("devise.sessions", :raise => true).keys rescue Exception => e # Do not care if something fails - {} + [] end keys = flash & translations