comfortable_mexican_sofa 2.0.4 → 2.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/config/locales/zh-CN.yml +27 -27
- data/config/locales/zh-TW.yml +21 -21
- data/lib/comfortable_mexican_sofa/content/tags/partial.rb +1 -1
- data/lib/comfortable_mexican_sofa/version.rb +1 -1
- data/test/lib/content/renderer_test.rb +1 -1
- data/test/lib/content/tags/partial_test.rb +3 -3
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d9aab08f0f25ef0f202bf5d5f6ff90c49b0cda7c
|
4
|
+
data.tar.gz: 517ea8d8c64e602a88397423cfd26eed61ba09ae
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 18125e0be51511b721ad3d14312742a9d17db31dbb2294e6765b063b18dc735f7172adb082de34bb879c2dc793cd0d55480aa0fedb9af2e179f0138fc4845049
|
7
|
+
data.tar.gz: 1d9886bbaf7c798e01324a3c2bd6dd0f4e401db7a3fdd1742dbae63005ef29edd37e080ef77ede31141f5faf746a0748e06eb600986f14035b98fd908151f41c
|
data/config/locales/zh-CN.yml
CHANGED
@@ -6,7 +6,7 @@ zh-CN:
|
|
6
6
|
comfy/cms/page: 页面
|
7
7
|
comfy/cms/snippet: 片段
|
8
8
|
comfy/cms/file: 文件
|
9
|
-
comfy/cms/translation:
|
9
|
+
comfy/cms/translation: 翻译
|
10
10
|
|
11
11
|
attributes:
|
12
12
|
comfy/cms/site:
|
@@ -26,8 +26,8 @@ zh-CN:
|
|
26
26
|
comfy/cms/page:
|
27
27
|
label: 页面名称
|
28
28
|
layout_id: 布局
|
29
|
-
slug:
|
30
|
-
full_path:
|
29
|
+
slug: 缩略路径
|
30
|
+
full_path: 完整路径
|
31
31
|
parent_id: 上级
|
32
32
|
target_page_id: 跳转至
|
33
33
|
content: 内容
|
@@ -41,10 +41,10 @@ zh-CN:
|
|
41
41
|
label: 标签
|
42
42
|
content: 内容
|
43
43
|
comfy/cms/translation:
|
44
|
-
locale:
|
45
|
-
label:
|
46
|
-
layout_id:
|
47
|
-
is_published:
|
44
|
+
locale: 语言
|
45
|
+
label: 标签
|
46
|
+
layout_id: 布局
|
47
|
+
is_published: 发布
|
48
48
|
|
49
49
|
comfy:
|
50
50
|
cms:
|
@@ -57,7 +57,7 @@ zh-CN:
|
|
57
57
|
cms:
|
58
58
|
base:
|
59
59
|
site_not_found: 没有该站点
|
60
|
-
seeds_enabled: CMS
|
60
|
+
seeds_enabled: CMS样板已经启用,在此处的所有修改将被忽略。
|
61
61
|
|
62
62
|
sites: 站点
|
63
63
|
layouts: 布局
|
@@ -144,7 +144,7 @@ zh-CN:
|
|
144
144
|
create: 创建页面
|
145
145
|
cancel: 取消
|
146
146
|
update: 更新页面
|
147
|
-
choose_link:
|
147
|
+
choose_link: 选择页面...
|
148
148
|
|
149
149
|
fragments:
|
150
150
|
form_fragments:
|
@@ -153,25 +153,25 @@ zh-CN:
|
|
153
153
|
编辑内容使其包含一个页面或者field标签。例如: <code>{{cms:wysiwyg content}}</code>
|
154
154
|
|
155
155
|
translations:
|
156
|
-
created:
|
157
|
-
creation_failure:
|
158
|
-
updated:
|
159
|
-
update_failure:
|
160
|
-
deleted:
|
161
|
-
not_found:
|
156
|
+
created: 翻译创建成功
|
157
|
+
creation_failure: 翻译创建失败
|
158
|
+
updated: 翻译更新成功
|
159
|
+
update_failure: 翻译更新失败
|
160
|
+
deleted: 翻译删除成功
|
161
|
+
not_found: 翻译不存在
|
162
162
|
|
163
163
|
new:
|
164
|
-
title:
|
164
|
+
title: 新翻译
|
165
165
|
edit:
|
166
|
-
title:
|
166
|
+
title: 编辑翻译
|
167
167
|
form:
|
168
|
-
preview:
|
169
|
-
create:
|
170
|
-
update:
|
171
|
-
cancel:
|
168
|
+
preview: 预览
|
169
|
+
create: 创建
|
170
|
+
update: 更新
|
171
|
+
cancel: 取消
|
172
172
|
sidebar:
|
173
|
-
new:
|
174
|
-
confirm:
|
173
|
+
new: 新翻译
|
174
|
+
confirm: 确定刪除该翻译吗?
|
175
175
|
|
176
176
|
snippets:
|
177
177
|
created: 片段创建成功
|
@@ -206,10 +206,10 @@ zh-CN:
|
|
206
206
|
revision: 修订版本
|
207
207
|
update: 更新到该修订版本
|
208
208
|
cancel: 取消
|
209
|
-
content:
|
210
|
-
changes:
|
211
|
-
previous:
|
212
|
-
current:
|
209
|
+
content: 内容
|
210
|
+
changes: 更改
|
211
|
+
previous: 先前
|
212
|
+
current: 当前
|
213
213
|
sidebar:
|
214
214
|
revision:
|
215
215
|
zero: '%{count} 修订版本'
|
data/config/locales/zh-TW.yml
CHANGED
@@ -6,7 +6,7 @@ zh-TW:
|
|
6
6
|
comfy/cms/page: 頁面
|
7
7
|
comfy/cms/snippet: 片段
|
8
8
|
comfy/cms/file: 文件
|
9
|
-
comfy/cms/translation:
|
9
|
+
comfy/cms/translation: 翻譯
|
10
10
|
|
11
11
|
attributes:
|
12
12
|
comfy/cms/site:
|
@@ -41,10 +41,10 @@ zh-TW:
|
|
41
41
|
label: 標籤
|
42
42
|
content: 內容
|
43
43
|
comfy/cms/translation:
|
44
|
-
locale:
|
45
|
-
label:
|
46
|
-
layout_id:
|
47
|
-
is_published:
|
44
|
+
locale: 語言
|
45
|
+
label: 標籤
|
46
|
+
layout_id: 佈局
|
47
|
+
is_published: 發佈
|
48
48
|
|
49
49
|
comfy:
|
50
50
|
cms:
|
@@ -57,7 +57,7 @@ zh-TW:
|
|
57
57
|
cms:
|
58
58
|
base:
|
59
59
|
site_not_found: 沒有該站點
|
60
|
-
seeds_enabled: CMS
|
60
|
+
seeds_enabled: CMS樣板已經啟用,在此處的所有修改將被忽略。
|
61
61
|
|
62
62
|
sites: 站點
|
63
63
|
layouts: 佈局
|
@@ -113,7 +113,7 @@ zh-TW:
|
|
113
113
|
select_parent_layout: 選擇上級佈局
|
114
114
|
select_app_layout: 選擇應用佈局
|
115
115
|
create: 創建佈局
|
116
|
-
cancel:
|
116
|
+
cancel: 取消
|
117
117
|
update: 更新佈局
|
118
118
|
|
119
119
|
pages:
|
@@ -153,25 +153,25 @@ zh-TW:
|
|
153
153
|
編輯內容使其包含一個頁面或者欄位標記。例如: <code>{{cms:wysiwyg content}}</code>
|
154
154
|
|
155
155
|
translations:
|
156
|
-
created:
|
157
|
-
creation_failure:
|
158
|
-
updated:
|
159
|
-
update_failure:
|
160
|
-
deleted:
|
161
|
-
not_found:
|
156
|
+
created: 翻譯創建成功
|
157
|
+
creation_failure: 翻譯創建失敗
|
158
|
+
updated: 翻譯更新成功
|
159
|
+
update_failure: 翻譯更新失敗
|
160
|
+
deleted: 翻譯刪除成功
|
161
|
+
not_found: 翻譯不存在
|
162
162
|
|
163
163
|
new:
|
164
|
-
title:
|
164
|
+
title: 新翻譯
|
165
165
|
edit:
|
166
|
-
title:
|
166
|
+
title: 編輯翻譯
|
167
167
|
form:
|
168
|
-
preview:
|
169
|
-
create:
|
170
|
-
update:
|
171
|
-
cancel:
|
168
|
+
preview: 預覽
|
169
|
+
create: 創建
|
170
|
+
update: 更新
|
171
|
+
cancel: 取消
|
172
172
|
sidebar:
|
173
|
-
new:
|
174
|
-
confirm:
|
173
|
+
new: 新翻譯
|
174
|
+
confirm: 確定刪除該翻譯嗎?
|
175
175
|
|
176
176
|
snippets:
|
177
177
|
created: 片段創建成功
|
@@ -222,7 +222,7 @@ class ContentRendererTest < ActiveSupport::TestCase
|
|
222
222
|
|
223
223
|
def test_render_with_erb_allowed_via_tag
|
224
224
|
out = render_string("{{cms:partial path}}")
|
225
|
-
assert_equal "<%= render partial:
|
225
|
+
assert_equal "<%= render partial: \"path\", locals: {} %>", out
|
226
226
|
end
|
227
227
|
|
228
228
|
def test_render_with_nested_tag
|
@@ -23,12 +23,12 @@ class ContentTagsPartialTest < ActiveSupport::TestCase
|
|
23
23
|
|
24
24
|
def test_content
|
25
25
|
tag = ComfortableMexicanSofa::Content::Tag::Partial.new(@page, "path/to/partial, key: val")
|
26
|
-
assert_equal "<%= render partial:
|
26
|
+
assert_equal "<%= render partial: \"path/to/partial\", locals: {\"key\"=>\"val\"} %>", tag.content
|
27
27
|
end
|
28
28
|
|
29
29
|
def test_render
|
30
30
|
tag = ComfortableMexicanSofa::Content::Tag::Partial.new(@page, "path/to/partial, key: val")
|
31
|
-
assert_equal "<%= render partial:
|
31
|
+
assert_equal "<%= render partial: \"path/to/partial\", locals: {\"key\"=>\"val\"} %>", tag.render
|
32
32
|
end
|
33
33
|
|
34
34
|
def test_render_with_whitelist
|
@@ -38,7 +38,7 @@ class ContentTagsPartialTest < ActiveSupport::TestCase
|
|
38
38
|
assert_equal "", tag.render
|
39
39
|
|
40
40
|
tag = ComfortableMexicanSofa::Content::Tag::Partial.new(@page, "safe/path")
|
41
|
-
assert_equal "<%= render partial:
|
41
|
+
assert_equal "<%= render partial: \"safe/path\", locals: {} %>", tag.render
|
42
42
|
end
|
43
43
|
|
44
44
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: comfortable_mexican_sofa
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Oleg Khabarov
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-12-
|
11
|
+
date: 2017-12-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: active_link_to
|
@@ -697,7 +697,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
697
697
|
version: '0'
|
698
698
|
requirements: []
|
699
699
|
rubyforge_project:
|
700
|
-
rubygems_version: 2.
|
700
|
+
rubygems_version: 2.5.1
|
701
701
|
signing_key:
|
702
702
|
specification_version: 4
|
703
703
|
summary: Rails 5.2+ CMS Engine
|