Skip to content

Commit

Permalink
- changed lincese into MIT
Browse files Browse the repository at this point in the history
- created version 2.3.0 with rails 5 support
  • Loading branch information
owen2345 committed Aug 3, 2016
1 parent 6647029 commit 2fc64b9
Show file tree
Hide file tree
Showing 121 changed files with 53 additions and 1,117 deletions.
206 changes: 21 additions & 185 deletions LICENSE

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
* Add the gem in your Gemfile

```
gem "camaleon_cms", '>=2.2.1' # Stable versions 2.1.2.0, 2.1.1.4, 2.1.1, 2.1.0
gem "camaleon_cms", '>=2.3.0' # Stable versions 2.2.1, 2.1.2.0, 2.1.1.4, 2.1.1, 2.1.0
# gem "camaleon_cms", github: 'owen2345/camaleon-cms' # current development version
```
* Only Rails 5 support
Expand Down Expand Up @@ -145,7 +145,7 @@ If you need support, need some extra functionality or need plugins, please conta
Owen Peredo Diaz

## License
http://camaleon.tuzitio.com/license.html/
http://camaleon.tuzitio.com/license.html

## Coming soon
* Documentation and Videos
Expand Down
10 changes: 1 addition & 9 deletions app/apps/plugins/attack/admin_controller.rb
Original file line number Diff line number Diff line change
@@ -1,11 +1,3 @@
=begin
Camaleon CMS is a content management system
Copyright (C) 2015 by Owen Peredo Diaz
Email: owenperedo@gmail.com
This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the GNU Affero General Public License (GPLv3) for more details.
=end
class Plugins::Attack::AdminController < CamaleonCms::Apps::PluginsAdminController
def settings
@attack = current_site.get_meta("attack_config")
Expand All @@ -22,4 +14,4 @@ def save_settings
redirect_to action: :settings
end

end
end
10 changes: 1 addition & 9 deletions app/apps/plugins/attack/attack_helper.rb
Original file line number Diff line number Diff line change
@@ -1,11 +1,3 @@
=begin
Camaleon CMS is a content management system
Copyright (C) 2015 by Owen Peredo Diaz
Email: owenperedo@gmail.com
This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the GNU Affero General Public License (GPLv3) for more details.
=end
module Plugins::Attack::AttackHelper

# here all actions on plugin destroying
Expand Down Expand Up @@ -98,4 +90,4 @@ def attack_request_key(method = nil)
def attack_plugin_options(arg)
arg[:links] << link_to(t('plugin.attack.settings'), admin_plugins_attack_settings_path)
end
end
end
2 changes: 1 addition & 1 deletion app/apps/plugins/attack/config/custom_models.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
CamaleonCms::Site.class_eval do
has_many :attack, class_name: "Plugins::Attack::Models::Attack"
end
end
end
10 changes: 1 addition & 9 deletions app/apps/plugins/attack/models/attack.rb
Original file line number Diff line number Diff line change
@@ -1,11 +1,3 @@
=begin
Camaleon CMS is a content management system
Copyright (C) 2015 by Owen Peredo Diaz
Email: owenperedo@gmail.com
This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the GNU Affero General Public License (GPLv3) for more details.
=end
class Plugins::Attack::Models::Attack < ActiveRecord::Base
belongs_to :site
end
end
13 changes: 1 addition & 12 deletions app/apps/plugins/authoring_post/authoring_post_helper.rb
Original file line number Diff line number Diff line change
@@ -1,14 +1,3 @@
=begin
Camaleon CMS is a content management system
Copyright (C) 2015 by Owen Peredo Diaz
Email: owenperedo@gmail.com
Authoring Post Plugin
Copyright (C) 2016 by Second Bureau
Email: gilles@secondbureau.com
This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the GNU Affero General Public License (GPLv3) for more details.
=end
module Plugins::AuthoringPost::AuthoringPostHelper

def plugin_authoring_post_the_content(args)
Expand Down Expand Up @@ -59,4 +48,4 @@ def plugin_authoring_authors_list(post)
ret
end

end
end
8 changes: 0 additions & 8 deletions app/apps/plugins/front_cache/admin_controller.rb
Original file line number Diff line number Diff line change
@@ -1,11 +1,3 @@
=begin
Camaleon CMS is a content management system
Copyright (C) 2015 by Owen Peredo Diaz
Email: owenperedo@gmail.com
This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the GNU Affero General Public License (GPLv3) for more details.
=end
class Plugins::FrontCache::AdminController < CamaleonCms::Apps::PluginsAdminController
include Plugins::FrontCache::FrontCacheHelper
def settings
Expand Down
2 changes: 1 addition & 1 deletion app/apps/plugins/front_cache/config/initializer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
CamaleonCms::Site.all.each do |site|
site.set_option("refresh_cache", true)
end
end
end
8 changes: 0 additions & 8 deletions app/apps/plugins/front_cache/front_cache_helper.rb
Original file line number Diff line number Diff line change
@@ -1,11 +1,3 @@
=begin
Camaleon CMS is a content management system
Copyright (C) 2015 by Owen Peredo Diaz
Email: owenperedo@gmail.com
This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the GNU Affero General Public License (GPLv3) for more details.
=end
module Plugins::FrontCache::FrontCacheHelper

# save as cache all pages configured on settings of this plugin for public users
Expand Down
10 changes: 1 addition & 9 deletions app/apps/plugins/visibility_post/visibility_post_helper.rb
Original file line number Diff line number Diff line change
@@ -1,11 +1,3 @@
=begin
Camaleon CMS is a content management system
Copyright (C) 2015 by Owen Peredo Diaz
Email: owenperedo@gmail.com
This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the GNU Affero General Public License (GPLv3) for more details.
=end
module Plugins::VisibilityPost::VisibilityPostHelper
def plugin_visibility_post_the_content(args) #{content: object.content.translate(@_deco_locale), post: object}
if args[:post].visibility == "password"
Expand Down Expand Up @@ -129,4 +121,4 @@ def groups_list(post)
res.join("")
end

end
end
10 changes: 1 addition & 9 deletions app/apps/themes/camaleon_first/main_helper.rb
Original file line number Diff line number Diff line change
@@ -1,11 +1,3 @@
=begin
Camaleon CMS is a content management system
Copyright (C) 2015 by Owen Peredo Diaz
Email: owenperedo@gmail.com
This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the GNU Affero General Public License (GPLv3) for more details.
=end
module Themes::CamaleonFirst::MainHelper
def self.included(klass)
klass.helper_method [:camaleon_first_list_select] rescue "" # here your methods accessible from views
Expand Down Expand Up @@ -38,4 +30,4 @@ def camaleon_first_on_install_theme(theme)
def camaleon_first_on_uninstall_theme(theme)
theme.destroy
end
end
end
10 changes: 1 addition & 9 deletions app/apps/themes/default/default_helper.rb
Original file line number Diff line number Diff line change
@@ -1,11 +1,3 @@
=begin
Camaleon CMS is a content management system
Copyright (C) 2015 by Owen Peredo Diaz
Email: owenperedo@gmail.com
This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the GNU Affero General Public License (GPLv3) for more details.
=end
module Themes::Default::DefaultHelper
def self.included(klass)
klass.helper_method [:get_taxonomy] rescue ""
Expand Down Expand Up @@ -33,4 +25,4 @@ def theme_default_on_install(theme)
theme.add_field({"name"=>"Footer message", "slug"=>"footer"},{field_key: "editor", default_value: 'Copyright &copy; 2015 - Camaleon CMS. All rights reservated.'})
end

end
end
10 changes: 1 addition & 9 deletions app/apps/themes/new/custom_helper.rb
Original file line number Diff line number Diff line change
@@ -1,11 +1,3 @@
=begin
Camaleon CMS is a content management system
Copyright (C) 2015 by Owen Peredo Diaz
Email: owenperedo@gmail.com
This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the GNU Affero General Public License (GPLv3) for more details.
=end
module Themes::New::CustomHelper

def theme_custom_settings(theme)
Expand Down Expand Up @@ -36,4 +28,4 @@ def theme_custom_on_uninstall_theme(theme)
theme.get_field_groups().destroy_all
theme.destroy
end
end
end
Original file line number Diff line number Diff line change
@@ -1,11 +1,3 @@
=begin
Camaleon CMS is a content management system
Copyright (C) 2015 by Owen Peredo Diaz
Email: owenperedo@gmail.com
This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the GNU Affero General Public License (GPLv3) for more details.
=end
class CamaleonCms::Admin::Appearances::NavMenusController < CamaleonCms::AdminController
add_breadcrumb I18n.t("camaleon_cms.admin.sidebar.appearance")
add_breadcrumb I18n.t("camaleon_cms.admin.sidebar.menus")
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,3 @@
=begin
Camaleon CMS is a content management system
Copyright (C) 2015 by Owen Peredo Diaz
Email: owenperedo@gmail.com
This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the GNU Affero General Public License (GPLv3) for more details.
=end
class CamaleonCms::Admin::Appearances::ThemesController < CamaleonCms::AdminController
# list themes or update a theme status
add_breadcrumb I18n.t("camaleon_cms.admin.sidebar.appearance")
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,3 @@
=begin
Camaleon CMS is a content management system
Copyright (C) 2015 by Owen Peredo Diaz
Email: owenperedo@gmail.com
This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the GNU Affero General Public License (GPLv3) for more details.
=end
class CamaleonCms::Admin::Appearances::Widgets::AssignController < CamaleonCms::AdminController
before_action :check_permission_role
before_action :find_sidebar
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,3 @@
=begin
Camaleon CMS is a content management system
Copyright (C) 2015 by Owen Peredo Diaz
Email: owenperedo@gmail.com
This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the GNU Affero General Public License (GPLv3) for more details.
=end
class CamaleonCms::Admin::Appearances::Widgets::MainController < CamaleonCms::AdminController
before_action :check_permission_role
before_action :set_widgets, only: [:edit, :update, :destroy]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,3 @@
=begin
Camaleon CMS is a content management system
Copyright (C) 2015 by Owen Peredo Diaz
Email: owenperedo@gmail.com
This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the GNU Affero General Public License (GPLv3) for more details.
=end
class CamaleonCms::Admin::Appearances::Widgets::SidebarController < CamaleonCms::AdminController
before_action :check_permission_role
before_action :set_sidebar, only: [:edit, :update, :destroy]
Expand Down
8 changes: 0 additions & 8 deletions app/controllers/camaleon_cms/admin/categories_controller.rb
Original file line number Diff line number Diff line change
@@ -1,11 +1,3 @@
=begin
Camaleon CMS is a content management system
Copyright (C) 2015 by Owen Peredo Diaz
Email: owenperedo@gmail.com
This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the GNU Affero General Public License (GPLv3) for more details.
=end
class CamaleonCms::Admin::CategoriesController < CamaleonCms::AdminController
add_breadcrumb I18n.t("camaleon_cms.admin.sidebar.contents")
before_action :set_post_type
Expand Down
8 changes: 0 additions & 8 deletions app/controllers/camaleon_cms/admin/comments_controller.rb
Original file line number Diff line number Diff line change
@@ -1,11 +1,3 @@
=begin
Camaleon CMS is a content management system
Copyright (C) 2015 by Owen Peredo Diaz
Email: owenperedo@gmail.com
This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the GNU Affero General Public License (GPLv3) for more details.
=end
class CamaleonCms::Admin::CommentsController < CamaleonCms::AdminController
include CamaleonCms::CommentHelper
add_breadcrumb I18n.t("camaleon_cms.admin.sidebar.comments"), :cama_admin_comments_url
Expand Down
10 changes: 1 addition & 9 deletions app/controllers/camaleon_cms/admin/installers_controller.rb
Original file line number Diff line number Diff line change
@@ -1,11 +1,3 @@
=begin
Camaleon CMS is a content management system
Copyright (C) 2015 by Owen Peredo Diaz
Email: owenperedo@gmail.com
This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the GNU Affero General Public License (GPLv3) for more details.
=end
class CamaleonCms::Admin::InstallersController < CamaleonCms::CamaleonController
skip_before_action :cama_site_check_existence
skip_before_action :cama_before_actions
Expand Down Expand Up @@ -37,4 +29,4 @@ def welcome
def installer_verification
redirect_to cama_root_url unless CamaleonCms::Site.count == 0
end
end
end
8 changes: 0 additions & 8 deletions app/controllers/camaleon_cms/admin/media_controller.rb
Original file line number Diff line number Diff line change
@@ -1,11 +1,3 @@
=begin
Camaleon CMS is a content management system
Copyright (C) 2015 by Owen Peredo Diaz
Email: owenperedo@gmail.com
This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the GNU Affero General Public License (GPLv3) for more details.
=end
class CamaleonCms::Admin::MediaController < CamaleonCms::AdminController
skip_before_action :admin_logged_actions, except: [:index, :download_private_file], raise: false
skip_before_action :verify_authenticity_token, only: :upload, raise: false
Expand Down
8 changes: 0 additions & 8 deletions app/controllers/camaleon_cms/admin/plugins_controller.rb
Original file line number Diff line number Diff line change
@@ -1,11 +1,3 @@
=begin
Camaleon CMS is a content management system
Copyright (C) 2015 by Owen Peredo Diaz
Email: owenperedo@gmail.com
This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the GNU Affero General Public License (GPLv3) for more details.
=end
class CamaleonCms::Admin::PluginsController < CamaleonCms::AdminController
before_action :validate_role
add_breadcrumb I18n.t("camaleon_cms.admin.sidebar.plugins")
Expand Down
8 changes: 0 additions & 8 deletions app/controllers/camaleon_cms/admin/post_tags_controller.rb
Original file line number Diff line number Diff line change
@@ -1,11 +1,3 @@
=begin
Camaleon CMS is a content management system
Copyright (C) 2015 by Owen Peredo Diaz
Email: owenperedo@gmail.com
This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the GNU Affero General Public License (GPLv3) for more details.
=end
class CamaleonCms::Admin::PostTagsController < CamaleonCms::AdminController
add_breadcrumb I18n.t("camaleon_cms.admin.sidebar.contents")
before_action :set_post_type
Expand Down
Loading

0 comments on commit 2fc64b9

Please sign in to comment.