browsercms 3.0.0 → 3.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/app/controllers/cms/connectors_controller.rb +1 -1
- data/app/helpers/cms/application_helper.rb +2 -19
- data/app/helpers/cms/form_builder.rb +8 -5
- data/app/helpers/cms/menu_helper.rb +19 -5
- data/app/helpers/cms/page_helper.rb +9 -1
- data/app/helpers/cms/template_support.rb +21 -0
- data/app/models/abstract_file_block.rb +4 -0
- data/app/models/connector.rb +7 -3
- data/app/models/dynamic_view.rb +2 -4
- data/app/models/portlet.rb +22 -9
- data/app/models/section.rb +7 -5
- data/app/views/cms/blocks/_toolbar_for_member.html.erb +4 -4
- data/app/views/cms/blocks/index.html.erb +1 -1
- data/app/views/cms/blocks/usages.html.erb +44 -34
- data/app/views/cms/connectors/new.html.erb +2 -2
- data/app/views/cms/dynamic_views/_form.html.erb +1 -1
- data/app/views/cms/dynamic_views/index.html.erb +7 -3
- data/app/views/cms/email_messages/index.html.erb +3 -5
- data/app/views/cms/form_builder/_cms_datetime_select.html.erb +12 -0
- data/app/views/cms/form_builder/_cms_text_editor.html.erb +2 -2
- data/app/views/cms/form_builder/_cms_text_field.html.erb +1 -2
- data/app/views/cms/groups/_permissions.html.erb +1 -0
- data/app/views/cms/groups/_sections.html.erb +1 -0
- data/app/views/cms/groups/index.html.erb +3 -5
- data/app/views/cms/page_routes/index.html.erb +13 -7
- data/app/views/cms/page_routes/show.html.erb +4 -4
- data/app/views/cms/pages/_edit_connector.html.erb +4 -1
- data/app/views/cms/pages/_edit_container.html.erb +4 -1
- data/app/views/cms/redirects/index.html.erb +12 -7
- data/app/views/cms/routes/index.html.erb +11 -7
- data/app/views/cms/sections/_form.html.erb +4 -5
- data/app/views/cms/users/_groups.html.erb +1 -0
- data/app/views/layouts/_cms_toolbar.html.erb +37 -4
- data/app/views/layouts/_page_toolbar.html.erb +2 -2
- data/browsercms.gemspec +381 -3
- data/db/demo/data.rb +2 -1
- data/doc/app/classes/AbstractFileBlock.html +146 -0
- data/doc/app/classes/ActiveRecord.html +105 -0
- data/doc/app/classes/ActiveRecord/ConnectionAdapters/SchemaStatements.html +242 -0
- data/doc/app/classes/ActiveSupport.html +111 -0
- data/doc/app/classes/ActiveSupport/Cache.html +111 -0
- data/doc/app/classes/ActiveSupport/Cache/FileStore.html +146 -0
- data/doc/app/classes/ActsAsList.html +147 -0
- data/doc/app/classes/ActsAsList/ClassMethods.html +202 -0
- data/doc/app/classes/ActsAsList/InstanceMethods.html +510 -0
- data/doc/app/classes/ApplicationController.html +119 -0
- data/doc/app/classes/ApplicationHelper.html +112 -0
- data/doc/app/classes/Attachment.html +726 -0
- data/doc/app/classes/Category.html +230 -0
- data/doc/app/classes/CategoryType.html +214 -0
- data/doc/app/classes/Cms.html +638 -0
- data/doc/app/classes/Cms/Acts.html +111 -0
- data/doc/app/classes/Cms/Acts/ContentBlock.html +146 -0
- data/doc/app/classes/Cms/Acts/ContentBlock/MacroMethods.html +165 -0
- data/doc/app/classes/Cms/Acts/ContentBlock/MacroMethods/InstanceMethods.html +140 -0
- data/doc/app/classes/Cms/ApplicationController.html +418 -0
- data/doc/app/classes/Cms/ApplicationHelper.html +814 -0
- data/doc/app/classes/Cms/AttachmentsController.html +154 -0
- data/doc/app/classes/Cms/Authentication.html +116 -0
- data/doc/app/classes/Cms/Authentication/Controller.html +702 -0
- data/doc/app/classes/Cms/Authentication/Model.html +165 -0
- data/doc/app/classes/Cms/Authentication/Model/ClassMethods.html +246 -0
- data/doc/app/classes/Cms/Authentication/Model/InstanceMethods.html +412 -0
- data/doc/app/classes/Cms/BaseController.html +113 -0
- data/doc/app/classes/Cms/Behaviors.html +235 -0
- data/doc/app/classes/Cms/Behaviors/Archiving.html +147 -0
- data/doc/app/classes/Cms/Behaviors/Archiving/InstanceMethods.html +220 -0
- data/doc/app/classes/Cms/Behaviors/Archiving/MacroMethods.html +175 -0
- data/doc/app/classes/Cms/Behaviors/Attaching.html +160 -0
- data/doc/app/classes/Cms/Behaviors/Attaching/InstanceMethods.html +670 -0
- data/doc/app/classes/Cms/Behaviors/Attaching/MacroMethods.html +188 -0
- data/doc/app/classes/Cms/Behaviors/Categorizing.html +148 -0
- data/doc/app/classes/Cms/Behaviors/Categorizing/ClassMethods.html +105 -0
- data/doc/app/classes/Cms/Behaviors/Categorizing/InstanceMethods.html +140 -0
- data/doc/app/classes/Cms/Behaviors/Categorizing/MacroMethods.html +178 -0
- data/doc/app/classes/Cms/Behaviors/ClassMethods.html +272 -0
- data/doc/app/classes/Cms/Behaviors/Connecting.html +148 -0
- data/doc/app/classes/Cms/Behaviors/Connecting/ClassMethods.html +188 -0
- data/doc/app/classes/Cms/Behaviors/Connecting/InstanceMethods.html +312 -0
- data/doc/app/classes/Cms/Behaviors/Connecting/MacroMethods.html +184 -0
- data/doc/app/classes/Cms/Behaviors/DynamicAttributes.html +285 -0
- data/doc/app/classes/Cms/Behaviors/DynamicAttributes/InstanceMethods.html +181 -0
- data/doc/app/classes/Cms/Behaviors/DynamicAttributes/MacroMethods.html +243 -0
- data/doc/app/classes/Cms/Behaviors/FlushCacheOnChange.html +178 -0
- data/doc/app/classes/Cms/Behaviors/FlushCacheOnChange/InstanceMethods.html +142 -0
- data/doc/app/classes/Cms/Behaviors/FlushCacheOnChange/MacroMethods.html +175 -0
- data/doc/app/classes/Cms/Behaviors/Hiding.html +148 -0
- data/doc/app/classes/Cms/Behaviors/Hiding/ClassMethods.html +105 -0
- data/doc/app/classes/Cms/Behaviors/Hiding/InstanceMethods.html +220 -0
- data/doc/app/classes/Cms/Behaviors/Hiding/MacroMethods.html +176 -0
- data/doc/app/classes/Cms/Behaviors/InstanceMethods.html +234 -0
- data/doc/app/classes/Cms/Behaviors/Pagination.html +151 -0
- data/doc/app/classes/Cms/Behaviors/Pagination/ClassMethods.html +252 -0
- data/doc/app/classes/Cms/Behaviors/Pagination/Collection.html +437 -0
- data/doc/app/classes/Cms/Behaviors/Pagination/InvalidPage.html +146 -0
- data/doc/app/classes/Cms/Behaviors/Publishing.html +179 -0
- data/doc/app/classes/Cms/Behaviors/Publishing/ClassMethods.html +105 -0
- data/doc/app/classes/Cms/Behaviors/Publishing/InstanceMethods.html +333 -0
- data/doc/app/classes/Cms/Behaviors/Publishing/MacroMethods.html +180 -0
- data/doc/app/classes/Cms/Behaviors/Rendering.html +179 -0
- data/doc/app/classes/Cms/Behaviors/Rendering/MacroMethods.html +186 -0
- data/doc/app/classes/Cms/Behaviors/Searching.html +147 -0
- data/doc/app/classes/Cms/Behaviors/Searching/ClassMethods.html +164 -0
- data/doc/app/classes/Cms/Behaviors/Searching/MacroMethods.html +188 -0
- data/doc/app/classes/Cms/Behaviors/SoftDeleting.html +148 -0
- data/doc/app/classes/Cms/Behaviors/SoftDeleting/ClassMethods.html +217 -0
- data/doc/app/classes/Cms/Behaviors/SoftDeleting/InstanceMethods.html +247 -0
- data/doc/app/classes/Cms/Behaviors/SoftDeleting/MacroMethods.html +205 -0
- data/doc/app/classes/Cms/Behaviors/Taggable.html +148 -0
- data/doc/app/classes/Cms/Behaviors/Taggable/ClassMethods.html +164 -0
- data/doc/app/classes/Cms/Behaviors/Taggable/InstanceMethods.html +197 -0
- data/doc/app/classes/Cms/Behaviors/Taggable/MacroMethods.html +182 -0
- data/doc/app/classes/Cms/Behaviors/Userstamping.html +148 -0
- data/doc/app/classes/Cms/Behaviors/Userstamping/ClassMethods.html +105 -0
- data/doc/app/classes/Cms/Behaviors/Userstamping/InstanceMethods.html +143 -0
- data/doc/app/classes/Cms/Behaviors/Userstamping/MacroMethods.html +181 -0
- data/doc/app/classes/Cms/Behaviors/Versioning.html +148 -0
- data/doc/app/classes/Cms/Behaviors/Versioning/ClassMethods.html +237 -0
- data/doc/app/classes/Cms/Behaviors/Versioning/InstanceMethods.html +685 -0
- data/doc/app/classes/Cms/Behaviors/Versioning/MacroMethods.html +290 -0
- data/doc/app/classes/Cms/CacheController.html +174 -0
- data/doc/app/classes/Cms/Caching.html +171 -0
- data/doc/app/classes/Cms/CategoriesController.html +113 -0
- data/doc/app/classes/Cms/CategoryTypesController.html +148 -0
- data/doc/app/classes/Cms/ConnectorsController.html +215 -0
- data/doc/app/classes/Cms/ContentBlockController.html +1175 -0
- data/doc/app/classes/Cms/ContentController.html +313 -0
- data/doc/app/classes/Cms/ContentTypesController.html +148 -0
- data/doc/app/classes/Cms/DashboardController.html +151 -0
- data/doc/app/classes/Cms/DataLoader.html +182 -0
- data/doc/app/classes/Cms/DynamicViewsController.html +359 -0
- data/doc/app/classes/Cms/EmailMessagesController.html +172 -0
- data/doc/app/classes/Cms/ErrorHandling.html +172 -0
- data/doc/app/classes/Cms/Errors.html +111 -0
- data/doc/app/classes/Cms/Errors/AccessDenied.html +146 -0
- data/doc/app/classes/Cms/Extensions.html +140 -0
- data/doc/app/classes/Cms/Extensions/ActionView.html +111 -0
- data/doc/app/classes/Cms/Extensions/ActionView/Base.html +141 -0
- data/doc/app/classes/Cms/Extensions/ActiveRecord.html +116 -0
- data/doc/app/classes/Cms/Extensions/ActiveRecord/Base.html +144 -0
- data/doc/app/classes/Cms/Extensions/ActiveRecord/Errors.html +140 -0
- data/doc/app/classes/Cms/Extensions/Hash.html +175 -0
- data/doc/app/classes/Cms/Extensions/Integer.html +146 -0
- data/doc/app/classes/Cms/Extensions/NilClass.html +212 -0
- data/doc/app/classes/Cms/Extensions/String.html +212 -0
- data/doc/app/classes/Cms/FileBlocksController.html +113 -0
- data/doc/app/classes/Cms/FormBuilder.html +312 -0
- data/doc/app/classes/Cms/FormTagHelper.html +245 -0
- data/doc/app/classes/Cms/GroupsController.html +225 -0
- data/doc/app/classes/Cms/HomeController.html +148 -0
- data/doc/app/classes/Cms/HtmlBlocksController.html +113 -0
- data/doc/app/classes/Cms/ImageBlocksController.html +113 -0
- data/doc/app/classes/Cms/LinksController.html +341 -0
- data/doc/app/classes/Cms/MenuHelper.html +330 -0
- data/doc/app/classes/Cms/PageHelper.html +292 -0
- data/doc/app/classes/Cms/PageRouteConditionsController.html +113 -0
- data/doc/app/classes/Cms/PageRouteOptionsController.html +355 -0
- data/doc/app/classes/Cms/PageRouteRequirementsController.html +113 -0
- data/doc/app/classes/Cms/PageRoutesController.html +284 -0
- data/doc/app/classes/Cms/PagesController.html +331 -0
- data/doc/app/classes/Cms/PathHelper.html +268 -0
- data/doc/app/classes/Cms/PortletController.html +150 -0
- data/doc/app/classes/Cms/PortletsController.html +301 -0
- data/doc/app/classes/Cms/RedirectsController.html +172 -0
- data/doc/app/classes/Cms/ResourceController.html +616 -0
- data/doc/app/classes/Cms/Routes.html +303 -0
- data/doc/app/classes/Cms/RoutesController.html +164 -0
- data/doc/app/classes/Cms/SectionNodesController.html +272 -0
- data/doc/app/classes/Cms/SectionNodesHelper.html +145 -0
- data/doc/app/classes/Cms/SectionsController.html +542 -0
- data/doc/app/classes/Cms/SessionsController.html +270 -0
- data/doc/app/classes/Cms/TagsController.html +152 -0
- data/doc/app/classes/Cms/TasksController.html +221 -0
- data/doc/app/classes/Cms/ToolbarController.html +153 -0
- data/doc/app/classes/Cms/UsersController.html +405 -0
- data/doc/app/classes/Connector.html +350 -0
- data/doc/app/classes/ContentType.html +448 -0
- data/doc/app/classes/ContentTypeGroup.html +111 -0
- data/doc/app/classes/DynamicPortlet.html +148 -0
- data/doc/app/classes/DynamicView.html +411 -0
- data/doc/app/classes/EmailMessage.html +228 -0
- data/doc/app/classes/EmailMessageMailer.html +150 -0
- data/doc/app/classes/EmailPagePortlet.html +184 -0
- data/doc/app/classes/FileBlock.html +202 -0
- data/doc/app/classes/Group.html +170 -0
- data/doc/app/classes/GroupPermission.html +111 -0
- data/doc/app/classes/GroupSection.html +111 -0
- data/doc/app/classes/GroupType.html +111 -0
- data/doc/app/classes/GroupTypePermission.html +111 -0
- data/doc/app/classes/GuestUser.html +347 -0
- data/doc/app/classes/HtmlBlock.html +170 -0
- data/doc/app/classes/ImageBlock.html +202 -0
- data/doc/app/classes/InitialData.html +171 -0
- data/doc/app/classes/Link.html +249 -0
- data/doc/app/classes/LoginPortlet.html +151 -0
- data/doc/app/classes/Page.html +954 -0
- data/doc/app/classes/PagePartial.html +201 -0
- data/doc/app/classes/PageRoute.html +335 -0
- data/doc/app/classes/PageRouteCondition.html +113 -0
- data/doc/app/classes/PageRouteOption.html +111 -0
- data/doc/app/classes/PageRouteRequirement.html +113 -0
- data/doc/app/classes/PageTemplate.html +278 -0
- data/doc/app/classes/Permission.html +111 -0
- data/doc/app/classes/Portlet.html +738 -0
- data/doc/app/classes/Redirect.html +111 -0
- data/doc/app/classes/Section.html +580 -0
- data/doc/app/classes/SectionNode.html +410 -0
- data/doc/app/classes/Sequence.html +146 -0
- data/doc/app/classes/Site.html +253 -0
- data/doc/app/classes/Tag.html +292 -0
- data/doc/app/classes/TagCloudPortlet.html +176 -0
- data/doc/app/classes/Tagging.html +146 -0
- data/doc/app/classes/Task.html +288 -0
- data/doc/app/classes/User.html +618 -0
- data/doc/app/classes/UserGroupMembership.html +111 -0
- data/doc/app/created.rid +1 -0
- data/doc/app/files/app/controllers/application_controller_rb.html +109 -0
- data/doc/app/files/app/controllers/cms/application_controller_rb.html +101 -0
- data/doc/app/files/app/controllers/cms/attachments_controller_rb.html +101 -0
- data/doc/app/files/app/controllers/cms/base_controller_rb.html +101 -0
- data/doc/app/files/app/controllers/cms/cache_controller_rb.html +101 -0
- data/doc/app/files/app/controllers/cms/categories_controller_rb.html +101 -0
- data/doc/app/files/app/controllers/cms/category_types_controller_rb.html +101 -0
- data/doc/app/files/app/controllers/cms/connectors_controller_rb.html +101 -0
- data/doc/app/files/app/controllers/cms/content_block_controller_rb.html +107 -0
- data/doc/app/files/app/controllers/cms/content_controller_rb.html +101 -0
- data/doc/app/files/app/controllers/cms/content_types_controller_rb.html +101 -0
- data/doc/app/files/app/controllers/cms/dashboard_controller_rb.html +101 -0
- data/doc/app/files/app/controllers/cms/dynamic_views_controller_rb.html +101 -0
- data/doc/app/files/app/controllers/cms/email_messages_controller_rb.html +101 -0
- data/doc/app/files/app/controllers/cms/error_handling_rb.html +101 -0
- data/doc/app/files/app/controllers/cms/file_blocks_controller_rb.html +101 -0
- data/doc/app/files/app/controllers/cms/groups_controller_rb.html +101 -0
- data/doc/app/files/app/controllers/cms/home_controller_rb.html +101 -0
- data/doc/app/files/app/controllers/cms/html_blocks_controller_rb.html +101 -0
- data/doc/app/files/app/controllers/cms/image_blocks_controller_rb.html +101 -0
- data/doc/app/files/app/controllers/cms/links_controller_rb.html +101 -0
- data/doc/app/files/app/controllers/cms/page_route_conditions_controller_rb.html +101 -0
- data/doc/app/files/app/controllers/cms/page_route_options_controller_rb.html +101 -0
- data/doc/app/files/app/controllers/cms/page_route_requirements_controller_rb.html +101 -0
- data/doc/app/files/app/controllers/cms/page_routes_controller_rb.html +101 -0
- data/doc/app/files/app/controllers/cms/pages_controller_rb.html +101 -0
- data/doc/app/files/app/controllers/cms/portlet_controller_rb.html +101 -0
- data/doc/app/files/app/controllers/cms/portlets_controller_rb.html +101 -0
- data/doc/app/files/app/controllers/cms/redirects_controller_rb.html +101 -0
- data/doc/app/files/app/controllers/cms/resource_controller_rb.html +108 -0
- data/doc/app/files/app/controllers/cms/routes_controller_rb.html +101 -0
- data/doc/app/files/app/controllers/cms/section_nodes_controller_rb.html +101 -0
- data/doc/app/files/app/controllers/cms/sections_controller_rb.html +101 -0
- data/doc/app/files/app/controllers/cms/sessions_controller_rb.html +107 -0
- data/doc/app/files/app/controllers/cms/tags_controller_rb.html +101 -0
- data/doc/app/files/app/controllers/cms/tasks_controller_rb.html +101 -0
- data/doc/app/files/app/controllers/cms/toolbar_controller_rb.html +101 -0
- data/doc/app/files/app/controllers/cms/users_controller_rb.html +101 -0
- data/doc/app/files/app/helpers/application_helper_rb.html +108 -0
- data/doc/app/files/app/helpers/cms/application_helper_rb.html +107 -0
- data/doc/app/files/app/helpers/cms/form_builder_rb.html +101 -0
- data/doc/app/files/app/helpers/cms/form_tag_helper_rb.html +101 -0
- data/doc/app/files/app/helpers/cms/menu_helper_rb.html +101 -0
- data/doc/app/files/app/helpers/cms/page_helper_rb.html +101 -0
- data/doc/app/files/app/helpers/cms/path_helper_rb.html +101 -0
- data/doc/app/files/app/helpers/cms/section_nodes_helper_rb.html +101 -0
- data/doc/app/files/app/models/abstract_file_block_rb.html +101 -0
- data/doc/app/files/app/models/attachment_rb.html +109 -0
- data/doc/app/files/app/models/category_rb.html +101 -0
- data/doc/app/files/app/models/category_type_rb.html +101 -0
- data/doc/app/files/app/models/connector_rb.html +101 -0
- data/doc/app/files/app/models/content_type_group_rb.html +101 -0
- data/doc/app/files/app/models/content_type_rb.html +101 -0
- data/doc/app/files/app/models/dynamic_view_rb.html +101 -0
- data/doc/app/files/app/models/email_message_mailer_rb.html +101 -0
- data/doc/app/files/app/models/email_message_rb.html +101 -0
- data/doc/app/files/app/models/file_block_rb.html +101 -0
- data/doc/app/files/app/models/group_permission_rb.html +101 -0
- data/doc/app/files/app/models/group_rb.html +101 -0
- data/doc/app/files/app/models/group_section_rb.html +101 -0
- data/doc/app/files/app/models/group_type_permission_rb.html +101 -0
- data/doc/app/files/app/models/group_type_rb.html +101 -0
- data/doc/app/files/app/models/guest_user_rb.html +101 -0
- data/doc/app/files/app/models/html_block_rb.html +101 -0
- data/doc/app/files/app/models/image_block_rb.html +101 -0
- data/doc/app/files/app/models/link_rb.html +101 -0
- data/doc/app/files/app/models/page_partial_rb.html +101 -0
- data/doc/app/files/app/models/page_rb.html +101 -0
- data/doc/app/files/app/models/page_route_condition_rb.html +101 -0
- data/doc/app/files/app/models/page_route_option_rb.html +101 -0
- data/doc/app/files/app/models/page_route_rb.html +101 -0
- data/doc/app/files/app/models/page_route_requirement_rb.html +101 -0
- data/doc/app/files/app/models/page_template_rb.html +101 -0
- data/doc/app/files/app/models/permission_rb.html +101 -0
- data/doc/app/files/app/models/portlet_rb.html +101 -0
- data/doc/app/files/app/models/redirect_rb.html +101 -0
- data/doc/app/files/app/models/section_node_rb.html +101 -0
- data/doc/app/files/app/models/section_rb.html +101 -0
- data/doc/app/files/app/models/site_rb.html +101 -0
- data/doc/app/files/app/models/tag_rb.html +101 -0
- data/doc/app/files/app/models/tagging_rb.html +101 -0
- data/doc/app/files/app/models/task_rb.html +101 -0
- data/doc/app/files/app/models/user_group_membership_rb.html +101 -0
- data/doc/app/files/app/models/user_rb.html +108 -0
- data/doc/app/files/app/portlets/dynamic_portlet_rb.html +101 -0
- data/doc/app/files/app/portlets/email_page_portlet_rb.html +101 -0
- data/doc/app/files/app/portlets/login_portlet_rb.html +101 -0
- data/doc/app/files/app/portlets/tag_cloud_portlet_rb.html +101 -0
- data/doc/app/files/doc/README_FOR_APP.html +127 -0
- data/doc/app/files/lib/acts_as_list_rb.html +101 -0
- data/doc/app/files/lib/browsercms_rb.html +113 -0
- data/doc/app/files/lib/cms/acts/content_block_rb.html +101 -0
- data/doc/app/files/lib/cms/authentication/controller_rb.html +101 -0
- data/doc/app/files/lib/cms/authentication/model_rb.html +101 -0
- data/doc/app/files/lib/cms/behaviors/archiving_rb.html +101 -0
- data/doc/app/files/lib/cms/behaviors/attaching_rb.html +101 -0
- data/doc/app/files/lib/cms/behaviors/categorizing_rb.html +101 -0
- data/doc/app/files/lib/cms/behaviors/connecting_rb.html +101 -0
- data/doc/app/files/lib/cms/behaviors/dynamic_attributes_rb.html +101 -0
- data/doc/app/files/lib/cms/behaviors/flush_cache_on_change_rb.html +101 -0
- data/doc/app/files/lib/cms/behaviors/hiding_rb.html +101 -0
- data/doc/app/files/lib/cms/behaviors/pagination_rb.html +107 -0
- data/doc/app/files/lib/cms/behaviors/publishing_rb.html +101 -0
- data/doc/app/files/lib/cms/behaviors/rendering_rb.html +101 -0
- data/doc/app/files/lib/cms/behaviors/searching_rb.html +101 -0
- data/doc/app/files/lib/cms/behaviors/soft_deleting_rb.html +101 -0
- data/doc/app/files/lib/cms/behaviors/taggable_rb.html +101 -0
- data/doc/app/files/lib/cms/behaviors/userstamping_rb.html +101 -0
- data/doc/app/files/lib/cms/behaviors/versioning_rb.html +101 -0
- data/doc/app/files/lib/cms/behaviors_rb.html +147 -0
- data/doc/app/files/lib/cms/caching_rb.html +101 -0
- data/doc/app/files/lib/cms/data_loader_rb.html +101 -0
- data/doc/app/files/lib/cms/extensions/action_view/base_rb.html +101 -0
- data/doc/app/files/lib/cms/extensions/active_record/base_rb.html +101 -0
- data/doc/app/files/lib/cms/extensions/active_record/connection_adapters/abstract/schema_statements_rb.html +101 -0
- data/doc/app/files/lib/cms/extensions/active_record/errors_rb.html +101 -0
- data/doc/app/files/lib/cms/extensions/active_support/cache/file_store_rb.html +101 -0
- data/doc/app/files/lib/cms/extensions/hash_rb.html +101 -0
- data/doc/app/files/lib/cms/extensions/integer_rb.html +101 -0
- data/doc/app/files/lib/cms/extensions/nil_rb.html +101 -0
- data/doc/app/files/lib/cms/extensions/string_rb.html +101 -0
- data/doc/app/files/lib/cms/extensions_rb.html +101 -0
- data/doc/app/files/lib/cms/init_rb.html +101 -0
- data/doc/app/files/lib/cms/routes_rb.html +101 -0
- data/doc/app/files/lib/initial_data_rb.html +101 -0
- data/doc/app/files/lib/sequence_rb.html +101 -0
- data/doc/app/fr_class_index.html +205 -0
- data/doc/app/fr_file_index.html +152 -0
- data/doc/app/fr_method_index.html +738 -0
- data/doc/app/index.html +24 -0
- data/doc/app/rdoc-style.css +208 -0
- data/doc/guides/html/build_it_yourself.html +175 -0
- data/doc/guides/html/deployment_guide.html +181 -0
- data/doc/guides/html/designer_guide.html +153 -0
- data/doc/guides/html/developer_guide.html +266 -0
- data/doc/guides/html/files/javascripts/code_highlighter.js +188 -0
- data/doc/guides/html/files/javascripts/guides.js +7 -0
- data/doc/guides/html/files/javascripts/highlighters.js +90 -0
- data/doc/guides/html/files/stylesheets/main.css +441 -0
- data/doc/guides/html/files/stylesheets/reset.css +43 -0
- data/doc/guides/html/files/stylesheets/style.css +13 -0
- data/doc/guides/html/files/stylesheets/syntax.css +31 -0
- data/doc/guides/html/getting_started.html +181 -0
- data/doc/guides/html/images/bg.png +0 -0
- data/doc/guides/html/images/bottom_cap.png +0 -0
- data/doc/guides/html/images/browsercms_logo.png +0 -0
- data/doc/guides/html/images/dot.png +0 -0
- data/doc/guides/html/images/icons/README +5 -0
- data/doc/guides/html/images/icons/callouts/1.png +0 -0
- data/doc/guides/html/images/icons/callouts/10.png +0 -0
- data/doc/guides/html/images/icons/callouts/11.png +0 -0
- data/doc/guides/html/images/icons/callouts/12.png +0 -0
- data/doc/guides/html/images/icons/callouts/13.png +0 -0
- data/doc/guides/html/images/icons/callouts/14.png +0 -0
- data/doc/guides/html/images/icons/callouts/15.png +0 -0
- data/doc/guides/html/images/icons/callouts/2.png +0 -0
- data/doc/guides/html/images/icons/callouts/3.png +0 -0
- data/doc/guides/html/images/icons/callouts/4.png +0 -0
- data/doc/guides/html/images/icons/callouts/5.png +0 -0
- data/doc/guides/html/images/icons/callouts/6.png +0 -0
- data/doc/guides/html/images/icons/callouts/7.png +0 -0
- data/doc/guides/html/images/icons/callouts/8.png +0 -0
- data/doc/guides/html/images/icons/callouts/9.png +0 -0
- data/doc/guides/html/images/icons/caution.png +0 -0
- data/doc/guides/html/images/icons/example.png +0 -0
- data/doc/guides/html/images/icons/home.png +0 -0
- data/doc/guides/html/images/icons/important.png +0 -0
- data/doc/guides/html/images/icons/next.png +0 -0
- data/doc/guides/html/images/icons/note.png +0 -0
- data/doc/guides/html/images/icons/prev.png +0 -0
- data/doc/guides/html/images/icons/tip.png +0 -0
- data/doc/guides/html/images/icons/up.png +0 -0
- data/doc/guides/html/images/icons/warning.png +0 -0
- data/doc/guides/html/images/top_cap.png +0 -0
- data/doc/guides/html/images/top_cap_content.png +0 -0
- data/doc/guides/html/index.html +168 -0
- data/doc/guides/html/installing_modules.html +181 -0
- data/doc/guides/html/user_guide.html +266 -0
- data/lib/cms/behaviors/attaching.rb +1 -1
- data/lib/cms/behaviors/rendering.rb +1 -1
- data/lib/cms/behaviors/taggable.rb +2 -1
- data/lib/cms/behaviors/versioning.rb +1 -1
- data/lib/cms/init.rb +4 -4
- data/lib/tasks/cms.rake +16 -42
- data/public/images/cms/buttons/button_cap_off_middle.gif +0 -0
- data/public/images/cms/buttons/button_left_bg.png +0 -0
- data/public/images/cms/buttons/button_off_middle.png +0 -0
- data/public/images/cms/nav_admin.gif +0 -0
- data/public/images/cms/nav_admin_h.gif +0 -0
- data/public/images/cms/nav_admin_on.gif +0 -0
- data/public/images/cms/nav_content_library.gif +0 -0
- data/public/images/cms/nav_content_library_h.gif +0 -0
- data/public/images/cms/nav_content_library_on.gif +0 -0
- data/public/images/cms/nav_dash.gif +0 -0
- data/public/images/cms/nav_dash_h.gif +0 -0
- data/public/images/cms/nav_dash_on.gif +0 -0
- data/public/images/cms/nav_sitemap.gif +0 -0
- data/public/images/cms/nav_sitemap_h.gif +0 -0
- data/public/images/cms/nav_sitemap_on.gif +0 -0
- data/public/stylesheets/cms/administration.css +91 -91
- data/public/stylesheets/cms/block.css +25 -25
- data/public/stylesheets/cms/buttons.css +120 -111
- data/public/stylesheets/cms/content_library.css +2 -1
- data/public/stylesheets/cms/content_types.css +3 -3
- data/public/stylesheets/cms/dashboard.css +118 -118
- data/public/stylesheets/cms/data_table.css +155 -155
- data/public/stylesheets/cms/form_layout.css +269 -269
- data/public/stylesheets/cms/jquery.contextMenu.css +61 -61
- data/public/stylesheets/cms/login.css +77 -77
- data/public/stylesheets/cms/menu.css +116 -116
- data/public/stylesheets/cms/nav.css +98 -111
- data/public/stylesheets/cms/page_toolbar.css +134 -134
- data/public/stylesheets/cms/sitemap.css +31 -15
- data/rails_generators/content_block/content_block_generator.rb +4 -9
- data/rails_generators/content_block/templates/_form.html.erb +3 -1
- data/rails_generators/portlet/portlet_generator.rb +2 -6
- data/rails_generators/portlet/templates/_form.html.erb +1 -0
- data/templates/blank.rb +30 -0
- data/templates/demo.rb +28 -0
- data/templates/module.rb +945 -0
- data/test/functional/cms/connectors_controller_test.rb +12 -1
- data/test/functional/cms/portlets_controller_test.rb +10 -0
- data/test/unit/behaviors/taggable_test.rb +19 -0
- data/test/unit/helpers/menu_helper_test.rb +72 -1
- data/test/unit/lib/generators_test.rb +21 -3
- data/test/unit/models/connector_test.rb +16 -0
- data/test/unit/models/sections_test.rb +4 -0
- metadata +380 -2
@@ -1,5 +1,5 @@
|
|
1
1
|
#functions a.delete_button, #functions .spacer {
|
2
|
-
margin-left:
|
2
|
+
margin-left: 3px;
|
3
3
|
}
|
4
4
|
|
5
5
|
#sitemap {
|
@@ -99,16 +99,13 @@ margin-bottom: 1px;
|
|
99
99
|
}
|
100
100
|
|
101
101
|
#sitemap ul.rootlet ul td.section img.folder, #sitemap ul.rootlet ul td.section img.no_folder {
|
102
|
-
margin-left:
|
102
|
+
margin-left: 5px;
|
103
103
|
margin-top: 1px;
|
104
104
|
}
|
105
105
|
#sitemap ul.rootlet ul td.section div {
|
106
106
|
margin-top: 3px;
|
107
107
|
}
|
108
108
|
|
109
|
-
#sitemap ul.rootlet ul img.folder_toggle, #sitemap ul.rootlet ul img.no_folder_toggle {
|
110
|
-
margin-left: 0px;
|
111
|
-
}
|
112
109
|
|
113
110
|
#sitemap ul.rootlet td.page img {
|
114
111
|
padding-left: 23px;
|
@@ -119,10 +116,16 @@ padding-left: 23px;
|
|
119
116
|
margin: -5px 0 -6px 0;
|
120
117
|
}
|
121
118
|
#sitemap ul.rootlet table {
|
122
|
-
padding-right:
|
119
|
+
padding-right: 1px;
|
120
|
+
}
|
121
|
+
#sitemap ul ul div.roundedcorners {
|
122
|
+
padding-left: 58px;
|
123
|
+
}
|
124
|
+
#sitemap div.roundedcorners {
|
125
|
+
padding-right: 20px;
|
123
126
|
}
|
124
127
|
#sitemap ul.rootlet ul table {
|
125
|
-
padding-left:
|
128
|
+
padding-left: 1px;
|
126
129
|
}
|
127
130
|
#sitemap ul.rootlet ul td.page img, #sitemap ul.rootlet ul td.link img {
|
128
131
|
margin-left: 1px;
|
@@ -304,16 +307,19 @@ background: transparent url(/images/cms/sitemap/top_cap_content.png) no-repeat 0
|
|
304
307
|
div.on .sbl {
|
305
308
|
position: absolute;
|
306
309
|
bottom: 1px;
|
307
|
-
left: 0;
|
310
|
+
left: 0;
|
308
311
|
height: 2px;
|
309
312
|
width: 2px;
|
310
313
|
background: url(/images/cms/sitemap/corners.gif) no-repeat 0 -1px
|
311
314
|
}
|
315
|
+
#sitemap ul ul div.on .sbl {
|
316
|
+
left: 58px;
|
317
|
+
}
|
312
318
|
|
313
319
|
div.on .sbr {
|
314
320
|
position: absolute;
|
315
321
|
bottom: 1px;
|
316
|
-
right:
|
322
|
+
right: 20px;
|
317
323
|
height: 2px;
|
318
324
|
width: 2px;
|
319
325
|
background: url(/images/cms/sitemap/corners.gif) no-repeat -1px -1px
|
@@ -322,16 +328,19 @@ div.on .sbr {
|
|
322
328
|
div.on .stl {
|
323
329
|
position: absolute;
|
324
330
|
top: 0;
|
325
|
-
left:
|
331
|
+
left: 0px;
|
326
332
|
height: 2px;
|
327
333
|
width: 2px;
|
328
334
|
background: url(/images/cms/sitemap/corners.gif) no-repeat 0 0
|
329
335
|
}
|
336
|
+
#sitemap ul ul div.on .stl {
|
337
|
+
left: 58px;
|
338
|
+
}
|
330
339
|
|
331
340
|
div.on .str {
|
332
341
|
position: absolute;
|
333
342
|
top: 0px;
|
334
|
-
right:
|
343
|
+
right: 20px;
|
335
344
|
height: 2px;
|
336
345
|
width: 2px;
|
337
346
|
background: url(/images/cms/sitemap/corners.gif) no-repeat -1px 0px
|
@@ -340,16 +349,20 @@ div.on .str {
|
|
340
349
|
div.over .sbl {
|
341
350
|
position: absolute;
|
342
351
|
bottom: 1px;
|
343
|
-
left:
|
352
|
+
left: 0px;
|
344
353
|
height: 2px;
|
345
354
|
width: 2px;
|
346
355
|
background: url(/images/cms/sitemap/corners_hover.gif) no-repeat 0 -1px
|
347
356
|
}
|
357
|
+
#sitemap ul ul div.over .sbl {
|
358
|
+
left: 58px;
|
359
|
+
}
|
360
|
+
|
348
361
|
|
349
362
|
div.over .sbr {
|
350
363
|
position: absolute;
|
351
364
|
bottom: 1px;
|
352
|
-
right:
|
365
|
+
right: 20px;
|
353
366
|
height: 2px;
|
354
367
|
width: 2px;
|
355
368
|
background: url(/images/cms/sitemap/corners_hover.gif) no-repeat -1px -1px
|
@@ -358,16 +371,19 @@ div.over .sbr {
|
|
358
371
|
div.over .stl {
|
359
372
|
position: absolute;
|
360
373
|
top: 0;
|
361
|
-
left:
|
374
|
+
left: 0px;
|
362
375
|
height: 2px;
|
363
376
|
width: 2px;
|
364
377
|
background: url(/images/cms/sitemap/corners_hover.gif) no-repeat 0 0
|
365
378
|
}
|
379
|
+
#sitemap ul ul div.over .stl {
|
380
|
+
left: 58px;
|
381
|
+
}
|
366
382
|
|
367
383
|
div.over .str {
|
368
384
|
position: absolute;
|
369
385
|
top: 0px;
|
370
|
-
right:
|
386
|
+
right: 20px;
|
371
387
|
height: 2px;
|
372
388
|
width: 2px;
|
373
389
|
background: url(/images/cms/sitemap/corners_hover.gif) no-repeat -1px 0px
|
@@ -7,18 +7,15 @@ class ContentBlockGenerator < Rails::Generator::NamedBase
|
|
7
7
|
m.class_collisions class_path, class_name
|
8
8
|
|
9
9
|
# Create the content block
|
10
|
+
m.directory File.join('app/models')
|
10
11
|
m.template 'content_block.rb', File.join('app/models', "#{file_name}.rb")
|
11
12
|
|
12
|
-
# Create unit test dir if needed
|
13
|
-
m.directory File.join('test/unit/models')
|
14
|
-
|
15
13
|
# Create the unit test for the model
|
14
|
+
m.directory File.join('test/unit/models')
|
16
15
|
m.template 'unit_test.erb', File.join('test/unit/models', "#{file_name}_test.rb")
|
17
16
|
|
18
|
-
# Create the cms directory if we need to
|
19
|
-
m.directory File.join('app/controllers/cms')
|
20
|
-
|
21
17
|
# Create the controller
|
18
|
+
m.directory File.join('app/controllers/cms')
|
22
19
|
m.template 'controller.rb', File.join('app/controllers/cms', "#{file_name.pluralize}_controller.rb")
|
23
20
|
|
24
21
|
# Create the edit form for the content type
|
@@ -26,10 +23,8 @@ class ContentBlockGenerator < Rails::Generator::NamedBase
|
|
26
23
|
m.template '_form.html.erb', File.join('app/views/cms/', file_name.pluralize, "_form.html.erb")
|
27
24
|
m.template 'render.html.erb', File.join('app/views/cms/', file_name.pluralize, "render.html.erb")
|
28
25
|
|
29
|
-
# Create unit test dir if needed
|
30
|
-
m.directory File.join('test/functional/cms/')
|
31
|
-
|
32
26
|
# Create functional test for the controller
|
27
|
+
m.directory File.join('test/functional/cms/')
|
33
28
|
m.template 'functional_test.erb', File.join('test/functional/cms/', "#{file_name.pluralize}_controller_test.rb")
|
34
29
|
|
35
30
|
# Create the routes for the content block
|
@@ -9,8 +9,10 @@ when :attachment
|
|
9
9
|
"file_field :#{attribute.name}_file, :label => \"File\""
|
10
10
|
when :category
|
11
11
|
"drop_down :category_id, categories_for('#{class_name.titleize}').map{|c| [c.path, c.id]}"
|
12
|
-
when :date
|
12
|
+
when :date
|
13
13
|
"date_picker :#{attribute.name}"
|
14
|
+
when :datetime
|
15
|
+
"datetime_select :#{attribute.name}"
|
14
16
|
when :html
|
15
17
|
"text_editor :#{attribute.name}"
|
16
18
|
else
|
@@ -8,16 +8,12 @@ class PortletGenerator < Rails::Generator::NamedBase
|
|
8
8
|
# Check for class naming collisions.
|
9
9
|
m.class_collisions class_path, portlet_class_name
|
10
10
|
|
11
|
-
# Create the directory for this portlet
|
12
|
-
m.directory File.join('app/portlets', class_path)
|
13
|
-
|
14
|
-
# Create unit test dir if needed
|
15
|
-
m.directory File.join('test/unit/portlets')
|
16
|
-
|
17
11
|
# Create the unit test for the model
|
12
|
+
m.directory File.join('test/unit/portlets')
|
18
13
|
m.template 'unit_test.erb', File.join('test/unit/portlets', "#{portlet_file_name}_test.rb")
|
19
14
|
|
20
15
|
# Create the content block
|
16
|
+
m.directory File.join('app/portlets', class_path)
|
21
17
|
m.template 'portlet.rb', File.join('app/portlets', class_path, "#{portlet_file_name}.rb")
|
22
18
|
|
23
19
|
# Create the edit form for the content type
|
@@ -2,4 +2,5 @@
|
|
2
2
|
<% for attribute in attributes -%>
|
3
3
|
<%%= f.cms_text_field :<%= attribute.name %> %>
|
4
4
|
<% end -%>
|
5
|
+
<%%= f.cms_drop_down :handler, ActionView::Template.template_handler_extensions, :default => "erb" %>
|
5
6
|
<%%= f.cms_text_area :template, :default_value => @block.class.default_template %>
|
data/templates/blank.rb
ADDED
@@ -0,0 +1,30 @@
|
|
1
|
+
# Remove the file on both *unix and Windows
|
2
|
+
if Gem.win_platform?
|
3
|
+
run "del public\\index.html"
|
4
|
+
else
|
5
|
+
run "rm public/index.html"
|
6
|
+
end
|
7
|
+
|
8
|
+
gem "browsercms"
|
9
|
+
if Gem.win_platform?
|
10
|
+
puts " rake db:create"
|
11
|
+
`rake.cmd db:create`
|
12
|
+
else
|
13
|
+
rake "db:create"
|
14
|
+
end
|
15
|
+
route "map.routes_for_browser_cms"
|
16
|
+
generate :browser_cms
|
17
|
+
environment 'SITE_DOMAIN="localhost:3000"', :env => "development"
|
18
|
+
environment 'SITE_DOMAIN="localhost:3000"', :env => "test"
|
19
|
+
environment 'SITE_DOMAIN="localhost:3000"', :env => "production"
|
20
|
+
environment 'config.action_view.cache_template_loading = false', :env => "production"
|
21
|
+
environment 'config.action_controller.page_cache_directory = RAILS_ROOT + "/public/cache/"', :env => "production"
|
22
|
+
initializer 'browsercms.rb', <<-CODE
|
23
|
+
Cms.attachment_file_permission = 0640
|
24
|
+
CODE
|
25
|
+
if Gem.win_platform?
|
26
|
+
puts " rake db:migrate"
|
27
|
+
`rake.cmd db:migrate`
|
28
|
+
else
|
29
|
+
rake "db:migrate"
|
30
|
+
end
|
data/templates/demo.rb
ADDED
@@ -0,0 +1,28 @@
|
|
1
|
+
# Remove the file on both *unix and Windows
|
2
|
+
if Gem.win_platform?
|
3
|
+
run "del public\\index.html"
|
4
|
+
else
|
5
|
+
run "rm public/index.html"
|
6
|
+
end
|
7
|
+
|
8
|
+
gem "browsercms"
|
9
|
+
if Gem.win_platform?
|
10
|
+
puts " rake db:create"
|
11
|
+
`rake.cmd db:create`
|
12
|
+
else
|
13
|
+
rake "db:create"
|
14
|
+
end
|
15
|
+
route "map.routes_for_browser_cms"
|
16
|
+
generate :browser_cms
|
17
|
+
environment 'SITE_DOMAIN="localhost:3000"', :env => "development"
|
18
|
+
environment 'SITE_DOMAIN="localhost:3000"', :env => "test"
|
19
|
+
environment 'SITE_DOMAIN="localhost:3000"', :env => "production"
|
20
|
+
environment 'config.action_view.cache_template_loading = false', :env => "production"
|
21
|
+
environment 'config.action_controller.page_cache_directory = RAILS_ROOT + "/public/cache/"', :env => "production"
|
22
|
+
generate :browser_cms_demo_site
|
23
|
+
if Gem.win_platform?
|
24
|
+
puts " rake db:migrate"
|
25
|
+
`rake.cmd db:migrate`
|
26
|
+
else
|
27
|
+
rake "db:migrate"
|
28
|
+
end
|
data/templates/module.rb
ADDED
@@ -0,0 +1,945 @@
|
|
1
|
+
run "rm public/index.html"
|
2
|
+
gem "browsercms"
|
3
|
+
rake "db:create"
|
4
|
+
route "map.routes_for_browser_cms"
|
5
|
+
generate :browser_cms
|
6
|
+
environment 'SITE_DOMAIN="localhost:3000"', :env => "development"
|
7
|
+
environment 'SITE_DOMAIN="localhost:3000"', :env => "test"
|
8
|
+
environment 'SITE_DOMAIN="localhost:3000"', :env => "production"
|
9
|
+
environment 'config.action_view.cache_template_loading = false', :env => "production"
|
10
|
+
environment 'config.action_controller.page_cache_directory = RAILS_ROOT + "/public/cache/"', :env => "production"
|
11
|
+
rake "db:migrate"
|
12
|
+
|
13
|
+
git :init
|
14
|
+
file '.gitignore', <<-CODE
|
15
|
+
coverage/**/*
|
16
|
+
.DS_Store
|
17
|
+
log/*.log
|
18
|
+
tmp/**/*
|
19
|
+
db/*.sqlite3
|
20
|
+
db/schema.rb
|
21
|
+
*.gem
|
22
|
+
.dotest
|
23
|
+
tmp/restart.txt
|
24
|
+
public/cache
|
25
|
+
CODE
|
26
|
+
|
27
|
+
module_name = File.basename(root).match(/bcms_(.+)/)[1]
|
28
|
+
gem_name = "bcms_#{module_name}"
|
29
|
+
|
30
|
+
file "#{File.basename(root)}.gemspec", <<-CODE
|
31
|
+
SPEC = Gem::Specification.new do |spec|
|
32
|
+
spec.name = "#{gem_name}"
|
33
|
+
spec.rubyforge_project = spec.name
|
34
|
+
spec.version = "1.0.0"
|
35
|
+
spec.summary = "A #{module_name.titleize} Module for BrowserCMS"
|
36
|
+
spec.author = "BrowserMedia"
|
37
|
+
spec.email = "github@browsermedia.com"
|
38
|
+
spec.homepage = "http://www.browsercms.org"
|
39
|
+
spec.files += Dir["app/**/*"]
|
40
|
+
spec.files += Dir["db/migrate/*.rb"]
|
41
|
+
spec.files -= Dir["db/migrate/*_browsercms_*.rb"]
|
42
|
+
spec.files -= Dir["db/migrate/*_load_seed_data.rb"]
|
43
|
+
spec.files += Dir["lib/#{gem_name}.rb"]
|
44
|
+
spec.files += Dir["lib/#{gem_name}/*"]
|
45
|
+
spec.files += Dir["rails/init.rb"]
|
46
|
+
spec.has_rdoc = true
|
47
|
+
spec.extra_rdoc_files = ["README"]
|
48
|
+
end
|
49
|
+
CODE
|
50
|
+
|
51
|
+
file "config/initializers/init_module.rb",
|
52
|
+
%Q{require File.join(File.dirname(__FILE__), "..", "..", "lib", "#{gem_name}")}
|
53
|
+
|
54
|
+
file "lib/#{gem_name}.rb", "require '#{gem_name}/routes'\n"
|
55
|
+
|
56
|
+
file "lib/#{gem_name}/routes.rb", <<-CODE
|
57
|
+
module Cms::Routes
|
58
|
+
def routes_for_#{gem_name}
|
59
|
+
namespace(:cms) do |cms|
|
60
|
+
#cms.content_blocks :#{module_name.pluralize}
|
61
|
+
end
|
62
|
+
end
|
63
|
+
end
|
64
|
+
CODE
|
65
|
+
|
66
|
+
|
67
|
+
file "rails/init.rb", <<-CODE
|
68
|
+
gem_root = File.expand_path(File.join(File.dirname(__FILE__), ".."))
|
69
|
+
Cms.add_to_rails_paths gem_root
|
70
|
+
Cms.add_generator_paths gem_root, "db/migrate/[0-9]*_*.rb"
|
71
|
+
CODE
|
72
|
+
|
73
|
+
file "LICENSE.txt", <<-CODE
|
74
|
+
GNU LESSER GENERAL PUBLIC LICENSE
|
75
|
+
Version 3, 29 June 2007
|
76
|
+
|
77
|
+
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
|
78
|
+
Everyone is permitted to copy and distribute verbatim copies
|
79
|
+
of this license document, but changing it is not allowed.
|
80
|
+
|
81
|
+
|
82
|
+
This version of the GNU Lesser General Public License incorporates
|
83
|
+
the terms and conditions of version 3 of the GNU General Public
|
84
|
+
License, supplemented by the additional permissions listed below.
|
85
|
+
|
86
|
+
0. Additional Definitions.
|
87
|
+
|
88
|
+
As used herein, "this License" refers to version 3 of the GNU Lesser
|
89
|
+
General Public License, and the "GNU GPL" refers to version 3 of the GNU
|
90
|
+
General Public License.
|
91
|
+
|
92
|
+
"The Library" refers to a covered work governed by this License,
|
93
|
+
other than an Application or a Combined Work as defined below.
|
94
|
+
|
95
|
+
An "Application" is any work that makes use of an interface provided
|
96
|
+
by the Library, but which is not otherwise based on the Library.
|
97
|
+
Defining a subclass of a class defined by the Library is deemed a mode
|
98
|
+
of using an interface provided by the Library.
|
99
|
+
|
100
|
+
A "Combined Work" is a work produced by combining or linking an
|
101
|
+
Application with the Library. The particular version of the Library
|
102
|
+
with which the Combined Work was made is also called the "Linked
|
103
|
+
Version".
|
104
|
+
|
105
|
+
The "Minimal Corresponding Source" for a Combined Work means the
|
106
|
+
Corresponding Source for the Combined Work, excluding any source code
|
107
|
+
for portions of the Combined Work that, considered in isolation, are
|
108
|
+
based on the Application, and not on the Linked Version.
|
109
|
+
|
110
|
+
The "Corresponding Application Code" for a Combined Work means the
|
111
|
+
object code and/or source code for the Application, including any data
|
112
|
+
and utility programs needed for reproducing the Combined Work from the
|
113
|
+
Application, but excluding the System Libraries of the Combined Work.
|
114
|
+
|
115
|
+
1. Exception to Section 3 of the GNU GPL.
|
116
|
+
|
117
|
+
You may convey a covered work under sections 3 and 4 of this License
|
118
|
+
without being bound by section 3 of the GNU GPL.
|
119
|
+
|
120
|
+
2. Conveying Modified Versions.
|
121
|
+
|
122
|
+
If you modify a copy of the Library, and, in your modifications, a
|
123
|
+
facility refers to a function or data to be supplied by an Application
|
124
|
+
that uses the facility (other than as an argument passed when the
|
125
|
+
facility is invoked), then you may convey a copy of the modified
|
126
|
+
version:
|
127
|
+
|
128
|
+
a) under this License, provided that you make a good faith effort to
|
129
|
+
ensure that, in the event an Application does not supply the
|
130
|
+
function or data, the facility still operates, and performs
|
131
|
+
whatever part of its purpose remains meaningful, or
|
132
|
+
|
133
|
+
b) under the GNU GPL, with none of the additional permissions of
|
134
|
+
this License applicable to that copy.
|
135
|
+
|
136
|
+
3. Object Code Incorporating Material from Library Header Files.
|
137
|
+
|
138
|
+
The object code form of an Application may incorporate material from
|
139
|
+
a header file that is part of the Library. You may convey such object
|
140
|
+
code under terms of your choice, provided that, if the incorporated
|
141
|
+
material is not limited to numerical parameters, data structure
|
142
|
+
layouts and accessors, or small macros, inline functions and templates
|
143
|
+
(ten or fewer lines in length), you do both of the following:
|
144
|
+
|
145
|
+
a) Give prominent notice with each copy of the object code that the
|
146
|
+
Library is used in it and that the Library and its use are
|
147
|
+
covered by this License.
|
148
|
+
|
149
|
+
b) Accompany the object code with a copy of the GNU GPL and this license
|
150
|
+
document.
|
151
|
+
|
152
|
+
4. Combined Works.
|
153
|
+
|
154
|
+
You may convey a Combined Work under terms of your choice that,
|
155
|
+
taken together, effectively do not restrict modification of the
|
156
|
+
portions of the Library contained in the Combined Work and reverse
|
157
|
+
engineering for debugging such modifications, if you also do each of
|
158
|
+
the following:
|
159
|
+
|
160
|
+
a) Give prominent notice with each copy of the Combined Work that
|
161
|
+
the Library is used in it and that the Library and its use are
|
162
|
+
covered by this License.
|
163
|
+
|
164
|
+
b) Accompany the Combined Work with a copy of the GNU GPL and this license
|
165
|
+
document.
|
166
|
+
|
167
|
+
c) For a Combined Work that displays copyright notices during
|
168
|
+
execution, include the copyright notice for the Library among
|
169
|
+
these notices, as well as a reference directing the user to the
|
170
|
+
copies of the GNU GPL and this license document.
|
171
|
+
|
172
|
+
d) Do one of the following:
|
173
|
+
|
174
|
+
0) Convey the Minimal Corresponding Source under the terms of this
|
175
|
+
License, and the Corresponding Application Code in a form
|
176
|
+
suitable for, and under terms that permit, the user to
|
177
|
+
recombine or relink the Application with a modified version of
|
178
|
+
the Linked Version to produce a modified Combined Work, in the
|
179
|
+
manner specified by section 6 of the GNU GPL for conveying
|
180
|
+
Corresponding Source.
|
181
|
+
|
182
|
+
1) Use a suitable shared library mechanism for linking with the
|
183
|
+
Library. A suitable mechanism is one that (a) uses at run time
|
184
|
+
a copy of the Library already present on the user's computer
|
185
|
+
system, and (b) will operate properly with a modified version
|
186
|
+
of the Library that is interface-compatible with the Linked
|
187
|
+
Version.
|
188
|
+
|
189
|
+
e) Provide Installation Information, but only if you would otherwise
|
190
|
+
be required to provide such information under section 6 of the
|
191
|
+
GNU GPL, and only to the extent that such information is
|
192
|
+
necessary to install and execute a modified version of the
|
193
|
+
Combined Work produced by recombining or relinking the
|
194
|
+
Application with a modified version of the Linked Version. (If
|
195
|
+
you use option 4d0, the Installation Information must accompany
|
196
|
+
the Minimal Corresponding Source and Corresponding Application
|
197
|
+
Code. If you use option 4d1, you must provide the Installation
|
198
|
+
Information in the manner specified by section 6 of the GNU GPL
|
199
|
+
for conveying Corresponding Source.)
|
200
|
+
|
201
|
+
5. Combined Libraries.
|
202
|
+
|
203
|
+
You may place library facilities that are a work based on the
|
204
|
+
Library side by side in a single library together with other library
|
205
|
+
facilities that are not Applications and are not covered by this
|
206
|
+
License, and convey such a combined library under terms of your
|
207
|
+
choice, if you do both of the following:
|
208
|
+
|
209
|
+
a) Accompany the combined library with a copy of the same work based
|
210
|
+
on the Library, uncombined with any other library facilities,
|
211
|
+
conveyed under the terms of this License.
|
212
|
+
|
213
|
+
b) Give prominent notice with the combined library that part of it
|
214
|
+
is a work based on the Library, and explaining where to find the
|
215
|
+
accompanying uncombined form of the same work.
|
216
|
+
|
217
|
+
6. Revised Versions of the GNU Lesser General Public License.
|
218
|
+
|
219
|
+
The Free Software Foundation may publish revised and/or new versions
|
220
|
+
of the GNU Lesser General Public License from time to time. Such new
|
221
|
+
versions will be similar in spirit to the present version, but may
|
222
|
+
differ in detail to address new problems or concerns.
|
223
|
+
|
224
|
+
Each version is given a distinguishing version number. If the
|
225
|
+
Library as you received it specifies that a certain numbered version
|
226
|
+
of the GNU Lesser General Public License "or any later version"
|
227
|
+
applies to it, you have the option of following the terms and
|
228
|
+
conditions either of that published version or of any later version
|
229
|
+
published by the Free Software Foundation. If the Library as you
|
230
|
+
received it does not specify a version number of the GNU Lesser
|
231
|
+
General Public License, you may choose any version of the GNU Lesser
|
232
|
+
General Public License ever published by the Free Software Foundation.
|
233
|
+
|
234
|
+
If the Library as you received it specifies that a proxy can decide
|
235
|
+
whether future versions of the GNU Lesser General Public License shall
|
236
|
+
apply, that proxy's public statement of acceptance of any version is
|
237
|
+
permanent authorization for you to choose that version for the
|
238
|
+
Library.
|
239
|
+
CODE
|
240
|
+
|
241
|
+
file "COPYRIGHT.txt", <<-CODE
|
242
|
+
All BrowserCMS code is Copyright (C) 1998-2009 by BrowserMedia, LLC.
|
243
|
+
|
244
|
+
This program is free software: you can redistribute it and/or modify
|
245
|
+
it under the terms of the GNU Lesser General Public License as published by
|
246
|
+
the Free Software Foundation, either version 3 of the License, or
|
247
|
+
(at your option) any later version.
|
248
|
+
|
249
|
+
This program is distributed in the hope that it will be useful,
|
250
|
+
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
251
|
+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
252
|
+
GNU Lesser General Public License for more details.
|
253
|
+
|
254
|
+
You should have received a copy of the GNU Lesser General Public License
|
255
|
+
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
256
|
+
|
257
|
+
BrowserCMS is a registered trademark of BrowserMedia, LLC.
|
258
|
+
|
259
|
+
BrowserCMS includes works under other copyright notices and distributed
|
260
|
+
according to the terms of the GNU Lesser Public License or a compatible
|
261
|
+
license, including:
|
262
|
+
|
263
|
+
- jQuery - Copyright (C) 2009 John Resig
|
264
|
+
- FCKEditor - Copyright (C) 2003-2009 Frederico Caldeira Knabben
|
265
|
+
CODE
|
266
|
+
|
267
|
+
file "GPL.txt", <<-CODE
|
268
|
+
GNU GENERAL PUBLIC LICENSE
|
269
|
+
Version 3, 29 June 2007
|
270
|
+
|
271
|
+
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
|
272
|
+
Everyone is permitted to copy and distribute verbatim copies
|
273
|
+
of this license document, but changing it is not allowed.
|
274
|
+
|
275
|
+
Preamble
|
276
|
+
|
277
|
+
The GNU General Public License is a free, copyleft license for
|
278
|
+
software and other kinds of works.
|
279
|
+
|
280
|
+
The licenses for most software and other practical works are designed
|
281
|
+
to take away your freedom to share and change the works. By contrast,
|
282
|
+
the GNU General Public License is intended to guarantee your freedom to
|
283
|
+
share and change all versions of a program--to make sure it remains free
|
284
|
+
software for all its users. We, the Free Software Foundation, use the
|
285
|
+
GNU General Public License for most of our software; it applies also to
|
286
|
+
any other work released this way by its authors. You can apply it to
|
287
|
+
your programs, too.
|
288
|
+
|
289
|
+
When we speak of free software, we are referring to freedom, not
|
290
|
+
price. Our General Public Licenses are designed to make sure that you
|
291
|
+
have the freedom to distribute copies of free software (and charge for
|
292
|
+
them if you wish), that you receive source code or can get it if you
|
293
|
+
want it, that you can change the software or use pieces of it in new
|
294
|
+
free programs, and that you know you can do these things.
|
295
|
+
|
296
|
+
To protect your rights, we need to prevent others from denying you
|
297
|
+
these rights or asking you to surrender the rights. Therefore, you have
|
298
|
+
certain responsibilities if you distribute copies of the software, or if
|
299
|
+
you modify it: responsibilities to respect the freedom of others.
|
300
|
+
|
301
|
+
For example, if you distribute copies of such a program, whether
|
302
|
+
gratis or for a fee, you must pass on to the recipients the same
|
303
|
+
freedoms that you received. You must make sure that they, too, receive
|
304
|
+
or can get the source code. And you must show them these terms so they
|
305
|
+
know their rights.
|
306
|
+
|
307
|
+
Developers that use the GNU GPL protect your rights with two steps:
|
308
|
+
(1) assert copyright on the software, and (2) offer you this License
|
309
|
+
giving you legal permission to copy, distribute and/or modify it.
|
310
|
+
|
311
|
+
For the developers' and authors' protection, the GPL clearly explains
|
312
|
+
that there is no warranty for this free software. For both users' and
|
313
|
+
authors' sake, the GPL requires that modified versions be marked as
|
314
|
+
changed, so that their problems will not be attributed erroneously to
|
315
|
+
authors of previous versions.
|
316
|
+
|
317
|
+
Some devices are designed to deny users access to install or run
|
318
|
+
modified versions of the software inside them, although the manufacturer
|
319
|
+
can do so. This is fundamentally incompatible with the aim of
|
320
|
+
protecting users' freedom to change the software. The systematic
|
321
|
+
pattern of such abuse occurs in the area of products for individuals to
|
322
|
+
use, which is precisely where it is most unacceptable. Therefore, we
|
323
|
+
have designed this version of the GPL to prohibit the practice for those
|
324
|
+
products. If such problems arise substantially in other domains, we
|
325
|
+
stand ready to extend this provision to those domains in future versions
|
326
|
+
of the GPL, as needed to protect the freedom of users.
|
327
|
+
|
328
|
+
Finally, every program is threatened constantly by software patents.
|
329
|
+
States should not allow patents to restrict development and use of
|
330
|
+
software on general-purpose computers, but in those that do, we wish to
|
331
|
+
avoid the special danger that patents applied to a free program could
|
332
|
+
make it effectively proprietary. To prevent this, the GPL assures that
|
333
|
+
patents cannot be used to render the program non-free.
|
334
|
+
|
335
|
+
The precise terms and conditions for copying, distribution and
|
336
|
+
modification follow.
|
337
|
+
|
338
|
+
TERMS AND CONDITIONS
|
339
|
+
|
340
|
+
0. Definitions.
|
341
|
+
|
342
|
+
"This License" refers to version 3 of the GNU General Public License.
|
343
|
+
|
344
|
+
"Copyright" also means copyright-like laws that apply to other kinds of
|
345
|
+
works, such as semiconductor masks.
|
346
|
+
|
347
|
+
"The Program" refers to any copyrightable work licensed under this
|
348
|
+
License. Each licensee is addressed as "you". "Licensees" and
|
349
|
+
"recipients" may be individuals or organizations.
|
350
|
+
|
351
|
+
To "modify" a work means to copy from or adapt all or part of the work
|
352
|
+
in a fashion requiring copyright permission, other than the making of an
|
353
|
+
exact copy. The resulting work is called a "modified version" of the
|
354
|
+
earlier work or a work "based on" the earlier work.
|
355
|
+
|
356
|
+
A "covered work" means either the unmodified Program or a work based
|
357
|
+
on the Program.
|
358
|
+
|
359
|
+
To "propagate" a work means to do anything with it that, without
|
360
|
+
permission, would make you directly or secondarily liable for
|
361
|
+
infringement under applicable copyright law, except executing it on a
|
362
|
+
computer or modifying a private copy. Propagation includes copying,
|
363
|
+
distribution (with or without modification), making available to the
|
364
|
+
public, and in some countries other activities as well.
|
365
|
+
|
366
|
+
To "convey" a work means any kind of propagation that enables other
|
367
|
+
parties to make or receive copies. Mere interaction with a user through
|
368
|
+
a computer network, with no transfer of a copy, is not conveying.
|
369
|
+
|
370
|
+
An interactive user interface displays "Appropriate Legal Notices"
|
371
|
+
to the extent that it includes a convenient and prominently visible
|
372
|
+
feature that (1) displays an appropriate copyright notice, and (2)
|
373
|
+
tells the user that there is no warranty for the work (except to the
|
374
|
+
extent that warranties are provided), that licensees may convey the
|
375
|
+
work under this License, and how to view a copy of this License. If
|
376
|
+
the interface presents a list of user commands or options, such as a
|
377
|
+
menu, a prominent item in the list meets this criterion.
|
378
|
+
|
379
|
+
1. Source Code.
|
380
|
+
|
381
|
+
The "source code" for a work means the preferred form of the work
|
382
|
+
for making modifications to it. "Object code" means any non-source
|
383
|
+
form of a work.
|
384
|
+
|
385
|
+
A "Standard Interface" means an interface that either is an official
|
386
|
+
standard defined by a recognized standards body, or, in the case of
|
387
|
+
interfaces specified for a particular programming language, one that
|
388
|
+
is widely used among developers working in that language.
|
389
|
+
|
390
|
+
The "System Libraries" of an executable work include anything, other
|
391
|
+
than the work as a whole, that (a) is included in the normal form of
|
392
|
+
packaging a Major Component, but which is not part of that Major
|
393
|
+
Component, and (b) serves only to enable use of the work with that
|
394
|
+
Major Component, or to implement a Standard Interface for which an
|
395
|
+
implementation is available to the public in source code form. A
|
396
|
+
"Major Component", in this context, means a major essential component
|
397
|
+
(kernel, window system, and so on) of the specific operating system
|
398
|
+
(if any) on which the executable work runs, or a compiler used to
|
399
|
+
produce the work, or an object code interpreter used to run it.
|
400
|
+
|
401
|
+
The "Corresponding Source" for a work in object code form means all
|
402
|
+
the source code needed to generate, install, and (for an executable
|
403
|
+
work) run the object code and to modify the work, including scripts to
|
404
|
+
control those activities. However, it does not include the work's
|
405
|
+
System Libraries, or general-purpose tools or generally available free
|
406
|
+
programs which are used unmodified in performing those activities but
|
407
|
+
which are not part of the work. For example, Corresponding Source
|
408
|
+
includes interface definition files associated with source files for
|
409
|
+
the work, and the source code for shared libraries and dynamically
|
410
|
+
linked subprograms that the work is specifically designed to require,
|
411
|
+
such as by intimate data communication or control flow between those
|
412
|
+
subprograms and other parts of the work.
|
413
|
+
|
414
|
+
The Corresponding Source need not include anything that users
|
415
|
+
can regenerate automatically from other parts of the Corresponding
|
416
|
+
Source.
|
417
|
+
|
418
|
+
The Corresponding Source for a work in source code form is that
|
419
|
+
same work.
|
420
|
+
|
421
|
+
2. Basic Permissions.
|
422
|
+
|
423
|
+
All rights granted under this License are granted for the term of
|
424
|
+
copyright on the Program, and are irrevocable provided the stated
|
425
|
+
conditions are met. This License explicitly affirms your unlimited
|
426
|
+
permission to run the unmodified Program. The output from running a
|
427
|
+
covered work is covered by this License only if the output, given its
|
428
|
+
content, constitutes a covered work. This License acknowledges your
|
429
|
+
rights of fair use or other equivalent, as provided by copyright law.
|
430
|
+
|
431
|
+
You may make, run and propagate covered works that you do not
|
432
|
+
convey, without conditions so long as your license otherwise remains
|
433
|
+
in force. You may convey covered works to others for the sole purpose
|
434
|
+
of having them make modifications exclusively for you, or provide you
|
435
|
+
with facilities for running those works, provided that you comply with
|
436
|
+
the terms of this License in conveying all material for which you do
|
437
|
+
not control copyright. Those thus making or running the covered works
|
438
|
+
for you must do so exclusively on your behalf, under your direction
|
439
|
+
and control, on terms that prohibit them from making any copies of
|
440
|
+
your copyrighted material outside their relationship with you.
|
441
|
+
|
442
|
+
Conveying under any other circumstances is permitted solely under
|
443
|
+
the conditions stated below. Sublicensing is not allowed; section 10
|
444
|
+
makes it unnecessary.
|
445
|
+
|
446
|
+
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
|
447
|
+
|
448
|
+
No covered work shall be deemed part of an effective technological
|
449
|
+
measure under any applicable law fulfilling obligations under article
|
450
|
+
11 of the WIPO copyright treaty adopted on 20 December 1996, or
|
451
|
+
similar laws prohibiting or restricting circumvention of such
|
452
|
+
measures.
|
453
|
+
|
454
|
+
When you convey a covered work, you waive any legal power to forbid
|
455
|
+
circumvention of technological measures to the extent such circumvention
|
456
|
+
is effected by exercising rights under this License with respect to
|
457
|
+
the covered work, and you disclaim any intention to limit operation or
|
458
|
+
modification of the work as a means of enforcing, against the work's
|
459
|
+
users, your or third parties' legal rights to forbid circumvention of
|
460
|
+
technological measures.
|
461
|
+
|
462
|
+
4. Conveying Verbatim Copies.
|
463
|
+
|
464
|
+
You may convey verbatim copies of the Program's source code as you
|
465
|
+
receive it, in any medium, provided that you conspicuously and
|
466
|
+
appropriately publish on each copy an appropriate copyright notice;
|
467
|
+
keep intact all notices stating that this License and any
|
468
|
+
non-permissive terms added in accord with section 7 apply to the code;
|
469
|
+
keep intact all notices of the absence of any warranty; and give all
|
470
|
+
recipients a copy of this License along with the Program.
|
471
|
+
|
472
|
+
You may charge any price or no price for each copy that you convey,
|
473
|
+
and you may offer support or warranty protection for a fee.
|
474
|
+
|
475
|
+
5. Conveying Modified Source Versions.
|
476
|
+
|
477
|
+
You may convey a work based on the Program, or the modifications to
|
478
|
+
produce it from the Program, in the form of source code under the
|
479
|
+
terms of section 4, provided that you also meet all of these conditions:
|
480
|
+
|
481
|
+
a) The work must carry prominent notices stating that you modified
|
482
|
+
it, and giving a relevant date.
|
483
|
+
|
484
|
+
b) The work must carry prominent notices stating that it is
|
485
|
+
released under this License and any conditions added under section
|
486
|
+
7. This requirement modifies the requirement in section 4 to
|
487
|
+
"keep intact all notices".
|
488
|
+
|
489
|
+
c) You must license the entire work, as a whole, under this
|
490
|
+
License to anyone who comes into possession of a copy. This
|
491
|
+
License will therefore apply, along with any applicable section 7
|
492
|
+
additional terms, to the whole of the work, and all its parts,
|
493
|
+
regardless of how they are packaged. This License gives no
|
494
|
+
permission to license the work in any other way, but it does not
|
495
|
+
invalidate such permission if you have separately received it.
|
496
|
+
|
497
|
+
d) If the work has interactive user interfaces, each must display
|
498
|
+
Appropriate Legal Notices; however, if the Program has interactive
|
499
|
+
interfaces that do not display Appropriate Legal Notices, your
|
500
|
+
work need not make them do so.
|
501
|
+
|
502
|
+
A compilation of a covered work with other separate and independent
|
503
|
+
works, which are not by their nature extensions of the covered work,
|
504
|
+
and which are not combined with it such as to form a larger program,
|
505
|
+
in or on a volume of a storage or distribution medium, is called an
|
506
|
+
"aggregate" if the compilation and its resulting copyright are not
|
507
|
+
used to limit the access or legal rights of the compilation's users
|
508
|
+
beyond what the individual works permit. Inclusion of a covered work
|
509
|
+
in an aggregate does not cause this License to apply to the other
|
510
|
+
parts of the aggregate.
|
511
|
+
|
512
|
+
6. Conveying Non-Source Forms.
|
513
|
+
|
514
|
+
You may convey a covered work in object code form under the terms
|
515
|
+
of sections 4 and 5, provided that you also convey the
|
516
|
+
machine-readable Corresponding Source under the terms of this License,
|
517
|
+
in one of these ways:
|
518
|
+
|
519
|
+
a) Convey the object code in, or embodied in, a physical product
|
520
|
+
(including a physical distribution medium), accompanied by the
|
521
|
+
Corresponding Source fixed on a durable physical medium
|
522
|
+
customarily used for software interchange.
|
523
|
+
|
524
|
+
b) Convey the object code in, or embodied in, a physical product
|
525
|
+
(including a physical distribution medium), accompanied by a
|
526
|
+
written offer, valid for at least three years and valid for as
|
527
|
+
long as you offer spare parts or customer support for that product
|
528
|
+
model, to give anyone who possesses the object code either (1) a
|
529
|
+
copy of the Corresponding Source for all the software in the
|
530
|
+
product that is covered by this License, on a durable physical
|
531
|
+
medium customarily used for software interchange, for a price no
|
532
|
+
more than your reasonable cost of physically performing this
|
533
|
+
conveying of source, or (2) access to copy the
|
534
|
+
Corresponding Source from a network server at no charge.
|
535
|
+
|
536
|
+
c) Convey individual copies of the object code with a copy of the
|
537
|
+
written offer to provide the Corresponding Source. This
|
538
|
+
alternative is allowed only occasionally and noncommercially, and
|
539
|
+
only if you received the object code with such an offer, in accord
|
540
|
+
with subsection 6b.
|
541
|
+
|
542
|
+
d) Convey the object code by offering access from a designated
|
543
|
+
place (gratis or for a charge), and offer equivalent access to the
|
544
|
+
Corresponding Source in the same way through the same place at no
|
545
|
+
further charge. You need not require recipients to copy the
|
546
|
+
Corresponding Source along with the object code. If the place to
|
547
|
+
copy the object code is a network server, the Corresponding Source
|
548
|
+
may be on a different server (operated by you or a third party)
|
549
|
+
that supports equivalent copying facilities, provided you maintain
|
550
|
+
clear directions next to the object code saying where to find the
|
551
|
+
Corresponding Source. Regardless of what server hosts the
|
552
|
+
Corresponding Source, you remain obligated to ensure that it is
|
553
|
+
available for as long as needed to satisfy these requirements.
|
554
|
+
|
555
|
+
e) Convey the object code using peer-to-peer transmission, provided
|
556
|
+
you inform other peers where the object code and Corresponding
|
557
|
+
Source of the work are being offered to the general public at no
|
558
|
+
charge under subsection 6d.
|
559
|
+
|
560
|
+
A separable portion of the object code, whose source code is excluded
|
561
|
+
from the Corresponding Source as a System Library, need not be
|
562
|
+
included in conveying the object code work.
|
563
|
+
|
564
|
+
A "User Product" is either (1) a "consumer product", which means any
|
565
|
+
tangible personal property which is normally used for personal, family,
|
566
|
+
or household purposes, or (2) anything designed or sold for incorporation
|
567
|
+
into a dwelling. In determining whether a product is a consumer product,
|
568
|
+
doubtful cases shall be resolved in favor of coverage. For a particular
|
569
|
+
product received by a particular user, "normally used" refers to a
|
570
|
+
typical or common use of that class of product, regardless of the status
|
571
|
+
of the particular user or of the way in which the particular user
|
572
|
+
actually uses, or expects or is expected to use, the product. A product
|
573
|
+
is a consumer product regardless of whether the product has substantial
|
574
|
+
commercial, industrial or non-consumer uses, unless such uses represent
|
575
|
+
the only significant mode of use of the product.
|
576
|
+
|
577
|
+
"Installation Information" for a User Product means any methods,
|
578
|
+
procedures, authorization keys, or other information required to install
|
579
|
+
and execute modified versions of a covered work in that User Product from
|
580
|
+
a modified version of its Corresponding Source. The information must
|
581
|
+
suffice to ensure that the continued functioning of the modified object
|
582
|
+
code is in no case prevented or interfered with solely because
|
583
|
+
modification has been made.
|
584
|
+
|
585
|
+
If you convey an object code work under this section in, or with, or
|
586
|
+
specifically for use in, a User Product, and the conveying occurs as
|
587
|
+
part of a transaction in which the right of possession and use of the
|
588
|
+
User Product is transferred to the recipient in perpetuity or for a
|
589
|
+
fixed term (regardless of how the transaction is characterized), the
|
590
|
+
Corresponding Source conveyed under this section must be accompanied
|
591
|
+
by the Installation Information. But this requirement does not apply
|
592
|
+
if neither you nor any third party retains the ability to install
|
593
|
+
modified object code on the User Product (for example, the work has
|
594
|
+
been installed in ROM).
|
595
|
+
|
596
|
+
The requirement to provide Installation Information does not include a
|
597
|
+
requirement to continue to provide support service, warranty, or updates
|
598
|
+
for a work that has been modified or installed by the recipient, or for
|
599
|
+
the User Product in which it has been modified or installed. Access to a
|
600
|
+
network may be denied when the modification itself materially and
|
601
|
+
adversely affects the operation of the network or violates the rules and
|
602
|
+
protocols for communication across the network.
|
603
|
+
|
604
|
+
Corresponding Source conveyed, and Installation Information provided,
|
605
|
+
in accord with this section must be in a format that is publicly
|
606
|
+
documented (and with an implementation available to the public in
|
607
|
+
source code form), and must require no special password or key for
|
608
|
+
unpacking, reading or copying.
|
609
|
+
|
610
|
+
7. Additional Terms.
|
611
|
+
|
612
|
+
"Additional permissions" are terms that supplement the terms of this
|
613
|
+
License by making exceptions from one or more of its conditions.
|
614
|
+
Additional permissions that are applicable to the entire Program shall
|
615
|
+
be treated as though they were included in this License, to the extent
|
616
|
+
that they are valid under applicable law. If additional permissions
|
617
|
+
apply only to part of the Program, that part may be used separately
|
618
|
+
under those permissions, but the entire Program remains governed by
|
619
|
+
this License without regard to the additional permissions.
|
620
|
+
|
621
|
+
When you convey a copy of a covered work, you may at your option
|
622
|
+
remove any additional permissions from that copy, or from any part of
|
623
|
+
it. (Additional permissions may be written to require their own
|
624
|
+
removal in certain cases when you modify the work.) You may place
|
625
|
+
additional permissions on material, added by you to a covered work,
|
626
|
+
for which you have or can give appropriate copyright permission.
|
627
|
+
|
628
|
+
Notwithstanding any other provision of this License, for material you
|
629
|
+
add to a covered work, you may (if authorized by the copyright holders of
|
630
|
+
that material) supplement the terms of this License with terms:
|
631
|
+
|
632
|
+
a) Disclaiming warranty or limiting liability differently from the
|
633
|
+
terms of sections 15 and 16 of this License; or
|
634
|
+
|
635
|
+
b) Requiring preservation of specified reasonable legal notices or
|
636
|
+
author attributions in that material or in the Appropriate Legal
|
637
|
+
Notices displayed by works containing it; or
|
638
|
+
|
639
|
+
c) Prohibiting misrepresentation of the origin of that material, or
|
640
|
+
requiring that modified versions of such material be marked in
|
641
|
+
reasonable ways as different from the original version; or
|
642
|
+
|
643
|
+
d) Limiting the use for publicity purposes of names of licensors or
|
644
|
+
authors of the material; or
|
645
|
+
|
646
|
+
e) Declining to grant rights under trademark law for use of some
|
647
|
+
trade names, trademarks, or service marks; or
|
648
|
+
|
649
|
+
f) Requiring indemnification of licensors and authors of that
|
650
|
+
material by anyone who conveys the material (or modified versions of
|
651
|
+
it) with contractual assumptions of liability to the recipient, for
|
652
|
+
any liability that these contractual assumptions directly impose on
|
653
|
+
those licensors and authors.
|
654
|
+
|
655
|
+
All other non-permissive additional terms are considered "further
|
656
|
+
restrictions" within the meaning of section 10. If the Program as you
|
657
|
+
received it, or any part of it, contains a notice stating that it is
|
658
|
+
governed by this License along with a term that is a further
|
659
|
+
restriction, you may remove that term. If a license document contains
|
660
|
+
a further restriction but permits relicensing or conveying under this
|
661
|
+
License, you may add to a covered work material governed by the terms
|
662
|
+
of that license document, provided that the further restriction does
|
663
|
+
not survive such relicensing or conveying.
|
664
|
+
|
665
|
+
If you add terms to a covered work in accord with this section, you
|
666
|
+
must place, in the relevant source files, a statement of the
|
667
|
+
additional terms that apply to those files, or a notice indicating
|
668
|
+
where to find the applicable terms.
|
669
|
+
|
670
|
+
Additional terms, permissive or non-permissive, may be stated in the
|
671
|
+
form of a separately written license, or stated as exceptions;
|
672
|
+
the above requirements apply either way.
|
673
|
+
|
674
|
+
8. Termination.
|
675
|
+
|
676
|
+
You may not propagate or modify a covered work except as expressly
|
677
|
+
provided under this License. Any attempt otherwise to propagate or
|
678
|
+
modify it is void, and will automatically terminate your rights under
|
679
|
+
this License (including any patent licenses granted under the third
|
680
|
+
paragraph of section 11).
|
681
|
+
|
682
|
+
However, if you cease all violation of this License, then your
|
683
|
+
license from a particular copyright holder is reinstated (a)
|
684
|
+
provisionally, unless and until the copyright holder explicitly and
|
685
|
+
finally terminates your license, and (b) permanently, if the copyright
|
686
|
+
holder fails to notify you of the violation by some reasonable means
|
687
|
+
prior to 60 days after the cessation.
|
688
|
+
|
689
|
+
Moreover, your license from a particular copyright holder is
|
690
|
+
reinstated permanently if the copyright holder notifies you of the
|
691
|
+
violation by some reasonable means, this is the first time you have
|
692
|
+
received notice of violation of this License (for any work) from that
|
693
|
+
copyright holder, and you cure the violation prior to 30 days after
|
694
|
+
your receipt of the notice.
|
695
|
+
|
696
|
+
Termination of your rights under this section does not terminate the
|
697
|
+
licenses of parties who have received copies or rights from you under
|
698
|
+
this License. If your rights have been terminated and not permanently
|
699
|
+
reinstated, you do not qualify to receive new licenses for the same
|
700
|
+
material under section 10.
|
701
|
+
|
702
|
+
9. Acceptance Not Required for Having Copies.
|
703
|
+
|
704
|
+
You are not required to accept this License in order to receive or
|
705
|
+
run a copy of the Program. Ancillary propagation of a covered work
|
706
|
+
occurring solely as a consequence of using peer-to-peer transmission
|
707
|
+
to receive a copy likewise does not require acceptance. However,
|
708
|
+
nothing other than this License grants you permission to propagate or
|
709
|
+
modify any covered work. These actions infringe copyright if you do
|
710
|
+
not accept this License. Therefore, by modifying or propagating a
|
711
|
+
covered work, you indicate your acceptance of this License to do so.
|
712
|
+
|
713
|
+
10. Automatic Licensing of Downstream Recipients.
|
714
|
+
|
715
|
+
Each time you convey a covered work, the recipient automatically
|
716
|
+
receives a license from the original licensors, to run, modify and
|
717
|
+
propagate that work, subject to this License. You are not responsible
|
718
|
+
for enforcing compliance by third parties with this License.
|
719
|
+
|
720
|
+
An "entity transaction" is a transaction transferring control of an
|
721
|
+
organization, or substantially all assets of one, or subdividing an
|
722
|
+
organization, or merging organizations. If propagation of a covered
|
723
|
+
work results from an entity transaction, each party to that
|
724
|
+
transaction who receives a copy of the work also receives whatever
|
725
|
+
licenses to the work the party's predecessor in interest had or could
|
726
|
+
give under the previous paragraph, plus a right to possession of the
|
727
|
+
Corresponding Source of the work from the predecessor in interest, if
|
728
|
+
the predecessor has it or can get it with reasonable efforts.
|
729
|
+
|
730
|
+
You may not impose any further restrictions on the exercise of the
|
731
|
+
rights granted or affirmed under this License. For example, you may
|
732
|
+
not impose a license fee, royalty, or other charge for exercise of
|
733
|
+
rights granted under this License, and you may not initiate litigation
|
734
|
+
(including a cross-claim or counterclaim in a lawsuit) alleging that
|
735
|
+
any patent claim is infringed by making, using, selling, offering for
|
736
|
+
sale, or importing the Program or any portion of it.
|
737
|
+
|
738
|
+
11. Patents.
|
739
|
+
|
740
|
+
A "contributor" is a copyright holder who authorizes use under this
|
741
|
+
License of the Program or a work on which the Program is based. The
|
742
|
+
work thus licensed is called the contributor's "contributor version".
|
743
|
+
|
744
|
+
A contributor's "essential patent claims" are all patent claims
|
745
|
+
owned or controlled by the contributor, whether already acquired or
|
746
|
+
hereafter acquired, that would be infringed by some manner, permitted
|
747
|
+
by this License, of making, using, or selling its contributor version,
|
748
|
+
but do not include claims that would be infringed only as a
|
749
|
+
consequence of further modification of the contributor version. For
|
750
|
+
purposes of this definition, "control" includes the right to grant
|
751
|
+
patent sublicenses in a manner consistent with the requirements of
|
752
|
+
this License.
|
753
|
+
|
754
|
+
Each contributor grants you a non-exclusive, worldwide, royalty-free
|
755
|
+
patent license under the contributor's essential patent claims, to
|
756
|
+
make, use, sell, offer for sale, import and otherwise run, modify and
|
757
|
+
propagate the contents of its contributor version.
|
758
|
+
|
759
|
+
In the following three paragraphs, a "patent license" is any express
|
760
|
+
agreement or commitment, however denominated, not to enforce a patent
|
761
|
+
(such as an express permission to practice a patent or covenant not to
|
762
|
+
sue for patent infringement). To "grant" such a patent license to a
|
763
|
+
party means to make such an agreement or commitment not to enforce a
|
764
|
+
patent against the party.
|
765
|
+
|
766
|
+
If you convey a covered work, knowingly relying on a patent license,
|
767
|
+
and the Corresponding Source of the work is not available for anyone
|
768
|
+
to copy, free of charge and under the terms of this License, through a
|
769
|
+
publicly available network server or other readily accessible means,
|
770
|
+
then you must either (1) cause the Corresponding Source to be so
|
771
|
+
available, or (2) arrange to deprive yourself of the benefit of the
|
772
|
+
patent license for this particular work, or (3) arrange, in a manner
|
773
|
+
consistent with the requirements of this License, to extend the patent
|
774
|
+
license to downstream recipients. "Knowingly relying" means you have
|
775
|
+
actual knowledge that, but for the patent license, your conveying the
|
776
|
+
covered work in a country, or your recipient's use of the covered work
|
777
|
+
in a country, would infringe one or more identifiable patents in that
|
778
|
+
country that you have reason to believe are valid.
|
779
|
+
|
780
|
+
If, pursuant to or in connection with a single transaction or
|
781
|
+
arrangement, you convey, or propagate by procuring conveyance of, a
|
782
|
+
covered work, and grant a patent license to some of the parties
|
783
|
+
receiving the covered work authorizing them to use, propagate, modify
|
784
|
+
or convey a specific copy of the covered work, then the patent license
|
785
|
+
you grant is automatically extended to all recipients of the covered
|
786
|
+
work and works based on it.
|
787
|
+
|
788
|
+
A patent license is "discriminatory" if it does not include within
|
789
|
+
the scope of its coverage, prohibits the exercise of, or is
|
790
|
+
conditioned on the non-exercise of one or more of the rights that are
|
791
|
+
specifically granted under this License. You may not convey a covered
|
792
|
+
work if you are a party to an arrangement with a third party that is
|
793
|
+
in the business of distributing software, under which you make payment
|
794
|
+
to the third party based on the extent of your activity of conveying
|
795
|
+
the work, and under which the third party grants, to any of the
|
796
|
+
parties who would receive the covered work from you, a discriminatory
|
797
|
+
patent license (a) in connection with copies of the covered work
|
798
|
+
conveyed by you (or copies made from those copies), or (b) primarily
|
799
|
+
for and in connection with specific products or compilations that
|
800
|
+
contain the covered work, unless you entered into that arrangement,
|
801
|
+
or that patent license was granted, prior to 28 March 2007.
|
802
|
+
|
803
|
+
Nothing in this License shall be construed as excluding or limiting
|
804
|
+
any implied license or other defenses to infringement that may
|
805
|
+
otherwise be available to you under applicable patent law.
|
806
|
+
|
807
|
+
12. No Surrender of Others' Freedom.
|
808
|
+
|
809
|
+
If conditions are imposed on you (whether by court order, agreement or
|
810
|
+
otherwise) that contradict the conditions of this License, they do not
|
811
|
+
excuse you from the conditions of this License. If you cannot convey a
|
812
|
+
covered work so as to satisfy simultaneously your obligations under this
|
813
|
+
License and any other pertinent obligations, then as a consequence you may
|
814
|
+
not convey it at all. For example, if you agree to terms that obligate you
|
815
|
+
to collect a royalty for further conveying from those to whom you convey
|
816
|
+
the Program, the only way you could satisfy both those terms and this
|
817
|
+
License would be to refrain entirely from conveying the Program.
|
818
|
+
|
819
|
+
13. Use with the GNU Affero General Public License.
|
820
|
+
|
821
|
+
Notwithstanding any other provision of this License, you have
|
822
|
+
permission to link or combine any covered work with a work licensed
|
823
|
+
under version 3 of the GNU Affero General Public License into a single
|
824
|
+
combined work, and to convey the resulting work. The terms of this
|
825
|
+
License will continue to apply to the part which is the covered work,
|
826
|
+
but the special requirements of the GNU Affero General Public License,
|
827
|
+
section 13, concerning interaction through a network will apply to the
|
828
|
+
combination as such.
|
829
|
+
|
830
|
+
14. Revised Versions of this License.
|
831
|
+
|
832
|
+
The Free Software Foundation may publish revised and/or new versions of
|
833
|
+
the GNU General Public License from time to time. Such new versions will
|
834
|
+
be similar in spirit to the present version, but may differ in detail to
|
835
|
+
address new problems or concerns.
|
836
|
+
|
837
|
+
Each version is given a distinguishing version number. If the
|
838
|
+
Program specifies that a certain numbered version of the GNU General
|
839
|
+
Public License "or any later version" applies to it, you have the
|
840
|
+
option of following the terms and conditions either of that numbered
|
841
|
+
version or of any later version published by the Free Software
|
842
|
+
Foundation. If the Program does not specify a version number of the
|
843
|
+
GNU General Public License, you may choose any version ever published
|
844
|
+
by the Free Software Foundation.
|
845
|
+
|
846
|
+
If the Program specifies that a proxy can decide which future
|
847
|
+
versions of the GNU General Public License can be used, that proxy's
|
848
|
+
public statement of acceptance of a version permanently authorizes you
|
849
|
+
to choose that version for the Program.
|
850
|
+
|
851
|
+
Later license versions may give you additional or different
|
852
|
+
permissions. However, no additional obligations are imposed on any
|
853
|
+
author or copyright holder as a result of your choosing to follow a
|
854
|
+
later version.
|
855
|
+
|
856
|
+
15. Disclaimer of Warranty.
|
857
|
+
|
858
|
+
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
|
859
|
+
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
|
860
|
+
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
|
861
|
+
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
|
862
|
+
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
863
|
+
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
|
864
|
+
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
|
865
|
+
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
|
866
|
+
|
867
|
+
16. Limitation of Liability.
|
868
|
+
|
869
|
+
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
|
870
|
+
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
|
871
|
+
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
|
872
|
+
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
|
873
|
+
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
|
874
|
+
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
|
875
|
+
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
|
876
|
+
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
|
877
|
+
SUCH DAMAGES.
|
878
|
+
|
879
|
+
17. Interpretation of Sections 15 and 16.
|
880
|
+
|
881
|
+
If the disclaimer of warranty and limitation of liability provided
|
882
|
+
above cannot be given local legal effect according to their terms,
|
883
|
+
reviewing courts shall apply local law that most closely approximates
|
884
|
+
an absolute waiver of all civil liability in connection with the
|
885
|
+
Program, unless a warranty or assumption of liability accompanies a
|
886
|
+
copy of the Program in return for a fee.
|
887
|
+
|
888
|
+
END OF TERMS AND CONDITIONS
|
889
|
+
|
890
|
+
How to Apply These Terms to Your New Programs
|
891
|
+
|
892
|
+
If you develop a new program, and you want it to be of the greatest
|
893
|
+
possible use to the public, the best way to achieve this is to make it
|
894
|
+
free software which everyone can redistribute and change under these terms.
|
895
|
+
|
896
|
+
To do so, attach the following notices to the program. It is safest
|
897
|
+
to attach them to the start of each source file to most effectively
|
898
|
+
state the exclusion of warranty; and each file should have at least
|
899
|
+
the "copyright" line and a pointer to where the full notice is found.
|
900
|
+
|
901
|
+
<one line to give the program's name and a brief idea of what it does.>
|
902
|
+
Copyright (C) <year> <name of author>
|
903
|
+
|
904
|
+
This program is free software: you can redistribute it and/or modify
|
905
|
+
it under the terms of the GNU General Public License as published by
|
906
|
+
the Free Software Foundation, either version 3 of the License, or
|
907
|
+
(at your option) any later version.
|
908
|
+
|
909
|
+
This program is distributed in the hope that it will be useful,
|
910
|
+
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
911
|
+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
912
|
+
GNU General Public License for more details.
|
913
|
+
|
914
|
+
You should have received a copy of the GNU General Public License
|
915
|
+
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
916
|
+
|
917
|
+
Also add information on how to contact you by electronic and paper mail.
|
918
|
+
|
919
|
+
If the program does terminal interaction, make it output a short
|
920
|
+
notice like this when it starts in an interactive mode:
|
921
|
+
|
922
|
+
<program> Copyright (C) <year> <name of author>
|
923
|
+
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
|
924
|
+
This is free software, and you are welcome to redistribute it
|
925
|
+
under certain conditions; type `show c' for details.
|
926
|
+
|
927
|
+
The hypothetical commands `show w' and `show c' should show the appropriate
|
928
|
+
parts of the General Public License. Of course, your program's commands
|
929
|
+
might be different; for a GUI interface, you would use an "about box".
|
930
|
+
|
931
|
+
You should also get your employer (if you work as a programmer) or school,
|
932
|
+
if any, to sign a "copyright disclaimer" for the program, if necessary.
|
933
|
+
For more information on this, and how to apply and follow the GNU GPL, see
|
934
|
+
<http://www.gnu.org/licenses/>.
|
935
|
+
|
936
|
+
The GNU General Public License does not permit incorporating your program
|
937
|
+
into proprietary programs. If your program is a subroutine library, you
|
938
|
+
may consider it more useful to permit linking proprietary applications with
|
939
|
+
the library. If this is what you want to do, use the GNU Lesser General
|
940
|
+
Public License instead of this License. But first, please read
|
941
|
+
<http://www.gnu.org/philosophy/why-not-lgpl.html>.
|
942
|
+
CODE
|
943
|
+
|
944
|
+
git :add => "."
|
945
|
+
git :commit => "-a -m 'New Module'"
|