rocket_cms 0.18.3 → 0.18.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4d5dc35a82bc8aa8b2400516198ff5d831ed1eae
4
- data.tar.gz: a8156e54440b1c3fcd6c1115be6b2407c75e2ce7
3
+ metadata.gz: 1b435b8c077a9deb76c4029437459f6897e681d4
4
+ data.tar.gz: 84ce9a9fe8e1d5516c64fc24c7ec9a764b191a3b
5
5
  SHA512:
6
- metadata.gz: 1d3852fb2cc00bf700d0d468b8bb58997f651a8f0ae2d874a03625c6a5044a4c2fbef40267d584db00dad61e79a40b758435a37e355ea0502be0c40fa2509a59
7
- data.tar.gz: 03b8ac7367a1993be5b23d5d86587548fcdbf04fd0b884b9be6550d4cfca083ee34b1d21010226cb8ed22c6d855e419bca0feeac6784bd3fc48267ede12cfbba
6
+ metadata.gz: b11a491a9486d5a392d6003659ca837ca98347b8a12e17e74248794e6828a1e5a51b4defa94c968ed0bea21b4810ba1ebca479e75f3ba085ff14c91f00ad48c4
7
+ data.tar.gz: dc3abff1d1d672e7a6af833fc59f4b1fd3127ab02a46993f91b57f8814a67348e7e9da42d42427022900f4e16b562dbd1dc01093dee25e5248e47ffae3a2859b
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rocket_cms (0.18.3)
4
+ rocket_cms (0.18.4)
5
5
  addressable
6
6
  coffee-rails
7
7
  jquery-rails
@@ -1,3 +1,3 @@
1
1
  module RocketCMS
2
- VERSION = "0.18.3"
2
+ VERSION = "0.18.4"
3
3
  end
data/release.sh CHANGED
@@ -4,6 +4,7 @@ git add --all .
4
4
  git commit -am "${*:1}"
5
5
  git push
6
6
  rake release
7
+ sleep 3
7
8
  cd mongoid
8
9
  bundle update && rake release
9
10
  cd ..
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
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rocket_cms
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.18.3
4
+ version: 0.18.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - glebtv