ack_rocket_cms 0.7.7.1 → 0.8.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (53) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +45 -45
  3. data/README.md +64 -5
  4. data/app/assets/javascripts/{rocket_cms.js.coffee → rocket_cms.coffee} +0 -3
  5. data/app/controllers/concerns/rs_errors.rb +8 -4
  6. data/app/controllers/concerns/rs_localizeable.rb +26 -0
  7. data/app/controllers/concerns/rs_menu.rb +9 -2
  8. data/app/controllers/concerns/rs_pages.rb +14 -3
  9. data/app/helpers/gzip_helper.rb +27 -0
  10. data/app/models/concerns/seoable.rb +19 -30
  11. data/app/models/seo.rb +16 -0
  12. data/app/views/devise/registrations/edit.html.slim +21 -0
  13. data/app/views/devise/registrations/new.html.slim +21 -0
  14. data/app/views/devise/sessions/new.html.slim +18 -19
  15. data/app/views/devise/shared/_links.html.slim +4 -18
  16. data/app/views/news/show.html.slim +1 -1
  17. data/config/locales/en.rs.yml +1 -1
  18. data/config/locales/ru.rs.yml +11 -1
  19. data/lib/generators/rocket_cms/migration_generator.rb +1 -1
  20. data/lib/generators/rocket_cms/templates/admin.erb +8 -0
  21. data/lib/generators/rocket_cms/templates/migration_news.rb +10 -5
  22. data/lib/generators/rocket_cms/templates/migration_pages.rb +14 -5
  23. data/lib/generators/rocket_cms/templates/migration_seos.rb +14 -0
  24. data/lib/rocket_cms.rb +4 -0
  25. data/lib/rocket_cms/admin.rb +35 -8
  26. data/lib/rocket_cms/configuration.rb +7 -1
  27. data/lib/rocket_cms/controllers/contacts.rb +2 -2
  28. data/lib/rocket_cms/controllers/news.rb +1 -1
  29. data/lib/rocket_cms/controllers/search.rb +17 -0
  30. data/lib/rocket_cms/engine.rb +3 -3
  31. data/lib/rocket_cms/migration.rb +14 -11
  32. data/lib/rocket_cms/models/active_record/menu.rb +3 -0
  33. data/lib/rocket_cms/models/active_record/news.rb +6 -3
  34. data/lib/rocket_cms/models/active_record/page.rb +3 -0
  35. data/lib/rocket_cms/models/active_record/seo.rb +17 -0
  36. data/lib/rocket_cms/models/contact_message.rb +1 -1
  37. data/lib/rocket_cms/models/embedded_gallery_image.rb +4 -0
  38. data/lib/rocket_cms/models/gallery.rb +2 -0
  39. data/lib/rocket_cms/models/gallery_image.rb +2 -0
  40. data/lib/rocket_cms/models/mongoid/contact_message.rb +5 -5
  41. data/lib/rocket_cms/models/mongoid/embedded_gallery_image.rb +0 -1
  42. data/lib/rocket_cms/models/mongoid/gallery.rb +0 -1
  43. data/lib/rocket_cms/models/mongoid/gallery_image.rb +0 -1
  44. data/lib/rocket_cms/models/mongoid/news.rb +3 -4
  45. data/lib/rocket_cms/models/mongoid/page.rb +3 -2
  46. data/lib/rocket_cms/models/mongoid/seo.rb +23 -0
  47. data/lib/rocket_cms/models/news.rb +13 -5
  48. data/lib/rocket_cms/models/page.rb +7 -3
  49. data/lib/rocket_cms/models/seo.rb +17 -0
  50. data/lib/rocket_cms/seo_helpers.rb +13 -0
  51. data/lib/rocket_cms/version.rb +1 -1
  52. data/template.rb +4 -7
  53. metadata +13 -3
@@ -1,3 +1,3 @@
1
1
  module RocketCMS
2
- VERSION = "0.7.7.1"
2
+ VERSION = "0.8.0"
3
3
  end
@@ -3,7 +3,7 @@ version = rails_spec.version.to_s
3
3
 
4
4
  mongoid = options[:skip_active_record]
5
5
 
6
- if Gem::Version.new(version) < Gem::Version.new('4.2.1')
6
+ if Gem::Version.new(version) < Gem::Version.new('4.2.3')
7
7
  puts "You are using an old version of Rails (#{version})"
8
8
  puts "Please update"
9
9
  puts "Stopping"
@@ -14,13 +14,13 @@ remove_file 'Gemfile'
14
14
  create_file 'Gemfile' do <<-TEXT
15
15
  source 'https://rubygems.org'
16
16
 
17
- gem 'rails', '4.2.1'
17
+ gem 'rails', '4.2.3'
18
18
  #{if mongoid then "gem 'mongoid', '~> 4.0.0'" else "gem 'pg'" end}
19
19
 
20
20
  # gem 'sass'
21
21
  gem 'compass'
22
22
 
23
- #{if mongoid then "gem 'ack_rocket_cms_mongoid'" else "gem 'ack_rocket_cms_activerecord'" end}
23
+ #{if mongoid then "gem 'ack_rocket_cms_mongoid'" else "gem 'ack_rocket_cms_activerecord'" end}, '~> 0.8.0'
24
24
 
25
25
  gem 'devise'
26
26
 
@@ -418,10 +418,7 @@ create_file 'app/assets/stylesheets/rails_admin/custom/theming.sass' do <<-TEXT
418
418
  font-size: 20px
419
419
 
420
420
  .remove_nested_fields
421
- display: block !important
422
- z-index: 5
423
- right: 0
424
- left: auto
421
+ opacity: 1 !important
425
422
 
426
423
  body.rails_admin .modal
427
424
  margin: 0 auto !important
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ack_rocket_cms
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.7.1
4
+ version: 0.8.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexander Kiseliev
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-06-13 00:00:00.000000000 Z
12
+ date: 2015-07-14 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler
@@ -401,7 +401,7 @@ files:
401
401
  - Rakefile
402
402
  - app/assets/javascripts/head.load.js
403
403
  - app/assets/javascripts/jquery.placeholder.js
404
- - app/assets/javascripts/rocket_cms.js.coffee
404
+ - app/assets/javascripts/rocket_cms.coffee
405
405
  - app/assets/javascripts/rocket_cms/flash.js.coffee
406
406
  - app/assets/javascripts/rocket_cms/map.js.coffee
407
407
  - app/assets/stylesheets/rocket_cms.sass
@@ -409,6 +409,7 @@ files:
409
409
  - app/assets/stylesheets/rocket_cms/normalize.scss
410
410
  - app/controllers/concerns/no_cache.rb
411
411
  - app/controllers/concerns/rs_errors.rb
412
+ - app/controllers/concerns/rs_localizeable.rb
412
413
  - app/controllers/concerns/rs_menu.rb
413
414
  - app/controllers/concerns/rs_pages.rb
414
415
  - app/controllers/contacts_controller.rb
@@ -416,6 +417,7 @@ files:
416
417
  - app/controllers/news_controller.rb
417
418
  - app/controllers/pages_controller.rb
418
419
  - app/controllers/search_controller.rb
420
+ - app/helpers/gzip_helper.rb
419
421
  - app/mailers/contact_mailer.rb
420
422
  - app/models/concerns/boolean_field.rb
421
423
  - app/models/concerns/enableable.rb
@@ -433,6 +435,7 @@ files:
433
435
  - app/models/menu.rb
434
436
  - app/models/news.rb
435
437
  - app/models/page.rb
438
+ - app/models/seo.rb
436
439
  - app/views/blocks/_favicon.html.slim
437
440
  - app/views/blocks/_footer.html.slim
438
441
  - app/views/blocks/_seo_block.html.slim
@@ -441,6 +444,8 @@ files:
441
444
  - app/views/contacts/index.html.slim
442
445
  - app/views/contacts/new.html.slim
443
446
  - app/views/contacts/sent.html.slim
447
+ - app/views/devise/registrations/edit.html.slim
448
+ - app/views/devise/registrations/new.html.slim
444
449
  - app/views/devise/sessions/new.html.slim
445
450
  - app/views/devise/shared/_links.html.slim
446
451
  - app/views/errors/_base.html.slim
@@ -489,6 +494,7 @@ files:
489
494
  - lib/generators/rocket_cms/templates/migration_contact_messages.rb
490
495
  - lib/generators/rocket_cms/templates/migration_news.rb
491
496
  - lib/generators/rocket_cms/templates/migration_pages.rb
497
+ - lib/generators/rocket_cms/templates/migration_seos.rb
492
498
  - lib/generators/rocket_cms/templates/production.erb
493
499
  - lib/generators/rocket_cms/templates/unicorn.erb
494
500
  - lib/generators/rocket_cms/utils.rb
@@ -512,6 +518,7 @@ files:
512
518
  - lib/rocket_cms/models/active_record/menu.rb
513
519
  - lib/rocket_cms/models/active_record/news.rb
514
520
  - lib/rocket_cms/models/active_record/page.rb
521
+ - lib/rocket_cms/models/active_record/seo.rb
515
522
  - lib/rocket_cms/models/contact_message.rb
516
523
  - lib/rocket_cms/models/embedded_element.rb
517
524
  - lib/rocket_cms/models/embedded_gallery_image.rb
@@ -526,10 +533,13 @@ files:
526
533
  - lib/rocket_cms/models/mongoid/menu.rb
527
534
  - lib/rocket_cms/models/mongoid/news.rb
528
535
  - lib/rocket_cms/models/mongoid/page.rb
536
+ - lib/rocket_cms/models/mongoid/seo.rb
529
537
  - lib/rocket_cms/models/news.rb
530
538
  - lib/rocket_cms/models/page.rb
539
+ - lib/rocket_cms/models/seo.rb
531
540
  - lib/rocket_cms/patch.rb
532
541
  - lib/rocket_cms/rails_admin_menu.rb
542
+ - lib/rocket_cms/seo_helpers.rb
533
543
  - lib/rocket_cms/simple_form_patch.rb
534
544
  - lib/rocket_cms/tasks.rb
535
545
  - lib/rocket_cms/version.rb