rocket_cms 0.18.3 → 0.18.4
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 +4 -4
- data/Gemfile.lock +1 -1
- data/lib/rocket_cms/version.rb +1 -1
- data/release.sh +1 -0
- data/template.rb +17 -0
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 1b435b8c077a9deb76c4029437459f6897e681d4
|
|
4
|
+
data.tar.gz: 84ce9a9fe8e1d5516c64fc24c7ec9a764b191a3b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b11a491a9486d5a392d6003659ca837ca98347b8a12e17e74248794e6828a1e5a51b4defa94c968ed0bea21b4810ba1ebca479e75f3ba085ff14c91f00ad48c4
|
|
7
|
+
data.tar.gz: dc3abff1d1d672e7a6af833fc59f4b1fd3127ab02a46993f91b57f8814a67348e7e9da42d42427022900f4e16b562dbd1dc01093dee25e5248e47ffae3a2859b
|
data/Gemfile.lock
CHANGED
data/lib/rocket_cms/version.rb
CHANGED
data/release.sh
CHANGED
data/template.rb
CHANGED
|
@@ -142,12 +142,18 @@ development:
|
|
|
142
142
|
database: #{app_name.downcase}_development
|
|
143
143
|
hosts:
|
|
144
144
|
- localhost:27017
|
|
145
|
+
options:
|
|
146
|
+
belongs_to_required_by_default: false
|
|
147
|
+
|
|
145
148
|
test:
|
|
146
149
|
clients:
|
|
147
150
|
default:
|
|
148
151
|
database: #{app_name.downcase}_test
|
|
149
152
|
hosts:
|
|
150
153
|
- localhost:27017
|
|
154
|
+
options:
|
|
155
|
+
belongs_to_required_by_default: false
|
|
156
|
+
|
|
151
157
|
TEXT
|
|
152
158
|
end
|
|
153
159
|
else
|
|
@@ -252,6 +258,17 @@ create_file 'db/seeds.rb' do <<-TEXT
|
|
|
252
258
|
admin_pw = "#{admin_pw}"
|
|
253
259
|
User.destroy_all
|
|
254
260
|
User.create!(email: 'admin@#{app_name.dasherize.downcase}.ru', password: admin_pw, password_confirmation: admin_pw)
|
|
261
|
+
|
|
262
|
+
Page.destroy_all
|
|
263
|
+
Menu.destroy_all
|
|
264
|
+
h = Menu.create(name: 'Главное', text_slug: 'main').id
|
|
265
|
+
p = Page.create!(name: 'Проекты', content: 'проекты', fullpath: '/projects', menu_ids: [h])
|
|
266
|
+
Page.create!(name: 'Прайс лист', fullpath: '/price', menu_ids: [h])
|
|
267
|
+
Page.create!(name: 'Галерея', fullpath: '/galleries', menu_ids: [h])
|
|
268
|
+
c = Page.create!(name: 'О компании', fullpath: '/company', menu_ids: [h], content: 'О Компании')
|
|
269
|
+
Page.create!(name: 'Новости', fullpath: '/news', menu_ids: [h])
|
|
270
|
+
Page.create!(name: 'Контакты', fullpath: '/contacts', menu_ids: [h], content: 'Текст стр контакты')
|
|
271
|
+
|
|
255
272
|
TEXT
|
|
256
273
|
end
|
|
257
274
|
|