Gentoo Archives: gentoo-commits

From: "Petteri Räty" <betelgeuse@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/council-webapp:master commit in: site/config/environments/, site/spec/support/, site/db/, site/app/mailers/, ...
Date: Mon, 01 Aug 2011 14:46:53
Message-Id: df1e163fe5c2cf87d8a9abd2b7afdb22c975888f.betelgeuse@gentoo
1 commit: df1e163fe5c2cf87d8a9abd2b7afdb22c975888f
2 Author: Joachim Filip Ignacy Bartosik <jbartosik <AT> gmail <DOT> com>
3 AuthorDate: Thu Jul 28 13:39:09 2011 +0000
4 Commit: Petteri Räty <betelgeuse <AT> gentoo <DOT> org>
5 CommitDate: Mon Aug 1 14:43:43 2011 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/council-webapp.git;a=commit;h=df1e163f
7
8 Add license information
9
10 ---
11 site/LICENSE.txt | 661 ++++++++++++++++++++
12 site/app/controllers/agenda_items_controller.rb | 15 +
13 site/app/controllers/agendas_controller.rb | 15 +
14 site/app/controllers/application_controller.rb | 15 +
15 site/app/controllers/front_controller.rb | 15 +
16 site/app/controllers/proxies_controller.rb | 15 +
17 site/app/controllers/users_controller.rb | 15 +
18 site/app/controllers/voting_options_controller.rb | 15 +
19 site/app/mailers/user_mailer.rb | 15 +
20 site/app/models/agenda.rb | 15 +
21 site/app/models/agenda_item.rb | 15 +
22 site/app/models/guest.rb | 15 +
23 site/app/models/participation.rb | 15 +
24 site/app/models/proxy.rb | 15 +
25 site/app/models/user.rb | 15 +
26 site/app/models/vote.rb | 15 +
27 site/app/models/voting_option.rb | 15 +
28 site/app/viewhints/agenda_hints.rb | 15 +
29 site/app/viewhints/agenda_item_hints.rb | 15 +
30 site/config/application.rb | 15 +
31 site/config/boot.rb | 15 +
32 site/config/environment.rb | 15 +
33 site/config/environments/development.rb | 15 +
34 site/config/environments/production.rb | 15 +
35 site/config/environments/test.rb | 15 +
36 site/config/hobo_routes.rb | 15 +
37 site/config/initializers/backtrace_silencers.rb | 15 +
38 site/config/initializers/custom_configs.rb | 15 +
39 site/config/initializers/devise.rb | 15 +
40 site/config/initializers/dryml_taglibs.rb | 15 +
41 site/config/initializers/inflections.rb | 15 +
42 site/config/initializers/mime_types.rb | 15 +
43 site/config/initializers/secret_token.rb | 15 +
44 site/config/initializers/session_store.rb | 15 +
45 site/config/routes.rb | 15 +
46 site/db/schema.rb | 15 +
47 site/db/seeds.rb | 15 +
48 .../features/step_definitions/agenda_item_steps.rb | 15 +
49 site/features/step_definitions/agenda_steps.rb | 15 +
50 site/features/step_definitions/cookie_steps.rb | 15 +
51 site/features/step_definitions/irc_nick_steps.rb | 15 +
52 site/features/step_definitions/login_steps.rb | 15 +
53 .../step_definitions/participations_steps.rb | 15 +
54 site/features/step_definitions/proxies_steps.rb | 15 +
55 site/features/step_definitions/voting_steps.rb | 15 +
56 site/features/step_definitions/web_steps.rb | 15 +
57 site/features/step_definitions/within_steps.rb | 15 +
58 site/features/support/break_after_failed_step.rb | 15 +
59 site/features/support/cookies.rb | 15 +
60 site/features/support/env.rb | 15 +
61 site/features/support/paths.rb | 15 +
62 site/features/support/selectors.rb | 15 +
63 site/lib/permissions/set.rb | 15 +
64 site/spec/factories.rb | 15 +
65 site/spec/models/agenda_item_spec.rb | 15 +
66 site/spec/models/agenda_spec.rb | 15 +
67 site/spec/models/participation_spec.rb | 15 +
68 site/spec/models/proxy_spec.rb | 15 +
69 site/spec/models/user_mailer_spec.rb | 15 +
70 site/spec/models/user_spec.rb | 15 +
71 site/spec/models/vote_spec.rb | 15 +
72 site/spec/models/voting_option_spec.rb | 15 +
73 site/spec/spec_helper.rb | 15 +
74 site/spec/support/delayed_should_receive.rb | 15 +
75 site/spec/support/http_stub.rb | 15 +
76 site/spec/support/should_have_text.rb | 15 +
77 site/spec/support/users_factory.rb | 15 +
78 67 files changed, 1651 insertions(+), 0 deletions(-)
79
80 diff --git a/site/LICENSE.txt b/site/LICENSE.txt
81 new file mode 100644
82 index 0000000..dba13ed
83 --- /dev/null
84 +++ b/site/LICENSE.txt
85 @@ -0,0 +1,661 @@
86 + GNU AFFERO GENERAL PUBLIC LICENSE
87 + Version 3, 19 November 2007
88 +
89 + Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
90 + Everyone is permitted to copy and distribute verbatim copies
91 + of this license document, but changing it is not allowed.
92 +
93 + Preamble
94 +
95 + The GNU Affero General Public License is a free, copyleft license for
96 +software and other kinds of works, specifically designed to ensure
97 +cooperation with the community in the case of network server software.
98 +
99 + The licenses for most software and other practical works are designed
100 +to take away your freedom to share and change the works. By contrast,
101 +our General Public Licenses are intended to guarantee your freedom to
102 +share and change all versions of a program--to make sure it remains free
103 +software for all its users.
104 +
105 + When we speak of free software, we are referring to freedom, not
106 +price. Our General Public Licenses are designed to make sure that you
107 +have the freedom to distribute copies of free software (and charge for
108 +them if you wish), that you receive source code or can get it if you
109 +want it, that you can change the software or use pieces of it in new
110 +free programs, and that you know you can do these things.
111 +
112 + Developers that use our General Public Licenses protect your rights
113 +with two steps: (1) assert copyright on the software, and (2) offer
114 +you this License which gives you legal permission to copy, distribute
115 +and/or modify the software.
116 +
117 + A secondary benefit of defending all users' freedom is that
118 +improvements made in alternate versions of the program, if they
119 +receive widespread use, become available for other developers to
120 +incorporate. Many developers of free software are heartened and
121 +encouraged by the resulting cooperation. However, in the case of
122 +software used on network servers, this result may fail to come about.
123 +The GNU General Public License permits making a modified version and
124 +letting the public access it on a server without ever releasing its
125 +source code to the public.
126 +
127 + The GNU Affero General Public License is designed specifically to
128 +ensure that, in such cases, the modified source code becomes available
129 +to the community. It requires the operator of a network server to
130 +provide the source code of the modified version running there to the
131 +users of that server. Therefore, public use of a modified version, on
132 +a publicly accessible server, gives the public access to the source
133 +code of the modified version.
134 +
135 + An older license, called the Affero General Public License and
136 +published by Affero, was designed to accomplish similar goals. This is
137 +a different license, not a version of the Affero GPL, but Affero has
138 +released a new version of the Affero GPL which permits relicensing under
139 +this license.
140 +
141 + The precise terms and conditions for copying, distribution and
142 +modification follow.
143 +
144 + TERMS AND CONDITIONS
145 +
146 + 0. Definitions.
147 +
148 + "This License" refers to version 3 of the GNU Affero General Public License.
149 +
150 + "Copyright" also means copyright-like laws that apply to other kinds of
151 +works, such as semiconductor masks.
152 +
153 + "The Program" refers to any copyrightable work licensed under this
154 +License. Each licensee is addressed as "you". "Licensees" and
155 +"recipients" may be individuals or organizations.
156 +
157 + To "modify" a work means to copy from or adapt all or part of the work
158 +in a fashion requiring copyright permission, other than the making of an
159 +exact copy. The resulting work is called a "modified version" of the
160 +earlier work or a work "based on" the earlier work.
161 +
162 + A "covered work" means either the unmodified Program or a work based
163 +on the Program.
164 +
165 + To "propagate" a work means to do anything with it that, without
166 +permission, would make you directly or secondarily liable for
167 +infringement under applicable copyright law, except executing it on a
168 +computer or modifying a private copy. Propagation includes copying,
169 +distribution (with or without modification), making available to the
170 +public, and in some countries other activities as well.
171 +
172 + To "convey" a work means any kind of propagation that enables other
173 +parties to make or receive copies. Mere interaction with a user through
174 +a computer network, with no transfer of a copy, is not conveying.
175 +
176 + An interactive user interface displays "Appropriate Legal Notices"
177 +to the extent that it includes a convenient and prominently visible
178 +feature that (1) displays an appropriate copyright notice, and (2)
179 +tells the user that there is no warranty for the work (except to the
180 +extent that warranties are provided), that licensees may convey the
181 +work under this License, and how to view a copy of this License. If
182 +the interface presents a list of user commands or options, such as a
183 +menu, a prominent item in the list meets this criterion.
184 +
185 + 1. Source Code.
186 +
187 + The "source code" for a work means the preferred form of the work
188 +for making modifications to it. "Object code" means any non-source
189 +form of a work.
190 +
191 + A "Standard Interface" means an interface that either is an official
192 +standard defined by a recognized standards body, or, in the case of
193 +interfaces specified for a particular programming language, one that
194 +is widely used among developers working in that language.
195 +
196 + The "System Libraries" of an executable work include anything, other
197 +than the work as a whole, that (a) is included in the normal form of
198 +packaging a Major Component, but which is not part of that Major
199 +Component, and (b) serves only to enable use of the work with that
200 +Major Component, or to implement a Standard Interface for which an
201 +implementation is available to the public in source code form. A
202 +"Major Component", in this context, means a major essential component
203 +(kernel, window system, and so on) of the specific operating system
204 +(if any) on which the executable work runs, or a compiler used to
205 +produce the work, or an object code interpreter used to run it.
206 +
207 + The "Corresponding Source" for a work in object code form means all
208 +the source code needed to generate, install, and (for an executable
209 +work) run the object code and to modify the work, including scripts to
210 +control those activities. However, it does not include the work's
211 +System Libraries, or general-purpose tools or generally available free
212 +programs which are used unmodified in performing those activities but
213 +which are not part of the work. For example, Corresponding Source
214 +includes interface definition files associated with source files for
215 +the work, and the source code for shared libraries and dynamically
216 +linked subprograms that the work is specifically designed to require,
217 +such as by intimate data communication or control flow between those
218 +subprograms and other parts of the work.
219 +
220 + The Corresponding Source need not include anything that users
221 +can regenerate automatically from other parts of the Corresponding
222 +Source.
223 +
224 + The Corresponding Source for a work in source code form is that
225 +same work.
226 +
227 + 2. Basic Permissions.
228 +
229 + All rights granted under this License are granted for the term of
230 +copyright on the Program, and are irrevocable provided the stated
231 +conditions are met. This License explicitly affirms your unlimited
232 +permission to run the unmodified Program. The output from running a
233 +covered work is covered by this License only if the output, given its
234 +content, constitutes a covered work. This License acknowledges your
235 +rights of fair use or other equivalent, as provided by copyright law.
236 +
237 + You may make, run and propagate covered works that you do not
238 +convey, without conditions so long as your license otherwise remains
239 +in force. You may convey covered works to others for the sole purpose
240 +of having them make modifications exclusively for you, or provide you
241 +with facilities for running those works, provided that you comply with
242 +the terms of this License in conveying all material for which you do
243 +not control copyright. Those thus making or running the covered works
244 +for you must do so exclusively on your behalf, under your direction
245 +and control, on terms that prohibit them from making any copies of
246 +your copyrighted material outside their relationship with you.
247 +
248 + Conveying under any other circumstances is permitted solely under
249 +the conditions stated below. Sublicensing is not allowed; section 10
250 +makes it unnecessary.
251 +
252 + 3. Protecting Users' Legal Rights From Anti-Circumvention Law.
253 +
254 + No covered work shall be deemed part of an effective technological
255 +measure under any applicable law fulfilling obligations under article
256 +11 of the WIPO copyright treaty adopted on 20 December 1996, or
257 +similar laws prohibiting or restricting circumvention of such
258 +measures.
259 +
260 + When you convey a covered work, you waive any legal power to forbid
261 +circumvention of technological measures to the extent such circumvention
262 +is effected by exercising rights under this License with respect to
263 +the covered work, and you disclaim any intention to limit operation or
264 +modification of the work as a means of enforcing, against the work's
265 +users, your or third parties' legal rights to forbid circumvention of
266 +technological measures.
267 +
268 + 4. Conveying Verbatim Copies.
269 +
270 + You may convey verbatim copies of the Program's source code as you
271 +receive it, in any medium, provided that you conspicuously and
272 +appropriately publish on each copy an appropriate copyright notice;
273 +keep intact all notices stating that this License and any
274 +non-permissive terms added in accord with section 7 apply to the code;
275 +keep intact all notices of the absence of any warranty; and give all
276 +recipients a copy of this License along with the Program.
277 +
278 + You may charge any price or no price for each copy that you convey,
279 +and you may offer support or warranty protection for a fee.
280 +
281 + 5. Conveying Modified Source Versions.
282 +
283 + You may convey a work based on the Program, or the modifications to
284 +produce it from the Program, in the form of source code under the
285 +terms of section 4, provided that you also meet all of these conditions:
286 +
287 + a) The work must carry prominent notices stating that you modified
288 + it, and giving a relevant date.
289 +
290 + b) The work must carry prominent notices stating that it is
291 + released under this License and any conditions added under section
292 + 7. This requirement modifies the requirement in section 4 to
293 + "keep intact all notices".
294 +
295 + c) You must license the entire work, as a whole, under this
296 + License to anyone who comes into possession of a copy. This
297 + License will therefore apply, along with any applicable section 7
298 + additional terms, to the whole of the work, and all its parts,
299 + regardless of how they are packaged. This License gives no
300 + permission to license the work in any other way, but it does not
301 + invalidate such permission if you have separately received it.
302 +
303 + d) If the work has interactive user interfaces, each must display
304 + Appropriate Legal Notices; however, if the Program has interactive
305 + interfaces that do not display Appropriate Legal Notices, your
306 + work need not make them do so.
307 +
308 + A compilation of a covered work with other separate and independent
309 +works, which are not by their nature extensions of the covered work,
310 +and which are not combined with it such as to form a larger program,
311 +in or on a volume of a storage or distribution medium, is called an
312 +"aggregate" if the compilation and its resulting copyright are not
313 +used to limit the access or legal rights of the compilation's users
314 +beyond what the individual works permit. Inclusion of a covered work
315 +in an aggregate does not cause this License to apply to the other
316 +parts of the aggregate.
317 +
318 + 6. Conveying Non-Source Forms.
319 +
320 + You may convey a covered work in object code form under the terms
321 +of sections 4 and 5, provided that you also convey the
322 +machine-readable Corresponding Source under the terms of this License,
323 +in one of these ways:
324 +
325 + a) Convey the object code in, or embodied in, a physical product
326 + (including a physical distribution medium), accompanied by the
327 + Corresponding Source fixed on a durable physical medium
328 + customarily used for software interchange.
329 +
330 + b) Convey the object code in, or embodied in, a physical product
331 + (including a physical distribution medium), accompanied by a
332 + written offer, valid for at least three years and valid for as
333 + long as you offer spare parts or customer support for that product
334 + model, to give anyone who possesses the object code either (1) a
335 + copy of the Corresponding Source for all the software in the
336 + product that is covered by this License, on a durable physical
337 + medium customarily used for software interchange, for a price no
338 + more than your reasonable cost of physically performing this
339 + conveying of source, or (2) access to copy the
340 + Corresponding Source from a network server at no charge.
341 +
342 + c) Convey individual copies of the object code with a copy of the
343 + written offer to provide the Corresponding Source. This
344 + alternative is allowed only occasionally and noncommercially, and
345 + only if you received the object code with such an offer, in accord
346 + with subsection 6b.
347 +
348 + d) Convey the object code by offering access from a designated
349 + place (gratis or for a charge), and offer equivalent access to the
350 + Corresponding Source in the same way through the same place at no
351 + further charge. You need not require recipients to copy the
352 + Corresponding Source along with the object code. If the place to
353 + copy the object code is a network server, the Corresponding Source
354 + may be on a different server (operated by you or a third party)
355 + that supports equivalent copying facilities, provided you maintain
356 + clear directions next to the object code saying where to find the
357 + Corresponding Source. Regardless of what server hosts the
358 + Corresponding Source, you remain obligated to ensure that it is
359 + available for as long as needed to satisfy these requirements.
360 +
361 + e) Convey the object code using peer-to-peer transmission, provided
362 + you inform other peers where the object code and Corresponding
363 + Source of the work are being offered to the general public at no
364 + charge under subsection 6d.
365 +
366 + A separable portion of the object code, whose source code is excluded
367 +from the Corresponding Source as a System Library, need not be
368 +included in conveying the object code work.
369 +
370 + A "User Product" is either (1) a "consumer product", which means any
371 +tangible personal property which is normally used for personal, family,
372 +or household purposes, or (2) anything designed or sold for incorporation
373 +into a dwelling. In determining whether a product is a consumer product,
374 +doubtful cases shall be resolved in favor of coverage. For a particular
375 +product received by a particular user, "normally used" refers to a
376 +typical or common use of that class of product, regardless of the status
377 +of the particular user or of the way in which the particular user
378 +actually uses, or expects or is expected to use, the product. A product
379 +is a consumer product regardless of whether the product has substantial
380 +commercial, industrial or non-consumer uses, unless such uses represent
381 +the only significant mode of use of the product.
382 +
383 + "Installation Information" for a User Product means any methods,
384 +procedures, authorization keys, or other information required to install
385 +and execute modified versions of a covered work in that User Product from
386 +a modified version of its Corresponding Source. The information must
387 +suffice to ensure that the continued functioning of the modified object
388 +code is in no case prevented or interfered with solely because
389 +modification has been made.
390 +
391 + If you convey an object code work under this section in, or with, or
392 +specifically for use in, a User Product, and the conveying occurs as
393 +part of a transaction in which the right of possession and use of the
394 +User Product is transferred to the recipient in perpetuity or for a
395 +fixed term (regardless of how the transaction is characterized), the
396 +Corresponding Source conveyed under this section must be accompanied
397 +by the Installation Information. But this requirement does not apply
398 +if neither you nor any third party retains the ability to install
399 +modified object code on the User Product (for example, the work has
400 +been installed in ROM).
401 +
402 + The requirement to provide Installation Information does not include a
403 +requirement to continue to provide support service, warranty, or updates
404 +for a work that has been modified or installed by the recipient, or for
405 +the User Product in which it has been modified or installed. Access to a
406 +network may be denied when the modification itself materially and
407 +adversely affects the operation of the network or violates the rules and
408 +protocols for communication across the network.
409 +
410 + Corresponding Source conveyed, and Installation Information provided,
411 +in accord with this section must be in a format that is publicly
412 +documented (and with an implementation available to the public in
413 +source code form), and must require no special password or key for
414 +unpacking, reading or copying.
415 +
416 + 7. Additional Terms.
417 +
418 + "Additional permissions" are terms that supplement the terms of this
419 +License by making exceptions from one or more of its conditions.
420 +Additional permissions that are applicable to the entire Program shall
421 +be treated as though they were included in this License, to the extent
422 +that they are valid under applicable law. If additional permissions
423 +apply only to part of the Program, that part may be used separately
424 +under those permissions, but the entire Program remains governed by
425 +this License without regard to the additional permissions.
426 +
427 + When you convey a copy of a covered work, you may at your option
428 +remove any additional permissions from that copy, or from any part of
429 +it. (Additional permissions may be written to require their own
430 +removal in certain cases when you modify the work.) You may place
431 +additional permissions on material, added by you to a covered work,
432 +for which you have or can give appropriate copyright permission.
433 +
434 + Notwithstanding any other provision of this License, for material you
435 +add to a covered work, you may (if authorized by the copyright holders of
436 +that material) supplement the terms of this License with terms:
437 +
438 + a) Disclaiming warranty or limiting liability differently from the
439 + terms of sections 15 and 16 of this License; or
440 +
441 + b) Requiring preservation of specified reasonable legal notices or
442 + author attributions in that material or in the Appropriate Legal
443 + Notices displayed by works containing it; or
444 +
445 + c) Prohibiting misrepresentation of the origin of that material, or
446 + requiring that modified versions of such material be marked in
447 + reasonable ways as different from the original version; or
448 +
449 + d) Limiting the use for publicity purposes of names of licensors or
450 + authors of the material; or
451 +
452 + e) Declining to grant rights under trademark law for use of some
453 + trade names, trademarks, or service marks; or
454 +
455 + f) Requiring indemnification of licensors and authors of that
456 + material by anyone who conveys the material (or modified versions of
457 + it) with contractual assumptions of liability to the recipient, for
458 + any liability that these contractual assumptions directly impose on
459 + those licensors and authors.
460 +
461 + All other non-permissive additional terms are considered "further
462 +restrictions" within the meaning of section 10. If the Program as you
463 +received it, or any part of it, contains a notice stating that it is
464 +governed by this License along with a term that is a further
465 +restriction, you may remove that term. If a license document contains
466 +a further restriction but permits relicensing or conveying under this
467 +License, you may add to a covered work material governed by the terms
468 +of that license document, provided that the further restriction does
469 +not survive such relicensing or conveying.
470 +
471 + If you add terms to a covered work in accord with this section, you
472 +must place, in the relevant source files, a statement of the
473 +additional terms that apply to those files, or a notice indicating
474 +where to find the applicable terms.
475 +
476 + Additional terms, permissive or non-permissive, may be stated in the
477 +form of a separately written license, or stated as exceptions;
478 +the above requirements apply either way.
479 +
480 + 8. Termination.
481 +
482 + You may not propagate or modify a covered work except as expressly
483 +provided under this License. Any attempt otherwise to propagate or
484 +modify it is void, and will automatically terminate your rights under
485 +this License (including any patent licenses granted under the third
486 +paragraph of section 11).
487 +
488 + However, if you cease all violation of this License, then your
489 +license from a particular copyright holder is reinstated (a)
490 +provisionally, unless and until the copyright holder explicitly and
491 +finally terminates your license, and (b) permanently, if the copyright
492 +holder fails to notify you of the violation by some reasonable means
493 +prior to 60 days after the cessation.
494 +
495 + Moreover, your license from a particular copyright holder is
496 +reinstated permanently if the copyright holder notifies you of the
497 +violation by some reasonable means, this is the first time you have
498 +received notice of violation of this License (for any work) from that
499 +copyright holder, and you cure the violation prior to 30 days after
500 +your receipt of the notice.
501 +
502 + Termination of your rights under this section does not terminate the
503 +licenses of parties who have received copies or rights from you under
504 +this License. If your rights have been terminated and not permanently
505 +reinstated, you do not qualify to receive new licenses for the same
506 +material under section 10.
507 +
508 + 9. Acceptance Not Required for Having Copies.
509 +
510 + You are not required to accept this License in order to receive or
511 +run a copy of the Program. Ancillary propagation of a covered work
512 +occurring solely as a consequence of using peer-to-peer transmission
513 +to receive a copy likewise does not require acceptance. However,
514 +nothing other than this License grants you permission to propagate or
515 +modify any covered work. These actions infringe copyright if you do
516 +not accept this License. Therefore, by modifying or propagating a
517 +covered work, you indicate your acceptance of this License to do so.
518 +
519 + 10. Automatic Licensing of Downstream Recipients.
520 +
521 + Each time you convey a covered work, the recipient automatically
522 +receives a license from the original licensors, to run, modify and
523 +propagate that work, subject to this License. You are not responsible
524 +for enforcing compliance by third parties with this License.
525 +
526 + An "entity transaction" is a transaction transferring control of an
527 +organization, or substantially all assets of one, or subdividing an
528 +organization, or merging organizations. If propagation of a covered
529 +work results from an entity transaction, each party to that
530 +transaction who receives a copy of the work also receives whatever
531 +licenses to the work the party's predecessor in interest had or could
532 +give under the previous paragraph, plus a right to possession of the
533 +Corresponding Source of the work from the predecessor in interest, if
534 +the predecessor has it or can get it with reasonable efforts.
535 +
536 + You may not impose any further restrictions on the exercise of the
537 +rights granted or affirmed under this License. For example, you may
538 +not impose a license fee, royalty, or other charge for exercise of
539 +rights granted under this License, and you may not initiate litigation
540 +(including a cross-claim or counterclaim in a lawsuit) alleging that
541 +any patent claim is infringed by making, using, selling, offering for
542 +sale, or importing the Program or any portion of it.
543 +
544 + 11. Patents.
545 +
546 + A "contributor" is a copyright holder who authorizes use under this
547 +License of the Program or a work on which the Program is based. The
548 +work thus licensed is called the contributor's "contributor version".
549 +
550 + A contributor's "essential patent claims" are all patent claims
551 +owned or controlled by the contributor, whether already acquired or
552 +hereafter acquired, that would be infringed by some manner, permitted
553 +by this License, of making, using, or selling its contributor version,
554 +but do not include claims that would be infringed only as a
555 +consequence of further modification of the contributor version. For
556 +purposes of this definition, "control" includes the right to grant
557 +patent sublicenses in a manner consistent with the requirements of
558 +this License.
559 +
560 + Each contributor grants you a non-exclusive, worldwide, royalty-free
561 +patent license under the contributor's essential patent claims, to
562 +make, use, sell, offer for sale, import and otherwise run, modify and
563 +propagate the contents of its contributor version.
564 +
565 + In the following three paragraphs, a "patent license" is any express
566 +agreement or commitment, however denominated, not to enforce a patent
567 +(such as an express permission to practice a patent or covenant not to
568 +sue for patent infringement). To "grant" such a patent license to a
569 +party means to make such an agreement or commitment not to enforce a
570 +patent against the party.
571 +
572 + If you convey a covered work, knowingly relying on a patent license,
573 +and the Corresponding Source of the work is not available for anyone
574 +to copy, free of charge and under the terms of this License, through a
575 +publicly available network server or other readily accessible means,
576 +then you must either (1) cause the Corresponding Source to be so
577 +available, or (2) arrange to deprive yourself of the benefit of the
578 +patent license for this particular work, or (3) arrange, in a manner
579 +consistent with the requirements of this License, to extend the patent
580 +license to downstream recipients. "Knowingly relying" means you have
581 +actual knowledge that, but for the patent license, your conveying the
582 +covered work in a country, or your recipient's use of the covered work
583 +in a country, would infringe one or more identifiable patents in that
584 +country that you have reason to believe are valid.
585 +
586 + If, pursuant to or in connection with a single transaction or
587 +arrangement, you convey, or propagate by procuring conveyance of, a
588 +covered work, and grant a patent license to some of the parties
589 +receiving the covered work authorizing them to use, propagate, modify
590 +or convey a specific copy of the covered work, then the patent license
591 +you grant is automatically extended to all recipients of the covered
592 +work and works based on it.
593 +
594 + A patent license is "discriminatory" if it does not include within
595 +the scope of its coverage, prohibits the exercise of, or is
596 +conditioned on the non-exercise of one or more of the rights that are
597 +specifically granted under this License. You may not convey a covered
598 +work if you are a party to an arrangement with a third party that is
599 +in the business of distributing software, under which you make payment
600 +to the third party based on the extent of your activity of conveying
601 +the work, and under which the third party grants, to any of the
602 +parties who would receive the covered work from you, a discriminatory
603 +patent license (a) in connection with copies of the covered work
604 +conveyed by you (or copies made from those copies), or (b) primarily
605 +for and in connection with specific products or compilations that
606 +contain the covered work, unless you entered into that arrangement,
607 +or that patent license was granted, prior to 28 March 2007.
608 +
609 + Nothing in this License shall be construed as excluding or limiting
610 +any implied license or other defenses to infringement that may
611 +otherwise be available to you under applicable patent law.
612 +
613 + 12. No Surrender of Others' Freedom.
614 +
615 + If conditions are imposed on you (whether by court order, agreement or
616 +otherwise) that contradict the conditions of this License, they do not
617 +excuse you from the conditions of this License. If you cannot convey a
618 +covered work so as to satisfy simultaneously your obligations under this
619 +License and any other pertinent obligations, then as a consequence you may
620 +not convey it at all. For example, if you agree to terms that obligate you
621 +to collect a royalty for further conveying from those to whom you convey
622 +the Program, the only way you could satisfy both those terms and this
623 +License would be to refrain entirely from conveying the Program.
624 +
625 + 13. Remote Network Interaction; Use with the GNU General Public License.
626 +
627 + Notwithstanding any other provision of this License, if you modify the
628 +Program, your modified version must prominently offer all users
629 +interacting with it remotely through a computer network (if your version
630 +supports such interaction) an opportunity to receive the Corresponding
631 +Source of your version by providing access to the Corresponding Source
632 +from a network server at no charge, through some standard or customary
633 +means of facilitating copying of software. This Corresponding Source
634 +shall include the Corresponding Source for any work covered by version 3
635 +of the GNU General Public License that is incorporated pursuant to the
636 +following paragraph.
637 +
638 + Notwithstanding any other provision of this License, you have
639 +permission to link or combine any covered work with a work licensed
640 +under version 3 of the GNU General Public License into a single
641 +combined work, and to convey the resulting work. The terms of this
642 +License will continue to apply to the part which is the covered work,
643 +but the work with which it is combined will remain governed by version
644 +3 of the GNU General Public License.
645 +
646 + 14. Revised Versions of this License.
647 +
648 + The Free Software Foundation may publish revised and/or new versions of
649 +the GNU Affero General Public License from time to time. Such new versions
650 +will be similar in spirit to the present version, but may differ in detail to
651 +address new problems or concerns.
652 +
653 + Each version is given a distinguishing version number. If the
654 +Program specifies that a certain numbered version of the GNU Affero General
655 +Public License "or any later version" applies to it, you have the
656 +option of following the terms and conditions either of that numbered
657 +version or of any later version published by the Free Software
658 +Foundation. If the Program does not specify a version number of the
659 +GNU Affero General Public License, you may choose any version ever published
660 +by the Free Software Foundation.
661 +
662 + If the Program specifies that a proxy can decide which future
663 +versions of the GNU Affero General Public License can be used, that proxy's
664 +public statement of acceptance of a version permanently authorizes you
665 +to choose that version for the Program.
666 +
667 + Later license versions may give you additional or different
668 +permissions. However, no additional obligations are imposed on any
669 +author or copyright holder as a result of your choosing to follow a
670 +later version.
671 +
672 + 15. Disclaimer of Warranty.
673 +
674 + THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
675 +APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
676 +HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
677 +OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
678 +THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
679 +PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
680 +IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
681 +ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
682 +
683 + 16. Limitation of Liability.
684 +
685 + IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
686 +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
687 +THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
688 +GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
689 +USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
690 +DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
691 +PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
692 +EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
693 +SUCH DAMAGES.
694 +
695 + 17. Interpretation of Sections 15 and 16.
696 +
697 + If the disclaimer of warranty and limitation of liability provided
698 +above cannot be given local legal effect according to their terms,
699 +reviewing courts shall apply local law that most closely approximates
700 +an absolute waiver of all civil liability in connection with the
701 +Program, unless a warranty or assumption of liability accompanies a
702 +copy of the Program in return for a fee.
703 +
704 + END OF TERMS AND CONDITIONS
705 +
706 + How to Apply These Terms to Your New Programs
707 +
708 + If you develop a new program, and you want it to be of the greatest
709 +possible use to the public, the best way to achieve this is to make it
710 +free software which everyone can redistribute and change under these terms.
711 +
712 + To do so, attach the following notices to the program. It is safest
713 +to attach them to the start of each source file to most effectively
714 +state the exclusion of warranty; and each file should have at least
715 +the "copyright" line and a pointer to where the full notice is found.
716 +
717 + <one line to give the program's name and a brief idea of what it does.>
718 + Copyright (C) <year> <name of author>
719 +
720 + This program is free software: you can redistribute it and/or modify
721 + it under the terms of the GNU Affero General Public License as published by
722 + the Free Software Foundation, either version 3 of the License, or
723 + (at your option) any later version.
724 +
725 + This program is distributed in the hope that it will be useful,
726 + but WITHOUT ANY WARRANTY; without even the implied warranty of
727 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
728 + GNU Affero General Public License for more details.
729 +
730 + You should have received a copy of the GNU Affero General Public License
731 + along with this program. If not, see <http://www.gnu.org/licenses/>.
732 +
733 +Also add information on how to contact you by electronic and paper mail.
734 +
735 + If your software can interact with users remotely through a computer
736 +network, you should also make sure that it provides a way for users to
737 +get its source. For example, if your program is a web application, its
738 +interface could display a "Source" link that leads users to an archive
739 +of the code. There are many ways you could offer source, and different
740 +solutions will be better for different programs; see section 13 for the
741 +specific requirements.
742 +
743 + You should also get your employer (if you work as a programmer) or school,
744 +if any, to sign a "copyright disclaimer" for the program, if necessary.
745 +For more information on this, and how to apply and follow the GNU AGPL, see
746 +<http://www.gnu.org/licenses/>.
747
748 diff --git a/site/app/controllers/agenda_items_controller.rb b/site/app/controllers/agenda_items_controller.rb
749 index 4d28112..c2944dc 100644
750 --- a/site/app/controllers/agenda_items_controller.rb
751 +++ b/site/app/controllers/agenda_items_controller.rb
752 @@ -1,3 +1,18 @@
753 +# Gentoo Council Web App - to help Gentoo Council do their job better
754 +# Copyright (C) 2011 Joachim Filip Bartosik
755 +#
756 +# This program is free software: you can redistribute it and/or modify
757 +# it under the terms of the GNU Affero General Public License as
758 +# published by the Free Software Foundation, version 3 of the License
759 +#
760 +# This program is distributed in the hope that it will be useful,
761 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
762 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
763 +# GNU Affero General Public License for more details.
764 +#
765 +# You should have received a copy of the GNU Affero General Public License
766 +# along with this program. If not, see <http://www.gnu.org/licenses/>.
767 +
768 class AgendaItemsController < ApplicationController
769
770 hobo_model_controller
771
772 diff --git a/site/app/controllers/agendas_controller.rb b/site/app/controllers/agendas_controller.rb
773 index f94d96c..4077653 100644
774 --- a/site/app/controllers/agendas_controller.rb
775 +++ b/site/app/controllers/agendas_controller.rb
776 @@ -1,3 +1,18 @@
777 +# Gentoo Council Web App - to help Gentoo Council do their job better
778 +# Copyright (C) 2011 Joachim Filip Bartosik
779 +#
780 +# This program is free software: you can redistribute it and/or modify
781 +# it under the terms of the GNU Affero General Public License as
782 +# published by the Free Software Foundation, version 3 of the License
783 +#
784 +# This program is distributed in the hope that it will be useful,
785 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
786 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
787 +# GNU Affero General Public License for more details.
788 +#
789 +# You should have received a copy of the GNU Affero General Public License
790 +# along with this program. If not, see <http://www.gnu.org/licenses/>.
791 +
792 class AgendasController < ApplicationController
793
794 hobo_model_controller
795
796 diff --git a/site/app/controllers/application_controller.rb b/site/app/controllers/application_controller.rb
797 index e8065d9..48f7fd5 100644
798 --- a/site/app/controllers/application_controller.rb
799 +++ b/site/app/controllers/application_controller.rb
800 @@ -1,3 +1,18 @@
801 +# Gentoo Council Web App - to help Gentoo Council do their job better
802 +# Copyright (C) 2011 Joachim Filip Bartosik
803 +#
804 +# This program is free software: you can redistribute it and/or modify
805 +# it under the terms of the GNU Affero General Public License as
806 +# published by the Free Software Foundation, version 3 of the License
807 +#
808 +# This program is distributed in the hope that it will be useful,
809 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
810 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
811 +# GNU Affero General Public License for more details.
812 +#
813 +# You should have received a copy of the GNU Affero General Public License
814 +# along with this program. If not, see <http://www.gnu.org/licenses/>.
815 +
816 class ApplicationController < ActionController::Base
817 protect_from_forgery
818 end
819
820 diff --git a/site/app/controllers/front_controller.rb b/site/app/controllers/front_controller.rb
821 index dda167e..0b63d6d 100644
822 --- a/site/app/controllers/front_controller.rb
823 +++ b/site/app/controllers/front_controller.rb
824 @@ -1,3 +1,18 @@
825 +# Gentoo Council Web App - to help Gentoo Council do their job better
826 +# Copyright (C) 2011 Joachim Filip Bartosik
827 +#
828 +# This program is free software: you can redistribute it and/or modify
829 +# it under the terms of the GNU Affero General Public License as
830 +# published by the Free Software Foundation, version 3 of the License
831 +#
832 +# This program is distributed in the hope that it will be useful,
833 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
834 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
835 +# GNU Affero General Public License for more details.
836 +#
837 +# You should have received a copy of the GNU Affero General Public License
838 +# along with this program. If not, see <http://www.gnu.org/licenses/>.
839 +
840 class FrontController < ApplicationController
841
842 hobo_controller
843
844 diff --git a/site/app/controllers/proxies_controller.rb b/site/app/controllers/proxies_controller.rb
845 index afd6822..69f6dd9 100644
846 --- a/site/app/controllers/proxies_controller.rb
847 +++ b/site/app/controllers/proxies_controller.rb
848 @@ -1,3 +1,18 @@
849 +# Gentoo Council Web App - to help Gentoo Council do their job better
850 +# Copyright (C) 2011 Joachim Filip Bartosik
851 +#
852 +# This program is free software: you can redistribute it and/or modify
853 +# it under the terms of the GNU Affero General Public License as
854 +# published by the Free Software Foundation, version 3 of the License
855 +#
856 +# This program is distributed in the hope that it will be useful,
857 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
858 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
859 +# GNU Affero General Public License for more details.
860 +#
861 +# You should have received a copy of the GNU Affero General Public License
862 +# along with this program. If not, see <http://www.gnu.org/licenses/>.
863 +
864 class ProxiesController < ApplicationController
865
866 hobo_model_controller
867
868 diff --git a/site/app/controllers/users_controller.rb b/site/app/controllers/users_controller.rb
869 index 945e259..bead522 100644
870 --- a/site/app/controllers/users_controller.rb
871 +++ b/site/app/controllers/users_controller.rb
872 @@ -1,3 +1,18 @@
873 +# Gentoo Council Web App - to help Gentoo Council do their job better
874 +# Copyright (C) 2011 Joachim Filip Bartosik
875 +#
876 +# This program is free software: you can redistribute it and/or modify
877 +# it under the terms of the GNU Affero General Public License as
878 +# published by the Free Software Foundation, version 3 of the License
879 +#
880 +# This program is distributed in the hope that it will be useful,
881 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
882 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
883 +# GNU Affero General Public License for more details.
884 +#
885 +# You should have received a copy of the GNU Affero General Public License
886 +# along with this program. If not, see <http://www.gnu.org/licenses/>.
887 +
888 class UsersController < ApplicationController
889
890 hobo_user_controller
891
892 diff --git a/site/app/controllers/voting_options_controller.rb b/site/app/controllers/voting_options_controller.rb
893 index 73a0dfb..7d41309 100644
894 --- a/site/app/controllers/voting_options_controller.rb
895 +++ b/site/app/controllers/voting_options_controller.rb
896 @@ -1,3 +1,18 @@
897 +# Gentoo Council Web App - to help Gentoo Council do their job better
898 +# Copyright (C) 2011 Joachim Filip Bartosik
899 +#
900 +# This program is free software: you can redistribute it and/or modify
901 +# it under the terms of the GNU Affero General Public License as
902 +# published by the Free Software Foundation, version 3 of the License
903 +#
904 +# This program is distributed in the hope that it will be useful,
905 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
906 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
907 +# GNU Affero General Public License for more details.
908 +#
909 +# You should have received a copy of the GNU Affero General Public License
910 +# along with this program. If not, see <http://www.gnu.org/licenses/>.
911 +
912 class VotingOptionsController < ApplicationController
913
914 hobo_model_controller
915
916 diff --git a/site/app/mailers/user_mailer.rb b/site/app/mailers/user_mailer.rb
917 index d9515f3..a0a802b 100644
918 --- a/site/app/mailers/user_mailer.rb
919 +++ b/site/app/mailers/user_mailer.rb
920 @@ -1,3 +1,18 @@
921 +# Gentoo Council Web App - to help Gentoo Council do their job better
922 +# Copyright (C) 2011 Joachim Filip Bartosik
923 +#
924 +# This program is free software: you can redistribute it and/or modify
925 +# it under the terms of the GNU Affero General Public License as
926 +# published by the Free Software Foundation, version 3 of the License
927 +#
928 +# This program is distributed in the hope that it will be useful,
929 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
930 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
931 +# GNU Affero General Public License for more details.
932 +#
933 +# You should have received a copy of the GNU Affero General Public License
934 +# along with this program. If not, see <http://www.gnu.org/licenses/>.
935 +
936 class UserMailer < ActionMailer::Base
937 default :from => "no-reply@#{host}"
938
939
940 diff --git a/site/app/models/agenda.rb b/site/app/models/agenda.rb
941 index 4039d0c..bae34c3 100644
942 --- a/site/app/models/agenda.rb
943 +++ b/site/app/models/agenda.rb
944 @@ -1,3 +1,18 @@
945 +# Gentoo Council Web App - to help Gentoo Council do their job better
946 +# Copyright (C) 2011 Joachim Filip Bartosik
947 +#
948 +# This program is free software: you can redistribute it and/or modify
949 +# it under the terms of the GNU Affero General Public License as
950 +# published by the Free Software Foundation, version 3 of the License
951 +#
952 +# This program is distributed in the hope that it will be useful,
953 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
954 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
955 +# GNU Affero General Public License for more details.
956 +#
957 +# You should have received a copy of the GNU Affero General Public License
958 +# along with this program. If not, see <http://www.gnu.org/licenses/>.
959 +
960 class Agenda < ActiveRecord::Base
961
962 hobo_model # Don't put anything above this
963
964 diff --git a/site/app/models/agenda_item.rb b/site/app/models/agenda_item.rb
965 index e8874ff..1f30599 100644
966 --- a/site/app/models/agenda_item.rb
967 +++ b/site/app/models/agenda_item.rb
968 @@ -1,3 +1,18 @@
969 +# Gentoo Council Web App - to help Gentoo Council do their job better
970 +# Copyright (C) 2011 Joachim Filip Bartosik
971 +#
972 +# This program is free software: you can redistribute it and/or modify
973 +# it under the terms of the GNU Affero General Public License as
974 +# published by the Free Software Foundation, version 3 of the License
975 +#
976 +# This program is distributed in the hope that it will be useful,
977 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
978 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
979 +# GNU Affero General Public License for more details.
980 +#
981 +# You should have received a copy of the GNU Affero General Public License
982 +# along with this program. If not, see <http://www.gnu.org/licenses/>.
983 +
984 class AgendaItem < ActiveRecord::Base
985
986 hobo_model # Don't put anything above this
987
988 diff --git a/site/app/models/guest.rb b/site/app/models/guest.rb
989 index 43890a3..71d2fda 100644
990 --- a/site/app/models/guest.rb
991 +++ b/site/app/models/guest.rb
992 @@ -1,3 +1,18 @@
993 +# Gentoo Council Web App - to help Gentoo Council do their job better
994 +# Copyright (C) 2011 Joachim Filip Bartosik
995 +#
996 +# This program is free software: you can redistribute it and/or modify
997 +# it under the terms of the GNU Affero General Public License as
998 +# published by the Free Software Foundation, version 3 of the License
999 +#
1000 +# This program is distributed in the hope that it will be useful,
1001 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
1002 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1003 +# GNU Affero General Public License for more details.
1004 +#
1005 +# You should have received a copy of the GNU Affero General Public License
1006 +# along with this program. If not, see <http://www.gnu.org/licenses/>.
1007 +
1008 class Guest < Hobo::Model::Guest
1009
1010 def administrator?
1011
1012 diff --git a/site/app/models/participation.rb b/site/app/models/participation.rb
1013 index e76ebf5..599dcd9 100644
1014 --- a/site/app/models/participation.rb
1015 +++ b/site/app/models/participation.rb
1016 @@ -1,3 +1,18 @@
1017 +# Gentoo Council Web App - to help Gentoo Council do their job better
1018 +# Copyright (C) 2011 Joachim Filip Bartosik
1019 +#
1020 +# This program is free software: you can redistribute it and/or modify
1021 +# it under the terms of the GNU Affero General Public License as
1022 +# published by the Free Software Foundation, version 3 of the License
1023 +#
1024 +# This program is distributed in the hope that it will be useful,
1025 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
1026 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1027 +# GNU Affero General Public License for more details.
1028 +#
1029 +# You should have received a copy of the GNU Affero General Public License
1030 +# along with this program. If not, see <http://www.gnu.org/licenses/>.
1031 +
1032 class Participation < ActiveRecord::Base
1033
1034 hobo_model # Don't put anything above this
1035
1036 diff --git a/site/app/models/proxy.rb b/site/app/models/proxy.rb
1037 index cb6052d..5a0f839 100644
1038 --- a/site/app/models/proxy.rb
1039 +++ b/site/app/models/proxy.rb
1040 @@ -1,3 +1,18 @@
1041 +# Gentoo Council Web App - to help Gentoo Council do their job better
1042 +# Copyright (C) 2011 Joachim Filip Bartosik
1043 +#
1044 +# This program is free software: you can redistribute it and/or modify
1045 +# it under the terms of the GNU Affero General Public License as
1046 +# published by the Free Software Foundation, version 3 of the License
1047 +#
1048 +# This program is distributed in the hope that it will be useful,
1049 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
1050 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1051 +# GNU Affero General Public License for more details.
1052 +#
1053 +# You should have received a copy of the GNU Affero General Public License
1054 +# along with this program. If not, see <http://www.gnu.org/licenses/>.
1055 +
1056 class Proxy < ActiveRecord::Base
1057
1058 hobo_model # Don't put anything above this
1059
1060 diff --git a/site/app/models/user.rb b/site/app/models/user.rb
1061 index cbcd021..3f85506 100644
1062 --- a/site/app/models/user.rb
1063 +++ b/site/app/models/user.rb
1064 @@ -1,3 +1,18 @@
1065 +# Gentoo Council Web App - to help Gentoo Council do their job better
1066 +# Copyright (C) 2011 Joachim Filip Bartosik
1067 +#
1068 +# This program is free software: you can redistribute it and/or modify
1069 +# it under the terms of the GNU Affero General Public License as
1070 +# published by the Free Software Foundation, version 3 of the License
1071 +#
1072 +# This program is distributed in the hope that it will be useful,
1073 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
1074 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1075 +# GNU Affero General Public License for more details.
1076 +#
1077 +# You should have received a copy of the GNU Affero General Public License
1078 +# along with this program. If not, see <http://www.gnu.org/licenses/>.
1079 +
1080 class User < ActiveRecord::Base
1081
1082 hobo_devise_user_model :auth_methods => [:database_authenticable]
1083
1084 diff --git a/site/app/models/vote.rb b/site/app/models/vote.rb
1085 index a661c5e..7aea160 100644
1086 --- a/site/app/models/vote.rb
1087 +++ b/site/app/models/vote.rb
1088 @@ -1,3 +1,18 @@
1089 +# Gentoo Council Web App - to help Gentoo Council do their job better
1090 +# Copyright (C) 2011 Joachim Filip Bartosik
1091 +#
1092 +# This program is free software: you can redistribute it and/or modify
1093 +# it under the terms of the GNU Affero General Public License as
1094 +# published by the Free Software Foundation, version 3 of the License
1095 +#
1096 +# This program is distributed in the hope that it will be useful,
1097 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
1098 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1099 +# GNU Affero General Public License for more details.
1100 +#
1101 +# You should have received a copy of the GNU Affero General Public License
1102 +# along with this program. If not, see <http://www.gnu.org/licenses/>.
1103 +
1104 require 'permissions/set.rb'
1105 class Vote < ActiveRecord::Base
1106
1107
1108 diff --git a/site/app/models/voting_option.rb b/site/app/models/voting_option.rb
1109 index 78e2fd1..3e8ba49 100644
1110 --- a/site/app/models/voting_option.rb
1111 +++ b/site/app/models/voting_option.rb
1112 @@ -1,3 +1,18 @@
1113 +# Gentoo Council Web App - to help Gentoo Council do their job better
1114 +# Copyright (C) 2011 Joachim Filip Bartosik
1115 +#
1116 +# This program is free software: you can redistribute it and/or modify
1117 +# it under the terms of the GNU Affero General Public License as
1118 +# published by the Free Software Foundation, version 3 of the License
1119 +#
1120 +# This program is distributed in the hope that it will be useful,
1121 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
1122 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1123 +# GNU Affero General Public License for more details.
1124 +#
1125 +# You should have received a copy of the GNU Affero General Public License
1126 +# along with this program. If not, see <http://www.gnu.org/licenses/>.
1127 +
1128 class VotingOption < ActiveRecord::Base
1129
1130 hobo_model # Don't put anything above this
1131
1132 diff --git a/site/app/viewhints/agenda_hints.rb b/site/app/viewhints/agenda_hints.rb
1133 index 93635b5..0cde25b 100644
1134 --- a/site/app/viewhints/agenda_hints.rb
1135 +++ b/site/app/viewhints/agenda_hints.rb
1136 @@ -1,3 +1,18 @@
1137 +# Gentoo Council Web App - to help Gentoo Council do their job better
1138 +# Copyright (C) 2011 Joachim Filip Bartosik
1139 +#
1140 +# This program is free software: you can redistribute it and/or modify
1141 +# it under the terms of the GNU Affero General Public License as
1142 +# published by the Free Software Foundation, version 3 of the License
1143 +#
1144 +# This program is distributed in the hope that it will be useful,
1145 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
1146 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1147 +# GNU Affero General Public License for more details.
1148 +#
1149 +# You should have received a copy of the GNU Affero General Public License
1150 +# along with this program. If not, see <http://www.gnu.org/licenses/>.
1151 +
1152 class AgendaHints < Hobo::ViewHints
1153
1154 children :agenda_items, :participations, :proxies
1155
1156 diff --git a/site/app/viewhints/agenda_item_hints.rb b/site/app/viewhints/agenda_item_hints.rb
1157 index 3fe2071..389a85c 100644
1158 --- a/site/app/viewhints/agenda_item_hints.rb
1159 +++ b/site/app/viewhints/agenda_item_hints.rb
1160 @@ -1,3 +1,18 @@
1161 +# Gentoo Council Web App - to help Gentoo Council do their job better
1162 +# Copyright (C) 2011 Joachim Filip Bartosik
1163 +#
1164 +# This program is free software: you can redistribute it and/or modify
1165 +# it under the terms of the GNU Affero General Public License as
1166 +# published by the Free Software Foundation, version 3 of the License
1167 +#
1168 +# This program is distributed in the hope that it will be useful,
1169 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
1170 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1171 +# GNU Affero General Public License for more details.
1172 +#
1173 +# You should have received a copy of the GNU Affero General Public License
1174 +# along with this program. If not, see <http://www.gnu.org/licenses/>.
1175 +
1176 class AgendaItemHints < Hobo::ViewHints
1177
1178 children :voting_options
1179
1180 diff --git a/site/config/application.rb b/site/config/application.rb
1181 index 4a8f752..87864c6 100644
1182 --- a/site/config/application.rb
1183 +++ b/site/config/application.rb
1184 @@ -1,3 +1,18 @@
1185 +# Gentoo Council Web App - to help Gentoo Council do their job better
1186 +# Copyright (C) 2011 Joachim Filip Bartosik
1187 +#
1188 +# This program is free software: you can redistribute it and/or modify
1189 +# it under the terms of the GNU Affero General Public License as
1190 +# published by the Free Software Foundation, version 3 of the License
1191 +#
1192 +# This program is distributed in the hope that it will be useful,
1193 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
1194 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1195 +# GNU Affero General Public License for more details.
1196 +#
1197 +# You should have received a copy of the GNU Affero General Public License
1198 +# along with this program. If not, see <http://www.gnu.org/licenses/>.
1199 +
1200 require File.expand_path('../boot', __FILE__)
1201
1202 require 'rails/all'
1203
1204 diff --git a/site/config/boot.rb b/site/config/boot.rb
1205 index ab6cb37..c35a7a9 100644
1206 --- a/site/config/boot.rb
1207 +++ b/site/config/boot.rb
1208 @@ -1,3 +1,18 @@
1209 +# Gentoo Council Web App - to help Gentoo Council do their job better
1210 +# Copyright (C) 2011 Joachim Filip Bartosik
1211 +#
1212 +# This program is free software: you can redistribute it and/or modify
1213 +# it under the terms of the GNU Affero General Public License as
1214 +# published by the Free Software Foundation, version 3 of the License
1215 +#
1216 +# This program is distributed in the hope that it will be useful,
1217 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
1218 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1219 +# GNU Affero General Public License for more details.
1220 +#
1221 +# You should have received a copy of the GNU Affero General Public License
1222 +# along with this program. If not, see <http://www.gnu.org/licenses/>.
1223 +
1224 require 'rubygems'
1225
1226 # Set up gems listed in the Gemfile.
1227
1228 diff --git a/site/config/environment.rb b/site/config/environment.rb
1229 index 4bc0d55..7a49127 100644
1230 --- a/site/config/environment.rb
1231 +++ b/site/config/environment.rb
1232 @@ -1,3 +1,18 @@
1233 +# Gentoo Council Web App - to help Gentoo Council do their job better
1234 +# Copyright (C) 2011 Joachim Filip Bartosik
1235 +#
1236 +# This program is free software: you can redistribute it and/or modify
1237 +# it under the terms of the GNU Affero General Public License as
1238 +# published by the Free Software Foundation, version 3 of the License
1239 +#
1240 +# This program is distributed in the hope that it will be useful,
1241 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
1242 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1243 +# GNU Affero General Public License for more details.
1244 +#
1245 +# You should have received a copy of the GNU Affero General Public License
1246 +# along with this program. If not, see <http://www.gnu.org/licenses/>.
1247 +
1248 # Load the rails application
1249 require File.expand_path('../application', __FILE__)
1250
1251
1252 diff --git a/site/config/environments/development.rb b/site/config/environments/development.rb
1253 index 691e1b5..10f4801 100644
1254 --- a/site/config/environments/development.rb
1255 +++ b/site/config/environments/development.rb
1256 @@ -1,3 +1,18 @@
1257 +# Gentoo Council Web App - to help Gentoo Council do their job better
1258 +# Copyright (C) 2011 Joachim Filip Bartosik
1259 +#
1260 +# This program is free software: you can redistribute it and/or modify
1261 +# it under the terms of the GNU Affero General Public License as
1262 +# published by the Free Software Foundation, version 3 of the License
1263 +#
1264 +# This program is distributed in the hope that it will be useful,
1265 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
1266 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1267 +# GNU Affero General Public License for more details.
1268 +#
1269 +# You should have received a copy of the GNU Affero General Public License
1270 +# along with this program. If not, see <http://www.gnu.org/licenses/>.
1271 +
1272 Council::Application.configure do
1273 # Settings specified here will take precedence over those in config/application.rb
1274
1275
1276 diff --git a/site/config/environments/production.rb b/site/config/environments/production.rb
1277 index 68f5e85..0d4d880 100644
1278 --- a/site/config/environments/production.rb
1279 +++ b/site/config/environments/production.rb
1280 @@ -1,3 +1,18 @@
1281 +# Gentoo Council Web App - to help Gentoo Council do their job better
1282 +# Copyright (C) 2011 Joachim Filip Bartosik
1283 +#
1284 +# This program is free software: you can redistribute it and/or modify
1285 +# it under the terms of the GNU Affero General Public License as
1286 +# published by the Free Software Foundation, version 3 of the License
1287 +#
1288 +# This program is distributed in the hope that it will be useful,
1289 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
1290 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1291 +# GNU Affero General Public License for more details.
1292 +#
1293 +# You should have received a copy of the GNU Affero General Public License
1294 +# along with this program. If not, see <http://www.gnu.org/licenses/>.
1295 +
1296 Council::Application.configure do
1297 # Settings specified here will take precedence over those in config/application.rb
1298
1299
1300 diff --git a/site/config/environments/test.rb b/site/config/environments/test.rb
1301 index 944a63f..2e9c530 100644
1302 --- a/site/config/environments/test.rb
1303 +++ b/site/config/environments/test.rb
1304 @@ -1,3 +1,18 @@
1305 +# Gentoo Council Web App - to help Gentoo Council do their job better
1306 +# Copyright (C) 2011 Joachim Filip Bartosik
1307 +#
1308 +# This program is free software: you can redistribute it and/or modify
1309 +# it under the terms of the GNU Affero General Public License as
1310 +# published by the Free Software Foundation, version 3 of the License
1311 +#
1312 +# This program is distributed in the hope that it will be useful,
1313 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
1314 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1315 +# GNU Affero General Public License for more details.
1316 +#
1317 +# You should have received a copy of the GNU Affero General Public License
1318 +# along with this program. If not, see <http://www.gnu.org/licenses/>.
1319 +
1320 Council::Application.configure do
1321 # Settings specified here will take precedence over those in config/application.rb
1322
1323
1324 diff --git a/site/config/hobo_routes.rb b/site/config/hobo_routes.rb
1325 index a223db4..cdddabf 100644
1326 --- a/site/config/hobo_routes.rb
1327 +++ b/site/config/hobo_routes.rb
1328 @@ -1,3 +1,18 @@
1329 +# Gentoo Council Web App - to help Gentoo Council do their job better
1330 +# Copyright (C) 2011 Joachim Filip Bartosik
1331 +#
1332 +# This program is free software: you can redistribute it and/or modify
1333 +# it under the terms of the GNU Affero General Public License as
1334 +# published by the Free Software Foundation, version 3 of the License
1335 +#
1336 +# This program is distributed in the hope that it will be useful,
1337 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
1338 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1339 +# GNU Affero General Public License for more details.
1340 +#
1341 +# You should have received a copy of the GNU Affero General Public License
1342 +# along with this program. If not, see <http://www.gnu.org/licenses/>.
1343 +
1344 # This is an auto-generated file: don't edit!
1345 # You can add your own routes in the config/routes.rb file
1346 # which will override the routes in this file.
1347
1348 diff --git a/site/config/initializers/backtrace_silencers.rb b/site/config/initializers/backtrace_silencers.rb
1349 index 59385cd..bc1880e 100644
1350 --- a/site/config/initializers/backtrace_silencers.rb
1351 +++ b/site/config/initializers/backtrace_silencers.rb
1352 @@ -1,3 +1,18 @@
1353 +# Gentoo Council Web App - to help Gentoo Council do their job better
1354 +# Copyright (C) 2011 Joachim Filip Bartosik
1355 +#
1356 +# This program is free software: you can redistribute it and/or modify
1357 +# it under the terms of the GNU Affero General Public License as
1358 +# published by the Free Software Foundation, version 3 of the License
1359 +#
1360 +# This program is distributed in the hope that it will be useful,
1361 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
1362 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1363 +# GNU Affero General Public License for more details.
1364 +#
1365 +# You should have received a copy of the GNU Affero General Public License
1366 +# along with this program. If not, see <http://www.gnu.org/licenses/>.
1367 +
1368 # Be sure to restart your server when you modify this file.
1369
1370 # You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces.
1371
1372 diff --git a/site/config/initializers/custom_configs.rb b/site/config/initializers/custom_configs.rb
1373 index 5e5ce89..68b386c 100644
1374 --- a/site/config/initializers/custom_configs.rb
1375 +++ b/site/config/initializers/custom_configs.rb
1376 @@ -1,3 +1,18 @@
1377 +# Gentoo Council Web App - to help Gentoo Council do their job better
1378 +# Copyright (C) 2011 Joachim Filip Bartosik
1379 +#
1380 +# This program is free software: you can redistribute it and/or modify
1381 +# it under the terms of the GNU Affero General Public License as
1382 +# published by the Free Software Foundation, version 3 of the License
1383 +#
1384 +# This program is distributed in the hope that it will be useful,
1385 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
1386 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1387 +# GNU Affero General Public License for more details.
1388 +#
1389 +# You should have received a copy of the GNU Affero General Public License
1390 +# along with this program. If not, see <http://www.gnu.org/licenses/>.
1391 +
1392 CustomConfig = {}
1393 for conf in ['bot', 'reminders', 'council_term']
1394 CustomConfig[conf.camelize] = YAML.load open("config/#{conf}.yml").read
1395
1396 diff --git a/site/config/initializers/devise.rb b/site/config/initializers/devise.rb
1397 index d4aaf27..1e718b9 100644
1398 --- a/site/config/initializers/devise.rb
1399 +++ b/site/config/initializers/devise.rb
1400 @@ -1 +1,16 @@
1401 +# Gentoo Council Web App - to help Gentoo Council do their job better
1402 +# Copyright (C) 2011 Joachim Filip Bartosik
1403 +#
1404 +# This program is free software: you can redistribute it and/or modify
1405 +# it under the terms of the GNU Affero General Public License as
1406 +# published by the Free Software Foundation, version 3 of the License
1407 +#
1408 +# This program is distributed in the hope that it will be useful,
1409 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
1410 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1411 +# GNU Affero General Public License for more details.
1412 +#
1413 +# You should have received a copy of the GNU Affero General Public License
1414 +# along with this program. If not, see <http://www.gnu.org/licenses/>.
1415 +
1416 require 'devise/orm/active_record.rb'
1417
1418 diff --git a/site/config/initializers/dryml_taglibs.rb b/site/config/initializers/dryml_taglibs.rb
1419 index 89b2d39..a156eb9 100644
1420 --- a/site/config/initializers/dryml_taglibs.rb
1421 +++ b/site/config/initializers/dryml_taglibs.rb
1422 @@ -1 +1,16 @@
1423 +# Gentoo Council Web App - to help Gentoo Council do their job better
1424 +# Copyright (C) 2011 Joachim Filip Bartosik
1425 +#
1426 +# This program is free software: you can redistribute it and/or modify
1427 +# it under the terms of the GNU Affero General Public License as
1428 +# published by the Free Software Foundation, version 3 of the License
1429 +#
1430 +# This program is distributed in the hope that it will be useful,
1431 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
1432 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1433 +# GNU Affero General Public License for more details.
1434 +#
1435 +# You should have received a copy of the GNU Affero General Public License
1436 +# along with this program. If not, see <http://www.gnu.org/licenses/>.
1437 +
1438 Dryml.precompile_taglibs if File.basename($0) != "rake" && Rails.env.production?
1439
1440 diff --git a/site/config/initializers/inflections.rb b/site/config/initializers/inflections.rb
1441 index 9e8b013..83a4b76 100644
1442 --- a/site/config/initializers/inflections.rb
1443 +++ b/site/config/initializers/inflections.rb
1444 @@ -1,3 +1,18 @@
1445 +# Gentoo Council Web App - to help Gentoo Council do their job better
1446 +# Copyright (C) 2011 Joachim Filip Bartosik
1447 +#
1448 +# This program is free software: you can redistribute it and/or modify
1449 +# it under the terms of the GNU Affero General Public License as
1450 +# published by the Free Software Foundation, version 3 of the License
1451 +#
1452 +# This program is distributed in the hope that it will be useful,
1453 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
1454 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1455 +# GNU Affero General Public License for more details.
1456 +#
1457 +# You should have received a copy of the GNU Affero General Public License
1458 +# along with this program. If not, see <http://www.gnu.org/licenses/>.
1459 +
1460 # Be sure to restart your server when you modify this file.
1461
1462 # Add new inflection rules using the following format
1463
1464 diff --git a/site/config/initializers/mime_types.rb b/site/config/initializers/mime_types.rb
1465 index 72aca7e..f158e2c 100644
1466 --- a/site/config/initializers/mime_types.rb
1467 +++ b/site/config/initializers/mime_types.rb
1468 @@ -1,3 +1,18 @@
1469 +# Gentoo Council Web App - to help Gentoo Council do their job better
1470 +# Copyright (C) 2011 Joachim Filip Bartosik
1471 +#
1472 +# This program is free software: you can redistribute it and/or modify
1473 +# it under the terms of the GNU Affero General Public License as
1474 +# published by the Free Software Foundation, version 3 of the License
1475 +#
1476 +# This program is distributed in the hope that it will be useful,
1477 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
1478 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1479 +# GNU Affero General Public License for more details.
1480 +#
1481 +# You should have received a copy of the GNU Affero General Public License
1482 +# along with this program. If not, see <http://www.gnu.org/licenses/>.
1483 +
1484 # Be sure to restart your server when you modify this file.
1485
1486 # Add new mime types for use in respond_to blocks:
1487
1488 diff --git a/site/config/initializers/secret_token.rb b/site/config/initializers/secret_token.rb
1489 index 79ea814..05082d6 100644
1490 --- a/site/config/initializers/secret_token.rb
1491 +++ b/site/config/initializers/secret_token.rb
1492 @@ -1,3 +1,18 @@
1493 +# Gentoo Council Web App - to help Gentoo Council do their job better
1494 +# Copyright (C) 2011 Joachim Filip Bartosik
1495 +#
1496 +# This program is free software: you can redistribute it and/or modify
1497 +# it under the terms of the GNU Affero General Public License as
1498 +# published by the Free Software Foundation, version 3 of the License
1499 +#
1500 +# This program is distributed in the hope that it will be useful,
1501 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
1502 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1503 +# GNU Affero General Public License for more details.
1504 +#
1505 +# You should have received a copy of the GNU Affero General Public License
1506 +# along with this program. If not, see <http://www.gnu.org/licenses/>.
1507 +
1508 # Be sure to restart your server when you modify this file.
1509
1510 # Your secret key for verifying the integrity of signed cookies.
1511
1512 diff --git a/site/config/initializers/session_store.rb b/site/config/initializers/session_store.rb
1513 index 3485dec..a822afa 100644
1514 --- a/site/config/initializers/session_store.rb
1515 +++ b/site/config/initializers/session_store.rb
1516 @@ -1,3 +1,18 @@
1517 +# Gentoo Council Web App - to help Gentoo Council do their job better
1518 +# Copyright (C) 2011 Joachim Filip Bartosik
1519 +#
1520 +# This program is free software: you can redistribute it and/or modify
1521 +# it under the terms of the GNU Affero General Public License as
1522 +# published by the Free Software Foundation, version 3 of the License
1523 +#
1524 +# This program is distributed in the hope that it will be useful,
1525 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
1526 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1527 +# GNU Affero General Public License for more details.
1528 +#
1529 +# You should have received a copy of the GNU Affero General Public License
1530 +# along with this program. If not, see <http://www.gnu.org/licenses/>.
1531 +
1532 # Be sure to restart your server when you modify this file.
1533
1534 Council::Application.config.session_store :cookie_store, :key => '_Council_session'
1535
1536 diff --git a/site/config/routes.rb b/site/config/routes.rb
1537 index dbecd4f..19fcaba 100644
1538 --- a/site/config/routes.rb
1539 +++ b/site/config/routes.rb
1540 @@ -1,3 +1,18 @@
1541 +# Gentoo Council Web App - to help Gentoo Council do their job better
1542 +# Copyright (C) 2011 Joachim Filip Bartosik
1543 +#
1544 +# This program is free software: you can redistribute it and/or modify
1545 +# it under the terms of the GNU Affero General Public License as
1546 +# published by the Free Software Foundation, version 3 of the License
1547 +#
1548 +# This program is distributed in the hope that it will be useful,
1549 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
1550 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1551 +# GNU Affero General Public License for more details.
1552 +#
1553 +# You should have received a copy of the GNU Affero General Public License
1554 +# along with this program. If not, see <http://www.gnu.org/licenses/>.
1555 +
1556 Council::Application.routes.draw do
1557 root :to => 'front#index'
1558
1559
1560 diff --git a/site/db/schema.rb b/site/db/schema.rb
1561 index 48027f5..52620df 100644
1562 --- a/site/db/schema.rb
1563 +++ b/site/db/schema.rb
1564 @@ -1,3 +1,18 @@
1565 +# Gentoo Council Web App - to help Gentoo Council do their job better
1566 +# Copyright (C) 2011 Joachim Filip Bartosik
1567 +#
1568 +# This program is free software: you can redistribute it and/or modify
1569 +# it under the terms of the GNU Affero General Public License as
1570 +# published by the Free Software Foundation, version 3 of the License
1571 +#
1572 +# This program is distributed in the hope that it will be useful,
1573 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
1574 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1575 +# GNU Affero General Public License for more details.
1576 +#
1577 +# You should have received a copy of the GNU Affero General Public License
1578 +# along with this program. If not, see <http://www.gnu.org/licenses/>.
1579 +
1580 # This file is auto-generated from the current state of the database. Instead
1581 # of editing this file, please use the migrations feature of Active Record to
1582 # incrementally modify your database, and then regenerate this schema definition.
1583
1584 diff --git a/site/db/seeds.rb b/site/db/seeds.rb
1585 index a6393c8..79a794d 100644
1586 --- a/site/db/seeds.rb
1587 +++ b/site/db/seeds.rb
1588 @@ -1,3 +1,18 @@
1589 +# Gentoo Council Web App - to help Gentoo Council do their job better
1590 +# Copyright (C) 2011 Joachim Filip Bartosik
1591 +#
1592 +# This program is free software: you can redistribute it and/or modify
1593 +# it under the terms of the GNU Affero General Public License as
1594 +# published by the Free Software Foundation, version 3 of the License
1595 +#
1596 +# This program is distributed in the hope that it will be useful,
1597 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
1598 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1599 +# GNU Affero General Public License for more details.
1600 +#
1601 +# You should have received a copy of the GNU Affero General Public License
1602 +# along with this program. If not, see <http://www.gnu.org/licenses/>.
1603 +
1604 def vote(user, item, option_description)
1605 option = VotingOption.agenda_item_is(item).description_is(option_description).first
1606 Factory(:vote, :voting_option => option, :user => user, :council_vote => true)
1607
1608 diff --git a/site/features/step_definitions/agenda_item_steps.rb b/site/features/step_definitions/agenda_item_steps.rb
1609 index b600bad..6658404 100644
1610 --- a/site/features/step_definitions/agenda_item_steps.rb
1611 +++ b/site/features/step_definitions/agenda_item_steps.rb
1612 @@ -1,3 +1,18 @@
1613 +# Gentoo Council Web App - to help Gentoo Council do their job better
1614 +# Copyright (C) 2011 Joachim Filip Bartosik
1615 +#
1616 +# This program is free software: you can redistribute it and/or modify
1617 +# it under the terms of the GNU Affero General Public License as
1618 +# published by the Free Software Foundation, version 3 of the License
1619 +#
1620 +# This program is distributed in the hope that it will be useful,
1621 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
1622 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1623 +# GNU Affero General Public License for more details.
1624 +#
1625 +# You should have received a copy of the GNU Affero General Public License
1626 +# along with this program. If not, see <http://www.gnu.org/licenses/>.
1627 +
1628 When /^I fill in example agenda item data$/ do
1629 When "I fill in the following:", table(%{
1630 |agenda_item_title|examle|
1631
1632 diff --git a/site/features/step_definitions/agenda_steps.rb b/site/features/step_definitions/agenda_steps.rb
1633 index 20a6f2a..dbec525 100644
1634 --- a/site/features/step_definitions/agenda_steps.rb
1635 +++ b/site/features/step_definitions/agenda_steps.rb
1636 @@ -1,3 +1,18 @@
1637 +# Gentoo Council Web App - to help Gentoo Council do their job better
1638 +# Copyright (C) 2011 Joachim Filip Bartosik
1639 +#
1640 +# This program is free software: you can redistribute it and/or modify
1641 +# it under the terms of the GNU Affero General Public License as
1642 +# published by the Free Software Foundation, version 3 of the License
1643 +#
1644 +# This program is distributed in the hope that it will be useful,
1645 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
1646 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1647 +# GNU Affero General Public License for more details.
1648 +#
1649 +# You should have received a copy of the GNU Affero General Public License
1650 +# along with this program. If not, see <http://www.gnu.org/licenses/>.
1651 +
1652 Given /^an ?(\w*) agenda$/ do |state|
1653 a = Agenda.new
1654 state = 'submissions_closed' if state == 'closed'
1655
1656 diff --git a/site/features/step_definitions/cookie_steps.rb b/site/features/step_definitions/cookie_steps.rb
1657 index c682c1c..3a40e1f 100644
1658 --- a/site/features/step_definitions/cookie_steps.rb
1659 +++ b/site/features/step_definitions/cookie_steps.rb
1660 @@ -1,3 +1,18 @@
1661 +# Gentoo Council Web App - to help Gentoo Council do their job better
1662 +# Copyright (C) 2011 Joachim Filip Bartosik
1663 +#
1664 +# This program is free software: you can redistribute it and/or modify
1665 +# it under the terms of the GNU Affero General Public License as
1666 +# published by the Free Software Foundation, version 3 of the License
1667 +#
1668 +# This program is distributed in the hope that it will be useful,
1669 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
1670 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1671 +# GNU Affero General Public License for more details.
1672 +#
1673 +# You should have received a copy of the GNU Affero General Public License
1674 +# along with this program. If not, see <http://www.gnu.org/licenses/>.
1675 +
1676 Then /^show me the cookies!$/ do
1677 show_me_the_cookies
1678 end
1679
1680 diff --git a/site/features/step_definitions/irc_nick_steps.rb b/site/features/step_definitions/irc_nick_steps.rb
1681 index 5daf44f..5559750 100644
1682 --- a/site/features/step_definitions/irc_nick_steps.rb
1683 +++ b/site/features/step_definitions/irc_nick_steps.rb
1684 @@ -1,3 +1,18 @@
1685 +# Gentoo Council Web App - to help Gentoo Council do their job better
1686 +# Copyright (C) 2011 Joachim Filip Bartosik
1687 +#
1688 +# This program is free software: you can redistribute it and/or modify
1689 +# it under the terms of the GNU Affero General Public License as
1690 +# published by the Free Software Foundation, version 3 of the License
1691 +#
1692 +# This program is distributed in the hope that it will be useful,
1693 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
1694 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1695 +# GNU Affero General Public License for more details.
1696 +#
1697 +# You should have received a copy of the GNU Affero General Public License
1698 +# along with this program. If not, see <http://www.gnu.org/licenses/>.
1699 +
1700 When /^I fill in example user registration data$/ do
1701 When "I fill in the following:", table(%{
1702 |user_name|examle|
1703
1704 diff --git a/site/features/step_definitions/login_steps.rb b/site/features/step_definitions/login_steps.rb
1705 index d0f6642..5d8967c 100644
1706 --- a/site/features/step_definitions/login_steps.rb
1707 +++ b/site/features/step_definitions/login_steps.rb
1708 @@ -1,3 +1,18 @@
1709 +# Gentoo Council Web App - to help Gentoo Council do their job better
1710 +# Copyright (C) 2011 Joachim Filip Bartosik
1711 +#
1712 +# This program is free software: you can redistribute it and/or modify
1713 +# it under the terms of the GNU Affero General Public License as
1714 +# published by the Free Software Foundation, version 3 of the License
1715 +#
1716 +# This program is distributed in the hope that it will be useful,
1717 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
1718 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1719 +# GNU Affero General Public License for more details.
1720 +#
1721 +# You should have received a copy of the GNU Affero General Public License
1722 +# along with this program. If not, see <http://www.gnu.org/licenses/>.
1723 +
1724 Given /^example user$/ do
1725 user = User.new :name => "Example", :email => "example@×××××××.com",
1726 :password => "Example", :irc_nick => "example"
1727
1728 diff --git a/site/features/step_definitions/participations_steps.rb b/site/features/step_definitions/participations_steps.rb
1729 index e4b48b6..566ffdd 100644
1730 --- a/site/features/step_definitions/participations_steps.rb
1731 +++ b/site/features/step_definitions/participations_steps.rb
1732 @@ -1,3 +1,18 @@
1733 +# Gentoo Council Web App - to help Gentoo Council do their job better
1734 +# Copyright (C) 2011 Joachim Filip Bartosik
1735 +#
1736 +# This program is free software: you can redistribute it and/or modify
1737 +# it under the terms of the GNU Affero General Public License as
1738 +# published by the Free Software Foundation, version 3 of the License
1739 +#
1740 +# This program is distributed in the hope that it will be useful,
1741 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
1742 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1743 +# GNU Affero General Public License for more details.
1744 +#
1745 +# You should have received a copy of the GNU Affero General Public License
1746 +# along with this program. If not, see <http://www.gnu.org/licenses/>.
1747 +
1748 Given /^some council members$/ do
1749 (1..8).each do |n|
1750 u = User.new
1751
1752 diff --git a/site/features/step_definitions/proxies_steps.rb b/site/features/step_definitions/proxies_steps.rb
1753 index 44f27c0..32d5dac 100644
1754 --- a/site/features/step_definitions/proxies_steps.rb
1755 +++ b/site/features/step_definitions/proxies_steps.rb
1756 @@ -1,3 +1,18 @@
1757 +# Gentoo Council Web App - to help Gentoo Council do their job better
1758 +# Copyright (C) 2011 Joachim Filip Bartosik
1759 +#
1760 +# This program is free software: you can redistribute it and/or modify
1761 +# it under the terms of the GNU Affero General Public License as
1762 +# published by the Free Software Foundation, version 3 of the License
1763 +#
1764 +# This program is distributed in the hope that it will be useful,
1765 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
1766 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1767 +# GNU Affero General Public License for more details.
1768 +#
1769 +# You should have received a copy of the GNU Affero General Public License
1770 +# along with this program. If not, see <http://www.gnu.org/licenses/>.
1771 +
1772 Given /^a regular user$/ do
1773 Factory(:user, :name => "User")
1774 end
1775
1776 diff --git a/site/features/step_definitions/voting_steps.rb b/site/features/step_definitions/voting_steps.rb
1777 index db6a5a0..cfa1253 100644
1778 --- a/site/features/step_definitions/voting_steps.rb
1779 +++ b/site/features/step_definitions/voting_steps.rb
1780 @@ -1,3 +1,18 @@
1781 +# Gentoo Council Web App - to help Gentoo Council do their job better
1782 +# Copyright (C) 2011 Joachim Filip Bartosik
1783 +#
1784 +# This program is free software: you can redistribute it and/or modify
1785 +# it under the terms of the GNU Affero General Public License as
1786 +# published by the Free Software Foundation, version 3 of the License
1787 +#
1788 +# This program is distributed in the hope that it will be useful,
1789 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
1790 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1791 +# GNU Affero General Public License for more details.
1792 +#
1793 +# You should have received a copy of the GNU Affero General Public License
1794 +# along with this program. If not, see <http://www.gnu.org/licenses/>.
1795 +
1796 When /^I follow first agenda item link$/ do
1797 When "I follow \"#{AgendaItem.first.title}\""
1798 end
1799
1800 diff --git a/site/features/step_definitions/web_steps.rb b/site/features/step_definitions/web_steps.rb
1801 index d615b65..fc8f8a3 100644
1802 --- a/site/features/step_definitions/web_steps.rb
1803 +++ b/site/features/step_definitions/web_steps.rb
1804 @@ -1,3 +1,18 @@
1805 +# Gentoo Council Web App - to help Gentoo Council do their job better
1806 +# Copyright (C) 2011 Joachim Filip Bartosik
1807 +#
1808 +# This program is free software: you can redistribute it and/or modify
1809 +# it under the terms of the GNU Affero General Public License as
1810 +# published by the Free Software Foundation, version 3 of the License
1811 +#
1812 +# This program is distributed in the hope that it will be useful,
1813 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
1814 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1815 +# GNU Affero General Public License for more details.
1816 +#
1817 +# You should have received a copy of the GNU Affero General Public License
1818 +# along with this program. If not, see <http://www.gnu.org/licenses/>.
1819 +
1820 require 'uri'
1821 require 'cgi'
1822 require File.expand_path(File.join(File.dirname(__FILE__), "..", "support", "paths"))
1823
1824 diff --git a/site/features/step_definitions/within_steps.rb b/site/features/step_definitions/within_steps.rb
1825 index 42f2ff6..52254a3 100644
1826 --- a/site/features/step_definitions/within_steps.rb
1827 +++ b/site/features/step_definitions/within_steps.rb
1828 @@ -1,3 +1,18 @@
1829 +# Gentoo Council Web App - to help Gentoo Council do their job better
1830 +# Copyright (C) 2011 Joachim Filip Bartosik
1831 +#
1832 +# This program is free software: you can redistribute it and/or modify
1833 +# it under the terms of the GNU Affero General Public License as
1834 +# published by the Free Software Foundation, version 3 of the License
1835 +#
1836 +# This program is distributed in the hope that it will be useful,
1837 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
1838 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1839 +# GNU Affero General Public License for more details.
1840 +#
1841 +# You should have received a copy of the GNU Affero General Public License
1842 +# along with this program. If not, see <http://www.gnu.org/licenses/>.
1843 +
1844 {
1845 'as current agenda' => '.current-agenda',
1846 'as agenda state' => '.state-tag.view.agenda-state',
1847
1848 diff --git a/site/features/support/break_after_failed_step.rb b/site/features/support/break_after_failed_step.rb
1849 index 42ef606..d884bc6 100644
1850 --- a/site/features/support/break_after_failed_step.rb
1851 +++ b/site/features/support/break_after_failed_step.rb
1852 @@ -1,3 +1,18 @@
1853 +# Gentoo Council Web App - to help Gentoo Council do their job better
1854 +# Copyright (C) 2011 Joachim Filip Bartosik
1855 +#
1856 +# This program is free software: you can redistribute it and/or modify
1857 +# it under the terms of the GNU Affero General Public License as
1858 +# published by the Free Software Foundation, version 3 of the License
1859 +#
1860 +# This program is distributed in the hope that it will be useful,
1861 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
1862 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1863 +# GNU Affero General Public License for more details.
1864 +#
1865 +# You should have received a copy of the GNU Affero General Public License
1866 +# along with this program. If not, see <http://www.gnu.org/licenses/>.
1867 +
1868 After do |scenario|
1869 if scenario.status == :failed
1870 breakpoint
1871
1872 diff --git a/site/features/support/cookies.rb b/site/features/support/cookies.rb
1873 index 84f59b5..75cafe6 100644
1874 --- a/site/features/support/cookies.rb
1875 +++ b/site/features/support/cookies.rb
1876 @@ -1,3 +1,18 @@
1877 +# Gentoo Council Web App - to help Gentoo Council do their job better
1878 +# Copyright (C) 2011 Joachim Filip Bartosik
1879 +#
1880 +# This program is free software: you can redistribute it and/or modify
1881 +# it under the terms of the GNU Affero General Public License as
1882 +# published by the Free Software Foundation, version 3 of the License
1883 +#
1884 +# This program is distributed in the hope that it will be useful,
1885 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
1886 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1887 +# GNU Affero General Public License for more details.
1888 +#
1889 +# You should have received a copy of the GNU Affero General Public License
1890 +# along with this program. If not, see <http://www.gnu.org/licenses/>.
1891 +
1892 World(ShowMeTheCookies)
1893 Before('@announce') do
1894 @announce = true
1895
1896 diff --git a/site/features/support/env.rb b/site/features/support/env.rb
1897 index a7389e9..eb307a5 100644
1898 --- a/site/features/support/env.rb
1899 +++ b/site/features/support/env.rb
1900 @@ -1,3 +1,18 @@
1901 +# Gentoo Council Web App - to help Gentoo Council do their job better
1902 +# Copyright (C) 2011 Joachim Filip Bartosik
1903 +#
1904 +# This program is free software: you can redistribute it and/or modify
1905 +# it under the terms of the GNU Affero General Public License as
1906 +# published by the Free Software Foundation, version 3 of the License
1907 +#
1908 +# This program is distributed in the hope that it will be useful,
1909 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
1910 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1911 +# GNU Affero General Public License for more details.
1912 +#
1913 +# You should have received a copy of the GNU Affero General Public License
1914 +# along with this program. If not, see <http://www.gnu.org/licenses/>.
1915 +
1916 require 'cucumber/rails'
1917 Capybara.default_selector = :css
1918 Capybara.default_driver = :selenium
1919
1920 diff --git a/site/features/support/paths.rb b/site/features/support/paths.rb
1921 index 8bd2f36..b0aa6e1 100644
1922 --- a/site/features/support/paths.rb
1923 +++ b/site/features/support/paths.rb
1924 @@ -1,3 +1,18 @@
1925 +# Gentoo Council Web App - to help Gentoo Council do their job better
1926 +# Copyright (C) 2011 Joachim Filip Bartosik
1927 +#
1928 +# This program is free software: you can redistribute it and/or modify
1929 +# it under the terms of the GNU Affero General Public License as
1930 +# published by the Free Software Foundation, version 3 of the License
1931 +#
1932 +# This program is distributed in the hope that it will be useful,
1933 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
1934 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1935 +# GNU Affero General Public License for more details.
1936 +#
1937 +# You should have received a copy of the GNU Affero General Public License
1938 +# along with this program. If not, see <http://www.gnu.org/licenses/>.
1939 +
1940 module NavigationHelpers
1941 # Maps a name to a path. Used by the
1942 #
1943
1944 diff --git a/site/features/support/selectors.rb b/site/features/support/selectors.rb
1945 index 0856127..42482b7 100644
1946 --- a/site/features/support/selectors.rb
1947 +++ b/site/features/support/selectors.rb
1948 @@ -1,3 +1,18 @@
1949 +# Gentoo Council Web App - to help Gentoo Council do their job better
1950 +# Copyright (C) 2011 Joachim Filip Bartosik
1951 +#
1952 +# This program is free software: you can redistribute it and/or modify
1953 +# it under the terms of the GNU Affero General Public License as
1954 +# published by the Free Software Foundation, version 3 of the License
1955 +#
1956 +# This program is distributed in the hope that it will be useful,
1957 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
1958 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1959 +# GNU Affero General Public License for more details.
1960 +#
1961 +# You should have received a copy of the GNU Affero General Public License
1962 +# along with this program. If not, see <http://www.gnu.org/licenses/>.
1963 +
1964 module HtmlSelectorsHelpers
1965 # Maps a name to a selector. Used primarily by the
1966 #
1967
1968 diff --git a/site/lib/permissions/set.rb b/site/lib/permissions/set.rb
1969 index 9f78c97..81b3cfa 100644
1970 --- a/site/lib/permissions/set.rb
1971 +++ b/site/lib/permissions/set.rb
1972 @@ -1,3 +1,18 @@
1973 +# Gentoo Council Web App - to help Gentoo Council do their job better
1974 +# Copyright (C) 2011 Joachim Filip Bartosik
1975 +#
1976 +# This program is free software: you can redistribute it and/or modify
1977 +# it under the terms of the GNU Affero General Public License as
1978 +# published by the Free Software Foundation, version 3 of the License
1979 +#
1980 +# This program is distributed in the hope that it will be useful,
1981 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
1982 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1983 +# GNU Affero General Public License for more details.
1984 +#
1985 +# You should have received a copy of the GNU Affero General Public License
1986 +# along with this program. If not, see <http://www.gnu.org/licenses/>.
1987 +
1988 # File from Gentoo Recruiters Web App:
1989 # http://git.overlays.gentoo.org/gitweb/?p=proj/recruiting-webapp.git
1990 #
1991
1992 diff --git a/site/spec/factories.rb b/site/spec/factories.rb
1993 index 2664917..29a0ee9 100644
1994 --- a/site/spec/factories.rb
1995 +++ b/site/spec/factories.rb
1996 @@ -1,3 +1,18 @@
1997 +# Gentoo Council Web App - to help Gentoo Council do their job better
1998 +# Copyright (C) 2011 Joachim Filip Bartosik
1999 +#
2000 +# This program is free software: you can redistribute it and/or modify
2001 +# it under the terms of the GNU Affero General Public License as
2002 +# published by the Free Software Foundation, version 3 of the License
2003 +#
2004 +# This program is distributed in the hope that it will be useful,
2005 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
2006 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
2007 +# GNU Affero General Public License for more details.
2008 +#
2009 +# You should have received a copy of the GNU Affero General Public License
2010 +# along with this program. If not, see <http://www.gnu.org/licenses/>.
2011 +
2012 Factory.sequence :user do |n|
2013 "user-#{n}"
2014 end
2015
2016 diff --git a/site/spec/models/agenda_item_spec.rb b/site/spec/models/agenda_item_spec.rb
2017 index fe4f906..2e082a3 100644
2018 --- a/site/spec/models/agenda_item_spec.rb
2019 +++ b/site/spec/models/agenda_item_spec.rb
2020 @@ -1,3 +1,18 @@
2021 +# Gentoo Council Web App - to help Gentoo Council do their job better
2022 +# Copyright (C) 2011 Joachim Filip Bartosik
2023 +#
2024 +# This program is free software: you can redistribute it and/or modify
2025 +# it under the terms of the GNU Affero General Public License as
2026 +# published by the Free Software Foundation, version 3 of the License
2027 +#
2028 +# This program is distributed in the hope that it will be useful,
2029 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
2030 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
2031 +# GNU Affero General Public License for more details.
2032 +#
2033 +# You should have received a copy of the GNU Affero General Public License
2034 +# along with this program. If not, see <http://www.gnu.org/licenses/>.
2035 +
2036 require 'spec_helper'
2037 require 'support/http_stub.rb'
2038
2039
2040 diff --git a/site/spec/models/agenda_spec.rb b/site/spec/models/agenda_spec.rb
2041 index 738db63..aab4bb0 100644
2042 --- a/site/spec/models/agenda_spec.rb
2043 +++ b/site/spec/models/agenda_spec.rb
2044 @@ -1,3 +1,18 @@
2045 +# Gentoo Council Web App - to help Gentoo Council do their job better
2046 +# Copyright (C) 2011 Joachim Filip Bartosik
2047 +#
2048 +# This program is free software: you can redistribute it and/or modify
2049 +# it under the terms of the GNU Affero General Public License as
2050 +# published by the Free Software Foundation, version 3 of the License
2051 +#
2052 +# This program is distributed in the hope that it will be useful,
2053 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
2054 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
2055 +# GNU Affero General Public License for more details.
2056 +#
2057 +# You should have received a copy of the GNU Affero General Public License
2058 +# along with this program. If not, see <http://www.gnu.org/licenses/>.
2059 +
2060 require 'spec_helper'
2061
2062 describe Agenda do
2063
2064 diff --git a/site/spec/models/participation_spec.rb b/site/spec/models/participation_spec.rb
2065 index 75485e6..07df6e0 100644
2066 --- a/site/spec/models/participation_spec.rb
2067 +++ b/site/spec/models/participation_spec.rb
2068 @@ -1,3 +1,18 @@
2069 +# Gentoo Council Web App - to help Gentoo Council do their job better
2070 +# Copyright (C) 2011 Joachim Filip Bartosik
2071 +#
2072 +# This program is free software: you can redistribute it and/or modify
2073 +# it under the terms of the GNU Affero General Public License as
2074 +# published by the Free Software Foundation, version 3 of the License
2075 +#
2076 +# This program is distributed in the hope that it will be useful,
2077 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
2078 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
2079 +# GNU Affero General Public License for more details.
2080 +#
2081 +# You should have received a copy of the GNU Affero General Public License
2082 +# along with this program. If not, see <http://www.gnu.org/licenses/>.
2083 +
2084 require 'spec_helper'
2085
2086 describe Participation do
2087
2088 diff --git a/site/spec/models/proxy_spec.rb b/site/spec/models/proxy_spec.rb
2089 index 995ebb1..3585d48 100644
2090 --- a/site/spec/models/proxy_spec.rb
2091 +++ b/site/spec/models/proxy_spec.rb
2092 @@ -1,3 +1,18 @@
2093 +# Gentoo Council Web App - to help Gentoo Council do their job better
2094 +# Copyright (C) 2011 Joachim Filip Bartosik
2095 +#
2096 +# This program is free software: you can redistribute it and/or modify
2097 +# it under the terms of the GNU Affero General Public License as
2098 +# published by the Free Software Foundation, version 3 of the License
2099 +#
2100 +# This program is distributed in the hope that it will be useful,
2101 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
2102 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
2103 +# GNU Affero General Public License for more details.
2104 +#
2105 +# You should have received a copy of the GNU Affero General Public License
2106 +# along with this program. If not, see <http://www.gnu.org/licenses/>.
2107 +
2108 require 'spec_helper'
2109
2110 describe Proxy do
2111
2112 diff --git a/site/spec/models/user_mailer_spec.rb b/site/spec/models/user_mailer_spec.rb
2113 index ea2c2bc..5eb48c0 100644
2114 --- a/site/spec/models/user_mailer_spec.rb
2115 +++ b/site/spec/models/user_mailer_spec.rb
2116 @@ -1,3 +1,18 @@
2117 +# Gentoo Council Web App - to help Gentoo Council do their job better
2118 +# Copyright (C) 2011 Joachim Filip Bartosik
2119 +#
2120 +# This program is free software: you can redistribute it and/or modify
2121 +# it under the terms of the GNU Affero General Public License as
2122 +# published by the Free Software Foundation, version 3 of the License
2123 +#
2124 +# This program is distributed in the hope that it will be useful,
2125 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
2126 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
2127 +# GNU Affero General Public License for more details.
2128 +#
2129 +# You should have received a copy of the GNU Affero General Public License
2130 +# along with this program. If not, see <http://www.gnu.org/licenses/>.
2131 +
2132 require 'spec_helper'
2133 describe UserMailer do
2134 it 'should send proper meeting reminders' do
2135
2136 diff --git a/site/spec/models/user_spec.rb b/site/spec/models/user_spec.rb
2137 index c9f36b9..2981447 100644
2138 --- a/site/spec/models/user_spec.rb
2139 +++ b/site/spec/models/user_spec.rb
2140 @@ -1,3 +1,18 @@
2141 +# Gentoo Council Web App - to help Gentoo Council do their job better
2142 +# Copyright (C) 2011 Joachim Filip Bartosik
2143 +#
2144 +# This program is free software: you can redistribute it and/or modify
2145 +# it under the terms of the GNU Affero General Public License as
2146 +# published by the Free Software Foundation, version 3 of the License
2147 +#
2148 +# This program is distributed in the hope that it will be useful,
2149 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
2150 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
2151 +# GNU Affero General Public License for more details.
2152 +#
2153 +# You should have received a copy of the GNU Affero General Public License
2154 +# along with this program. If not, see <http://www.gnu.org/licenses/>.
2155 +
2156 require 'spec_helper.rb'
2157
2158 describe User do
2159
2160 diff --git a/site/spec/models/vote_spec.rb b/site/spec/models/vote_spec.rb
2161 index 5f53a69..55f6d24 100644
2162 --- a/site/spec/models/vote_spec.rb
2163 +++ b/site/spec/models/vote_spec.rb
2164 @@ -1,3 +1,18 @@
2165 +# Gentoo Council Web App - to help Gentoo Council do their job better
2166 +# Copyright (C) 2011 Joachim Filip Bartosik
2167 +#
2168 +# This program is free software: you can redistribute it and/or modify
2169 +# it under the terms of the GNU Affero General Public License as
2170 +# published by the Free Software Foundation, version 3 of the License
2171 +#
2172 +# This program is distributed in the hope that it will be useful,
2173 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
2174 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
2175 +# GNU Affero General Public License for more details.
2176 +#
2177 +# You should have received a copy of the GNU Affero General Public License
2178 +# along with this program. If not, see <http://www.gnu.org/licenses/>.
2179 +
2180 require 'spec_helper'
2181
2182 describe Vote do
2183
2184 diff --git a/site/spec/models/voting_option_spec.rb b/site/spec/models/voting_option_spec.rb
2185 index 5054f43..c51b07e 100644
2186 --- a/site/spec/models/voting_option_spec.rb
2187 +++ b/site/spec/models/voting_option_spec.rb
2188 @@ -1,3 +1,18 @@
2189 +# Gentoo Council Web App - to help Gentoo Council do their job better
2190 +# Copyright (C) 2011 Joachim Filip Bartosik
2191 +#
2192 +# This program is free software: you can redistribute it and/or modify
2193 +# it under the terms of the GNU Affero General Public License as
2194 +# published by the Free Software Foundation, version 3 of the License
2195 +#
2196 +# This program is distributed in the hope that it will be useful,
2197 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
2198 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
2199 +# GNU Affero General Public License for more details.
2200 +#
2201 +# You should have received a copy of the GNU Affero General Public License
2202 +# along with this program. If not, see <http://www.gnu.org/licenses/>.
2203 +
2204 require 'spec_helper'
2205
2206 describe VotingOption do
2207
2208 diff --git a/site/spec/spec_helper.rb b/site/spec/spec_helper.rb
2209 index c13e1c5..9f35af4 100644
2210 --- a/site/spec/spec_helper.rb
2211 +++ b/site/spec/spec_helper.rb
2212 @@ -1,3 +1,18 @@
2213 +# Gentoo Council Web App - to help Gentoo Council do their job better
2214 +# Copyright (C) 2011 Joachim Filip Bartosik
2215 +#
2216 +# This program is free software: you can redistribute it and/or modify
2217 +# it under the terms of the GNU Affero General Public License as
2218 +# published by the Free Software Foundation, version 3 of the License
2219 +#
2220 +# This program is distributed in the hope that it will be useful,
2221 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
2222 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
2223 +# GNU Affero General Public License for more details.
2224 +#
2225 +# You should have received a copy of the GNU Affero General Public License
2226 +# along with this program. If not, see <http://www.gnu.org/licenses/>.
2227 +
2228 ENV["RAILS_ENV"] ||= 'test'
2229 require File.expand_path("../../config/environment", __FILE__)
2230 require 'rspec/rails'
2231
2232 diff --git a/site/spec/support/delayed_should_receive.rb b/site/spec/support/delayed_should_receive.rb
2233 index 0fbbe27..a3e0964 100644
2234 --- a/site/spec/support/delayed_should_receive.rb
2235 +++ b/site/spec/support/delayed_should_receive.rb
2236 @@ -1,3 +1,18 @@
2237 +# Gentoo Council Web App - to help Gentoo Council do their job better
2238 +# Copyright (C) 2011 Joachim Filip Bartosik
2239 +#
2240 +# This program is free software: you can redistribute it and/or modify
2241 +# it under the terms of the GNU Affero General Public License as
2242 +# published by the Free Software Foundation, version 3 of the License
2243 +#
2244 +# This program is distributed in the hope that it will be useful,
2245 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
2246 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
2247 +# GNU Affero General Public License for more details.
2248 +#
2249 +# You should have received a copy of the GNU Affero General Public License
2250 +# along with this program. If not, see <http://www.gnu.org/licenses/>.
2251 +
2252 class Object
2253 def should_receive_delayed(method, *args)
2254 m = RSpec::Mocks::Mock.new('proxy')
2255
2256 diff --git a/site/spec/support/http_stub.rb b/site/spec/support/http_stub.rb
2257 index ba6565e..a2ccd6e 100644
2258 --- a/site/spec/support/http_stub.rb
2259 +++ b/site/spec/support/http_stub.rb
2260 @@ -1,3 +1,18 @@
2261 +# Gentoo Council Web App - to help Gentoo Council do their job better
2262 +# Copyright (C) 2011 Joachim Filip Bartosik
2263 +#
2264 +# This program is free software: you can redistribute it and/or modify
2265 +# it under the terms of the GNU Affero General Public License as
2266 +# published by the Free Software Foundation, version 3 of the License
2267 +#
2268 +# This program is distributed in the hope that it will be useful,
2269 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
2270 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
2271 +# GNU Affero General Public License for more details.
2272 +#
2273 +# You should have received a copy of the GNU Affero General Public License
2274 +# along with this program. If not, see <http://www.gnu.org/licenses/>.
2275 +
2276 class ResponseStub
2277 def initialize(filename)
2278 @filename = filename
2279
2280 diff --git a/site/spec/support/should_have_text.rb b/site/spec/support/should_have_text.rb
2281 index 3016c13..a83ad06 100644
2282 --- a/site/spec/support/should_have_text.rb
2283 +++ b/site/spec/support/should_have_text.rb
2284 @@ -1,3 +1,18 @@
2285 +# Gentoo Council Web App - to help Gentoo Council do their job better
2286 +# Copyright (C) 2011 Joachim Filip Bartosik
2287 +#
2288 +# This program is free software: you can redistribute it and/or modify
2289 +# it under the terms of the GNU Affero General Public License as
2290 +# published by the Free Software Foundation, version 3 of the License
2291 +#
2292 +# This program is distributed in the hope that it will be useful,
2293 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
2294 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
2295 +# GNU Affero General Public License for more details.
2296 +#
2297 +# You should have received a copy of the GNU Affero General Public License
2298 +# along with this program. If not, see <http://www.gnu.org/licenses/>.
2299 +
2300 module Mail
2301 class Message
2302 # emailspec doesn't add this, so we have to
2303
2304 diff --git a/site/spec/support/users_factory.rb b/site/spec/support/users_factory.rb
2305 index 126a7b9..8c4d13d 100644
2306 --- a/site/spec/support/users_factory.rb
2307 +++ b/site/spec/support/users_factory.rb
2308 @@ -1,3 +1,18 @@
2309 +# Gentoo Council Web App - to help Gentoo Council do their job better
2310 +# Copyright (C) 2011 Joachim Filip Bartosik
2311 +#
2312 +# This program is free software: you can redistribute it and/or modify
2313 +# it under the terms of the GNU Affero General Public License as
2314 +# published by the Free Software Foundation, version 3 of the License
2315 +#
2316 +# This program is distributed in the hope that it will be useful,
2317 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
2318 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
2319 +# GNU Affero General Public License for more details.
2320 +#
2321 +# You should have received a copy of the GNU Affero General Public License
2322 +# along with this program. If not, see <http://www.gnu.org/licenses/>.
2323 +
2324 def users_factory(*roles)
2325 roles.flatten!
2326 roles.collect! do |role|