rocket_cms 0.14.0 → 0.15.0

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: 9f65442d32f6e3b45a3d95d120d36ca2622864d1
4
- data.tar.gz: e2a3b86bbf097a5930c38c800b50454a2f6e8815
3
+ metadata.gz: 7a4bbcb0913f78e66593f2e0e4d8ecfcd4b0c7d4
4
+ data.tar.gz: e668799b9b087130558df2a7e45758aa1fad4ea0
5
5
  SHA512:
6
- metadata.gz: 1af6c77eb6f1b4c55bf932ecdf5d3e46c06cd0d7929b03eb1588fde6cc78c3294920fa52c59c6280df28775e5516f376dc2ea4e4c9615bfba356cafd3ad299a3
7
- data.tar.gz: c66f5819a3b36d2025696ef27b2ac42094fd568cb662a252cb5a8345aaf099a9197003a4778ede51612137fa535b4b8b9ccffca021d48707a24fe18b4edf3cc8
6
+ metadata.gz: 4b23af647d442075ea8530972c7d8597177ef106eebdfa65acee1970e0d4503014cc6d532a3b17a570f83016014794151af1753adf00050b0b9e64b39286444e
7
+ data.tar.gz: 2163ffa765d14235c9c05013d252ac82e122dfa95f5029492c341d962026f5cf1b2d07004079d620b7e62015bd2276436bd8495d5b04add15fa48767a5401453
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rocket_cms (0.14.0)
4
+ rocket_cms (0.15.0)
5
5
  addressable
6
6
  coffee-rails
7
7
  jquery-rails
@@ -70,7 +70,7 @@ GEM
70
70
  activesupport (>= 4.1.0)
71
71
  htmlentities (4.3.4)
72
72
  i18n (0.7.0)
73
- jquery-rails (4.1.1)
73
+ jquery-rails (4.2.1)
74
74
  rails-dom-testing (>= 1, < 3)
75
75
  railties (>= 4.2.0)
76
76
  thor (>= 0.14, < 2.0)
@@ -125,7 +125,7 @@ GEM
125
125
  sprockets (3.7.0)
126
126
  concurrent-ruby (~> 1.0)
127
127
  rack (> 1, < 3)
128
- sprockets-rails (3.1.1)
128
+ sprockets-rails (3.2.0)
129
129
  actionpack (>= 4.0)
130
130
  activesupport (>= 4.0)
131
131
  sprockets (>= 3.0.0)
@@ -0,0 +1,13 @@
1
+ require 'rails_admin_nested_set/helper'
2
+
3
+ module RailsAdminNestedSet::Helper
4
+ def extra_fields(node)
5
+ if node.class.name == 'Page'
6
+ ret = RocketCMS::Menu.build_toggles(self, node.class, node, 'xs', '')
7
+ ('<div style="white-space: normal; display: inline-block; margin-left: 10px;">' + ret.join(' ') + '</div>').html_safe
8
+ else
9
+ "".html_safe
10
+ end
11
+ end
12
+ end
13
+
@@ -1,3 +1,3 @@
1
1
  module RocketCMS
2
- VERSION = "0.14.0"
2
+ VERSION = "0.15.0"
3
3
  end
data/lib/rocket_cms.rb CHANGED
@@ -18,7 +18,7 @@ require 'rocket_cms/patch'
18
18
  require 'rocket_cms/admin'
19
19
  require 'rocket_cms/search'
20
20
  require 'rocket_cms/model'
21
- if defined?(RailsAdmin)
21
+ if defined?(RailsAdmin) && !RocketCMS.light?
22
22
  require 'rocket_cms/rails_admin_menu'
23
23
  end
24
24
  require 'rocket_cms/engine'
@@ -99,17 +99,9 @@ module RocketCMS
99
99
  end
100
100
  end
101
101
 
102
- require 'rails_admin_nested_set/helper'
102
+ require 'manual_slug'
103
103
 
104
- module RailsAdminNestedSet::Helper
105
- def extra_fields(node)
106
- if node.class.name == 'Page'
107
- ret = RocketCMS::Menu.build_toggles(self, node.class, node, 'xs', '')
108
- ('<div style="white-space: normal; display: inline-block; margin-left: 10px;">' + ret.join(' ') + '</div>').html_safe
109
- else
110
- "".html_safe
111
- end
112
- end
104
+ if defined?(RailsAdmin) && !RocketCMS.light?
105
+ require 'rocket_cms/nested_set'
113
106
  end
114
107
 
115
- require 'manual_slug'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rocket_cms
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.14.0
4
+ version: 0.15.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - glebtv
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-08-12 00:00:00.000000000 Z
11
+ date: 2016-09-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -317,6 +317,7 @@ files:
317
317
  - lib/rocket_cms/models/news.rb
318
318
  - lib/rocket_cms/models/page.rb
319
319
  - lib/rocket_cms/models/seo.rb
320
+ - lib/rocket_cms/nested_set.rb
320
321
  - lib/rocket_cms/patch.rb
321
322
  - lib/rocket_cms/rails_admin_menu.rb
322
323
  - lib/rocket_cms/search.rb