optimacms 0.2.11 → 0.2.12

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: 40ffe286ec9f760db4b9ea7ebb55e672c283c2a5
4
- data.tar.gz: 11fb4168ed4c9edc704c8caa1a3d44eefe700f51
3
+ metadata.gz: d56d19bc1d5b1acea7385068c046c50434566ea9
4
+ data.tar.gz: e4c86a423d130de510ffccdfb681e0ecdd8b1acc
5
5
  SHA512:
6
- metadata.gz: 69af8da4f41fee3d65d8117fc70ee943783382c4e5c0a5e66786d9f97250378086b641ade84f10c3dbf0020774230744cd788891bff1f4e281d0631222260ef5
7
- data.tar.gz: c17ed4122b21acf0120a9072245b6080842b763a760ff00a7f82f7dfa0fecb4131641e82553632d1d7db1266fb859eab56d4a3f06958726035f5537a4fda4a7a
6
+ metadata.gz: 4e809d5e46ab7e56b2ef27474ed57806ac6d6638188e6e14c06ad498ae161bb9e3e5565c66a75cc315f84239c3682852c6c6e59bed99937bb1772df696eeb8f0
7
+ data.tar.gz: fc2107c17dc08bebc82cc0ecd451051e71e77cac3413d11067a83ee6ab901bacce122c065e0a5a3c6f9c00385d0ec36eb905b6ca1a4a1829c85a0aae0de21e32
@@ -27,6 +27,7 @@ module Optimacms
27
27
  end
28
28
 
29
29
 
30
+
30
31
  search_filter :index, {save_session: true, search_method: :post_and_redirect, url: :pages_url, search_url: :search_pages_url} do
31
32
  default_order "created_at", 'desc'
32
33
 
@@ -235,9 +236,6 @@ module Optimacms
235
236
  :page
236
237
  end
237
238
 
238
- def url_list
239
- pages_url
240
- end
241
239
 
242
240
  # Use callbacks to share common setup or constraints between actions.
243
241
  def set_item
@@ -83,6 +83,11 @@ module Optimacms
83
83
  my_set_render_template @pagedata.template_path, @pagedata.layout.basename
84
84
  my_set_meta @pagedata.meta
85
85
 
86
+ # callbacks from main app
87
+ if respond_to?(:before_page_render)
88
+ send(:before_page_render)
89
+ end
90
+
86
91
  render @optimacms_tpl, :layout=>@optimacms_layout
87
92
  #render :text => @content, :layout => @page.layout.name
88
93
  return
@@ -24,6 +24,8 @@ module Optimacms
24
24
  end
25
25
 
26
26
  def lang
27
+ return @lang unless @lang.nil?
28
+
27
29
  # TODO: calc lang
28
30
 
29
31
  # from url
@@ -1,3 +1,3 @@
1
1
  module Optimacms
2
- VERSION = "0.2.11"
2
+ VERSION = "0.2.12"
3
3
  end
@@ -39655,3 +39655,61 @@ Processing by Optimacms::Admin::TemplatesController#edit as HTML
39655
39655
  Rendered W:/myrails/cms/site/app/views/optimacms/admin/layouts/application.html.haml (512.0ms)
39656
39656
  Rendered W:/myrails/cms/site/app/views/optimacms/admin/layouts/basic.html.haml (1087.1ms)
39657
39657
  Completed 200 OK in 1885ms (Views: 1770.6ms | ActiveRecord: 19.0ms)
39658
+
39659
+
39660
+ Started GET "/admin/pages/163/edit" for 127.0.0.1 at 2016-06-06 22:56:09 +0300
39661
+ Processing by Optimacms::Admin::PagesController#edit as HTML
39662
+ Parameters: {"id"=>"163"}
39663
+ Optimacms::CmsAdminUser Load (1.0ms) SELECT `cms_users`.* FROM `cms_users` WHERE `cms_users`.`id` = 4 ORDER BY `cms_users`.`id` ASC LIMIT 1
39664
+ Optimacms::Language Load (1.0ms) SELECT `cms_languages`.* FROM `cms_languages`
39665
+ Optimacms::Page Load (1.0ms) SELECT `cms_pages`.* FROM `cms_pages` WHERE `cms_pages`.`id` = 163 LIMIT 1
39666
+ Optimacms::Language Load (0.0ms) SELECT `cms_languages`.* FROM `cms_languages` WHERE (1=1) ORDER BY pos asc
39667
+ CACHE (0.0ms) SELECT `cms_languages`.* FROM `cms_languages` WHERE (1=1) ORDER BY pos asc
39668
+ Optimacms::PageTranslation Load (0.0ms) SELECT `cms_pages_translation`.* FROM `cms_pages_translation` WHERE `cms_pages_translation`.`item_id` = 163
39669
+ Rendered W:/myrails/cms/site/app/views/optimacms/admin/shared/_form_errors.html.haml (0.0ms)
39670
+ Optimacms::Page Load (1.0ms) SELECT `cms_pages`.* FROM `cms_pages` WHERE `cms_pages`.`id` = 24 LIMIT 1
39671
+ Optimacms::Template Load (1.0ms) SELECT `cms_templates`.* FROM `cms_templates` WHERE `cms_templates`.`is_folder` = 0 AND `cms_templates`.`type_id` = 1
39672
+ Optimacms::Template Load (0.0ms) SELECT `cms_templates`.* FROM `cms_templates` WHERE `cms_templates`.`id` = 156 LIMIT 1
39673
+ CACHE (0.0ms) SELECT `cms_pages_translation`.* FROM `cms_pages_translation` WHERE `cms_pages_translation`.`item_id` = 163 [["item_id", 163]]
39674
+ Rendered W:/myrails/cms/site/app/views/optimacms/admin/pages/_meta.html.haml (96.0ms)
39675
+ Rendered W:/myrails/cms/site/app/views/optimacms/admin/common/_modal_div.html.haml (0.0ms)
39676
+ Rendered W:/myrails/cms/site/app/views/optimacms/admin/templates/_js_form_modal.html.haml (68.0ms)
39677
+ Rendered W:/myrails/cms/site/app/views/optimacms/admin/common/_js_tinymce.html.haml (61.0ms)
39678
+ Rendered W:/myrails/cms/site/app/views/optimacms/admin/pages/_form.html.haml (544.0ms)
39679
+ Rendered W:/myrails/cms/site/app/views/optimacms/admin/pages/edit.html.haml within optimacms/admin/layouts/main (596.0ms)
39680
+ Rendered W:/myrails/cms/site/app/views/optimacms/admin/shared/_top.html.haml (2.0ms)
39681
+ Rendered W:/myrails/cms/site/app/views/optimacms/admin/shared/_leftmenu.html.haml (48.0ms)
39682
+ Rendered W:/myrails/cms/site/app/views/optimacms/admin/shared/_breadcrumbs.html.haml (0.0ms)
39683
+ Rendered W:/myrails/cms/site/app/views/optimacms/admin/shared/_flash.html.haml (1.0ms)
39684
+ Rendered W:/myrails/cms/site/app/views/optimacms/admin/shared/_version.html.haml (1.0ms)
39685
+ Rendered W:/myrails/cms/site/app/views/optimacms/admin/shared/_footer.html.haml (43.0ms)
39686
+ Rendered W:/myrails/cms/site/app/views/optimacms/admin/layouts/application.html.haml (378.0ms)
39687
+ Rendered W:/myrails/cms/site/app/views/optimacms/admin/layouts/basic.html.haml (756.0ms)
39688
+ Completed 200 OK in 1749ms (Views: 1530.0ms | ActiveRecord: 5.0ms)
39689
+
39690
+
39691
+ Started GET "/assets/optimacms/admin.self-84e36b0189cfc4ac18c624ad198afcefbbd618cce7a3809360431d6d8b6fd71c.css?body=1" for 127.0.0.1 at 2016-06-06 22:56:13 +0300
39692
+
39693
+
39694
+ Started GET "/assets/optimacms/admin_tpl.self-3552518fc3641d7e2cce03ff12090a8288cfdabbeb2263909a89f56757898dfd.css?body=1" for 127.0.0.1 at 2016-06-06 22:56:13 +0300
39695
+
39696
+
39697
+ Started GET "/assets/optimacms/application.self-fb28094035fc8f155b896e47c199355db7c84fc9d6214ed9800f1022ac2ece52.js?body=1" for 127.0.0.1 at 2016-06-06 22:56:13 +0300
39698
+
39699
+
39700
+ Started GET "/assets/jquery2.self-a4777c1acac0a74340755725342901a54ed000955bf6f5320491b8b2514c86ec.js?body=1" for 127.0.0.1 at 2016-06-06 22:56:13 +0300
39701
+
39702
+
39703
+ Started GET "/assets/jquery_ujs.self-d456baa54c1fa6be2ec3711f0a72ddf7a5b2f34a6b4f515f33767d6207b7d4b3.js?body=1" for 127.0.0.1 at 2016-06-06 22:56:13 +0300
39704
+
39705
+
39706
+ Started GET "/assets/bootstrap.self-d0e973a52d36a01036265aeefaf2d1ae3499d2cb231a9be3bd846432daf231de.js?body=1" for 127.0.0.1 at 2016-06-06 22:56:14 +0300
39707
+
39708
+
39709
+ Started GET "/assets/bootstrap3-autocomplete-input.min.self-ce3ca04e5eed6a1c7c2a10589a176cee121808f99dd9b917dd3bf62ce710f211.js?body=1" for 127.0.0.1 at 2016-06-06 22:56:14 +0300
39710
+
39711
+
39712
+ Started GET "/assets/bootstrap3-typeahead.min.self-78fcb50a4b38a41b52a51f8662133e39712218bbacbb337469c3ed64bb88ae9d.js?body=1" for 127.0.0.1 at 2016-06-06 22:56:14 +0300
39713
+
39714
+
39715
+ Started GET "/assets/optimacms/admin.self-7c370d9536d7d0d6a0f7cd7f9826692acd93e4fb05ba46f7b630b879740343d3.js?body=1" for 127.0.0.1 at 2016-06-06 22:56:14 +0300
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: optimacms
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.11
4
+ version: 0.2.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Max Ivak
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-06-05 00:00:00.000000000 Z
11
+ date: 2016-06-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -3168,7 +3168,6 @@ files:
3168
3168
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/zO/zOYiSe2afDhX-1LYIwuCWapltkxGWAUk0FHL8Cwjqa8.cache
3169
3169
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/zOYiSe2afDhX-1LYIwuCWapltkxGWAUk0FHL8Cwjqa8.cache
3170
3170
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/zZ/zZIEsvImSmJgM6U7J7ax-T8hb5Pgwjpg8z_uigXo0Ew.cache
3171
- - spec/dummy/tmp/pids/server.pid
3172
3171
  - spec/factories/page.rb
3173
3172
  - spec/models/page_route_service_spec.rb
3174
3173
  - spec/models/page_spec.rb
@@ -5929,7 +5928,6 @@ test_files:
5929
5928
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/_7/_7FQINbPSTR-v7mkQqmlJGbmQnvnwF0RrmhXMPrOXEE.cache
5930
5929
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/_7FQINbPSTR-v7mkQqmlJGbmQnvnwF0RrmhXMPrOXEE.cache
5931
5930
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/_plqrhIq8C51ojWLP-nhWJFozobLliuC84o1T4S4gTo.cache
5932
- - spec/dummy/tmp/pids/server.pid
5933
5931
  - spec/factories/page.rb
5934
5932
  - spec/models/page_route_service_spec.rb
5935
5933
  - spec/models/page_spec.rb
@@ -1 +0,0 @@
1
- 3144