Revision 912:5e80956cc792 .svn/pristine/06
| .svn/pristine/06/061fdfd5800e4aa71d26012579cbbe6954d78738.svn-base | ||
|---|---|---|
| 1 |
# $Id: testem.rb 121 2006-05-15 18:36:24Z blackhedd $ |
|
| 2 |
# |
|
| 3 |
# |
|
| 4 |
|
|
| 5 |
require 'test/unit' |
|
| 6 |
require 'tests/testber' |
|
| 7 |
require 'tests/testldif' |
|
| 8 |
require 'tests/testldap' |
|
| 9 |
require 'tests/testpsw' |
|
| 10 |
require 'tests/testfilter' |
|
| 11 |
|
|
| 12 |
|
|
| .svn/pristine/06/066092ac11c4635256b7145aa6a62ea7837d8a81.svn-base | ||
|---|---|---|
| 1 |
!00 U+0000 .notdef |
|
| 2 |
!01 U+0001 .notdef |
|
| 3 |
!02 U+0002 .notdef |
|
| 4 |
!03 U+0003 .notdef |
|
| 5 |
!04 U+0004 .notdef |
|
| 6 |
!05 U+0005 .notdef |
|
| 7 |
!06 U+0006 .notdef |
|
| 8 |
!07 U+0007 .notdef |
|
| 9 |
!08 U+0008 .notdef |
|
| 10 |
!09 U+0009 .notdef |
|
| 11 |
!0A U+000A .notdef |
|
| 12 |
!0B U+000B .notdef |
|
| 13 |
!0C U+000C .notdef |
|
| 14 |
!0D U+000D .notdef |
|
| 15 |
!0E U+000E .notdef |
|
| 16 |
!0F U+000F .notdef |
|
| 17 |
!10 U+0010 .notdef |
|
| 18 |
!11 U+0011 .notdef |
|
| 19 |
!12 U+0012 .notdef |
|
| 20 |
!13 U+0013 .notdef |
|
| 21 |
!14 U+0014 .notdef |
|
| 22 |
!15 U+0015 .notdef |
|
| 23 |
!16 U+0016 .notdef |
|
| 24 |
!17 U+0017 .notdef |
|
| 25 |
!18 U+0018 .notdef |
|
| 26 |
!19 U+0019 .notdef |
|
| 27 |
!1A U+001A .notdef |
|
| 28 |
!1B U+001B .notdef |
|
| 29 |
!1C U+001C .notdef |
|
| 30 |
!1D U+001D .notdef |
|
| 31 |
!1E U+001E .notdef |
|
| 32 |
!1F U+001F .notdef |
|
| 33 |
!20 U+0020 space |
|
| 34 |
!21 U+0021 exclam |
|
| 35 |
!22 U+0022 quotedbl |
|
| 36 |
!23 U+0023 numbersign |
|
| 37 |
!24 U+0024 dollar |
|
| 38 |
!25 U+0025 percent |
|
| 39 |
!26 U+0026 ampersand |
|
| 40 |
!27 U+0027 quotesingle |
|
| 41 |
!28 U+0028 parenleft |
|
| 42 |
!29 U+0029 parenright |
|
| 43 |
!2A U+002A asterisk |
|
| 44 |
!2B U+002B plus |
|
| 45 |
!2C U+002C comma |
|
| 46 |
!2D U+002D hyphen |
|
| 47 |
!2E U+002E period |
|
| 48 |
!2F U+002F slash |
|
| 49 |
!30 U+0030 zero |
|
| 50 |
!31 U+0031 one |
|
| 51 |
!32 U+0032 two |
|
| 52 |
!33 U+0033 three |
|
| 53 |
!34 U+0034 four |
|
| 54 |
!35 U+0035 five |
|
| 55 |
!36 U+0036 six |
|
| 56 |
!37 U+0037 seven |
|
| 57 |
!38 U+0038 eight |
|
| 58 |
!39 U+0039 nine |
|
| 59 |
!3A U+003A colon |
|
| 60 |
!3B U+003B semicolon |
|
| 61 |
!3C U+003C less |
|
| 62 |
!3D U+003D equal |
|
| 63 |
!3E U+003E greater |
|
| 64 |
!3F U+003F question |
|
| 65 |
!40 U+0040 at |
|
| 66 |
!41 U+0041 A |
|
| 67 |
!42 U+0042 B |
|
| 68 |
!43 U+0043 C |
|
| 69 |
!44 U+0044 D |
|
| 70 |
!45 U+0045 E |
|
| 71 |
!46 U+0046 F |
|
| 72 |
!47 U+0047 G |
|
| 73 |
!48 U+0048 H |
|
| 74 |
!49 U+0049 I |
|
| 75 |
!4A U+004A J |
|
| 76 |
!4B U+004B K |
|
| 77 |
!4C U+004C L |
|
| 78 |
!4D U+004D M |
|
| 79 |
!4E U+004E N |
|
| 80 |
!4F U+004F O |
|
| 81 |
!50 U+0050 P |
|
| 82 |
!51 U+0051 Q |
|
| 83 |
!52 U+0052 R |
|
| 84 |
!53 U+0053 S |
|
| 85 |
!54 U+0054 T |
|
| 86 |
!55 U+0055 U |
|
| 87 |
!56 U+0056 V |
|
| 88 |
!57 U+0057 W |
|
| 89 |
!58 U+0058 X |
|
| 90 |
!59 U+0059 Y |
|
| 91 |
!5A U+005A Z |
|
| 92 |
!5B U+005B bracketleft |
|
| 93 |
!5C U+005C backslash |
|
| 94 |
!5D U+005D bracketright |
|
| 95 |
!5E U+005E asciicircum |
|
| 96 |
!5F U+005F underscore |
|
| 97 |
!60 U+0060 grave |
|
| 98 |
!61 U+0061 a |
|
| 99 |
!62 U+0062 b |
|
| 100 |
!63 U+0063 c |
|
| 101 |
!64 U+0064 d |
|
| 102 |
!65 U+0065 e |
|
| 103 |
!66 U+0066 f |
|
| 104 |
!67 U+0067 g |
|
| 105 |
!68 U+0068 h |
|
| 106 |
!69 U+0069 i |
|
| 107 |
!6A U+006A j |
|
| 108 |
!6B U+006B k |
|
| 109 |
!6C U+006C l |
|
| 110 |
!6D U+006D m |
|
| 111 |
!6E U+006E n |
|
| 112 |
!6F U+006F o |
|
| 113 |
!70 U+0070 p |
|
| 114 |
!71 U+0071 q |
|
| 115 |
!72 U+0072 r |
|
| 116 |
!73 U+0073 s |
|
| 117 |
!74 U+0074 t |
|
| 118 |
!75 U+0075 u |
|
| 119 |
!76 U+0076 v |
|
| 120 |
!77 U+0077 w |
|
| 121 |
!78 U+0078 x |
|
| 122 |
!79 U+0079 y |
|
| 123 |
!7A U+007A z |
|
| 124 |
!7B U+007B braceleft |
|
| 125 |
!7C U+007C bar |
|
| 126 |
!7D U+007D braceright |
|
| 127 |
!7E U+007E asciitilde |
|
| 128 |
!7F U+007F .notdef |
|
| 129 |
!80 U+20AC Euro |
|
| 130 |
!82 U+201A quotesinglbase |
|
| 131 |
!84 U+201E quotedblbase |
|
| 132 |
!85 U+2026 ellipsis |
|
| 133 |
!86 U+2020 dagger |
|
| 134 |
!87 U+2021 daggerdbl |
|
| 135 |
!89 U+2030 perthousand |
|
| 136 |
!8B U+2039 guilsinglleft |
|
| 137 |
!8D U+00A8 dieresis |
|
| 138 |
!8E U+02C7 caron |
|
| 139 |
!8F U+00B8 cedilla |
|
| 140 |
!91 U+2018 quoteleft |
|
| 141 |
!92 U+2019 quoteright |
|
| 142 |
!93 U+201C quotedblleft |
|
| 143 |
!94 U+201D quotedblright |
|
| 144 |
!95 U+2022 bullet |
|
| 145 |
!96 U+2013 endash |
|
| 146 |
!97 U+2014 emdash |
|
| 147 |
!99 U+2122 trademark |
|
| 148 |
!9B U+203A guilsinglright |
|
| 149 |
!9D U+00AF macron |
|
| 150 |
!9E U+02DB ogonek |
|
| 151 |
!A0 U+00A0 space |
|
| 152 |
!A2 U+00A2 cent |
|
| 153 |
!A3 U+00A3 sterling |
|
| 154 |
!A4 U+00A4 currency |
|
| 155 |
!A6 U+00A6 brokenbar |
|
| 156 |
!A7 U+00A7 section |
|
| 157 |
!A8 U+00D8 Oslash |
|
| 158 |
!A9 U+00A9 copyright |
|
| 159 |
!AA U+0156 Rcommaaccent |
|
| 160 |
!AB U+00AB guillemotleft |
|
| 161 |
!AC U+00AC logicalnot |
|
| 162 |
!AD U+00AD hyphen |
|
| 163 |
!AE U+00AE registered |
|
| 164 |
!AF U+00C6 AE |
|
| 165 |
!B0 U+00B0 degree |
|
| 166 |
!B1 U+00B1 plusminus |
|
| 167 |
!B2 U+00B2 twosuperior |
|
| 168 |
!B3 U+00B3 threesuperior |
|
| 169 |
!B4 U+00B4 acute |
|
| 170 |
!B5 U+00B5 mu |
|
| 171 |
!B6 U+00B6 paragraph |
|
| 172 |
!B7 U+00B7 periodcentered |
|
| 173 |
!B8 U+00F8 oslash |
|
| 174 |
!B9 U+00B9 onesuperior |
|
| 175 |
!BA U+0157 rcommaaccent |
|
| 176 |
!BB U+00BB guillemotright |
|
| 177 |
!BC U+00BC onequarter |
|
| 178 |
!BD U+00BD onehalf |
|
| 179 |
!BE U+00BE threequarters |
|
| 180 |
!BF U+00E6 ae |
|
| 181 |
!C0 U+0104 Aogonek |
|
| 182 |
!C1 U+012E Iogonek |
|
| 183 |
!C2 U+0100 Amacron |
|
| 184 |
!C3 U+0106 Cacute |
|
| 185 |
!C4 U+00C4 Adieresis |
|
| 186 |
!C5 U+00C5 Aring |
|
| 187 |
!C6 U+0118 Eogonek |
|
| 188 |
!C7 U+0112 Emacron |
|
| 189 |
!C8 U+010C Ccaron |
|
| 190 |
!C9 U+00C9 Eacute |
|
| 191 |
!CA U+0179 Zacute |
|
| 192 |
!CB U+0116 Edotaccent |
|
| 193 |
!CC U+0122 Gcommaaccent |
|
| 194 |
!CD U+0136 Kcommaaccent |
|
| 195 |
!CE U+012A Imacron |
|
| 196 |
!CF U+013B Lcommaaccent |
|
| 197 |
!D0 U+0160 Scaron |
|
| 198 |
!D1 U+0143 Nacute |
|
| 199 |
!D2 U+0145 Ncommaaccent |
|
| 200 |
!D3 U+00D3 Oacute |
|
| 201 |
!D4 U+014C Omacron |
|
| 202 |
!D5 U+00D5 Otilde |
|
| 203 |
!D6 U+00D6 Odieresis |
|
| 204 |
!D7 U+00D7 multiply |
|
| 205 |
!D8 U+0172 Uogonek |
|
| 206 |
!D9 U+0141 Lslash |
|
| 207 |
!DA U+015A Sacute |
|
| 208 |
!DB U+016A Umacron |
|
| 209 |
!DC U+00DC Udieresis |
|
| 210 |
!DD U+017B Zdotaccent |
|
| 211 |
!DE U+017D Zcaron |
|
| 212 |
!DF U+00DF germandbls |
|
| 213 |
!E0 U+0105 aogonek |
|
| 214 |
!E1 U+012F iogonek |
|
| 215 |
!E2 U+0101 amacron |
|
| 216 |
!E3 U+0107 cacute |
|
| 217 |
!E4 U+00E4 adieresis |
|
| 218 |
!E5 U+00E5 aring |
|
| 219 |
!E6 U+0119 eogonek |
|
| 220 |
!E7 U+0113 emacron |
|
| 221 |
!E8 U+010D ccaron |
|
| 222 |
!E9 U+00E9 eacute |
|
| 223 |
!EA U+017A zacute |
|
| 224 |
!EB U+0117 edotaccent |
|
| 225 |
!EC U+0123 gcommaaccent |
|
| 226 |
!ED U+0137 kcommaaccent |
|
| 227 |
!EE U+012B imacron |
|
| 228 |
!EF U+013C lcommaaccent |
|
| 229 |
!F0 U+0161 scaron |
|
| 230 |
!F1 U+0144 nacute |
|
| 231 |
!F2 U+0146 ncommaaccent |
|
| 232 |
!F3 U+00F3 oacute |
|
| 233 |
!F4 U+014D omacron |
|
| 234 |
!F5 U+00F5 otilde |
|
| 235 |
!F6 U+00F6 odieresis |
|
| 236 |
!F7 U+00F7 divide |
|
| 237 |
!F8 U+0173 uogonek |
|
| 238 |
!F9 U+0142 lslash |
|
| 239 |
!FA U+015B sacute |
|
| 240 |
!FB U+016B umacron |
|
| 241 |
!FC U+00FC udieresis |
|
| 242 |
!FD U+017C zdotaccent |
|
| 243 |
!FE U+017E zcaron |
|
| 244 |
!FF U+02D9 dotaccent |
|
| .svn/pristine/06/066f939eced969c1eec65f1fe6ed629130668c67.svn-base | ||
|---|---|---|
| 1 |
# encoding: utf-8 |
|
| 2 |
# |
|
| 3 |
# Redmine - project management software |
|
| 4 |
# Copyright (C) 2006-2011 Jean-Philippe Lang |
|
| 5 |
# |
|
| 6 |
# This program is free software; you can redistribute it and/or |
|
| 7 |
# modify it under the terms of the GNU General Public License |
|
| 8 |
# as published by the Free Software Foundation; either version 2 |
|
| 9 |
# of the License, or (at your option) any later version. |
|
| 10 |
# |
|
| 11 |
# This program is distributed in the hope that it will be useful, |
|
| 12 |
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
| 13 |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
| 14 |
# GNU General Public License for more details. |
|
| 15 |
# |
|
| 16 |
# You should have received a copy of the GNU General Public License |
|
| 17 |
# along with this program; if not, write to the Free Software |
|
| 18 |
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
|
| 19 |
|
|
| 20 |
module IssueRelationsHelper |
|
| 21 |
def collection_for_relation_type_select |
|
| 22 |
values = IssueRelation::TYPES |
|
| 23 |
values.keys.sort{|x,y| values[x][:order] <=> values[y][:order]}.collect{|k| [l(values[k][:name]), k]}
|
|
| 24 |
end |
|
| 25 |
end |
|
| .svn/pristine/06/067fc70eea1018fdccc706144d28aa0ea0565e34.svn-base | ||
|---|---|---|
| 1 |
--- |
|
| 2 |
watchers_001: |
|
| 3 |
watchable_type: Issue |
|
| 4 |
watchable_id: 2 |
|
| 5 |
user_id: 3 |
|
| 6 |
watchers_002: |
|
| 7 |
watchable_type: Message |
|
| 8 |
watchable_id: 1 |
|
| 9 |
user_id: 1 |
|
| 10 |
watchers_003: |
|
| 11 |
watchable_type: Issue |
|
| 12 |
watchable_id: 2 |
|
| 13 |
user_id: 1 |
|
| 14 |
|
|
| .svn/pristine/06/06877624ea5c77efe3b7e39b0f909eda6e25a4ec.svn-base | ||
|---|---|---|
| 1 |
GNU GENERAL PUBLIC LICENSE |
|
| 2 |
Version 2, June 1991 |
|
| 3 |
|
|
| 4 |
Copyright (C) 1989, 1991 Free Software Foundation, Inc., |
|
| 5 |
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
|
| 6 |
Everyone is permitted to copy and distribute verbatim copies |
|
| 7 |
of this license document, but changing it is not allowed. |
|
| 8 |
|
|
| 9 |
Preamble |
|
| 10 |
|
|
| 11 |
The licenses for most software are designed to take away your |
|
| 12 |
freedom to share and change it. By contrast, the GNU General Public |
|
| 13 |
License is intended to guarantee your freedom to share and change free |
|
| 14 |
software--to make sure the software is free for all its users. This |
|
| 15 |
General Public License applies to most of the Free Software |
|
| 16 |
Foundation's software and to any other program whose authors commit to |
|
| 17 |
using it. (Some other Free Software Foundation software is covered by |
|
| 18 |
the GNU Lesser General Public License instead.) You can apply it to |
|
| 19 |
your programs, too. |
|
| 20 |
|
|
| 21 |
When we speak of free software, we are referring to freedom, not |
|
| 22 |
price. Our General Public Licenses are designed to make sure that you |
|
| 23 |
have the freedom to distribute copies of free software (and charge for |
|
| 24 |
this service if you wish), that you receive source code or can get it |
|
| 25 |
if you want it, that you can change the software or use pieces of it |
|
| 26 |
in new free programs; and that you know you can do these things. |
|
| 27 |
|
|
| 28 |
To protect your rights, we need to make restrictions that forbid |
|
| 29 |
anyone to deny you these rights or to ask you to surrender the rights. |
|
| 30 |
These restrictions translate to certain responsibilities for you if you |
|
| 31 |
distribute copies of the software, or if you modify it. |
|
| 32 |
|
|
| 33 |
For example, if you distribute copies of such a program, whether |
|
| 34 |
gratis or for a fee, you must give the recipients all the rights that |
|
| 35 |
you have. You must make sure that they, too, receive or can get the |
|
| 36 |
source code. And you must show them these terms so they know their |
|
| 37 |
rights. |
|
| 38 |
|
|
| 39 |
We protect your rights with two steps: (1) copyright the software, and |
|
| 40 |
(2) offer you this license which gives you legal permission to copy, |
|
| 41 |
distribute and/or modify the software. |
|
| 42 |
|
|
| 43 |
Also, for each author's protection and ours, we want to make certain |
|
| 44 |
that everyone understands that there is no warranty for this free |
|
| 45 |
software. If the software is modified by someone else and passed on, we |
|
| 46 |
want its recipients to know that what they have is not the original, so |
|
| 47 |
that any problems introduced by others will not reflect on the original |
|
| 48 |
authors' reputations. |
|
| 49 |
|
|
| 50 |
Finally, any free program is threatened constantly by software |
|
| 51 |
patents. We wish to avoid the danger that redistributors of a free |
|
| 52 |
program will individually obtain patent licenses, in effect making the |
|
| 53 |
program proprietary. To prevent this, we have made it clear that any |
|
| 54 |
patent must be licensed for everyone's free use or not licensed at all. |
|
| 55 |
|
|
| 56 |
The precise terms and conditions for copying, distribution and |
|
| 57 |
modification follow. |
|
| 58 |
|
|
| 59 |
GNU GENERAL PUBLIC LICENSE |
|
| 60 |
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION |
|
| 61 |
|
|
| 62 |
0. This License applies to any program or other work which contains |
|
| 63 |
a notice placed by the copyright holder saying it may be distributed |
|
| 64 |
under the terms of this General Public License. The "Program", below, |
|
| 65 |
refers to any such program or work, and a "work based on the Program" |
|
| 66 |
means either the Program or any derivative work under copyright law: |
|
| 67 |
that is to say, a work containing the Program or a portion of it, |
|
| 68 |
either verbatim or with modifications and/or translated into another |
|
| 69 |
language. (Hereinafter, translation is included without limitation in |
|
| 70 |
the term "modification".) Each licensee is addressed as "you". |
|
| 71 |
|
|
| 72 |
Activities other than copying, distribution and modification are not |
|
| 73 |
covered by this License; they are outside its scope. The act of |
|
| 74 |
running the Program is not restricted, and the output from the Program |
|
| 75 |
is covered only if its contents constitute a work based on the |
|
| 76 |
Program (independent of having been made by running the Program). |
|
| 77 |
Whether that is true depends on what the Program does. |
|
| 78 |
|
|
| 79 |
1. You may copy and distribute verbatim copies of the Program's |
|
| 80 |
source code as you receive it, in any medium, provided that you |
|
| 81 |
conspicuously and appropriately publish on each copy an appropriate |
|
| 82 |
copyright notice and disclaimer of warranty; keep intact all the |
|
| 83 |
notices that refer to this License and to the absence of any warranty; |
|
| 84 |
and give any other recipients of the Program a copy of this License |
|
| 85 |
along with the Program. |
|
| 86 |
|
|
| 87 |
You may charge a fee for the physical act of transferring a copy, and |
|
| 88 |
you may at your option offer warranty protection in exchange for a fee. |
|
| 89 |
|
|
| 90 |
2. You may modify your copy or copies of the Program or any portion |
|
| 91 |
of it, thus forming a work based on the Program, and copy and |
|
| 92 |
distribute such modifications or work under the terms of Section 1 |
|
| 93 |
above, provided that you also meet all of these conditions: |
|
| 94 |
|
|
| 95 |
a) You must cause the modified files to carry prominent notices |
|
| 96 |
stating that you changed the files and the date of any change. |
|
| 97 |
|
|
| 98 |
b) You must cause any work that you distribute or publish, that in |
|
| 99 |
whole or in part contains or is derived from the Program or any |
|
| 100 |
part thereof, to be licensed as a whole at no charge to all third |
|
| 101 |
parties under the terms of this License. |
|
| 102 |
|
|
| 103 |
c) If the modified program normally reads commands interactively |
|
| 104 |
when run, you must cause it, when started running for such |
|
| 105 |
interactive use in the most ordinary way, to print or display an |
|
| 106 |
announcement including an appropriate copyright notice and a |
|
| 107 |
notice that there is no warranty (or else, saying that you provide |
|
| 108 |
a warranty) and that users may redistribute the program under |
|
| 109 |
these conditions, and telling the user how to view a copy of this |
|
| 110 |
License. (Exception: if the Program itself is interactive but |
|
| 111 |
does not normally print such an announcement, your work based on |
|
| 112 |
the Program is not required to print an announcement.) |
|
| 113 |
|
|
| 114 |
These requirements apply to the modified work as a whole. If |
|
| 115 |
identifiable sections of that work are not derived from the Program, |
|
| 116 |
and can be reasonably considered independent and separate works in |
|
| 117 |
themselves, then this License, and its terms, do not apply to those |
|
| 118 |
sections when you distribute them as separate works. But when you |
|
| 119 |
distribute the same sections as part of a whole which is a work based |
|
| 120 |
on the Program, the distribution of the whole must be on the terms of |
|
| 121 |
this License, whose permissions for other licensees extend to the |
|
| 122 |
entire whole, and thus to each and every part regardless of who wrote it. |
|
| 123 |
|
|
| 124 |
Thus, it is not the intent of this section to claim rights or contest |
|
| 125 |
your rights to work written entirely by you; rather, the intent is to |
|
| 126 |
exercise the right to control the distribution of derivative or |
|
| 127 |
collective works based on the Program. |
|
| 128 |
|
|
| 129 |
In addition, mere aggregation of another work not based on the Program |
|
| 130 |
with the Program (or with a work based on the Program) on a volume of |
|
| 131 |
a storage or distribution medium does not bring the other work under |
|
| 132 |
the scope of this License. |
|
| 133 |
|
|
| 134 |
3. You may copy and distribute the Program (or a work based on it, |
|
| 135 |
under Section 2) in object code or executable form under the terms of |
|
| 136 |
Sections 1 and 2 above provided that you also do one of the following: |
|
| 137 |
|
|
| 138 |
a) Accompany it with the complete corresponding machine-readable |
|
| 139 |
source code, which must be distributed under the terms of Sections |
|
| 140 |
1 and 2 above on a medium customarily used for software interchange; or, |
|
| 141 |
|
|
| 142 |
b) Accompany it with a written offer, valid for at least three |
|
| 143 |
years, to give any third party, for a charge no more than your |
|
| 144 |
cost of physically performing source distribution, a complete |
|
| 145 |
machine-readable copy of the corresponding source code, to be |
|
| 146 |
distributed under the terms of Sections 1 and 2 above on a medium |
|
| 147 |
customarily used for software interchange; or, |
|
| 148 |
|
|
| 149 |
c) Accompany it with the information you received as to the offer |
|
| 150 |
to distribute corresponding source code. (This alternative is |
|
| 151 |
allowed only for noncommercial distribution and only if you |
|
| 152 |
received the program in object code or executable form with such |
|
| 153 |
an offer, in accord with Subsection b above.) |
|
| 154 |
|
|
| 155 |
The source code for a work means the preferred form of the work for |
|
| 156 |
making modifications to it. For an executable work, complete source |
|
| 157 |
code means all the source code for all modules it contains, plus any |
|
| 158 |
associated interface definition files, plus the scripts used to |
|
| 159 |
control compilation and installation of the executable. However, as a |
|
| 160 |
special exception, the source code distributed need not include |
|
| 161 |
anything that is normally distributed (in either source or binary |
|
| 162 |
form) with the major components (compiler, kernel, and so on) of the |
|
| 163 |
operating system on which the executable runs, unless that component |
|
| 164 |
itself accompanies the executable. |
|
| 165 |
|
|
| 166 |
If distribution of executable or object code is made by offering |
|
| 167 |
access to copy from a designated place, then offering equivalent |
|
| 168 |
access to copy the source code from the same place counts as |
|
| 169 |
distribution of the source code, even though third parties are not |
|
| 170 |
compelled to copy the source along with the object code. |
|
| 171 |
|
|
| 172 |
4. You may not copy, modify, sublicense, or distribute the Program |
|
| 173 |
except as expressly provided under this License. Any attempt |
|
| 174 |
otherwise to copy, modify, sublicense or distribute the Program is |
|
| 175 |
void, and will automatically terminate your rights under this License. |
|
| 176 |
However, parties who have received copies, or rights, from you under |
|
| 177 |
this License will not have their licenses terminated so long as such |
|
| 178 |
parties remain in full compliance. |
|
| 179 |
|
|
| 180 |
5. You are not required to accept this License, since you have not |
|
| 181 |
signed it. However, nothing else grants you permission to modify or |
|
| 182 |
distribute the Program or its derivative works. These actions are |
|
| 183 |
prohibited by law if you do not accept this License. Therefore, by |
|
| 184 |
modifying or distributing the Program (or any work based on the |
|
| 185 |
Program), you indicate your acceptance of this License to do so, and |
|
| 186 |
all its terms and conditions for copying, distributing or modifying |
|
| 187 |
the Program or works based on it. |
|
| 188 |
|
|
| 189 |
6. Each time you redistribute the Program (or any work based on the |
|
| 190 |
Program), the recipient automatically receives a license from the |
|
| 191 |
original licensor to copy, distribute or modify the Program subject to |
|
| 192 |
these terms and conditions. You may not impose any further |
|
| 193 |
restrictions on the recipients' exercise of the rights granted herein. |
|
| 194 |
You are not responsible for enforcing compliance by third parties to |
|
| 195 |
this License. |
|
| 196 |
|
|
| 197 |
7. If, as a consequence of a court judgment or allegation of patent |
|
| 198 |
infringement or for any other reason (not limited to patent issues), |
|
| 199 |
conditions are imposed on you (whether by court order, agreement or |
|
| 200 |
otherwise) that contradict the conditions of this License, they do not |
|
| 201 |
excuse you from the conditions of this License. If you cannot |
|
| 202 |
distribute so as to satisfy simultaneously your obligations under this |
|
| 203 |
License and any other pertinent obligations, then as a consequence you |
|
| 204 |
may not distribute the Program at all. For example, if a patent |
|
| 205 |
license would not permit royalty-free redistribution of the Program by |
|
| 206 |
all those who receive copies directly or indirectly through you, then |
|
| 207 |
the only way you could satisfy both it and this License would be to |
|
| 208 |
refrain entirely from distribution of the Program. |
|
| 209 |
|
|
| 210 |
If any portion of this section is held invalid or unenforceable under |
|
| 211 |
any particular circumstance, the balance of the section is intended to |
|
| 212 |
apply and the section as a whole is intended to apply in other |
|
| 213 |
circumstances. |
|
| 214 |
|
|
| 215 |
It is not the purpose of this section to induce you to infringe any |
|
| 216 |
patents or other property right claims or to contest validity of any |
|
| 217 |
such claims; this section has the sole purpose of protecting the |
|
| 218 |
integrity of the free software distribution system, which is |
|
| 219 |
implemented by public license practices. Many people have made |
|
| 220 |
generous contributions to the wide range of software distributed |
|
| 221 |
through that system in reliance on consistent application of that |
|
| 222 |
system; it is up to the author/donor to decide if he or she is willing |
|
| 223 |
to distribute software through any other system and a licensee cannot |
|
| 224 |
impose that choice. |
|
| 225 |
|
|
| 226 |
This section is intended to make thoroughly clear what is believed to |
|
| 227 |
be a consequence of the rest of this License. |
|
| 228 |
|
|
| 229 |
8. If the distribution and/or use of the Program is restricted in |
|
| 230 |
certain countries either by patents or by copyrighted interfaces, the |
|
| 231 |
original copyright holder who places the Program under this License |
|
| 232 |
may add an explicit geographical distribution limitation excluding |
|
| 233 |
those countries, so that distribution is permitted only in or among |
|
| 234 |
countries not thus excluded. In such case, this License incorporates |
|
| 235 |
the limitation as if written in the body of this License. |
|
| 236 |
|
|
| 237 |
9. The Free Software Foundation may publish revised and/or new versions |
|
| 238 |
of the General Public License from time to time. Such new versions will |
|
| 239 |
be similar in spirit to the present version, but may differ in detail to |
|
| 240 |
address new problems or concerns. |
|
| 241 |
|
|
| 242 |
Each version is given a distinguishing version number. If the Program |
|
| 243 |
specifies a version number of this License which applies to it and "any |
|
| 244 |
later version", you have the option of following the terms and conditions |
|
| 245 |
either of that version or of any later version published by the Free |
|
| 246 |
Software Foundation. If the Program does not specify a version number of |
|
| 247 |
this License, you may choose any version ever published by the Free Software |
|
| 248 |
Foundation. |
|
| 249 |
|
|
| 250 |
10. If you wish to incorporate parts of the Program into other free |
|
| 251 |
programs whose distribution conditions are different, write to the author |
|
| 252 |
to ask for permission. For software which is copyrighted by the Free |
|
| 253 |
Software Foundation, write to the Free Software Foundation; we sometimes |
|
| 254 |
make exceptions for this. Our decision will be guided by the two goals |
|
| 255 |
of preserving the free status of all derivatives of our free software and |
|
| 256 |
of promoting the sharing and reuse of software generally. |
|
| 257 |
|
|
| 258 |
NO WARRANTY |
|
| 259 |
|
|
| 260 |
11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY |
|
| 261 |
FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN |
|
| 262 |
OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES |
|
| 263 |
PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED |
|
| 264 |
OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF |
|
| 265 |
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS |
|
| 266 |
TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE |
|
| 267 |
PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, |
|
| 268 |
REPAIR OR CORRECTION. |
|
| 269 |
|
|
| 270 |
12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING |
|
| 271 |
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR |
|
| 272 |
REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, |
|
| 273 |
INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING |
|
| 274 |
OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED |
|
| 275 |
TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY |
|
| 276 |
YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER |
|
| 277 |
PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE |
|
| 278 |
POSSIBILITY OF SUCH DAMAGES. |
|
| 279 |
|
|
| 280 |
END OF TERMS AND CONDITIONS |
|
| 281 |
|
|
| 282 |
How to Apply These Terms to Your New Programs |
|
| 283 |
|
|
| 284 |
If you develop a new program, and you want it to be of the greatest |
|
| 285 |
possible use to the public, the best way to achieve this is to make it |
|
| 286 |
free software which everyone can redistribute and change under these terms. |
|
| 287 |
|
|
| 288 |
To do so, attach the following notices to the program. It is safest |
|
| 289 |
to attach them to the start of each source file to most effectively |
|
| 290 |
convey the exclusion of warranty; and each file should have at least |
|
| 291 |
the "copyright" line and a pointer to where the full notice is found. |
|
| 292 |
|
|
| 293 |
<one line to give the program's name and a brief idea of what it does.> |
|
| 294 |
Copyright (C) <year> <name of author> |
|
| 295 |
|
|
| 296 |
This program is free software; you can redistribute it and/or modify |
|
| 297 |
it under the terms of the GNU General Public License as published by |
|
| 298 |
the Free Software Foundation; either version 2 of the License, or |
|
| 299 |
(at your option) any later version. |
|
| 300 |
|
|
| 301 |
This program is distributed in the hope that it will be useful, |
|
| 302 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
| 303 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
| 304 |
GNU General Public License for more details. |
|
| 305 |
|
|
| 306 |
You should have received a copy of the GNU General Public License along |
|
| 307 |
with this program; if not, write to the Free Software Foundation, Inc., |
|
| 308 |
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. |
|
| 309 |
|
|
| 310 |
Also add information on how to contact you by electronic and paper mail. |
|
| 311 |
|
|
| 312 |
If the program is interactive, make it output a short notice like this |
|
| 313 |
when it starts in an interactive mode: |
|
| 314 |
|
|
| 315 |
Gnomovision version 69, Copyright (C) year name of author |
|
| 316 |
Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. |
|
| 317 |
This is free software, and you are welcome to redistribute it |
|
| 318 |
under certain conditions; type `show c' for details. |
|
| 319 |
|
|
| 320 |
The hypothetical commands `show w' and `show c' should show the appropriate |
|
| 321 |
parts of the General Public License. Of course, the commands you use may |
|
| 322 |
be called something other than `show w' and `show c'; they could even be |
|
| 323 |
mouse-clicks or menu items--whatever suits your program. |
|
| 324 |
|
|
| 325 |
You should also get your employer (if you work as a programmer) or your |
|
| 326 |
school, if any, to sign a "copyright disclaimer" for the program, if |
|
| 327 |
necessary. Here is a sample; alter the names: |
|
| 328 |
|
|
| 329 |
Yoyodyne, Inc., hereby disclaims all copyright interest in the program |
|
| 330 |
`Gnomovision' (which makes passes at compilers) written by James Hacker. |
|
| 331 |
|
|
| 332 |
<signature of Ty Coon>, 1 April 1989 |
|
| 333 |
Ty Coon, President of Vice |
|
| 334 |
|
|
| 335 |
This General Public License does not permit incorporating your program into |
|
| 336 |
proprietary programs. If your program is a subroutine library, you may |
|
| 337 |
consider it more useful to permit linking proprietary applications with the |
|
| 338 |
library. If this is what you want to do, use the GNU Lesser General |
|
| 339 |
Public License instead of this License. |
|
| .svn/pristine/06/068885f0c95ca2ed440e38b13dd95f7bb13f11dc.svn-base | ||
|---|---|---|
| 1 |
# Redmine - project management software |
|
| 2 |
# Copyright (C) 2006-2011 Jean-Philippe Lang |
|
| 3 |
# |
|
| 4 |
# This program is free software; you can redistribute it and/or |
|
| 5 |
# modify it under the terms of the GNU General Public License |
|
| 6 |
# as published by the Free Software Foundation; either version 2 |
|
| 7 |
# of the License, or (at your option) any later version. |
|
| 8 |
# |
|
| 9 |
# This program is distributed in the hope that it will be useful, |
|
| 10 |
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
| 11 |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
| 12 |
# GNU General Public License for more details. |
|
| 13 |
# |
|
| 14 |
# You should have received a copy of the GNU General Public License |
|
| 15 |
# along with this program; if not, write to the Free Software |
|
| 16 |
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
|
| 17 |
|
|
| 18 |
require File.expand_path('../../test_helper', __FILE__)
|
|
| 19 |
|
|
| 20 |
class CustomFieldTest < ActiveSupport::TestCase |
|
| 21 |
fixtures :custom_fields |
|
| 22 |
|
|
| 23 |
def test_create |
|
| 24 |
field = UserCustomField.new(:name => 'Money money money', :field_format => 'float') |
|
| 25 |
assert field.save |
|
| 26 |
end |
|
| 27 |
|
|
| 28 |
def test_regexp_validation |
|
| 29 |
field = IssueCustomField.new(:name => 'regexp', :field_format => 'text', :regexp => '[a-z0-9') |
|
| 30 |
assert !field.save |
|
| 31 |
assert_equal I18n.t('activerecord.errors.messages.invalid'), field.errors.on(:regexp)
|
|
| 32 |
|
|
| 33 |
field.regexp = '[a-z0-9]' |
|
| 34 |
assert field.save |
|
| 35 |
end |
|
| 36 |
|
|
| 37 |
def test_possible_values_should_accept_an_array |
|
| 38 |
field = CustomField.new |
|
| 39 |
field.possible_values = ["One value", ""] |
|
| 40 |
assert_equal ["One value"], field.possible_values |
|
| 41 |
end |
|
| 42 |
|
|
| 43 |
def test_possible_values_should_accept_a_string |
|
| 44 |
field = CustomField.new |
|
| 45 |
field.possible_values = "One value" |
|
| 46 |
assert_equal ["One value"], field.possible_values |
|
| 47 |
end |
|
| 48 |
|
|
| 49 |
def test_possible_values_should_accept_a_multiline_string |
|
| 50 |
field = CustomField.new |
|
| 51 |
field.possible_values = "One value\nAnd another one \r\n \n" |
|
| 52 |
assert_equal ["One value", "And another one"], field.possible_values |
|
| 53 |
end |
|
| 54 |
|
|
| 55 |
def test_destroy |
|
| 56 |
field = CustomField.find(1) |
|
| 57 |
assert field.destroy |
|
| 58 |
end |
|
| 59 |
end |
|
| .svn/pristine/06/06aa9d1d0636535d93ef529aee72095eced64467.svn-base | ||
|---|---|---|
| 1 |
<%= call_hook(:view_repositories_show_contextual, { :repository => @repository, :project => @project }) %>
|
|
| 2 |
|
|
| 3 |
<div class="contextual"> |
|
| 4 |
<%= render :partial => 'navigation' %> |
|
| 5 |
</div> |
|
| 6 |
|
|
| 7 |
<h2> |
|
| 8 |
<%= render :partial => 'breadcrumbs', :locals => { :path => @path, :kind => (@entry ? @entry.kind : nil), :revision => @rev } %>
|
|
| 9 |
</h2> |
|
| 10 |
|
|
| 11 |
<p><%= render :partial => 'link_to_functions' %></p> |
|
| 12 |
|
|
| 13 |
<%= render_properties(@properties) %> |
|
| 14 |
|
|
| 15 |
<%= render(:partial => 'revisions', |
|
| 16 |
:locals => {:project => @project, :path => @path, :revisions => @changesets, :entry => @entry }) unless @changesets.empty? %>
|
|
| 17 |
|
|
| 18 |
<% html_title(l(:label_change_plural)) -%> |
|
| .svn/pristine/06/06b89fac956f5eaa8ae34a2daf2088c102b5cfb1.svn-base | ||
|---|---|---|
| 1 |
# Redmine - project management software |
|
| 2 |
# Copyright (C) 2006-2011 Jean-Philippe Lang |
|
| 3 |
# |
|
| 4 |
# This program is free software; you can redistribute it and/or |
|
| 5 |
# modify it under the terms of the GNU General Public License |
|
| 6 |
# as published by the Free Software Foundation; either version 2 |
|
| 7 |
# of the License, or (at your option) any later version. |
|
| 8 |
# |
|
| 9 |
# This program is distributed in the hope that it will be useful, |
|
| 10 |
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
| 11 |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
| 12 |
# GNU General Public License for more details. |
|
| 13 |
# |
|
| 14 |
# You should have received a copy of the GNU General Public License |
|
| 15 |
# along with this program; if not, write to the Free Software |
|
| 16 |
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
|
| 17 |
|
|
| 18 |
class Enumeration < ActiveRecord::Base |
|
| 19 |
default_scope :order => "#{Enumeration.table_name}.position ASC"
|
|
| 20 |
|
|
| 21 |
belongs_to :project |
|
| 22 |
|
|
| 23 |
acts_as_list :scope => 'type = \'#{type}\''
|
|
| 24 |
acts_as_customizable |
|
| 25 |
acts_as_tree :order => 'position ASC' |
|
| 26 |
|
|
| 27 |
before_destroy :check_integrity |
|
| 28 |
before_save :check_default |
|
| 29 |
|
|
| 30 |
validates_presence_of :name |
|
| 31 |
validates_uniqueness_of :name, :scope => [:type, :project_id] |
|
| 32 |
validates_length_of :name, :maximum => 30 |
|
| 33 |
|
|
| 34 |
named_scope :shared, :conditions => { :project_id => nil }
|
|
| 35 |
named_scope :active, :conditions => { :active => true }
|
|
| 36 |
named_scope :named, lambda {|arg| { :conditions => ["LOWER(#{table_name}.name) = LOWER(?)", arg.to_s.strip]}}
|
|
| 37 |
|
|
| 38 |
def self.default |
|
| 39 |
# Creates a fake default scope so Enumeration.default will check |
|
| 40 |
# it's type. STI subclasses will automatically add their own |
|
| 41 |
# types to the finder. |
|
| 42 |
if self.descends_from_active_record? |
|
| 43 |
find(:first, :conditions => { :is_default => true, :type => 'Enumeration' })
|
|
| 44 |
else |
|
| 45 |
# STI classes are |
|
| 46 |
find(:first, :conditions => { :is_default => true })
|
|
| 47 |
end |
|
| 48 |
end |
|
| 49 |
|
|
| 50 |
# Overloaded on concrete classes |
|
| 51 |
def option_name |
|
| 52 |
nil |
|
| 53 |
end |
|
| 54 |
|
|
| 55 |
def check_default |
|
| 56 |
if is_default? && is_default_changed? |
|
| 57 |
Enumeration.update_all("is_default = #{connection.quoted_false}", {:type => type})
|
|
| 58 |
end |
|
| 59 |
end |
|
| 60 |
|
|
| 61 |
# Overloaded on concrete classes |
|
| 62 |
def objects_count |
|
| 63 |
0 |
|
| 64 |
end |
|
| 65 |
|
|
| 66 |
def in_use? |
|
| 67 |
self.objects_count != 0 |
|
| 68 |
end |
|
| 69 |
|
|
| 70 |
# Is this enumeration overiding a system level enumeration? |
|
| 71 |
def is_override? |
|
| 72 |
!self.parent.nil? |
|
| 73 |
end |
|
| 74 |
|
|
| 75 |
alias :destroy_without_reassign :destroy |
|
| 76 |
|
|
| 77 |
# Destroy the enumeration |
|
| 78 |
# If a enumeration is specified, objects are reassigned |
|
| 79 |
def destroy(reassign_to = nil) |
|
| 80 |
if reassign_to && reassign_to.is_a?(Enumeration) |
|
| 81 |
self.transfer_relations(reassign_to) |
|
| 82 |
end |
|
| 83 |
destroy_without_reassign |
|
| 84 |
end |
|
| 85 |
|
|
| 86 |
def <=>(enumeration) |
|
| 87 |
position <=> enumeration.position |
|
| 88 |
end |
|
| 89 |
|
|
| 90 |
def to_s; name end |
|
| 91 |
|
|
| 92 |
# Returns the Subclasses of Enumeration. Each Subclass needs to be |
|
| 93 |
# required in development mode. |
|
| 94 |
# |
|
| 95 |
# Note: subclasses is protected in ActiveRecord |
|
| 96 |
def self.get_subclasses |
|
| 97 |
@@subclasses[Enumeration] |
|
| 98 |
end |
|
| 99 |
|
|
| 100 |
# Does the +new+ Hash override the previous Enumeration? |
|
| 101 |
def self.overridding_change?(new, previous) |
|
| 102 |
if (same_active_state?(new['active'], previous.active)) && same_custom_values?(new,previous) |
|
| 103 |
return false |
|
| 104 |
else |
|
| 105 |
return true |
|
| 106 |
end |
|
| 107 |
end |
|
| 108 |
|
|
| 109 |
# Does the +new+ Hash have the same custom values as the previous Enumeration? |
|
| 110 |
def self.same_custom_values?(new, previous) |
|
| 111 |
previous.custom_field_values.each do |custom_value| |
|
| 112 |
if custom_value.value != new["custom_field_values"][custom_value.custom_field_id.to_s] |
|
| 113 |
return false |
|
| 114 |
end |
|
| 115 |
end |
|
| 116 |
|
|
| 117 |
return true |
|
| 118 |
end |
|
| 119 |
|
|
| 120 |
# Are the new and previous fields equal? |
|
| 121 |
def self.same_active_state?(new, previous) |
|
| 122 |
new = (new == "1" ? true : false) |
|
| 123 |
return new == previous |
|
| 124 |
end |
|
| 125 |
|
|
| 126 |
private |
|
| 127 |
def check_integrity |
|
| 128 |
raise "Can't delete enumeration" if self.in_use? |
|
| 129 |
end |
|
| 130 |
|
|
| 131 |
end |
|
| 132 |
|
|
| 133 |
# Force load the subclasses in development mode |
|
| 134 |
require_dependency 'time_entry_activity' |
|
| 135 |
require_dependency 'document_category' |
|
| 136 |
require_dependency 'issue_priority' |
|
| .svn/pristine/06/06b934af3bce9be376de55c695a81c0e464edbd4.svn-base | ||
|---|---|---|
| 1 |
# Copyright (c) 2006 4ssoM LLC <www.4ssoM.com> |
|
| 2 |
# |
|
| 3 |
# The MIT License |
|
| 4 |
# |
|
| 5 |
# Permission is hereby granted, free of charge, to any person obtaining a copy |
|
| 6 |
# of this software and associated documentation files (the "Software"), to deal |
|
| 7 |
# in the Software without restriction, including without limitation the rights |
|
| 8 |
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
|
| 9 |
# copies of the Software, and to permit persons to whom the Software is |
|
| 10 |
# furnished to do so, subject to the following conditions: |
|
| 11 |
# |
|
| 12 |
# The above copyright notice and this permission notice shall be included in |
|
| 13 |
# all copies or substantial portions of the Software. |
|
| 14 |
# |
|
| 15 |
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
|
| 16 |
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
|
| 17 |
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
|
| 18 |
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
|
| 19 |
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
|
| 20 |
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN |
|
| 21 |
# THE SOFTWARE. |
|
| 22 |
|
|
| 23 |
require 'action_controller' |
|
| 24 |
require 'action_view' |
|
| 25 |
|
|
| 26 |
require 'rfpdf/action_controller' |
|
| 27 |
require 'rfpdf/action_view' |
|
| 28 |
|
|
| 29 |
require 'rfpdf/template_handler/compile_support' |
|
| 30 |
|
|
| 31 |
require 'rfpdf/template_handlers/base' |
|
| 32 |
|
|
| 33 |
|
|
| 34 |
class ActionController::Base |
|
| 35 |
include RFPDF::ActionController |
|
| 36 |
end |
|
| 37 |
|
|
| 38 |
class ActionView::Base |
|
| 39 |
include RFPDF::ActionView |
|
| 40 |
end |
|
| .svn/pristine/06/06d13f36c723de5d4d11734c74881a345af8508f.svn-base | ||
|---|---|---|
| 1 |
<%= TestHelper.view_path_for __FILE__ %> (from app) |
|
Also available in: Unified diff