comfortable_mexican_sofa 1.6.15 → 1.6.16
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/comfortable_mexican_sofa.gemspec +1 -1
- data/config/locales/en.yml +1 -0
- data/config/locales/es.yml +9 -0
- data/config/locales/ja.yml +10 -1
- data/config/locales/pt-BR.yml +1 -0
- data/config/locales/zh-CN.yml +7 -3
- data/lib/comfortable_mexican_sofa/form_builder.rb +5 -1
- data/test/functional/cms_admin/pages_controller_test.rb +2 -2
- metadata +8 -8
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.6.
|
1
|
+
1.6.16
|
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = "comfortable_mexican_sofa"
|
8
|
-
s.version = "1.6.
|
8
|
+
s.version = "1.6.16"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Oleg Khabarov", "The Working Group Inc"]
|
data/config/locales/en.yml
CHANGED
data/config/locales/es.yml
CHANGED
@@ -6,19 +6,23 @@ es:
|
|
6
6
|
slug: Identificador
|
7
7
|
parent_id: Padre
|
8
8
|
content: Contenido
|
9
|
+
identifier: Identifier
|
9
10
|
activerecord:
|
10
11
|
models:
|
11
12
|
cms/site: Sitio
|
12
13
|
cms/layout: Plantilla
|
13
14
|
cms/page: Página
|
14
15
|
cms/snippet: Fragmento
|
16
|
+
cms/file: File
|
15
17
|
attributes:
|
16
18
|
cms/site:
|
19
|
+
identifier: Identifier
|
17
20
|
hostname: Dirección
|
18
21
|
path: Ruta
|
19
22
|
locale: Lengua
|
20
23
|
is_mirrored: Espejo
|
21
24
|
cms/layout:
|
25
|
+
identifier: Identifier
|
22
26
|
label: Nombre de Plantilla
|
23
27
|
app_layout: Plantilla Base
|
24
28
|
parent_id: Plantilla Padre
|
@@ -30,6 +34,11 @@ es:
|
|
30
34
|
slug: Ruta
|
31
35
|
target_page_id: Redirigir a
|
32
36
|
is_published: Publicada
|
37
|
+
cms/file:
|
38
|
+
file: File
|
39
|
+
description: Description
|
40
|
+
cms/snippet:
|
41
|
+
identifier: Identifier
|
33
42
|
|
34
43
|
# -- Controllers ----------------------------------------------------------
|
35
44
|
cms:
|
data/config/locales/ja.yml
CHANGED
@@ -6,19 +6,23 @@ ja:
|
|
6
6
|
slug: スラッグ
|
7
7
|
parent_id: 親
|
8
8
|
content: コンテンツ
|
9
|
+
identifier: Identifier
|
9
10
|
activerecord:
|
10
11
|
models:
|
11
12
|
cms/site: サイト
|
12
13
|
cms/layout: レイアウト
|
13
14
|
cms/page: ページ
|
14
15
|
cms/snippet: スニペット
|
16
|
+
cms/file: File
|
15
17
|
attributes:
|
16
18
|
cms/site:
|
19
|
+
identifier: Identifier
|
17
20
|
hostname: ホスト名
|
18
21
|
path: パス
|
19
22
|
locale: 言語
|
20
23
|
is_mirrored: ミラーリング済み
|
21
24
|
cms/layout:
|
25
|
+
identifier: Identifier
|
22
26
|
label: レイアウト名
|
23
27
|
app_layout: アプリケーションレイアウト
|
24
28
|
parent_id: 親レイアウト
|
@@ -30,6 +34,11 @@ ja:
|
|
30
34
|
slug: スラッグ
|
31
35
|
target_page_id: ページにリダイレクト
|
32
36
|
is_published: パブリッシュ済み
|
37
|
+
cms/file:
|
38
|
+
file: File
|
39
|
+
description: Description
|
40
|
+
cms/snippet:
|
41
|
+
identifier: Identifier
|
33
42
|
|
34
43
|
# -- Controllers ----------------------------------------------------------
|
35
44
|
cms:
|
@@ -222,4 +231,4 @@ ja:
|
|
222
231
|
insert: 画像を挿入
|
223
232
|
link:
|
224
233
|
create: リンクを作成
|
225
|
-
|
234
|
+
|
data/config/locales/pt-BR.yml
CHANGED
data/config/locales/zh-CN.yml
CHANGED
@@ -16,25 +16,30 @@ zh-CN:
|
|
16
16
|
cms/file: 文件
|
17
17
|
attributes:
|
18
18
|
cms/site:
|
19
|
+
identifier: 标识符
|
19
20
|
hostname: 主机名
|
20
21
|
path: 路径
|
21
22
|
locale: 语言
|
22
23
|
is_mirrored: 镜像
|
23
24
|
cms/layout:
|
25
|
+
identifier: 标识符
|
24
26
|
label: 布局名称
|
25
27
|
app_layout: 应用布局
|
26
28
|
parent_id: 上级布局
|
27
29
|
css: 样式
|
28
30
|
js: Javascript
|
29
31
|
cms/page:
|
32
|
+
label: 布局名称
|
30
33
|
layout_id: 布局
|
34
|
+
slug: Slug
|
31
35
|
target_page_id: 跳转至
|
32
36
|
is_published: 发布
|
33
37
|
cms/file:
|
34
38
|
file: 文件
|
35
39
|
description: 描述
|
40
|
+
cms/snippet:
|
41
|
+
identifier: 标识符
|
36
42
|
|
37
|
-
|
38
43
|
# -- Controllers ----------------------------------------------------------
|
39
44
|
cms:
|
40
45
|
base:
|
@@ -225,5 +230,4 @@ zh-CN:
|
|
225
230
|
image:
|
226
231
|
insert: 插入图片
|
227
232
|
link:
|
228
|
-
create: 创建链接
|
229
|
-
|
233
|
+
create: 创建链接
|
@@ -66,7 +66,7 @@ class ComfortableMexicanSofa::FormBuilder < ActionView::Helpers::FormBuilder
|
|
66
66
|
'datetime'
|
67
67
|
when ComfortableMexicanSofa::Tag::PageText, ComfortableMexicanSofa::Tag::FieldText
|
68
68
|
'code'
|
69
|
-
when ComfortableMexicanSofa::Tag::PageRichText
|
69
|
+
when ComfortableMexicanSofa::Tag::PageRichText, ComfortableMexicanSofa::Tag::FieldRichText
|
70
70
|
'rich_text'
|
71
71
|
end
|
72
72
|
|
@@ -102,6 +102,10 @@ class ComfortableMexicanSofa::FormBuilder < ActionView::Helpers::FormBuilder
|
|
102
102
|
default_tag_field(tag, index, :method => :text_area_tag)
|
103
103
|
end
|
104
104
|
|
105
|
+
def field_rich_text(tag, index)
|
106
|
+
default_tag_field(tag, index, :method => :text_area_tag)
|
107
|
+
end
|
108
|
+
|
105
109
|
def page_date_time(tag, index)
|
106
110
|
default_tag_field(tag, index)
|
107
111
|
end
|
@@ -78,7 +78,7 @@ class CmsAdmin::PagesControllerTest < ActionController::TestCase
|
|
78
78
|
assert_select "input[type='hidden'][name='page[blocks_attributes][0][identifier]'][value='test_label']"
|
79
79
|
end
|
80
80
|
|
81
|
-
def
|
81
|
+
def test_get_new_with_field_rich_text
|
82
82
|
cms_layouts(:default).update_attribute(:content, '{{cms:field:test_label:rich_text}}')
|
83
83
|
get :new, :site_id => cms_sites(:default)
|
84
84
|
assert_response :success
|
@@ -146,7 +146,7 @@ class CmsAdmin::PagesControllerTest < ActionController::TestCase
|
|
146
146
|
assert_select "input[type='hidden'][name='page[blocks_attributes][0][identifier]'][value='snippet']"
|
147
147
|
end
|
148
148
|
|
149
|
-
def
|
149
|
+
def test_get_new_with_page_rich_text
|
150
150
|
cms_layouts(:default).update_attribute(:content, '{{cms:page:test_label:rich_text}}')
|
151
151
|
get :new, :site_id => cms_sites(:default)
|
152
152
|
assert_response :success
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: comfortable_mexican_sofa
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.6.
|
4
|
+
version: 1.6.16
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -14,7 +14,7 @@ date: 2012-03-15 00:00:00.000000000Z
|
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rails
|
17
|
-
requirement: &
|
17
|
+
requirement: &70113298842700 !ruby/object:Gem::Requirement
|
18
18
|
none: false
|
19
19
|
requirements:
|
20
20
|
- - ! '>='
|
@@ -22,10 +22,10 @@ dependencies:
|
|
22
22
|
version: 3.0.0
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
|
-
version_requirements: *
|
25
|
+
version_requirements: *70113298842700
|
26
26
|
- !ruby/object:Gem::Dependency
|
27
27
|
name: active_link_to
|
28
|
-
requirement: &
|
28
|
+
requirement: &70113298842040 !ruby/object:Gem::Requirement
|
29
29
|
none: false
|
30
30
|
requirements:
|
31
31
|
- - ~>
|
@@ -33,10 +33,10 @@ dependencies:
|
|
33
33
|
version: 1.0.0
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
|
-
version_requirements: *
|
36
|
+
version_requirements: *70113298842040
|
37
37
|
- !ruby/object:Gem::Dependency
|
38
38
|
name: paperclip
|
39
|
-
requirement: &
|
39
|
+
requirement: &70113298841120 !ruby/object:Gem::Requirement
|
40
40
|
none: false
|
41
41
|
requirements:
|
42
42
|
- - ! '>='
|
@@ -44,7 +44,7 @@ dependencies:
|
|
44
44
|
version: 2.3.0
|
45
45
|
type: :runtime
|
46
46
|
prerelease: false
|
47
|
-
version_requirements: *
|
47
|
+
version_requirements: *70113298841120
|
48
48
|
description: ''
|
49
49
|
email: oleg@theworkinggroup.ca
|
50
50
|
executables: []
|
@@ -369,7 +369,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
369
369
|
version: '0'
|
370
370
|
segments:
|
371
371
|
- 0
|
372
|
-
hash:
|
372
|
+
hash: 1361783085271841730
|
373
373
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
374
374
|
none: false
|
375
375
|
requirements:
|