[DRE-commits] [redmine-recaptcha] 01/02: debian/patches/02_redmine2_changes: Added to fix a change in form_tag() semantics.

David Martínez ender at moszumanska.debian.org
Thu Jan 9 07:58:28 UTC 2014


This is an automated email from the git hooks/post-receive script.

ender pushed a commit to branch master
in repository redmine-recaptcha.

commit d591c149a116b2040d489f2bc5c8fcb9bb124d04
Author: David Martínez Moreno <ender at debian.org>
Date:   Wed Jan 8 23:51:32 2014 -0800

    debian/patches/02_redmine2_changes: Added to fix a change in form_tag() semantics.
---
 debian/changelog                         |  4 +++-
 debian/patches/02_redmine2_changes.patch | 24 ++++++++++++++++++++++++
 debian/patches/series                    |  1 +
 3 files changed, 28 insertions(+), 1 deletion(-)

diff --git a/debian/changelog b/debian/changelog
index 22e7b08..3fb0639 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -2,7 +2,9 @@ redmine-recaptcha (0.1.0+git20121018-2) UNRELEASED; urgency=medium
 
   * Moved the plugin to /usr/share/redmine/plugins/ for compatibility with
     Redmine 2 (closes: #725217).
-  * debian/patches/01_rails3-init: Added, to fix old initialization logic.
+  * debian/patches:
+    - 01_rails3-init: Added, to fix old initialization logic.
+    - 02_redmine2_changes: Added to fix a change in form_tag() semantics.
   * debian/control:
     - Added quilt to Build-Depends.
     - Depend on redmine (>= 2.0.0) and ruby-recaptcha (>=
diff --git a/debian/patches/02_redmine2_changes.patch b/debian/patches/02_redmine2_changes.patch
new file mode 100644
index 0000000..03e4712
--- /dev/null
+++ b/debian/patches/02_redmine2_changes.patch
@@ -0,0 +1,24 @@
+Description: Migration changes for Redmine 2.x.
+ "form_tag()" now returns form content.
+ .
+ Before we wrote:
+ .
+ <% form_tag(...
+ .
+ Now we need to write:
+ .
+ <%= form_tag(...
+Author: David Martínez Moreno <ender at debian.org>
+Forwarded: no
+Last-Update: 2014-01-08
+
+--- redmine-recaptcha-0.1.0+git20121018.orig/app/views/account/register.rhtml
++++ redmine-recaptcha-0.1.0+git20121018/app/views/account/register.rhtml
+@@ -1,6 +1,6 @@
+ <h2><%=l(:label_register)%> <%=link_to l(:label_login_with_open_id_option), signin_url if Setting.openid? %></h2>
+ 
+-<% form_tag({:action => 'register'}, :class => "tabular") do %>
++<%= form_tag({:action => 'register'}, :class => "tabular") do %>
+ <%= error_messages_for 'user' %>
+ 
+ <div class="box">
diff --git a/debian/patches/series b/debian/patches/series
index c14dd2c..498f96b 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
 01_rails3-init.patch
+02_redmine2_changes.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/redmine-recaptcha.git



More information about the Pkg-ruby-extras-commits mailing list