ecm_cms2 2.1.4 → 3.0.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: fcf16db9c902ff4a888e6a4c4a4152d368326bf5
4
- data.tar.gz: f1ea612f387bdecb5798fddc7a20c429ddfa736b
3
+ metadata.gz: c2be0df946d8e10f75ce902c37106fa9ee567cc1
4
+ data.tar.gz: 1ecbdb9993a88833ce301c289fdaeb2f7b341e0e
5
5
  SHA512:
6
- metadata.gz: ae9edfb5fd7365b12e80a674154057677d9df1569bb34a4b4ac944baff014b2e7996af52c0dd1bf1c67fb0b3fae03794d4cb1c63a3bd3413acf06cbb74c902b4
7
- data.tar.gz: caffef5bf2a357644a584af6ba0a8627283b8737a72f52f2d3b1947743ea295419b626b87889d76e9cec397ce6f4dc3ee00f6e8fba4dc136ce3ef74a033c67dc
6
+ metadata.gz: a01a1e69bb41b2bcf69341155b7cb0061860f29b855e31cbf8a5852e462c21fd07c006c42b258e7ff39e69fb3a8ce74a23848b70b3a10cbef1e6336281950688
7
+ data.tar.gz: f5fed6120aa5551dbd407a1d62297fc87bdffbf9c2dd40aa3f73d52024f5690c7d3a0d2fecc83c5c35ffaa313d9a202799c4a72bea5d81ad8e40535f2f132e52
@@ -1,6 +1,8 @@
1
1
  module Ecm
2
2
  module Cms
3
3
  class Engine < ::Rails::Engine
4
+ isolate_namespace Ecm::Cms
5
+
4
6
  config.app_generators do |c|
5
7
  c.test_framework :rspec, fixture: true,
6
8
  fixture_replacement: nil
@@ -16,9 +16,10 @@ module Ecm
16
16
  rendered_body = RedCloth.new(content_block.body).to_html
17
17
  output << "<% content_for :#{content_block.content_box_name} do %>#{rendered_body}<% end %>"
18
18
  end
19
-
20
- output << content_for_title(record)
21
- output << content_for_meta_description(record)
19
+
20
+ content_for_title = "<% content_for :title do %>#{record.title}<% end %>"
21
+ content_for_meta_description = "<% content_for :meta_description do %>#{record.meta_description}<% end %>"
22
+ output << content_for_title << content_for_meta_description
22
23
 
23
24
  output << record.body unless record.body.nil?
24
25
 
@@ -36,26 +37,6 @@ module Ecm
36
37
  def template_class
37
38
  'Ecm::Cms::Page'
38
39
  end
39
-
40
- private
41
-
42
- def content_for_title(record)
43
- case record.handler
44
- when 'haml'
45
- "= content_for(:title) { \"#{record.title}\" }\r\n"
46
- else
47
- "<% content_for :title do %>#{record.title}<% end %>"
48
- end
49
- end
50
-
51
- def content_for_meta_description(record)
52
- case record.handler
53
- when 'haml'
54
- "= content_for(:meta_description) { \"#{record.meta_description}\" }\r\n"
55
- else
56
- "<% content_for :meta_description do %>#{record.meta_description}<% end %>"
57
- end
58
- end
59
40
  end
60
41
  end
61
42
  end
@@ -1,5 +1,5 @@
1
1
  module Ecm
2
2
  module Cms
3
- VERSION = '2.1.4'
3
+ VERSION = '3.0.0'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ecm_cms2
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.4
4
+ version: 3.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Roberto Vasquez Angel
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-05-02 00:00:00.000000000 Z
11
+ date: 2016-10-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails