enjoy_cms 0.2.0.1.beta → 0.2.0.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: 26b0452cf8af5107eae3be611c08d68b26a92b50
4
- data.tar.gz: 38fb060c589e4037d07a87404dc55529ed02d35f
3
+ metadata.gz: 9c3bb6808528fe136b6fff4b42014592f21983b8
4
+ data.tar.gz: 299c68b484d677e16a6c08f1e2b6a154360b92d5
5
5
  SHA512:
6
- metadata.gz: 7c9221308b4077a83a790a439f7229ec7719f2b15244d36e8939d12bbcb44e06b7d51f6ec046e607a56d1cd86bd08e688c001cc836da97dfcc68712f85ebe8ce
7
- data.tar.gz: 2e13becd2c888556cf21e73305987b2f9f6216fd1efec997056985c585838eca7d212b7d02cf279daa6a59643c0bc3a07d245963e50b662090af2420673c69de
6
+ metadata.gz: a34ddbc371a0eddd425be1bb2b49f722f26bd1cc1064e02e543b4e35e231511e6449f8ba5ab110b9a6a587b29dfdbcab9df21ba651a2634f7c917ebe0b39be01
7
+ data.tar.gz: 745ce880d8b18ccc951c80eec52955d9f1fcf45a0e1df0dc0cfeaabfcc4fc1991a0a2942a15927ec596c47ef33fe9e913d175fca39d1d8d01cdb5d5738ae2c72
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- enjoy_cms (0.2.0.1.beta)
4
+ enjoy_cms (0.2.0.2)
5
5
  ack_rails_admin_jcrop
6
6
  addressable
7
7
  ckeditor
@@ -217,7 +217,7 @@ GEM
217
217
  sprockets (3.5.2)
218
218
  concurrent-ruby (~> 1.0)
219
219
  rack (> 1, < 3)
220
- sprockets-rails (3.0.0)
220
+ sprockets-rails (3.0.1)
221
221
  actionpack (>= 4.0)
222
222
  activesupport (>= 4.0)
223
223
  sprockets (>= 3.0.0)
@@ -231,7 +231,7 @@ GEM
231
231
  thread_safe (~> 0.1)
232
232
  validates_email_format_of (1.6.3)
233
233
  i18n
234
- warden (1.2.4)
234
+ warden (1.2.5)
235
235
  rack (>= 1.0)
236
236
  x-real-ip (0.2.1)
237
237
  activesupport
data/config/routes.rb CHANGED
@@ -1,19 +1,28 @@
1
1
  Enjoy::Engine.routes.draw do
2
2
  routes_config = Enjoy.configuration.routes_config
3
3
 
4
-
5
- get 'contacts' => 'contacts#new', as: :contacts
6
- post 'contacts' => 'contacts#create', as: :create_contacts
7
- get 'contacts/sent' => 'contacts#sent', as: :contacts_sent
4
+ if !routes_config or routes_config[:use_contacts_path]
5
+ get 'contacts' => 'contacts#new', as: :contacts
6
+ post 'contacts' => 'contacts#create', as: :create_contacts
7
+ get 'contacts/sent' => 'contacts#sent', as: :contacts_sent
8
+ end
8
9
 
9
- get 'search' => 'search#index', as: :search
10
+ if !routes_config or routes_config[:use_search_path]
11
+ get 'search' => 'search#index', as: :search
12
+ end
10
13
 
11
- resources :news, only: [:index, :show]
14
+ if !routes_config or routes_config[:use_news_path]
15
+ resources :news, only: [:index, :show]
16
+ end
12
17
 
13
18
  if routes_config and routes_config[:root_path]
14
19
  root to: routes_config[:root_path]
15
20
  end
16
21
 
17
- get '*slug' => 'pages#show'
18
- resources :pages, only: [:show]
22
+ if !routes_config or routes_config[:use_slug_path]
23
+ get '*slug' => 'pages#show'
24
+ end
25
+ if !routes_config or routes_config[:use_pages_path]
26
+ resources :pages, only: [:show]
27
+ end
19
28
  end
@@ -39,7 +39,7 @@ module Enjoy
39
39
  def initialize
40
40
  @news_image_styles = {
41
41
  main: '400x200>',
42
- thumb: '200x100>',
42
+ thumb: '200x100>'
43
43
  }
44
44
  @news_per_page = 10
45
45
  @news_excerpt = 12
@@ -64,7 +64,12 @@ module Enjoy
64
64
  @separate_seo_table = false
65
65
 
66
66
  @routes_config = {
67
- root_path: "home#index"
67
+ use_contacts_path: true,
68
+ use_search_path: true,
69
+ use_news_path: true,
70
+ root_path: "home#index",
71
+ use_slug_path: true,
72
+ use_pages_path: true
68
73
  }
69
74
  end
70
75
 
data/lib/enjoy/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Enjoy
2
- VERSION = "0.2.0.1.beta"
2
+ VERSION = "0.2.0.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: enjoy_cms
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0.1.beta
4
+ version: 0.2.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexander Kiseliev
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-01-28 00:00:00.000000000 Z
11
+ date: 2016-01-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -570,9 +570,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
570
570
  version: '0'
571
571
  required_rubygems_version: !ruby/object:Gem::Requirement
572
572
  requirements:
573
- - - ">"
573
+ - - ">="
574
574
  - !ruby/object:Gem::Version
575
- version: 1.3.1
575
+ version: '0'
576
576
  requirements: []
577
577
  rubyforge_project:
578
578
  rubygems_version: 2.4.8