refinerycms-core 3.0.5 → 3.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +2 -3
- data/app/assets/javascripts/admin.js +2 -2
- data/app/assets/javascripts/refinery/interface.js.coffee.erb +1 -1
- data/app/helpers/refinery/site_bar_helper.rb +3 -3
- data/app/views/refinery/sitemap/index.xml.builder +31 -25
- data/config/locales/ru.yml +1 -1
- data/lib/refinery/version.rb +1 -1
- data/spec/features/refinery/admin/xhr_paging_spec.rb +3 -3
- data/spec/lib/generators/refinery/cms/cms_generator_spec.rb +0 -5
- metadata +17 -18
- metadata.gz.sig +0 -0
- data/lib/generators/refinery/cms/templates/app/views/sitemap/index.xml.builder +0 -25
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 54905bf441f5cec6679998d3159184707e4c0717
|
4
|
+
data.tar.gz: 206ca811bae7f8a983a61221ef7b8a05cb1997ec
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: aa6b2fc6616687a2fdb4f2b38f532ed4977cc320c8f49886389e75f01e7faf65d473f4f17d7cbe5c8761bc141b86d9d57fe7a23293c755d1b1b5f806929607cf
|
7
|
+
data.tar.gz: ec0266f41d3096bc88da963561891dfa8060854b4804ff4080dacf71b31e55cdc19e903d972118a9222aefa67e7b525819338f6d2a8dbf4c6c5e1510cbbb0644
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
@@ -1,3 +1 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
�f1�E���K����j�G�_eX ���C��h��q��@H�w���t���g+i��ض��%���Ӽ�E
|
1
|
+
)7'��Rĕ�k�D2�k����=����e���[��45V :}��!�Z
|
2
|
+
���X�����8�-d
|
@@ -2,6 +2,6 @@
|
|
2
2
|
// Just mirror the options specified in your visual editor's config with the new
|
3
3
|
// options here. This will completely override anything specified in your visual
|
4
4
|
// editor's boot process for that key, e.g. skin: 'something_else'
|
5
|
-
if (typeof(
|
6
|
-
|
5
|
+
if (typeof(custom_visual_editor_boot_options) == "undefined") {
|
6
|
+
var custom_visual_editor_boot_options = {};
|
7
7
|
}
|
@@ -16,7 +16,7 @@
|
|
16
16
|
$("html,body").animate scrollTop: $("#other_locales").parent().offset().top, 250
|
17
17
|
e.preventDefault()
|
18
18
|
|
19
|
-
$("#existing_image img").load ->
|
19
|
+
$("#existing_image img").on 'load', ->
|
20
20
|
margin_top = ($("#existing_image").height() - $("form.edit_image").height() + 8)
|
21
21
|
$("form.edit_image .form-actions").css "margin-top": margin_top if margin_top > 0
|
22
22
|
|
@@ -5,9 +5,9 @@ module Refinery
|
|
5
5
|
def site_bar_switch_link
|
6
6
|
link_to_if(admin?, t('.switch_to_your_website', site_bar_translate_locale_args),
|
7
7
|
refinery.root_path(site_bar_translate_locale_args),
|
8
|
-
'data-
|
8
|
+
'data-turbolinks' => false) do
|
9
9
|
link_to t('.switch_to_your_website_editor', site_bar_translate_locale_args),
|
10
|
-
Refinery::Core.backend_path, 'data-
|
10
|
+
Refinery::Core.backend_path, 'data-turbolinks' => false
|
11
11
|
end
|
12
12
|
end
|
13
13
|
|
@@ -16,7 +16,7 @@ module Refinery
|
|
16
16
|
link_to t('refinery.admin.pages.edit', site_bar_translate_locale_args),
|
17
17
|
refinery.admin_edit_page_path(@page.nested_url,
|
18
18
|
:switch_locale => (@page.translations.first.locale unless @page.translated_to_default_locale?)),
|
19
|
-
'data-
|
19
|
+
'data-turbolinks' => false
|
20
20
|
end
|
21
21
|
|
22
22
|
def site_bar_translate_locale_args
|
@@ -1,33 +1,39 @@
|
|
1
1
|
xml.instruct!
|
2
2
|
|
3
3
|
xml.urlset "xmlns" => "http://www.sitemaps.org/schemas/sitemap/0.9" do
|
4
|
-
|
5
4
|
@locales.each do |locale|
|
6
5
|
::I18n.locale = locale
|
7
|
-
::Refinery::Page.live.in_menu.includes(:parts).each do |page|
|
8
|
-
# exclude sites that are external to our own domain.
|
9
|
-
page_url = if page.url.is_a?(Hash)
|
10
|
-
# This is how most pages work without being overriden by link_url
|
11
|
-
page.url.merge({:only_path => false, locale: locale})
|
12
|
-
elsif page.url.to_s !~ /^http/
|
13
|
-
# handle relative link_url addresses.
|
14
|
-
raw_url = [request.protocol, request.host_with_port, page.url].join
|
15
|
-
if (@locales.size > 1) && defined?(RoutingFilter::RefineryLocales)
|
16
|
-
filter = RoutingFilter::RefineryLocales.new
|
17
|
-
filter.around_generate({}) do
|
18
|
-
raw_url
|
19
|
-
end
|
20
|
-
else
|
21
|
-
raw_url
|
22
|
-
end
|
23
|
-
end
|
24
6
|
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
7
|
+
::Refinery::Page.live.in_menu.each do |page|
|
8
|
+
|
9
|
+
# exclude sites that are external to our own domain.
|
10
|
+
if page.url.is_a?(Hash)
|
11
|
+
|
12
|
+
# This is how most pages work without being overriden by link_url
|
13
|
+
page_url = page.url.merge({:only_path => false, locale: locale})
|
14
|
+
|
15
|
+
elsif page.url.to_s !~ /^http/
|
16
|
+
|
17
|
+
# handle relative link_url addresses.
|
18
|
+
raw_url = [request.protocol, request.host_with_port, page.url].join
|
19
|
+
|
20
|
+
if (@locales.size > 1) && !page.url.start_with?("/#{locale}/") && defined?(RoutingFilter::RefineryLocales)
|
21
|
+
filter = RoutingFilter::RefineryLocales.new
|
22
|
+
filter.around_generate({}) do
|
23
|
+
raw_url
|
24
|
+
end
|
25
|
+
else
|
26
|
+
raw_url
|
27
|
+
end
|
28
|
+
|
29
|
+
page_url = raw_url
|
30
|
+
end
|
31
|
+
|
32
|
+
# Add XML entry only if there is a valid page_url found above.
|
33
|
+
xml.url do
|
34
|
+
xml.loc refinery.url_for(page_url)
|
35
|
+
xml.lastmod page.updated_at.to_date
|
36
|
+
end if page_url.present?
|
30
37
|
end
|
31
38
|
end
|
32
|
-
|
33
|
-
end
|
39
|
+
end
|
data/config/locales/ru.yml
CHANGED
@@ -57,7 +57,7 @@ ru:
|
|
57
57
|
cancel_search: Отмена поиска
|
58
58
|
search_input_notice: ''
|
59
59
|
input:
|
60
|
-
placeholder: "
|
60
|
+
placeholder: "Поиск …"
|
61
61
|
help: Введите строку содержащую то, что вы ищете, минимум 3 символа.
|
62
62
|
delete:
|
63
63
|
message: "Вы уверены, что хотите удалить '%{title}'?"
|
data/lib/refinery/version.rb
CHANGED
@@ -22,9 +22,9 @@ module Refinery
|
|
22
22
|
expect(page).to have_css(%Q{img[alt="#{first_image.title}"]})
|
23
23
|
|
24
24
|
# placeholder which would disappear in a full page refresh.
|
25
|
-
page.evaluate_script(
|
26
|
-
|
27
|
-
)
|
25
|
+
page.evaluate_script("node = document.createElement('i');")
|
26
|
+
page.evaluate_script("node.id = 'has_not_refreshed_entire_page';")
|
27
|
+
page.evaluate_script("document.body.appendChild(node);")
|
28
28
|
|
29
29
|
within '.pagination' do
|
30
30
|
click_link '2'
|
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: 3.0.
|
4
|
+
version: 3.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Philip Arndt
|
@@ -14,25 +14,25 @@ cert_chain:
|
|
14
14
|
-----BEGIN CERTIFICATE-----
|
15
15
|
MIIDhjCCAm6gAwIBAgIBATANBgkqhkiG9w0BAQUFADBNMQ0wCwYDVQQDDARnZW1z
|
16
16
|
MREwDwYKCZImiZPyLGQBGRYBcDEVMBMGCgmSJomT8ixkARkWBWFybmR0MRIwEAYK
|
17
|
-
|
17
|
+
CZImiZPyLGQBGRYCaW8wHhcNMTcwNzI1MTMxMjIwWhcNMTgwNzI1MTMxMjIwWjBN
|
18
18
|
MQ0wCwYDVQQDDARnZW1zMRE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rczL/i7kF5Xc3ZXQYuFsyGW9plA3i9faWUMvGKQc6pvUHIUZC
|
32
|
+
jOQmH9VbgbfUrXYM1YOKdlwW5sPR1f4PKLDlvEE+bppIUgKOgLOIv3i7KwrGvFOq
|
33
|
+
5r7Wz/HY31SM47mkK21saPJG4NvUFEycf0wlpzP657Pl9aVo47aKKbxX
|
34
34
|
-----END CERTIFICATE-----
|
35
|
-
date:
|
35
|
+
date: 2017-10-02 00:00:00.000000000 Z
|
36
36
|
dependencies:
|
37
37
|
- !ruby/object:Gem::Dependency
|
38
38
|
name: refinerycms-i18n
|
@@ -486,7 +486,6 @@ files:
|
|
486
486
|
- lib/generators/refinery/cms/templates/.gitignore
|
487
487
|
- lib/generators/refinery/cms/templates/app/decorators/controllers/refinery/.keep
|
488
488
|
- lib/generators/refinery/cms/templates/app/decorators/models/refinery/.keep
|
489
|
-
- lib/generators/refinery/cms/templates/app/views/sitemap/index.xml.builder
|
490
489
|
- lib/generators/refinery/cms/templates/config/database.yml.mysql
|
491
490
|
- lib/generators/refinery/cms/templates/config/database.yml.postgresql
|
492
491
|
- lib/generators/refinery/cms/templates/config/database.yml.sqlite3
|
@@ -646,7 +645,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
646
645
|
version: '0'
|
647
646
|
requirements: []
|
648
647
|
rubyforge_project: refinerycms
|
649
|
-
rubygems_version: 2.
|
648
|
+
rubygems_version: 2.6.13
|
650
649
|
signing_key:
|
651
650
|
specification_version: 4
|
652
651
|
summary: Core extension for Refinery CMS
|
metadata.gz.sig
CHANGED
Binary file
|
@@ -1,25 +0,0 @@
|
|
1
|
-
xml.instruct!
|
2
|
-
|
3
|
-
xml.urlset "xmlns" => "http://www.sitemaps.org/schemas/sitemap/0.9" do
|
4
|
-
|
5
|
-
@locales.each do |locale|
|
6
|
-
::I18n.locale = locale
|
7
|
-
::Refinery::Page.live.in_menu.includes(:parts).each do |page|
|
8
|
-
# exclude sites that are external to our own domain.
|
9
|
-
page_url = if page.url.is_a?(Hash)
|
10
|
-
# This is how most pages work without being overriden by link_url
|
11
|
-
page.url.merge({:only_path => false})
|
12
|
-
elsif page.url.to_s !~ /^http/
|
13
|
-
# handle relative link_url addresses.
|
14
|
-
[request.protocol, request.host_with_port, page.url].join
|
15
|
-
end
|
16
|
-
|
17
|
-
# Add XML entry only if there is a valid page_url found above.
|
18
|
-
xml.url do
|
19
|
-
xml.loc url_for(page_url)
|
20
|
-
xml.lastmod page.updated_at.to_date
|
21
|
-
end if page_url.present? and page.show_in_menu?
|
22
|
-
end
|
23
|
-
end
|
24
|
-
|
25
|
-
end
|