enjoy_cms 0.2.0.1.beta → 0.2.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +3 -3
- data/config/routes.rb +17 -8
- data/lib/enjoy/configuration.rb +7 -2
- data/lib/enjoy/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9c3bb6808528fe136b6fff4b42014592f21983b8
|
4
|
+
data.tar.gz: 299c68b484d677e16a6c08f1e2b6a154360b92d5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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.
|
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.
|
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
|
-
|
6
|
-
|
7
|
-
|
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
|
-
|
10
|
+
if !routes_config or routes_config[:use_search_path]
|
11
|
+
get 'search' => 'search#index', as: :search
|
12
|
+
end
|
10
13
|
|
11
|
-
|
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
|
-
|
18
|
-
|
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
|
data/lib/enjoy/configuration.rb
CHANGED
@@ -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
|
-
|
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
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.
|
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-
|
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:
|
575
|
+
version: '0'
|
576
576
|
requirements: []
|
577
577
|
rubyforge_project:
|
578
578
|
rubygems_version: 2.4.8
|