pages_cms 2.3.2 → 2.4.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 83d9122d822001c70fd71c92536a9addfd33259e
4
- data.tar.gz: 557bb0a3680f40ed83ebbd653c500ce5bd68401c
3
+ metadata.gz: df03db2b84dec9deba9ffa7e475eac0678bbd9ef
4
+ data.tar.gz: 1e08cf7bba373bc6ace91cda09d5b5e05bccb9e9
5
5
  SHA512:
6
- metadata.gz: 89e20948af6c2393be3cb422b005c8c420c746c5d36b8daf7642e967f4aa5c1a265a0b720d36966b5daced25d13502a0cb519ad1dc370059e85b5c14a694f815
7
- data.tar.gz: aedef50c6f1ea061287f904ffd16966efbf3801c57a01bbf487bbcbd0b4f30c75131f47e03f542ea9d06d13cacee1148cbfe3b7d867ec8bd8c204f360e38ed87
6
+ metadata.gz: dab2b84aae81bf1f9142f3f5cbbd1f20f70069a42447f15ce6d4bfd34d0630a734f6d5052c3d94db814a32fb134b6e003739647fc662bbcca390e416302a2f6c
7
+ data.tar.gz: b875f102c6452e22d0d8faa5aaa67a21e1a5d2bf0f9efb59ea117ad835c6a21d6b7ba5351a65e3cbbaa85a7cb11ec038ce6c9b55375e5cb5d7f6725151091fc4
data/README.md CHANGED
@@ -1,8 +1,8 @@
1
- #[PagesCms](http://www.colinw.info/projects/pagescms)
1
+ #[PagesCms](https://pages-cms.herokuapp.com/)
2
2
 
3
3
  Pages CMS uses nested forms and draggable items to allow the user to build a site within the predefined layout from a designer. It incorporates an image management system as well as a page management system. It's like a wordpress page builder on rails.
4
4
 
5
- Check out http://www.colinw.info/projects/pagescms for screenshots, gifs and to see a site built entirely with PagesCMS!
5
+ Check out http://www.colinw.info/projects/pagescms for screenshots, gifs and to see a site built entirely with PagesCMS! Or go to [https://pages-cms.herokuapp.com/accounts/new](https://pages-cms.herokuapp.com/) and create your very own PagesCMS built site.
6
6
 
7
7
  ## About
8
8
 
@@ -33,7 +33,7 @@ These content types can be interpreted by a designer to create a unique look and
33
33
 
34
34
  ## Installation
35
35
 
36
- 1. Add: `gem 'pages_cms', '~> 2.3.0'` to your `Gemfile`
36
+ 1. Add: `gem 'pages_cms', '~> 2.3.2'` to your `Gemfile`
37
37
  2. Run: `$ rails generate pages_cms:install`
38
38
 
39
39
  This has built everything that PagesCMS needs to work, but to get hacking with some default styling and layout included, follow the next steps:
@@ -42,7 +42,7 @@ module PagesCms
42
42
  # Add a white list of extensions which are allowed to be uploaded.
43
43
  # For images you might use something like this:
44
44
  def extension_white_list
45
- %w(jpg jpeg gif png)
45
+ %w(jpg jpeg gif png pdf)
46
46
  end
47
47
 
48
48
  # Override the filename of the uploaded files:
@@ -31,18 +31,18 @@
31
31
  %hr
32
32
  - if @sidebar.all_posts
33
33
  %h5 Blog Posts
34
- - PagesCms::Article.all.each do |article|
34
+ - @page.account.articles.all.each do |article|
35
35
  = link_to article.title, article_path(article), class: 'btn btn-xs btn-default'
36
36
  %hr
37
37
  - if @sidebar.all_tags
38
38
  %h5 Tagged
39
- - PagesCms::Article.pluck(:tags).flatten.uniq.each do |tag|
39
+ - @page.account.articles.pluck(:tags).flatten.uniq.each do |tag|
40
40
  = link_to tag, blog_path(current_site, tag), class: 'btn btn-xs btn-default'
41
41
  %hr
42
42
  - if @sidebar.all_pages
43
43
  %h5 Pages
44
44
  %ul.nav.nav-pills.nav-stacked
45
- - PagesCms::Page.where(sidebar_show: true).each do |link|
45
+ - @page.account.pages.where(sidebar_show: true).each do |link|
46
46
  %li
47
47
  = link_to link.title, slugged_path(link)
48
48
  - @sidebar.links.each_line do |line|
data/config/routes.rb CHANGED
@@ -19,14 +19,14 @@ PagesCms::Engine.routes.draw do
19
19
  raccount = PagesCms::Account.find_by(mount_location: '/')
20
20
  if accounts
21
21
  accounts.each do |account|
22
- get "/#{account.mount_location}/:parent/:slug" => 'pages#show', account: account.id
23
- get "/#{account.mount_location}/:slug" => 'pages#show', account: account.id
22
+ # get "/#{account.mount_location}/:parent/:slug" => 'pages#show', account: account.id
23
+ get "/#{account.mount_location}/*slug" => 'pages#show', account: account.id
24
24
  get "/#{account.mount_location}/" => 'pages#home', account: account.id
25
25
  end
26
26
  end
27
27
  if raccount
28
- get '/:parent/:slug' => 'pages#show', account: raccount.id, root: true
29
- get '/:slug' => 'pages#show', account: raccount.id, root: true
28
+ # get '/:parent/:slug' => 'pages#show', account: raccount.id, root: true
29
+ get '/*slug' => 'pages#show', account: raccount.id, root: true
30
30
  get '/' => 'pages#home', account: raccount.id, root: true, as: :root
31
31
  end
32
32
  end
@@ -26,7 +26,6 @@ module PagesCms
26
26
  pages_cms/wysihtml5x-toolbar.js
27
27
  pages_cms/select2.min.js
28
28
  pages_cms/select2.min.css
29
- pages_cms/parsley.js
30
29
  )
31
30
 
32
31
  end
@@ -1,3 +1,3 @@
1
1
  module PagesCms
2
- VERSION = '2.3.2'
2
+ VERSION = '2.4.2'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pages_cms
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.2
4
+ version: 2.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Colin Walker
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-07-02 00:00:00.000000000 Z
11
+ date: 2015-07-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails