refinerycms-core 2.1.2 → 2.1.3
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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 09e55495adcc3d944d29b476843894b9b9bb6bd5
|
|
4
|
+
data.tar.gz: e51621bbe77f7560a1adb73a1cff90233e90aa96
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1a22b704fcc866ed07187803ca44075a3575e467fda26403978f5c28ef06c847be36ea896ceab672f2d7a8e06104715584c8c5e8353bf498da1951387a470b55
|
|
7
|
+
data.tar.gz: 87f57612ede1a3b3fac32e6708dc665c27a2068f371ab78b841bda2bcdb5f15ca348f13014853ce73c4017a020a0a21f2844a406adfbc324b67db5d79c3bd37d
|
|
@@ -11,21 +11,21 @@ Refinery::I18n.frontend_locales.each do |lang|
|
|
|
11
11
|
end
|
|
12
12
|
|
|
13
13
|
if defined?(Refinery::Page)
|
|
14
|
-
|
|
14
|
+
url = "/<%= [(namespacing.underscore if namespacing.underscore != plural_name), plural_name].compact.join('/') %>"
|
|
15
|
+
page = Refinery::Page.where(:link_url => url).first_or_create!(
|
|
15
16
|
:title => "<%= class_name.pluralize.underscore.titleize %>",
|
|
16
|
-
:link_url => "/<%= plural_name %>/new",
|
|
17
17
|
:deletable => false,
|
|
18
|
-
:menu_match => "
|
|
18
|
+
:menu_match => "^#{url}(\/|\/.+?|)$"
|
|
19
19
|
)
|
|
20
|
-
thank_you_page =
|
|
20
|
+
thank_you_page = Refinery::Page.where(:link_url => "#{url}/thank_you").first_or_create!(
|
|
21
21
|
:title => "Thank You",
|
|
22
|
-
:link_url => "/<%= plural_name %>/thank_you",
|
|
23
22
|
:deletable => false,
|
|
24
23
|
:show_in_menu => false
|
|
25
24
|
)
|
|
25
|
+
thank_you_page.update_attribute(:parent, page)
|
|
26
26
|
Refinery::Pages.default_parts.each do |default_page_part|
|
|
27
|
-
page.parts.
|
|
28
|
-
thank_you_page.parts.
|
|
27
|
+
page.parts.where(:title => default_page_part).first_or_create!(:body => nil)
|
|
28
|
+
thank_you_page.parts.where(:title => default_page_part).first_or_create!(:body => nil)
|
|
29
29
|
end
|
|
30
30
|
end
|
|
31
31
|
end
|
|
@@ -12,5 +12,5 @@ Gem::Specification.new do |s|
|
|
|
12
12
|
|
|
13
13
|
# Runtime dependencies
|
|
14
14
|
s.add_dependency 'refinerycms-core', '~> <%= Refinery::Version %>'
|
|
15
|
-
s.add_dependency 'refinerycms-settings', '~> <%= Refinery::Version %>'
|
|
15
|
+
s.add_dependency 'refinerycms-settings', '~> <%= [Refinery::Version.major, Refinery::Version.minor, 0].join(".") %>'
|
|
16
16
|
end
|
data/lib/refinery/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: refinerycms-core
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.1.
|
|
4
|
+
version: 2.1.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Philip Arndt
|
|
@@ -10,7 +10,7 @@ authors:
|
|
|
10
10
|
autorequire:
|
|
11
11
|
bindir: bin
|
|
12
12
|
cert_chain: []
|
|
13
|
-
date: 2014-
|
|
13
|
+
date: 2014-09-05 00:00:00.000000000 Z
|
|
14
14
|
dependencies:
|
|
15
15
|
- !ruby/object:Gem::Dependency
|
|
16
16
|
name: refinerycms-i18n
|