annotate .svn/pristine/93/932a59fb40eeb6d431a4cc52686573d7b9f38be6.svn-base @ 1524:82fac3dcf466 redmine-2.5-integration

Fix failure to interpret Javascript when autocompleting members for project
author Chris Cannam <chris.cannam@soundsoftware.ac.uk>
date Thu, 11 Sep 2014 10:24:38 +0100
parents cbb26bc654de
children
rev   line source
Chris@909 1 # Rakefile
Chris@909 2 #
Chris@909 3 # $Revision: 1.27 $ by $Author: anupamsg $
Chris@909 4 # $Name: $
Chris@909 5 #
Chris@909 6 # Copyright (c) 2006, 2007 Anupam Sengupta
Chris@909 7 #
Chris@909 8 # All rights reserved.
Chris@909 9 #
Chris@909 10 # Redistribution and use in source and binary forms, with or without modification,
Chris@909 11 # are permitted provided that the following conditions are met:
Chris@909 12 #
Chris@909 13 # - Redistributions of source code must retain the above copyright notice, this
Chris@909 14 # list of conditions and the following disclaimer.
Chris@909 15 #
Chris@909 16 # - Redistributions in binary form must reproduce the above copyright notice, this
Chris@909 17 # list of conditions and the following disclaimer in the documentation and/or
Chris@909 18 # other materials provided with the distribution.
Chris@909 19 #
Chris@909 20 # - Neither the name of the organization nor the names of its contributors may
Chris@909 21 # be used to endorse or promote products derived from this software without
Chris@909 22 # specific prior written permission.
Chris@909 23 #
Chris@909 24 # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
Chris@909 25 # AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
Chris@909 26 # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
Chris@909 27 # DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
Chris@909 28 # ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
Chris@909 29 # (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
Chris@909 30 # LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
Chris@909 31 # ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
Chris@909 32 # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
Chris@909 33 # SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Chris@909 34 #
Chris@909 35
Chris@909 36 require 'rubygems'
Chris@909 37 require 'rake/gempackagetask'
Chris@909 38
Chris@909 39 require 'rake/clean'
Chris@909 40 require 'rake/packagetask'
Chris@909 41 require 'rake/testtask'
Chris@909 42 require 'rake/rdoctask'
Chris@909 43
Chris@909 44 require 'fileutils'
Chris@909 45
Chris@909 46 # General Stuff ####################################################
Chris@909 47
Chris@909 48 $:.insert 0, File.expand_path( File.join( File.dirname(__FILE__), 'lib' ) )
Chris@909 49 require 'tree' # To read the version information.
Chris@909 50
Chris@909 51 PKG_NAME = "rubytree"
Chris@909 52 PKG_VERSION = Tree::VERSION
Chris@909 53 PKG_FULLNAME = PKG_NAME + "-" + PKG_VERSION
Chris@909 54 PKG_SUMMARY = "Ruby implementation of the Tree data structure."
Chris@909 55 PKG_DESCRIPTION = <<-END
Chris@909 56 Provides a generic tree data-structure with ability to
Chris@909 57 store keyed node-elements in the tree. The implementation
Chris@909 58 mixes in the Enumerable module.
Chris@909 59
Chris@909 60 Website: http://rubytree.rubyforge.org/
Chris@909 61 END
Chris@909 62
Chris@909 63 PKG_FILES = FileList[
Chris@909 64 '[A-Z]*',
Chris@909 65 '*.rb',
Chris@909 66 'lib/**/*.rb',
Chris@909 67 'test/**/*.rb'
Chris@909 68 ]
Chris@909 69
Chris@909 70 # Default is to create a rubygem.
Chris@909 71 desc "Default Task"
Chris@909 72 task :default => :gem
Chris@909 73
Chris@909 74 begin # Try loading hoe
Chris@909 75 require 'hoe'
Chris@909 76 # If Hoe is found, use it to define tasks
Chris@909 77 # =======================================
Chris@909 78 Hoe.new(PKG_NAME, PKG_VERSION) do |p|
Chris@909 79 p.rubyforge_name = PKG_NAME
Chris@909 80 p.author = "Anupam Sengupta"
Chris@909 81 p.email = "anupamsg@gmail.com"
Chris@909 82 p.summary = PKG_SUMMARY
Chris@909 83 p.description = PKG_DESCRIPTION
Chris@909 84 p.url = "http://rubytree.rubyforge.org/"
Chris@909 85 p.changes = p.paragraphs_of('History.txt', 0..1).join("\n\n")
Chris@909 86 p.remote_rdoc_dir = 'rdoc'
Chris@909 87 p.need_tar = true
Chris@909 88 p.need_zip = true
Chris@909 89 p.test_globs = ['test/test_*.rb']
Chris@909 90 p.spec_extras = {
Chris@909 91 :has_rdoc => true,
Chris@909 92 :platform => Gem::Platform::RUBY,
Chris@909 93 :has_rdoc => true,
Chris@909 94 :extra_rdoc_files => ['README', 'COPYING', 'ChangeLog', 'History.txt'],
Chris@909 95 :rdoc_options => ['--main', 'README'],
Chris@909 96 :autorequire => 'tree'
Chris@909 97 }
Chris@909 98 end
Chris@909 99
Chris@909 100 rescue LoadError # If Hoe is not found
Chris@909 101 # If Hoe is not found, then use the usual Gemspec based Rake tasks
Chris@909 102 # ================================================================
Chris@909 103 spec = Gem::Specification.new do |s|
Chris@909 104 s.name = PKG_NAME
Chris@909 105 s.version = PKG_VERSION
Chris@909 106 s.platform = Gem::Platform::RUBY
Chris@909 107 s.author = "Anupam Sengupta"
Chris@909 108 s.email = "anupamsg@gmail.com"
Chris@909 109 s.homepage = "http://rubytree.rubyforge.org/"
Chris@909 110 s.rubyforge_project = 'rubytree'
Chris@909 111 s.summary = PKG_SUMMARY
Chris@909 112 s.add_dependency('rake', '>= 0.7.2')
Chris@909 113 s.description = PKG_DESCRIPTION
Chris@909 114 s.has_rdoc = true
Chris@909 115 s.extra_rdoc_files = ['README', 'COPYING', 'ChangeLog']
Chris@909 116 s.autorequire = "tree"
Chris@909 117 s.files = PKG_FILES.to_a
Chris@909 118 s.test_files = Dir.glob('test/test*.rb')
Chris@909 119 end
Chris@909 120
Chris@909 121 desc "Prepares for installation"
Chris@909 122 task :prepare do
Chris@909 123 ruby "setup.rb config"
Chris@909 124 ruby "setup.rb setup"
Chris@909 125 end
Chris@909 126
Chris@909 127 desc "Installs the package #{PKG_NAME}"
Chris@909 128 task :install => [:prepare] do
Chris@909 129 ruby "setup.rb install"
Chris@909 130 end
Chris@909 131
Chris@909 132 Rake::GemPackageTask.new(spec) do |pkg|
Chris@909 133 pkg.need_zip = true
Chris@909 134 pkg.need_tar = true
Chris@909 135 end
Chris@909 136
Chris@909 137 Rake::TestTask.new do |t|
Chris@909 138 t.libs << "test"
Chris@909 139 t.test_files = FileList['test/test*.rb']
Chris@909 140 t.verbose = true
Chris@909 141 end
Chris@909 142
Chris@909 143 end # End loading Hoerc
Chris@909 144 # ================================================================
Chris@909 145
Chris@909 146
Chris@909 147 # The following tasks are loaded independently of Hoe
Chris@909 148
Chris@909 149 # Hoe's rdoc task is ugly.
Chris@909 150 Rake::RDocTask.new(:docs) do |rd|
Chris@909 151 rd.rdoc_files.include("README", "COPYING", "ChangeLog", "lib/**/*.rb")
Chris@909 152 rd.rdoc_dir = 'doc'
Chris@909 153 rd.title = "#{PKG_FULLNAME} Documentation"
Chris@909 154
Chris@909 155 # Use the template only if it is present, otherwise, the standard template is
Chris@909 156 # used.
Chris@909 157 template = "../allison/allison.rb"
Chris@909 158 rd.template = template if File.file?(template)
Chris@909 159
Chris@909 160 rd.options << '--line-numbers' << '--inline-source'
Chris@909 161 end
Chris@909 162
Chris@909 163 # Optional TAGS Task.
Chris@909 164 # Needs https://rubyforge.org/projects/rtagstask/
Chris@909 165 begin
Chris@909 166 require 'rtagstask'
Chris@909 167 RTagsTask.new do |rd|
Chris@909 168 rd.vi = false
Chris@909 169 end
Chris@909 170 rescue LoadError
Chris@909 171 end
Chris@909 172
Chris@909 173 # Optional RCOV Task
Chris@909 174 # Needs http://eigenclass.org/hiki/rcov
Chris@909 175 begin
Chris@909 176 require 'rcov/rcovtask'
Chris@909 177 Rcov::RcovTask.new do |t|
Chris@909 178 t.test_files = FileList['test/test*.rb']
Chris@909 179 t.rcov_opts << "--exclude 'rcov.rb'" # rcov itself should not be profiled
Chris@909 180 # t.verbose = true # uncomment to see the executed commands
Chris@909 181 end
Chris@909 182 rescue LoadError
Chris@909 183 end
Chris@909 184
Chris@909 185 #Rakefile,v $
Chris@909 186 # Revision 1.21 2007/07/21 05:14:43 anupamsg
Chris@909 187 # Added a VERSION constant to the Tree module,
Chris@909 188 # and using the same in the Rakefile.
Chris@909 189 #
Chris@909 190 # Revision 1.20 2007/07/21 03:24:25 anupamsg
Chris@909 191 # Minor edits to parameter names. User visible functionality does not change.
Chris@909 192 #
Chris@909 193 # Revision 1.19 2007/07/19 02:16:01 anupamsg
Chris@909 194 # Release 0.4.0 (and minor fix in Rakefile).
Chris@909 195 #
Chris@909 196 # Revision 1.18 2007/07/18 20:15:06 anupamsg
Chris@909 197 # Added two predicate methods in BinaryTreeNode to determine whether a node
Chris@909 198 # is a left or a right node.
Chris@909 199 #
Chris@909 200 # Revision 1.17 2007/07/18 07:17:34 anupamsg
Chris@909 201 # Fixed a issue where TreeNode.ancestors was shadowing Module.ancestors. This method
Chris@909 202 # has been renamed to TreeNode.parentage.
Chris@909 203 #
Chris@909 204 # Revision 1.16 2007/07/17 05:34:03 anupamsg
Chris@909 205 # Added an optional tags Rake-task for generating the TAGS file for Emacs.
Chris@909 206 #
Chris@909 207 # Revision 1.15 2007/07/17 04:42:45 anupamsg
Chris@909 208 # Minor fixes to the Rakefile.
Chris@909 209 #
Chris@909 210 # Revision 1.14 2007/07/17 03:39:28 anupamsg
Chris@909 211 # Moved the CVS Log keyword to end of the files.
Chris@909 212 #