zena 0.15.2 → 0.16.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +20 -0
- data/CREDITS +27 -0
- data/Capfile +3 -0
- data/DEVELOPERS +46 -0
- data/History.txt +15 -0
- data/MIT-LICENSE +19 -0
- data/Rakefile +44 -0
- data/TODO +24 -0
- data/TODO_ZENA_1_0 +23 -0
- data/app/controllers/application_controller.rb +3 -0
- data/app/controllers/documents_controller.rb +22 -56
- data/app/controllers/nodes_controller.rb +42 -27
- data/app/controllers/pings_controller.rb +19 -0
- data/app/controllers/relations_controller.rb +5 -1
- data/app/controllers/sites_controller.rb +1 -46
- data/app/controllers/user_sessions_controller.rb +47 -0
- data/app/controllers/users_controller.rb +1 -0
- data/app/controllers/versions_controller.rb +25 -7
- data/app/controllers/virtual_classes_controller.rb +1 -1
- data/app/helpers/application_helper.rb +1 -1
- data/app/models/comment.rb +2 -1
- data/app/models/contact_content.rb +2 -2
- data/app/models/data_entry.rb +5 -6
- data/app/models/document.rb +14 -10
- data/app/models/document_content.rb +4 -6
- data/app/models/iformat.rb +2 -2
- data/app/models/image_content.rb +6 -9
- data/app/models/node.rb +106 -164
- data/app/models/page.rb +0 -20
- data/app/models/site.rb +42 -12
- data/app/models/template.rb +3 -8
- data/app/models/template_content.rb +2 -0
- data/app/models/text_document.rb +13 -8
- data/app/models/user.rb +47 -100
- data/app/models/user_session.rb +4 -0
- data/app/models/version.rb +1 -1
- data/app/views/comments/create.rjs +3 -3
- data/app/views/comments/edit.rjs +1 -1
- data/app/views/comments/update.rjs +1 -1
- data/app/views/nodes/_import_results.rhtml +1 -1
- data/app/views/nodes/create.rjs +3 -3
- data/app/views/templates/document_create_tabs/_file.rhtml +1 -2
- data/app/views/templates/document_create_tabs/_import.rhtml +7 -2
- data/app/views/templates/edit_tabs/_document.rhtml +1 -3
- data/app/views/templates/edit_tabs/_image.rhtml +1 -3
- data/app/views/versions/_tr.rhtml +1 -1
- data/app/views/versions/edit.rhtml +2 -26
- data/bin/zena +6 -1
- data/bricks/delayed_job/README +18 -0
- data/bricks/delayed_job/migrate/20091104191643_create_delayed_jobs_table.rb +19 -0
- data/bricks/delayed_job/misc/init.rb +8 -0
- data/bricks/delayed_job/misc/tasks.rb +2 -0
- data/bricks/math/patch/application_helper.rb +1 -1
- data/bricks/sphinx/MIT-LICENSE +19 -0
- data/bricks/sphinx/README +19 -0
- data/bricks/sphinx/lib/use_sphinx.rb +78 -0
- data/bricks/sphinx/migrate/20091102171258_add_delta_for_sphinx.rb +9 -0
- data/bricks/sphinx/misc/deploy.rb +20 -0
- data/bricks/sphinx/misc/sphinx.yml +12 -0
- data/bricks/sphinx/misc/tasks.rb +21 -0
- data/bricks/sphinx/patch/node.rb +8 -0
- data/bricks/tags/lib/has_tags.rb +5 -3
- data/bricks/tags/test/zafu/tags.yml +13 -1
- data/config/bricks.yml +35 -0
- data/config/deploy.rb +8 -1
- data/config/environment.rb +1 -1
- data/config/environments/production.rb +1 -1
- data/config/gems.yml +28 -5
- data/config/sphinx.yml +12 -0
- data/db/init/base/skins/default/Node-+popupLayout.zafu +1 -16
- data/db/migrate/20091026161708_add_persistence_token.rb +13 -0
- data/db/migrate/20091101184952_add_session_table.rb +16 -0
- data/db/migrate/20091123175137_add_single_access_token.rb +9 -0
- data/db/migrate/20091124161608_rebuild_fullpath.rb +11 -0
- data/db/schema.rb +21 -8
- data/doc/README_FOR_APP +24 -0
- data/doc/fixtures.graffle +19568 -0
- data/doc/fixtures.pdf +0 -0
- data/doc/template/LICENSE +184 -0
- data/doc/template/README +37 -0
- data/doc/template/allison.css +283 -0
- data/doc/template/allison.js +307 -0
- data/doc/template/allison.rb +260 -0
- data/doc/template/cache/BODY +588 -0
- data/doc/template/cache/CLASS_INDEX +4 -0
- data/doc/template/cache/CLASS_PAGE +1 -0
- data/doc/template/cache/FILE_INDEX +4 -0
- data/doc/template/cache/FILE_PAGE +1 -0
- data/doc/template/cache/FONTS +1 -0
- data/doc/template/cache/FR_INDEX_BODY +1 -0
- data/doc/template/cache/IMGPATH +1 -0
- data/doc/template/cache/INDEX +1 -0
- data/doc/template/cache/JAVASCRIPT +307 -0
- data/doc/template/cache/METHOD_INDEX +4 -0
- data/doc/template/cache/METHOD_LIST +1 -0
- data/doc/template/cache/SRC_PAGE +1 -0
- data/doc/template/cache/STYLE +283 -0
- data/doc/template/cache/URL +1 -0
- data/doc/zafu_changes.yml +29 -0
- data/lib/base_additions.rb +1 -1
- data/lib/bricks.rb +9 -0
- data/lib/bricks/loader.rb +86 -0
- data/lib/bricks/requirements_validation.rb +71 -0
- data/lib/tasks/zena.rake +42 -4
- data/lib/zafu/action.rb +285 -0
- data/lib/zafu/ajax.rb +93 -0
- data/lib/zafu/attributes.rb +117 -0
- data/lib/zafu/calendar.rb +159 -0
- data/lib/zafu/context.rb +330 -0
- data/lib/zafu/core/html.rb +102 -0
- data/lib/zafu/core/move_to_parser.rb +167 -0
- data/lib/zafu/dates.rb +58 -0
- data/lib/zafu/display.rb +502 -0
- data/lib/zafu/eval.rb +66 -0
- data/lib/zafu/experimental.rb +66 -0
- data/lib/zafu/i18n.rb +64 -0
- data/lib/zafu/meta.rb +25 -0
- data/lib/zafu/refactor.rb +73 -0
- data/lib/zafu/support/context.rb +265 -0
- data/lib/zafu/support/dom.rb +145 -0
- data/lib/zafu/support/erb.rb +62 -0
- data/lib/zafu/support/flow.rb +401 -0
- data/lib/zafu/support/forms.rb +461 -0
- data/lib/zafu/support/links.rb +306 -0
- data/lib/zafu_parser.rb +26 -2
- data/lib/zena.rb +34 -15
- data/lib/zena/acts/multiversion.rb +2 -2
- data/lib/zena/acts/secure.rb +41 -30
- data/lib/zena/app.rb +7 -10
- data/lib/zena/controller/test_case.rb +12 -7
- data/lib/zena/crypto_provider/initial.rb +15 -0
- data/lib/zena/db.rb +6 -1
- data/lib/zena/deploy.rb +34 -6
- data/lib/zena/deploy/logrotate_app.rhtml +9 -0
- data/lib/zena/deploy/logrotate_host.rhtml +34 -0
- data/lib/zena/deploy/template.rb +1 -9
- data/lib/zena/foxy_parser.rb +1 -1
- data/lib/zena/info.rb +3 -1
- data/lib/zena/migrator.rb +1 -1
- data/lib/zena/parser.rb +12 -4
- data/lib/zena/parser/zazen_rules.rb +6 -6
- data/lib/zena/parser/zena_rules.rb +1 -7
- data/lib/zena/routes.rb +5 -5
- data/lib/zena/test_controller.rb +7 -2
- data/lib/zena/unit/test_case.rb +6 -8
- data/lib/zena/use/ajax.rb +10 -10
- data/lib/zena/use/authlogic.rb +93 -0
- data/lib/zena/use/dyn_attributes.rb +5 -0
- data/lib/zena/use/html_tags.rb +16 -34
- data/lib/zena/use/i18n.rb +4 -1
- data/lib/zena/use/node_query_finders.rb +8 -4
- data/lib/zena/use/refactor.rb +8 -20
- data/lib/zena/use/relations.rb +1 -0
- data/lib/zena/use/rendering.rb +4 -2
- data/lib/zena/use/search.rb +52 -0
- data/lib/zena/use/test_helper.rb +27 -28
- data/lib/zena/use/upload.rb +188 -0
- data/lib/zena/use/urls.rb +16 -14
- data/lib/zena/use/zafu.rb +16 -63
- data/lib/zena/use/zazen.rb +8 -8
- data/lib/zena/view/test_case.rb +8 -4
- data/locale/en/LC_MESSAGES/zena.mo +0 -0
- data/locale/en/zena.po +3 -3
- data/public/.htaccess +40 -0
- data/public/javascripts/upload-progress.js +17 -8
- data/public/javascripts/zena.js +8 -2
- data/public/stylesheets/popup.css +1 -0
- data/script/about +3 -0
- data/script/apache_logging +25 -0
- data/script/breakpointer +3 -0
- data/script/console +3 -0
- data/script/dbconsole +3 -0
- data/script/destroy +3 -0
- data/script/generate +3 -0
- data/script/performance/benchmarker +3 -0
- data/script/performance/profiler +3 -0
- data/script/plugin +3 -0
- data/script/process/inspector +3 -0
- data/script/process/reaper +3 -0
- data/script/process/spawner +3 -0
- data/script/runner +3 -0
- data/script/server +3 -0
- data/script/set_revision +29 -0
- data/spec/controllers/versions_controller_spec.rb +11 -0
- data/test/fixtures/files/Node-test.zafu +1 -1
- data/test/functional/nodes_controller_test.rb +25 -0
- data/test/functional/pings_controller_test.rb +8 -0
- data/test/functional/user_sessions_controller_test.rb +59 -0
- data/test/functional/users_controller_test.rb +81 -19
- data/test/helpers/node_query/filters.yml +5 -0
- data/test/helpers/node_query_test.rb +3 -3
- data/test/integration/multiple_hosts_test.rb +1 -1
- data/test/integration/navigation_test.rb +1 -1
- data/test/sites/complex/users.yml +1 -1
- data/test/sites/ocean/users.yml +3 -3
- data/test/sites/zena/users.yml +5 -4
- data/test/test_zena.rb +38 -38
- data/test/unit/cached_page_test.rb +2 -2
- data/test/unit/comment_test.rb +0 -1
- data/test/unit/document_test.rb +23 -11
- data/test/unit/helpers/ping_helper_test.rb +4 -0
- data/test/unit/multiversion_test.rb +24 -16
- data/test/unit/node_test.rb +32 -93
- data/test/unit/note_test.rb +9 -0
- data/test/unit/page_test.rb +2 -2
- data/test/unit/secure_test.rb +2 -12
- data/test/unit/site_test.rb +43 -24
- data/test/unit/template_test.rb +45 -3
- data/test/unit/text_document_test.rb +4 -3
- data/test/unit/user_test.rb +13 -33
- data/test/unit/zena/db_test.rb +8 -0
- data/test/unit/zena/parser/zazen.yml +4 -4
- data/test/unit/zena/use/dates_view_methods_test.rb +2 -1
- data/test/unit/zena/use/html_tags_test.rb +12 -4
- data/test/unit/zena/use/refactor_test.rb +4 -3
- data/test/unit/zena/use/rendering_test.rb +1 -0
- data/test/unit/zena/use/upload_test.rb +76 -0
- data/test/unit/zena/use/urls_test.rb +4 -0
- data/test/unit/zena/use/zafu_test.rb +8 -0
- data/test/unit/zena/workflow/status_version_test.rb +6 -0
- data/test/unit/zena/zena_tags/ajax.yml +4 -4
- data/test/unit/zena/zena_tags/basic.yml +21 -10
- data/test/unit/zena/zena_tags/relations.yml +0 -6
- data/test/unit/zena/zena_tags/rubyless.yml +35 -0
- data/test/unit/zena/zena_tags/zazen.yml +4 -4
- data/test/unit/zena/zena_tags_test.rb +36 -4
- data/vendor/TextMate/Zena.tmbundle/Commands/Run all yaml tests.tmCommand +1 -1
- data/vendor/TextMate/Zena.tmbundle/Commands/Run focused yaml test.tmCommand +2 -3
- data/vendor/TextMate/Zena.tmbundle/Support/RubyMate/catch_exception.rb +39 -0
- data/vendor/TextMate/Zena.tmbundle/Support/RubyMate/run_script.rb +102 -58
- data/vendor/TextMate/Zena.tmbundle/Support/RubyMate/stdin_dialog.rb +14 -0
- data/vendor/TextMate/Zena.tmbundle/info.plist +2 -0
- data/zena.gemspec +2085 -0
- metadata +265 -90
- data/app/controllers/sessions_controller.rb +0 -41
- data/app/views/sites/zena_up.html.erb +0 -11
- data/config/database.yml +0 -40
- data/db/production.sqlite3 +0 -0
- data/lib/bricks/patcher.rb +0 -68
- data/lib/zena/parser/zena_tags.rb +0 -3562
- data/lib/zena/use/authentification.rb +0 -120
- data/public/images/ext/contact_pv.png +0 -0
- data/public/images/ext/other_pv.png +0 -0
- data/public/images/ext/page_pv.png +0 -0
- data/public/images/ext/page_tiny.png +0 -0
- data/public/images/ext/pdf_pv.png +0 -0
- data/public/images/ext/post_pv.png +0 -0
- data/public/images/ext/post_tiny.png +0 -0
- data/public/images/ext/project_pv.png +0 -0
- data/public/images/ext/project_tiny.png +0 -0
- data/public/images/ext/tag_pv.png +0 -0
- data/public/images/ext/zip_pv.png +0 -0
- data/tasks/ann.rake +0 -80
- data/tasks/bones.rake +0 -20
- data/tasks/gem.rake +0 -201
- data/tasks/git.rake +0 -40
- data/tasks/notes.rake +0 -27
- data/tasks/post_load.rake +0 -34
- data/tasks/rdoc.rake +0 -51
- data/tasks/rubyforge.rake +0 -55
- data/tasks/setup.rb +0 -292
- data/tasks/spec.rake +0 -54
- data/tasks/svn.rake +0 -47
- data/tasks/test.rake +0 -40
- data/tasks/zentest.rake +0 -36
- data/test/fixtures/comments.yml +0 -126
- data/test/fixtures/contact_contents.yml +0 -132
- data/test/fixtures/data_entries.yml +0 -65
- data/test/fixtures/discussions.yml +0 -48
- data/test/fixtures/document_contents.yml +0 -108
- data/test/fixtures/dyn_attributes.yml +0 -66
- data/test/fixtures/groups.yml +0 -86
- data/test/fixtures/groups_users.yml +0 -81
- data/test/fixtures/iformats.yml +0 -29
- data/test/fixtures/links.yml +0 -313
- data/test/fixtures/nodes.yml +0 -2592
- data/test/fixtures/relations.yml +0 -126
- data/test/fixtures/sites.yml +0 -58
- data/test/fixtures/template_contents.yml +0 -172
- data/test/fixtures/users.yml +0 -167
- data/test/fixtures/versions.yml +0 -1911
- data/test/fixtures/virtual_classes.yml +0 -87
- data/test/fixtures/zips.yml +0 -15
- data/test/functional/sessions_controller_test.rb +0 -73
data/doc/fixtures.pdf
ADDED
Binary file
|
@@ -0,0 +1,184 @@
|
|
1
|
+
Academic Free License (AFL) v. 3.0
|
2
|
+
|
3
|
+
This Academic Free License (the "License") applies to any original work
|
4
|
+
of authorship (the "Original Work") whose owner (the "Licensor") has
|
5
|
+
placed the following licensing notice adjacent to the copyright notice
|
6
|
+
for the Original Work:
|
7
|
+
|
8
|
+
Licensed under the Academic Free License version 3.0
|
9
|
+
|
10
|
+
1) Grant of Copyright License. Licensor grants You a worldwide,
|
11
|
+
royalty-free, non-exclusive, sublicensable license, for the duration of
|
12
|
+
the copyright, to do the following:
|
13
|
+
|
14
|
+
a) to reproduce the Original Work in copies, either alone or as part of
|
15
|
+
a collective work;
|
16
|
+
|
17
|
+
b) to translate, adapt, alter, transform, modify, or arrange the
|
18
|
+
Original Work, thereby creating derivative works ("Derivative Works")
|
19
|
+
based upon the Original Work;
|
20
|
+
|
21
|
+
c) to distribute or communicate copies of the Original Work and
|
22
|
+
Derivative Works to the public, under any license of your choice that
|
23
|
+
does not contradict the terms and conditions, including Licensor's
|
24
|
+
reserved rights and remedies, in this Academic Free License;
|
25
|
+
|
26
|
+
d) to perform the Original Work publicly; and
|
27
|
+
|
28
|
+
e) to display the Original Work publicly.
|
29
|
+
|
30
|
+
2) Grant of Patent License. Licensor grants You a worldwide,
|
31
|
+
royalty-free, non-exclusive, sublicensable license, under patent claims
|
32
|
+
owned or controlled by the Licensor that are embodied in the Original
|
33
|
+
Work as furnished by the Licensor, for the duration of the patents, to
|
34
|
+
make, use, sell, offer for sale, have made, and import the Original Work
|
35
|
+
and Derivative Works.
|
36
|
+
|
37
|
+
3) Grant of Source Code License. The term "Source Code" means the
|
38
|
+
preferred form of the Original Work for making modifications to it and
|
39
|
+
all available documentation describing how to modify the Original Work.
|
40
|
+
Licensor agrees to provide a machine-readable copy of the Source Code of
|
41
|
+
the Original Work along with each copy of the Original Work that
|
42
|
+
Licensor distributes. Licensor reserves the right to satisfy this
|
43
|
+
obligation by placing a machine-readable copy of the Source Code in an
|
44
|
+
information repository reasonably calculated to permit inexpensive and
|
45
|
+
convenient access by You for as long as Licensor continues to distribute
|
46
|
+
the Original Work.
|
47
|
+
|
48
|
+
4) Exclusions From License Grant. Neither the names of Licensor, nor the
|
49
|
+
names of any contributors to the Original Work, nor any of their
|
50
|
+
trademarks or service marks, may be used to endorse or promote products
|
51
|
+
derived from this Original Work without express prior permission of the
|
52
|
+
Licensor. Except as expressly stated herein, nothing in this License
|
53
|
+
grants any license to Licensor's trademarks, copyrights, patents, trade
|
54
|
+
secrets or any other intellectual property. No patent license is granted
|
55
|
+
to make, use, sell, offer for sale, have made, or import embodiments of
|
56
|
+
any patent claims other than the licensed claims defined in Section 2.
|
57
|
+
No license is granted to the trademarks of Licensor even if such marks
|
58
|
+
are included in the Original Work. Nothing in this License shall be
|
59
|
+
interpreted to prohibit Licensor from licensing under terms different
|
60
|
+
from this License any Original Work that Licensor otherwise would have a
|
61
|
+
right to license.
|
62
|
+
|
63
|
+
5) External Deployment. The term "External Deployment" means the use,
|
64
|
+
distribution, or communication of the Original Work or Derivative Works
|
65
|
+
in any way such that the Original Work or Derivative Works may be used
|
66
|
+
by anyone other than You, whether those works are distributed or
|
67
|
+
communicated to those persons or made available as an application
|
68
|
+
intended for use over a network. As an express condition for the grants
|
69
|
+
of license hereunder, You must treat any External Deployment by You of
|
70
|
+
the Original Work or a Derivative Work as a distribution under section
|
71
|
+
1(c).
|
72
|
+
|
73
|
+
6) Attribution Rights. You must retain, in the Source Code of any
|
74
|
+
Derivative Works that You create, all copyright, patent, or trademark
|
75
|
+
notices from the Source Code of the Original Work, as well as any
|
76
|
+
notices of licensing and any descriptive text identified therein as an
|
77
|
+
"Attribution Notice." You must cause the Source Code for any Derivative
|
78
|
+
Works that You create to carry a prominent Attribution Notice reasonably
|
79
|
+
calculated to inform recipients that You have modified the Original
|
80
|
+
Work.
|
81
|
+
|
82
|
+
7) Warranty of Provenance and Disclaimer of Warranty. Licensor warrants
|
83
|
+
that the copyright in and to the Original Work and the patent rights
|
84
|
+
granted herein by Licensor are owned by the Licensor or are sublicensed
|
85
|
+
to You under the terms of this License with the permission of the
|
86
|
+
contributor(s) of those copyrights and patent rights. Except as
|
87
|
+
expressly stated in the immediately preceding sentence, the Original
|
88
|
+
Work is provided under this License on an "AS IS" BASIS and WITHOUT
|
89
|
+
WARRANTY, either express or implied, including, without limitation, the
|
90
|
+
warranties of non-infringement, merchantability or fitness for a
|
91
|
+
particular purpose. THE ENTIRE RISK AS TO THE QUALITY OF THE ORIGINAL
|
92
|
+
WORK IS WITH YOU. This DISCLAIMER OF WARRANTY constitutes an essential
|
93
|
+
part of this License. No license to the Original Work is granted by this
|
94
|
+
License except under this disclaimer.
|
95
|
+
|
96
|
+
8) Limitation of Liability. Under no circumstances and under no legal
|
97
|
+
theory, whether in tort (including negligence), contract, or otherwise,
|
98
|
+
shall the Licensor be liable to anyone for any indirect, special,
|
99
|
+
incidental, or consequential damages of any character arising as a
|
100
|
+
result of this License or the use of the Original Work including,
|
101
|
+
without limitation, damages for loss of goodwill, work stoppage,
|
102
|
+
computer failure or malfunction, or any and all other commercial damages
|
103
|
+
or losses. This limitation of liability shall not apply to the extent
|
104
|
+
applicable law prohibits such limitation.
|
105
|
+
|
106
|
+
9) Acceptance and Termination. If, at any time, You expressly assented
|
107
|
+
to this License, that assent indicates your clear and irrevocable
|
108
|
+
acceptance of this License and all of its terms and conditions. If You
|
109
|
+
distribute or communicate copies of the Original Work or a Derivative
|
110
|
+
Work, You must make a reasonable effort under the circumstances to
|
111
|
+
obtain the express assent of recipients to the terms of this License.
|
112
|
+
This License conditions your rights to undertake the activities listed
|
113
|
+
in Section 1, including your right to create Derivative Works based upon
|
114
|
+
the Original Work, and doing so without honoring these terms and
|
115
|
+
conditions is prohibited by copyright law and international treaty.
|
116
|
+
Nothing in this License is intended to affect copyright exceptions and
|
117
|
+
limitations (including "fair use" or "fair dealing"). This License shall
|
118
|
+
terminate immediately and You may no longer exercise any of the rights
|
119
|
+
granted to You by this License upon your failure to honor the conditions
|
120
|
+
in Section 1(c).
|
121
|
+
|
122
|
+
10) Termination for Patent Action. This License shall terminate
|
123
|
+
automatically and You may no longer exercise any of the rights granted
|
124
|
+
to You by this License as of the date You commence an action, including
|
125
|
+
a cross-claim or counterclaim, against Licensor or any licensee alleging
|
126
|
+
that the Original Work infringes a patent. This termination provision
|
127
|
+
shall not apply for an action alleging patent infringement by
|
128
|
+
combinations of the Original Work with other software or hardware.
|
129
|
+
|
130
|
+
11) Jurisdiction, Venue and Governing Law. Any action or suit relating
|
131
|
+
to this License may be brought only in the courts of a jurisdiction
|
132
|
+
wherein the Licensor resides or in which Licensor conducts its primary
|
133
|
+
business, and under the laws of that jurisdiction excluding its
|
134
|
+
conflict-of-law provisions. The application of the United Nations
|
135
|
+
Convention on Contracts for the International Sale of Goods is expressly
|
136
|
+
excluded. Any use of the Original Work outside the scope of this License
|
137
|
+
or after its termination shall be subject to the requirements and
|
138
|
+
penalties of copyright or patent law in the appropriate jurisdiction.
|
139
|
+
This section shall survive the termination of this License.
|
140
|
+
|
141
|
+
12) Attorneys' Fees. In any action to enforce the terms of this License
|
142
|
+
or seeking damages relating thereto, the prevailing party shall be
|
143
|
+
entitled to recover its costs and expenses, including, without
|
144
|
+
limitation, reasonable attorneys' fees and costs incurred in connection
|
145
|
+
with such action, including any appeal of such action. This section
|
146
|
+
shall survive the termination of this License.
|
147
|
+
|
148
|
+
13) Miscellaneous. If any provision of this License is held to be
|
149
|
+
unenforceable, such provision shall be reformed only to the extent
|
150
|
+
necessary to make it enforceable.
|
151
|
+
|
152
|
+
14) Definition of "You" in This License. "You" throughout this License,
|
153
|
+
whether in upper or lower case, means an individual or a legal entity
|
154
|
+
exercising rights under, and complying with all of the terms of, this
|
155
|
+
License. For legal entities, "You" includes any entity that controls, is
|
156
|
+
controlled by, or is under common control with you. For purposes of this
|
157
|
+
definition, "control" means (i) the power, direct or indirect, to cause
|
158
|
+
the direction or management of such entity, whether by contract or
|
159
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
160
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
161
|
+
|
162
|
+
15) Right to Use. You may use the Original Work in all ways not
|
163
|
+
otherwise restricted or conditioned by this License or by law, and
|
164
|
+
Licensor promises not to interfere with or be responsible for such uses
|
165
|
+
by You.
|
166
|
+
|
167
|
+
16) Modification of This License. This License is Copyright (c) 2005
|
168
|
+
Lawrence Rosen. Permission is granted to copy, distribute, or
|
169
|
+
communicate this License without modification. Nothing in this License
|
170
|
+
permits You to modify this License as applied to the Original Work or to
|
171
|
+
Derivative Works. However, You may modify the text of this License and
|
172
|
+
copy, distribute or communicate your modified version (the "Modified
|
173
|
+
License") and apply it to other original works of authorship subject to
|
174
|
+
the following conditions: (i) You may not indicate in any way that your
|
175
|
+
Modified License is the "Academic Free License" or "AFL" and you may not
|
176
|
+
use those names in the name of your Modified License; (ii) You must
|
177
|
+
replace the notice specified in the first paragraph above with the
|
178
|
+
notice "Licensed under <insert your license name here>" or with a notice
|
179
|
+
of your own that is not confusingly similar to the notice in this
|
180
|
+
License; and (iii) You may not claim that your original works are open
|
181
|
+
source software unless your Modified License has been approved by Open
|
182
|
+
Source Initiative (OSI) and You comply with its license review and
|
183
|
+
certification process.
|
184
|
+
|
data/doc/template/README
ADDED
@@ -0,0 +1,37 @@
|
|
1
|
+
|
2
|
+
COPYRIGHT
|
3
|
+
|
4
|
+
Allison template for RDoc, copyright 2006 Cloudburst, LLC (see the LICENSE file)
|
5
|
+
|
6
|
+
DETAILED DOCUMENTATION
|
7
|
+
|
8
|
+
http://blog.evanweaver.com/articles/2006/06/02/allison
|
9
|
+
|
10
|
+
QUICKSTART
|
11
|
+
|
12
|
+
The best way to use the template is to set up a Rake task for your Ruby project or Rails app:
|
13
|
+
in Rakefile
|
14
|
+
|
15
|
+
require 'rake/rdoctask'
|
16
|
+
|
17
|
+
Rake::RDocTask.new do |rdoc|
|
18
|
+
files = ['README', 'LICENSE', 'COPYING', 'lib/**/*.rb',
|
19
|
+
'doc/**/*.rdoc', 'test/*.rb']
|
20
|
+
rdoc.rdoc_files.add(files)
|
21
|
+
rdoc.main = "README" # page to start on
|
22
|
+
rdoc.title = "My App's Documentation"
|
23
|
+
rdoc.template = "/path/to/allison/allison.rb"
|
24
|
+
rdoc.rdoc_dir = 'doc' # rdoc output folder
|
25
|
+
rdoc.options << '--line-numbers' << '--inline-source'
|
26
|
+
end
|
27
|
+
|
28
|
+
Then you can run rake rdoc to invoke the task and everything will be super awesome.
|
29
|
+
|
30
|
+
Note, pop-up source view is not supported. You have to use --inline-source.
|
31
|
+
|
32
|
+
CHANGELOG
|
33
|
+
|
34
|
+
2.2 how come "require_gem" isn't called "activate_gem", since that's what it does. bah.
|
35
|
+
2.1 hack to make gem versioning work
|
36
|
+
2. caching in order to remove Markaby dependency
|
37
|
+
1. first release
|
@@ -0,0 +1,283 @@
|
|
1
|
+
/* Stylesheet for Allison RDoc template */
|
2
|
+
/* Copyright 2006 Cloudburst LLC */
|
3
|
+
|
4
|
+
/* default styles */
|
5
|
+
|
6
|
+
* {
|
7
|
+
margin: 0;
|
8
|
+
padding: 0;
|
9
|
+
border: none;
|
10
|
+
}
|
11
|
+
|
12
|
+
a {
|
13
|
+
color: #090090;
|
14
|
+
text-decoration: none;
|
15
|
+
}
|
16
|
+
|
17
|
+
a:hover { color: orange; }
|
18
|
+
|
19
|
+
html, body {
|
20
|
+
color: black;
|
21
|
+
font: 0.9em verdana, helvetica, sans;
|
22
|
+
background-color: #faf6fa;
|
23
|
+
margin: 0;
|
24
|
+
padding: 0;
|
25
|
+
}
|
26
|
+
|
27
|
+
p, ul, ol, li {
|
28
|
+
line-height: 1.4em;
|
29
|
+
margin: .4em;
|
30
|
+
}
|
31
|
+
|
32
|
+
p { margin: 1.4em 1.4em 1.4em 30px; }
|
33
|
+
|
34
|
+
tt {
|
35
|
+
font-size: 1.3em;
|
36
|
+
color: #463E1B;
|
37
|
+
}
|
38
|
+
|
39
|
+
#header a { color: inherit; }
|
40
|
+
|
41
|
+
#content h1 {
|
42
|
+
font-size: 1.5em;
|
43
|
+
border-bottom: 2px solid #6F673F;
|
44
|
+
}
|
45
|
+
|
46
|
+
#item_name { margin-bottom: 0; }
|
47
|
+
|
48
|
+
#content h1, #content h2, #content h3 {
|
49
|
+
font-size: 1.1em;
|
50
|
+
padding: 3px 0;
|
51
|
+
font-weight: bold;
|
52
|
+
margin: 2em 30px 1em;
|
53
|
+
}
|
54
|
+
|
55
|
+
h1 a, h2 a, h3 a { color: inherit; }
|
56
|
+
|
57
|
+
#content h1 {
|
58
|
+
font-size: 1.5em;
|
59
|
+
border-bottom: 2px solid #6F673F;
|
60
|
+
}
|
61
|
+
|
62
|
+
#content h2 { font-size: 1.3em; }
|
63
|
+
/* center everything */
|
64
|
+
|
65
|
+
#container {
|
66
|
+
font-size: 1em;
|
67
|
+
width: 100%;
|
68
|
+
height: 100%;
|
69
|
+
}
|
70
|
+
|
71
|
+
#container td { vertical-align: top; }
|
72
|
+
|
73
|
+
|
74
|
+
|
75
|
+
/* header stuff */
|
76
|
+
|
77
|
+
#header {
|
78
|
+
padding: 10px;
|
79
|
+
width: 100%;
|
80
|
+
height: 50px;
|
81
|
+
border-bottom: 1px solid black;
|
82
|
+
background: #6F673F;
|
83
|
+
margin-bottom: 0;
|
84
|
+
overflow: hidden;
|
85
|
+
}
|
86
|
+
|
87
|
+
#header h1 {
|
88
|
+
color: #fff;
|
89
|
+
font-size: 1.8em;
|
90
|
+
margin: 0;
|
91
|
+
}
|
92
|
+
|
93
|
+
#header p {
|
94
|
+
margin: 0;
|
95
|
+
padding: 0;
|
96
|
+
padding-left: 3px;
|
97
|
+
color: #fff;
|
98
|
+
}
|
99
|
+
|
100
|
+
|
101
|
+
/* basic layout and navigation bars */
|
102
|
+
|
103
|
+
#left {
|
104
|
+
border-right: 1px solid black;
|
105
|
+
border-bottom: 1px solid black;
|
106
|
+
background: #6F673F;
|
107
|
+
width: 199px;
|
108
|
+
}
|
109
|
+
|
110
|
+
#left a { line-height: 1.3em; }
|
111
|
+
|
112
|
+
/* navigation bar colors and text styles */
|
113
|
+
|
114
|
+
.navigation {
|
115
|
+
width: auto;
|
116
|
+
margin: 5px;
|
117
|
+
padding: 5px;
|
118
|
+
text-align: left;
|
119
|
+
background-color: white;
|
120
|
+
overflow: hidden;
|
121
|
+
}
|
122
|
+
|
123
|
+
.navigation a {
|
124
|
+
margin-left: 10px;
|
125
|
+
font-size: 0.9em;
|
126
|
+
}
|
127
|
+
|
128
|
+
.navigation h3 {
|
129
|
+
font-weight: bold;
|
130
|
+
margin-bottom: 5px;
|
131
|
+
}
|
132
|
+
|
133
|
+
.dark {
|
134
|
+
color: black;
|
135
|
+
background-color: #938C6C;
|
136
|
+
}
|
137
|
+
|
138
|
+
.dark a, .dark span { margin-left: 10px; }
|
139
|
+
/*
|
140
|
+
span.bpink { color: #E5366F; font-weight: bold; margin-left: 10px; }
|
141
|
+
span.bpink a, .dark span a { margin-left: 0; } */
|
142
|
+
#spacer {
|
143
|
+
background-color: #faf6fa;
|
144
|
+
height: 30px;
|
145
|
+
display: none;
|
146
|
+
}
|
147
|
+
|
148
|
+
#content {
|
149
|
+
padding: 0;
|
150
|
+
vertical-align: top;
|
151
|
+
background: none;
|
152
|
+
}
|
153
|
+
|
154
|
+
.clear { clear: both; }
|
155
|
+
|
156
|
+
#allison {
|
157
|
+
position: absolute;
|
158
|
+
top:10px;
|
159
|
+
right:5px;
|
160
|
+
color: #B6AB7A;
|
161
|
+
padding:20px;
|
162
|
+
font-size:0.8em;
|
163
|
+
}
|
164
|
+
#allison a {
|
165
|
+
color: #DDD099;
|
166
|
+
}
|
167
|
+
|
168
|
+
/* for that dumb redirect index page I can't avoid */
|
169
|
+
|
170
|
+
#redirect { text-align: center; }
|
171
|
+
#redirect a { color: #411948; }
|
172
|
+
|
173
|
+
/* tables */
|
174
|
+
table {
|
175
|
+
border-collapse: collapse;
|
176
|
+
font-size: 1em;
|
177
|
+
}
|
178
|
+
|
179
|
+
#content table {
|
180
|
+
margin: 1.4em 1.4em 1.4em 30px;
|
181
|
+
border: 1px solid grey;
|
182
|
+
font-size: 0.9em;
|
183
|
+
}
|
184
|
+
|
185
|
+
#content table td,
|
186
|
+
#content table th {
|
187
|
+
background-color: #faf6fa;
|
188
|
+
text-align: left;
|
189
|
+
padding: 5px;
|
190
|
+
line-height: 1.2em;
|
191
|
+
border-top: 1px solid grey;
|
192
|
+
}
|
193
|
+
|
194
|
+
#content table tr:first-child td { border-top-width: 0; }
|
195
|
+
|
196
|
+
#content table th {
|
197
|
+
font-weight:normal;
|
198
|
+
color: #fff;
|
199
|
+
background-color: #6F673F;
|
200
|
+
}
|
201
|
+
|
202
|
+
#content table th.description { text-align: center; }
|
203
|
+
#content table td.highlight { color: #463E1B; }
|
204
|
+
|
205
|
+
/* method details */
|
206
|
+
|
207
|
+
div.a_method {
|
208
|
+
padding-left: 10px;
|
209
|
+
margin-left: 22px;
|
210
|
+
}
|
211
|
+
|
212
|
+
div.a_method a.small {
|
213
|
+
font-size: .1em;
|
214
|
+
line-height: .1em;
|
215
|
+
}
|
216
|
+
|
217
|
+
div.a_method p {
|
218
|
+
margin: .6em;
|
219
|
+
margin-left: 1.4em;
|
220
|
+
}
|
221
|
+
|
222
|
+
div.section_spacer {
|
223
|
+
height: 0;
|
224
|
+
margin-top: 20px;
|
225
|
+
}
|
226
|
+
|
227
|
+
#content div.a_method h3 {
|
228
|
+
font-family: monospace;
|
229
|
+
font-size: large;
|
230
|
+
border-bottom: 1px dashed grey;
|
231
|
+
margin: 0.3em;
|
232
|
+
padding-bottom: 0.2em;
|
233
|
+
}
|
234
|
+
|
235
|
+
div.a_method h3 a { color: inherit; }
|
236
|
+
div.a_method h3 span.params { font-weight: normal; }
|
237
|
+
/* index includes on the navigation bar */
|
238
|
+
|
239
|
+
div.index a { font-size: .8em; }
|
240
|
+
#method { display: none; }
|
241
|
+
#file, #class { display: block; }
|
242
|
+
div.list_header { float: left; }
|
243
|
+
|
244
|
+
div.list_header_link {
|
245
|
+
float: right;
|
246
|
+
padding-top: 3px;
|
247
|
+
}
|
248
|
+
|
249
|
+
div.list_header_link a { font-weight: normal; }
|
250
|
+
.index label { font-size: 0.8em; }
|
251
|
+
.index form input { width: 110px; }
|
252
|
+
.index form { margin-bottom: 10px; }
|
253
|
+
ol, ul { margin-left: 40px; }
|
254
|
+
div.source { display: none; }
|
255
|
+
|
256
|
+
pre {
|
257
|
+
color: black;
|
258
|
+
font-weight: normal;
|
259
|
+
font-family: Courier, Courier New, monospace;
|
260
|
+
font-size: 1em;
|
261
|
+
line-height: 1.3em;
|
262
|
+
padding: 0.5em;
|
263
|
+
border: 1px dotted black;
|
264
|
+
margin-left: 20px;
|
265
|
+
background: #EBEBDE;
|
266
|
+
overflow: auto;
|
267
|
+
/* next 4 lines because IE sucks */
|
268
|
+
_position: relative;
|
269
|
+
_width: 567px;
|
270
|
+
_overflow-x: scroll;
|
271
|
+
_overflow-y: visible;
|
272
|
+
}
|
273
|
+
|
274
|
+
div.source pre { margin-left: 0; }
|
275
|
+
|
276
|
+
/* source code highlighting */
|
277
|
+
|
278
|
+
pre .ruby-value, pre .ruby-symbol { color: #1104bb; }
|
279
|
+
pre .ruby-value.str, pre .ruby-node { color: #E5366F; }
|
280
|
+
pre .ruby-ivar, pre .ruby-cvar { }
|
281
|
+
pre .ruby-comment { color: #009500; }
|
282
|
+
pre .ruby-constant { color: #cd8802; }
|
283
|
+
pre .ruby-keyword { color: #8d04aa; }
|