debian/0000755000000000000000000000000012263452534007174 5ustar debian/compat0000644000000000000000000000000212263360476010375 0ustar 9 debian/copyright0000644000000000000000000000413412263360476011134 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: redmine-recaptcha Source: https://github.com/srstclair/redmine_recaptcha Files: * Copyright: 2010-2012, Shane StClair License: MIT Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: . The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. . THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. Files: debian/* Copyright: 2012, David Martínez Moreno License: GPL-2+ This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 2 of the License, or (at your option) any later version. . This package is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. . You should have received a copy of the GNU General Public License along with this program. If not, see . . On Debian systems, the complete text of the GNU General Public License version 2 can be found in "/usr/share/common-licenses/GPL-2". debian/docs0000644000000000000000000000001212263360477010044 0ustar README.md debian/patches/0000755000000000000000000000000012263452220010613 5ustar debian/patches/01_rails3-init.patch0000644000000000000000000000173612263360477014315 0ustar Description: Migrate init.rb to Rails 3. The plugin hasn't been touched in a while and the Dispatcher class is no longer available, so migrate it to the proper init method in Rails 3. Author: David Martínez Moreno Origin: other Forwarded: no Last-Update: 2013-10-08 --- a/init.rb +++ b/init.rb @@ -4,16 +4,15 @@ require 'net/http' require 'recaptcha/rails' require 'redmine' -require 'dispatcher' -Dispatcher.to_prepare :redmine_recaptcha do +Rails.configuration.to_prepare do require_dependency 'recaptcha/client_helper' require_dependency 'client_helper_patch' - Recaptcha::ClientHelper.send(:include, ClientHelperPatch) + Recaptcha::ClientHelper.send(:include, ClientHelperPatch) require_dependency 'account_controller' require_dependency 'account_controller_patch' - AccountController.send(:include, AccountControllerPatch) + AccountController.send(:include, AccountControllerPatch) end Redmine::Plugin.register :redmine_recaptcha do debian/patches/series0000644000000000000000000000005712263452003012031 0ustar 01_rails3-init.patch 02_redmine2_changes.patch debian/patches/02_redmine2_changes.patch0000644000000000000000000000133712263452220015336 0ustar 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 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 @@

<%=l(:label_register)%> <%=link_to l(:label_login_with_open_id_option), signin_url if Setting.openid? %>

-<% form_tag({:action => 'register'}, :class => "tabular") do %> +<%= form_tag({:action => 'register'}, :class => "tabular") do %> <%= error_messages_for 'user' %>
debian/source/0000755000000000000000000000000012263360477010500 5ustar debian/source/format0000644000000000000000000000001412263360477011706 0ustar 3.0 (quilt) debian/rules0000755000000000000000000000036412263443050010250 0ustar #!/usr/bin/make -f #export DH_VERBOSE=1 # %: dh $@ override_dh_install: dh_install # In Redmine 2.x .rhtml files are .html.erb. find debian/redmine-plugin-recaptcha -type f -name '*.rhtml' -print0 | xargs -0 rename 's/.rhtml$$/.html.erb/' debian/install0000644000000000000000000000022312263445700010557 0ustar *rb /usr/share/redmine/plugins/redmine_recaptcha app /usr/share/redmine/plugins/redmine_recaptcha lib /usr/share/redmine/plugins/redmine_recaptcha debian/changelog0000644000000000000000000000221412263452534011045 0ustar redmine-recaptcha (0.1.0+git20121018-2) unstable; 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. - 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 (>= 0.3.6-1). - Bumped Standards-Version to 3.9.5. - Removed ${shlibs:Depends} as it makes no sense for a bunch of scripts. - Added the right Vcs-* fields. * Fixed installation of docs. * Fixed installation directory, which was causing the settings page to give a 404. * debian/rules: Override the dh_install target with a post-install rename of all the .rhtml files to .html.erb. -- David Martínez Moreno Wed, 08 Jan 2014 23:52:58 -0800 redmine-recaptcha (0.1.0+git20121018-1) unstable; urgency=low * Initial release (closes: #690819). * Repackaged with latest fixes from upstream. -- David Martínez Moreno Thu, 18 Oct 2012 12:25:53 -0700 debian/control0000644000000000000000000000152412263451115010573 0ustar Source: redmine-recaptcha Section: ruby Priority: optional Maintainer: David Martínez Moreno Build-Depends: debhelper (>= 9), quilt Standards-Version: 3.9.5 Homepage: https://github.com/srstclair/redmine_recaptcha Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-ruby-extras/redmine-recaptcha.git Vcs-Git: git://anonscm.debian.org/pkg-ruby-extras/redmine-recaptcha.git Package: redmine-plugin-recaptcha Architecture: all Depends: ${misc:Depends}, redmine (>= 2.0.0), ruby-recaptcha (>= 0.3.6-1), Description: Redmine plugin to add a reCAPTCHA to user self-registration This plugin gives Redmine the ability to display reCAPTCHA authentication in order to allow user self-registration and prevent spam. . Before using it, you will need to sign-up for a reCAPTCHA key at https://www.google.com/recaptcha.