Merge branch 'master' into unstable

This commit is contained in:
Holger Just 2011-10-31 18:18:44 +01:00
commit 9c8380667c
1039 changed files with 213411 additions and 157 deletions

26
Gemfile
View File

@ -23,7 +23,21 @@ group :openid do
end
group :rmagick do
gem "rmagick", "~> 1.15.17"
gem "rmagick", ">= 1.15.17"
# Older distributions might not have a sufficiently new ImageMagick version
# for the current rmagick release (current rmagick is rmagick 2, which
# requires ImageMagick 6.4.9 or later). If this is the case for you, comment
# the line above this comment block and uncomment the one underneath it to
# get an rmagick version known to work on older distributions.
#
# The following distributíons are known to *not* ship with a usable
# ImageMagick version. There might be additional ones.
# * Ubuntu 9.10 and older
# * Debian Lenny 5.0 and older
# * CentOS 5 and older
# * RedHat 5 and older
#
#gem "rmagick", "< 2.0.0"
end
# Use the commented pure ruby gems, if you have not the needed prerequisites on
@ -33,11 +47,6 @@ end
# warned.
platforms :mri, :mingw do
group :mysql do
gem "mysql"
# gem "ruby-mysql"
end
group :mysql2 do
gem "mysql2", "~> 0.2.7"
end
@ -49,6 +58,11 @@ platforms :mri, :mingw do
end
platforms :mri_18, :mingw_18 do
group :mysql do
gem "mysql"
# gem "ruby-mysql"
end
group :sqlite do
gem "sqlite3-ruby", "< 1.3", :require => "sqlite3"
end

View File

@ -1,3 +1,4 @@
#-- encoding: UTF-8
#-- copyright
# ChiliProject is a project management system.
#

View File

@ -1,3 +1,4 @@
#-- encoding: UTF-8
#-- copyright
# ChiliProject is a project management system.
#

View File

@ -1,3 +1,4 @@
#-- encoding: UTF-8
#-- copyright
# ChiliProject is a project management system.
#

View File

@ -1,3 +1,4 @@
#-- encoding: UTF-8
#-- copyright
# ChiliProject is a project management system.
#
@ -42,6 +43,24 @@ class ApplicationController < ActionController::Base
end
end
# FIXME: Remove this when all of Rack and Rails have learned how to
# properly use encodings
before_filter :params_filter
def params_filter
self.utf8nize!(params) if RUBY_VERSION >= '1.9'
end
def utf8nize!(obj)
if obj.is_a? String
obj.respond_to?(:force_encoding) ? obj.force_encoding("UTF-8") : obj
elsif obj.is_a? Hash
obj.each {|k, v| obj[k] = self.utf8nize!(v)}
elsif obj.is_a? Array
obj.each {|v| self.utf8nize!(v)}
else
obj
end
end
before_filter :user_setup, :check_if_login_required, :set_localization
filter_parameter_logging :password
@ -262,7 +281,7 @@ class ApplicationController < ActionController::Base
end
def redirect_back_or_default(default)
back_url = CGI.unescape(params[:back_url].to_s)
back_url = URI.escape(CGI.unescape(params[:back_url].to_s))
if !back_url.blank?
begin
uri = URI.parse(back_url)

View File

@ -1,3 +1,4 @@
#-- encoding: UTF-8
#-- copyright
# ChiliProject is a project management system.
#

View File

@ -1,3 +1,4 @@
#-- encoding: UTF-8
#-- copyright
# ChiliProject is a project management system.
#

View File

@ -1,3 +1,4 @@
#-- encoding: UTF-8
#-- copyright
# ChiliProject is a project management system.
#

View File

@ -1,3 +1,4 @@
#-- encoding: UTF-8
#-- copyright
# ChiliProject is a project management system.
#

View File

@ -1,3 +1,4 @@
#-- encoding: UTF-8
#-- copyright
# ChiliProject is a project management system.
#
@ -36,9 +37,9 @@ class CalendarsController < ApplicationController
if @query.valid?
events = []
events += @query.issues(:include => [:tracker, :assigned_to, :priority],
:conditions => ["((start_date BETWEEN ? AND ?) OR (due_date BETWEEN ? AND ?))", @calendar.startdt, @calendar.enddt, @calendar.startdt, @calendar.enddt]
:conditions => ["((#{Issue.table_name}.start_date BETWEEN ? AND ?) OR (#{Issue.table_name}.due_date BETWEEN ? AND ?))", @calendar.startdt, @calendar.enddt, @calendar.startdt, @calendar.enddt]
)
events += @query.versions(:conditions => ["effective_date BETWEEN ? AND ?", @calendar.startdt, @calendar.enddt])
events += @query.versions(:conditions => ["#{Version.table_name}.effective_date BETWEEN ? AND ?", @calendar.startdt, @calendar.enddt])
@calendar.events = events
end

View File

@ -1,3 +1,4 @@
#-- encoding: UTF-8
#-- copyright
# ChiliProject is a project management system.
#

View File

@ -1,3 +1,4 @@
#-- encoding: UTF-8
#-- copyright
# ChiliProject is a project management system.
#

View File

@ -1,3 +1,4 @@
#-- encoding: UTF-8
#-- copyright
# ChiliProject is a project management system.
#

View File

@ -1,3 +1,4 @@
#-- encoding: UTF-8
#-- copyright
# ChiliProject is a project management system.
#

View File

@ -1,3 +1,4 @@
#-- encoding: UTF-8
#-- copyright
# ChiliProject is a project management system.
#

View File

@ -1,3 +1,4 @@
#-- encoding: UTF-8
#-- copyright
# ChiliProject is a project management system.
#

View File

@ -1,3 +1,4 @@
#-- encoding: UTF-8
#-- copyright
# ChiliProject is a project management system.
#

View File

@ -1,3 +1,4 @@
#-- encoding: UTF-8
#-- copyright
# ChiliProject is a project management system.
#

View File

@ -1,3 +1,4 @@
#-- encoding: UTF-8
#-- copyright
# ChiliProject is a project management system.
#

View File

@ -1,3 +1,4 @@
#-- encoding: UTF-8
#-- copyright
# ChiliProject is a project management system.
#

View File

@ -1,3 +1,4 @@
#-- encoding: UTF-8
#-- copyright
# ChiliProject is a project management system.
#

View File

@ -1,3 +1,4 @@
#-- encoding: UTF-8
#-- copyright
# ChiliProject is a project management system.
#

View File

@ -1,3 +1,4 @@
#-- encoding: UTF-8
#-- copyright
# ChiliProject is a project management system.
#

View File

@ -1,3 +1,4 @@
#-- encoding: UTF-8
#-- copyright
# ChiliProject is a project management system.
#

View File

@ -1,3 +1,4 @@
#-- encoding: UTF-8
#-- copyright
# ChiliProject is a project management system.
#

View File

@ -1,3 +1,4 @@
#-- encoding: UTF-8
#-- copyright
# ChiliProject is a project management system.
#

View File

@ -1,3 +1,4 @@
#-- encoding: UTF-8
#-- copyright
# ChiliProject is a project management system.
#

View File

@ -1,3 +1,4 @@
#-- encoding: UTF-8
#-- copyright
# ChiliProject is a project management system.
#

View File

@ -1,3 +1,4 @@
#-- encoding: UTF-8
#-- copyright
# ChiliProject is a project management system.
#

View File

@ -1,3 +1,4 @@
#-- encoding: UTF-8
#-- copyright
# ChiliProject is a project management system.
#

View File

@ -1,3 +1,4 @@
#-- encoding: UTF-8
#-- copyright
# ChiliProject is a project management system.
#

View File

@ -1,3 +1,4 @@
#-- encoding: UTF-8
#-- copyright
# ChiliProject is a project management system.
#

View File

@ -1,3 +1,4 @@
#-- encoding: UTF-8
#-- copyright
# ChiliProject is a project management system.
#

View File

@ -1,3 +1,4 @@
#-- encoding: UTF-8
#-- copyright
# ChiliProject is a project management system.
#

View File

@ -1,3 +1,4 @@
#-- encoding: UTF-8
#-- copyright
# ChiliProject is a project management system.
#

View File

@ -1,3 +1,4 @@
#-- encoding: UTF-8
#-- copyright
# ChiliProject is a project management system.
#

View File

@ -1,3 +1,4 @@
#-- encoding: UTF-8
#-- copyright
# ChiliProject is a project management system.
#

View File

@ -1,3 +1,4 @@
#-- encoding: UTF-8
#-- copyright
# ChiliProject is a project management system.
#

View File

@ -1,3 +1,4 @@
#-- encoding: UTF-8
#-- copyright
# ChiliProject is a project management system.
#

View File

@ -1,3 +1,4 @@
#-- encoding: UTF-8
#-- copyright
# ChiliProject is a project management system.
#

View File

@ -1,3 +1,4 @@
#-- encoding: UTF-8
#-- copyright
# ChiliProject is a project management system.
#

View File

@ -1,3 +1,4 @@
#-- encoding: UTF-8
#-- copyright
# ChiliProject is a project management system.
#

View File

@ -1,3 +1,4 @@
#-- encoding: UTF-8
#-- copyright
# ChiliProject is a project management system.
#

View File

@ -1,3 +1,4 @@
#-- encoding: UTF-8
#-- copyright
# ChiliProject is a project management system.
#

View File

@ -1,3 +1,4 @@
#-- encoding: UTF-8
#-- copyright
# ChiliProject is a project management system.
#

View File

@ -1,3 +1,4 @@
#-- encoding: UTF-8
#-- copyright
# ChiliProject is a project management system.
#

View File

@ -1,3 +1,4 @@
#-- encoding: UTF-8
#-- copyright
# ChiliProject is a project management system.
#

View File

@ -1,3 +1,4 @@
#-- encoding: UTF-8
#-- copyright
# ChiliProject is a project management system.
#

View File

@ -1,3 +1,4 @@
#-- encoding: UTF-8
#-- copyright
# ChiliProject is a project management system.
#

View File

@ -1,3 +1,4 @@
#-- encoding: UTF-8
#-- copyright
# ChiliProject is a project management system.
#

View File

@ -1,3 +1,4 @@
#-- encoding: UTF-8
#-- copyright
# ChiliProject is a project management system.
#

View File

@ -1,3 +1,4 @@
#-- encoding: UTF-8
#-- copyright
# ChiliProject is a project management system.
#

View File

@ -1,3 +1,4 @@
#-- encoding: UTF-8
#-- copyright
# ChiliProject is a project management system.
#

View File

@ -1,3 +1,4 @@
#-- encoding: UTF-8
#-- copyright
# ChiliProject is a project management system.
#

View File

@ -1,3 +1,4 @@
#-- encoding: UTF-8
#-- copyright
# ChiliProject is a project management system.
#

View File

@ -1,3 +1,4 @@
#-- encoding: UTF-8
#-- copyright
# ChiliProject is a project management system.
#

View File

@ -1,3 +1,4 @@
#-- encoding: UTF-8
#-- copyright
# ChiliProject is a project management system.
#

View File

@ -1,3 +1,4 @@
#-- encoding: UTF-8
#-- copyright
# ChiliProject is a project management system.
#

View File

@ -1,3 +1,4 @@
#-- encoding: UTF-8
#-- copyright
# ChiliProject is a project management system.
#

View File

@ -1,3 +1,4 @@
#-- encoding: UTF-8
#-- copyright
# ChiliProject is a project management system.
#

View File

@ -1,3 +1,4 @@
#-- encoding: UTF-8
#-- copyright
# ChiliProject is a project management system.
#

View File

@ -1,3 +1,4 @@
#-- encoding: UTF-8
#-- copyright
# ChiliProject is a project management system.
#

View File

@ -1,3 +1,4 @@
#-- encoding: UTF-8
#-- copyright
# ChiliProject is a project management system.
#

View File

@ -1,3 +1,4 @@
#-- encoding: UTF-8
#-- copyright
# ChiliProject is a project management system.
#

View File

@ -1,3 +1,4 @@
#-- encoding: UTF-8
#-- copyright
# ChiliProject is a project management system.
#

View File

@ -1,3 +1,4 @@
#-- encoding: UTF-8
#-- copyright
# ChiliProject is a project management system.
#

View File

@ -1,3 +1,4 @@
#-- encoding: UTF-8
#-- copyright
# ChiliProject is a project management system.
#

View File

@ -1,3 +1,4 @@
#-- encoding: UTF-8
#-- copyright
# ChiliProject is a project management system.
#
@ -213,8 +214,8 @@ module IssuesHelper
def send_notification_option
content_tag(:p,
content_tag(:label,
l(:label_notify_member_plural)) +
hidden_field_tag('send_notification', '0') +
l(:label_notify_member_plural), :for => 'send_notification') +
hidden_field_tag('send_notification', '0', :id => nil) +
check_box_tag('send_notification', '1', true))

View File

@ -1,3 +1,4 @@
#-- encoding: UTF-8
#-- copyright
# ChiliProject is a project management system.
#

View File

@ -1,3 +1,4 @@
#-- encoding: UTF-8
#-- copyright
# ChiliProject is a project management system.
#

View File

@ -1,3 +1,4 @@
#-- encoding: UTF-8
#-- copyright
# ChiliProject is a project management system.
#

View File

@ -1,3 +1,4 @@
#-- encoding: UTF-8
#-- copyright
# ChiliProject is a project management system.
#

View File

@ -1,3 +1,4 @@
#-- encoding: UTF-8
#-- copyright
# ChiliProject is a project management system.
#

View File

@ -1,3 +1,4 @@
#-- encoding: UTF-8
#-- copyright
# ChiliProject is a project management system.
#

View File

@ -1,3 +1,4 @@
#-- encoding: UTF-8
#-- copyright
# ChiliProject is a project management system.
#

View File

@ -1,3 +1,4 @@
#-- encoding: UTF-8
#-- copyright
# ChiliProject is a project management system.
#

View File

@ -1,3 +1,4 @@
#-- encoding: UTF-8
#-- copyright
# ChiliProject is a project management system.
#

View File

@ -1,3 +1,4 @@
#-- encoding: UTF-8
#-- copyright
# ChiliProject is a project management system.
#

View File

@ -1,3 +1,4 @@
#-- encoding: UTF-8
#-- copyright
# ChiliProject is a project management system.
#

View File

@ -1,3 +1,4 @@
#-- encoding: UTF-8
#-- copyright
# ChiliProject is a project management system.
#
@ -43,6 +44,7 @@ module SearchHelper
options << [l(:label_my_projects), 'my_projects'] unless User.current.memberships.empty?
options << [l(:label_and_its_subprojects, @project.name), 'subprojects'] unless @project.nil? || @project.descendants.active.empty?
options << [@project.name, ''] unless @project.nil?
label_tag("scope", l(:description_project_scope), :class => "hidden-for-sighted") +
select_tag('scope', options_for_select(options, params[:scope].to_s)) if options.size > 1
end

View File

@ -1,3 +1,4 @@
#-- encoding: UTF-8
#-- copyright
# ChiliProject is a project management system.
#

View File

@ -1,3 +1,4 @@
#-- encoding: UTF-8
#-- copyright
# ChiliProject is a project management system.
#

View File

@ -1,3 +1,4 @@
#-- encoding: UTF-8
#-- copyright
# ChiliProject is a project management system.
#

View File

@ -1,3 +1,4 @@
#-- encoding: UTF-8
#-- copyright
# ChiliProject is a project management system.
#

View File

@ -1,3 +1,4 @@
#-- encoding: UTF-8
#-- copyright
# ChiliProject is a project management system.
#

View File

@ -1,3 +1,4 @@
#-- encoding: UTF-8
#-- copyright
# ChiliProject is a project management system.
#

View File

@ -1,3 +1,4 @@
#-- encoding: UTF-8
#-- copyright
# ChiliProject is a project management system.
#

View File

@ -1,3 +1,4 @@
#-- encoding: UTF-8
#-- copyright
# ChiliProject is a project management system.
#

View File

@ -1,3 +1,4 @@
#-- encoding: UTF-8
#-- copyright
# ChiliProject is a project management system.
#

View File

@ -1,3 +1,4 @@
#-- encoding: UTF-8
#-- copyright
# ChiliProject is a project management system.
#

View File

@ -1,3 +1,4 @@
#-- encoding: UTF-8
#-- copyright
# ChiliProject is a project management system.
#

View File

@ -1,3 +1,4 @@
#-- encoding: UTF-8
#-- copyright
# ChiliProject is a project management system.
#

View File

@ -1,3 +1,4 @@
#-- encoding: UTF-8
#-- copyright
# ChiliProject is a project management system.
#

View File

@ -1,3 +1,4 @@
#-- encoding: UTF-8
#-- copyright
# ChiliProject is a project management system.
#

View File

@ -1,3 +1,4 @@
#-- encoding: UTF-8
#-- copyright
# ChiliProject is a project management system.
#

View File

@ -1,3 +1,4 @@
#-- encoding: UTF-8
#-- copyright
# ChiliProject is a project management system.
#

View File

@ -1,3 +1,4 @@
#-- encoding: UTF-8
#-- copyright
# ChiliProject is a project management system.
#

View File

@ -1,3 +1,4 @@
#-- encoding: UTF-8
#-- copyright
# ChiliProject is a project management system.
#

View File

@ -1,3 +1,4 @@
#-- encoding: UTF-8
#-- copyright
# ChiliProject is a project management system.
#

View File

@ -1,3 +1,4 @@
#-- encoding: UTF-8
#-- copyright
# ChiliProject is a project management system.
#

Some files were not shown because too many files have changed in this diff Show More