camaleon_cms 2.4.4.4 → 2.4.4.5

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of camaleon_cms might be problematic. Click here for more details.

@@ -170,6 +170,9 @@ RSpec.configure do |config|
170
170
  # The different available types are documented in the features, such as in
171
171
  # https://relishapp.com/rspec/rspec-rails/docs
172
172
  config.infer_spec_type_from_file_location!
173
+ config.before :type => :decorator do
174
+ ApplicationController.new.view_context
175
+ end
173
176
  end
174
177
 
175
178
  RSpec.configure do |config|
@@ -110,6 +110,11 @@ def create_test_post_type(args = {})
110
110
  get_current_test_site.post_types.create!({name: 'Test', slug: 'test', description: 'this is a test', data_options: {}}.merge(args))
111
111
  end
112
112
 
113
+ # create a new post for post type
114
+ def create_test_post(post_type, args = {})
115
+ post_type.posts.create!({title: 'Test post', slug: 'test', content: 'this is a test', data_options: {}}.merge(args))
116
+ end
117
+
113
118
  # create a test site
114
119
  def create_test_site(args = {})
115
120
  Cama::Site.create({slug: 'test', name: 'Test Site'}.merge(args))
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: camaleon_cms
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.4.4.4
4
+ version: 2.4.4.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Owen Peredo Diaz
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-10-05 00:00:00.000000000 Z
11
+ date: 2017-10-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bcrypt
@@ -839,7 +839,6 @@ files:
839
839
  - app/views/camaleon_cms/admin/users/profile.html.erb
840
840
  - app/views/camaleon_cms/admin/users/profile/_activity.html.erb
841
841
  - app/views/camaleon_cms/admin/users/profile/_settings.html.erb
842
- - app/views/camaleon_cms/default_theme/admin/settings.html.erb
843
842
  - app/views/camaleon_cms/default_theme/category.html.erb
844
843
  - app/views/camaleon_cms/default_theme/category.json.jbuilder
845
844
  - app/views/camaleon_cms/default_theme/category.rss.builder
@@ -866,10 +865,6 @@ files:
866
865
  - app/views/camaleon_cms/default_theme/custom_fields/video.html.erb
867
866
  - app/views/camaleon_cms/default_theme/index.html.erb
868
867
  - app/views/camaleon_cms/default_theme/index.json.jbuilder
869
- - app/views/camaleon_cms/default_theme/layouts/_footer.html.erb
870
- - app/views/camaleon_cms/default_theme/layouts/_header.html.erb
871
- - app/views/camaleon_cms/default_theme/layouts/cama_ajax.html.erb
872
- - app/views/camaleon_cms/default_theme/layouts/index.html.erb
873
868
  - app/views/camaleon_cms/default_theme/partials/_breadcrumb.html.erb
874
869
  - app/views/camaleon_cms/default_theme/partials/_cama_category_entry.json.jbuilder
875
870
  - app/views/camaleon_cms/default_theme/partials/_cama_comments_entry.json.jbuilder
@@ -1014,6 +1009,7 @@ files:
1014
1009
  - lib/plugin_routes.rb
1015
1010
  - lib/tasks/camaleon_cms/camaleon_tasks.rake
1016
1011
  - lib/tasks/camaleon_cms/rspec_test.rake
1012
+ - spec/decorators/camaleon_cms/post_decorator_spec.rb
1017
1013
  - spec/decorators/post_type_spec.rb
1018
1014
  - spec/dummy/README.rdoc
1019
1015
  - spec/dummy/Rakefile
@@ -1046,6 +1042,8 @@ files:
1046
1042
  - spec/dummy/config/routes.rb
1047
1043
  - spec/dummy/config/secrets.yml
1048
1044
  - spec/dummy/db/schema.rb
1045
+ - spec/dummy/db/test.sqlite3
1046
+ - spec/dummy/log/test.log
1049
1047
  - spec/features/categories_spec.rb
1050
1048
  - spec/features/comments_spec.rb
1051
1049
  - spec/features/contact_form_spec.rb
@@ -1105,6 +1103,7 @@ signing_key:
1105
1103
  specification_version: 4
1106
1104
  summary: Camaleon is a cms for Ruby on Rails 4 as an alternative to wordpress.
1107
1105
  test_files:
1106
+ - spec/decorators/camaleon_cms/post_decorator_spec.rb
1108
1107
  - spec/decorators/post_type_spec.rb
1109
1108
  - spec/dummy/app/assets/javascripts/application.js
1110
1109
  - spec/dummy/app/assets/stylesheets/application.css
@@ -1135,6 +1134,8 @@ test_files:
1135
1134
  - spec/dummy/config/secrets.yml
1136
1135
  - spec/dummy/config.ru
1137
1136
  - spec/dummy/db/schema.rb
1137
+ - spec/dummy/db/test.sqlite3
1138
+ - spec/dummy/log/test.log
1138
1139
  - spec/dummy/Rakefile
1139
1140
  - spec/dummy/README.rdoc
1140
1141
  - spec/features/categories_spec.rb
@@ -1,17 +0,0 @@
1
- <footer>
2
- <div class="row">
3
- <div class="col-lg-12">
4
-
5
- <ul class="list-inline">
6
- <li class="pull-right"><a href="#top">Back to top</a></li>
7
- <li><a href="http://feeds.feedburner.com/bootswatch">RSS</a></li>
8
- <li><a href="https://twitter.com/bootswatch">Twitter</a></li>
9
- <li><a href="https://github.com/thomaspark/bootswatch/">GitHub</a></li>
10
- <li><a href="../help/#api">API</a></li>
11
- <li><a href="../help/#support">Support</a></li>
12
- </ul>
13
-
14
- </div>
15
- </div>
16
-
17
- </footer>
@@ -1,38 +0,0 @@
1
- <div class="navbar navbar-default navbar-fixed-top">
2
- <div class="container">
3
- <div class="navbar-header">
4
- <a id="logo" class="navbar-brand" href="<%= cama_root_path %>"><%= image_tag current_site.the_logo, class: "img-responsive" %></a>
5
- <button data-target="#navbar-main" data-toggle="collapse" type="button" class="navbar-toggle">
6
- <span class="icon-bar"></span>
7
- <span class="icon-bar"></span>
8
- <span class="icon-bar"></span>
9
- </button>
10
- </div>
11
- <div id="navbar-main" class="navbar-collapse collapse">
12
- <%= raw get_nav_menu('main_menu', 'nav navbar-nav ') %>
13
-
14
- <ul class="nav navbar-nav navbar-right">
15
- <% if signin? %>
16
- <li class="dropdown">
17
- <a class="dropdown-toggle" href="#"><img src="<%= cama_current_user.decorate.the_avatar %>" style="max-width: 24px; border-radius: 50%" alt=""/> <%= cama_current_user.username %></a>
18
- <ul class="dropdown-menu">
19
- <li><a href="<%= cama_admin_dashboard_path %>">Dashboard</a></li>
20
- <li><a href="<%= cama_admin_profile_path %>">Profile</a></li>
21
- <li><a href="<%= cama_admin_logout_path %>">Logout</a></li>
22
- </ul>
23
- </li>
24
- <% else %>
25
-
26
- <li class="dropdown">
27
- <a id="login-user" class="dropdown-toggle" href="#">Login / Register</a>
28
- <ul class="dropdown-menu">
29
- <li><a href="<%= cama_admin_login_path %>">Login</a></li>
30
- <li><a href="<%= cama_admin_register_path %>">Register</a></li>
31
- </ul>
32
- </li>
33
- <% end %>
34
- </ul>
35
- <%= raw current_site.draw_languages("language list-inline pull-right", true) %>
36
- </div>
37
- </div>
38
- </div>
@@ -1,33 +0,0 @@
1
- <!DOCTYPE html>
2
- <html lang="en">
3
- <head>
4
- <!-- META SECTION -->
5
- <title>Atlant - Front-End Template</title>
6
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
7
- <meta http-equiv="X-UA-Compatible" content="IE=edge" />
8
- <meta name="viewport" content="width=device-width, initial-scale=1" />
9
- <!-- END META SECTION -->
10
-
11
- <%= stylesheet_link_tag theme_asset_path("css/main.css") %>
12
- <%= javascript_include_tag theme_asset_path("js/main.js") %>
13
- <%= raw the_head %>
14
- </head>
15
- <body>
16
-
17
- <!-- container -->
18
- <div class="container">
19
- <!-- header -->
20
- <%= render "layouts/header" %>
21
- <!-- ./header -->
22
-
23
- <div class="content">
24
- <%= yield %>
25
- </div>
26
-
27
- <!-- footer -->
28
- <%= render "layouts/footer" %>
29
- <!-- ./footer -->
30
- </div>
31
- <!-- ./container -->
32
- </body>
33
- </html>