comfortable_mexican_sofa 1.12.1 → 1.12.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/app/assets/javascripts/comfortable_mexican_sofa/application.js.coffee +7 -2
- data/app/assets/stylesheets/comfortable_mexican_sofa/application.css.sass +1 -1
- data/app/views/comfy/admin/cms/files/_form.html.haml +1 -0
- data/app/views/comfy/admin/cms/layouts/_form.html.haml +1 -0
- data/app/views/comfy/admin/cms/pages/_form.html.haml +2 -1
- data/app/views/comfy/admin/cms/sites/_form.html.haml +2 -1
- data/app/views/comfy/admin/cms/snippets/_form.html.haml +2 -1
- data/comfortable_mexican_sofa.gemspec +2 -2
- data/config/locales/cs.yml +239 -0
- data/config/locales/da.yml +6 -0
- data/config/locales/de.yml +6 -0
- data/config/locales/en.yml +6 -0
- data/config/locales/es.yml +6 -0
- data/config/locales/fr.yml +6 -0
- data/config/locales/it.yml +6 -0
- data/config/locales/ja.yml +6 -0
- data/config/locales/nb.yml +239 -0
- data/config/locales/nl.yml +10 -4
- data/config/locales/pl.yml +6 -0
- data/config/locales/pt-BR.yml +6 -0
- data/config/locales/ru.yml +6 -0
- data/config/locales/sv.yml +6 -0
- data/config/locales/zh-CN.yml +6 -0
- data/config/locales/zh-TW.yml +239 -0
- data/db/upgrade_migrations/08_upgrade_to_1_12_0.rb +0 -3
- data/lib/comfortable_mexican_sofa/configuration.rb +4 -1
- data/lib/comfortable_mexican_sofa/version.rb +1 -1
- data/test/gemfiles/Gemfile.rails.4.0 +1 -1
- data/test/gemfiles/Gemfile.rails.4.1 +1 -1
- data/test/gemfiles/Gemfile.rails.master +1 -1
- data/test/lib/fixtures_test.rb +2 -2
- data/test/test_helper.rb +7 -0
- metadata +9 -6
@@ -17,9 +17,6 @@ class UpgradeTo1120 < ActiveRecord::Migration
|
|
17
17
|
rename_table :cms_blocks, :comfy_cms_blocks
|
18
18
|
rename_table :cms_snippets, :comfy_cms_snippets
|
19
19
|
rename_table :cms_files, :comfy_cms_files
|
20
|
-
rename_index :cms_revisions,
|
21
|
-
'index_cms_revisions_on_record_type_and_record_id_and_created_at',
|
22
|
-
'index_cms_revisions_on_record_type_id_created'
|
23
20
|
rename_table :cms_revisions, :comfy_cms_revisions
|
24
21
|
rename_index :cms_categories,
|
25
22
|
'index_cms_categories_on_site_id_and_categorized_type_and_label',
|
@@ -88,6 +88,7 @@ class ComfortableMexicanSofa::Configuration
|
|
88
88
|
'es' => 'Español',
|
89
89
|
'pt-BR' => 'Português Brasileiro',
|
90
90
|
'zh-CN' => '简体中文',
|
91
|
+
'zh-TW' => '正體中文',
|
91
92
|
'ja' => '日本語',
|
92
93
|
'sv' => 'Svenska',
|
93
94
|
'ru' => 'Русский',
|
@@ -95,7 +96,9 @@ class ComfortableMexicanSofa::Configuration
|
|
95
96
|
'de' => 'Deutsch',
|
96
97
|
'nl' => 'Nederlands',
|
97
98
|
'it' => 'Italiano',
|
98
|
-
'da' => 'Dansk'
|
99
|
+
'da' => 'Dansk',
|
100
|
+
'cs' => 'Česky',
|
101
|
+
'nb' => 'Norsk'
|
99
102
|
}
|
100
103
|
@admin_locale = nil
|
101
104
|
@admin_cache_sweeper = nil
|
@@ -6,7 +6,7 @@ gem 'active_link_to', '>= 1.0.0'
|
|
6
6
|
gem 'paperclip', '>= 3.4.0'
|
7
7
|
gem 'kramdown', '>= 1.0.0'
|
8
8
|
gem 'jquery-rails', '>= 3.0.0'
|
9
|
-
gem 'jquery-ui-rails', '>=
|
9
|
+
gem 'jquery-ui-rails', '>= 5.0.0'
|
10
10
|
gem 'haml-rails', '>= 0.3.0'
|
11
11
|
gem 'sass-rails', '>= 4.0.3'
|
12
12
|
gem 'coffee-rails', '>= 3.1.0'
|
@@ -6,7 +6,7 @@ gem 'active_link_to', '>= 1.0.0'
|
|
6
6
|
gem 'paperclip', '>= 3.4.0'
|
7
7
|
gem 'kramdown', '>= 1.0.0'
|
8
8
|
gem 'jquery-rails', '>= 3.0.0'
|
9
|
-
gem 'jquery-ui-rails', '>=
|
9
|
+
gem 'jquery-ui-rails', '>= 5.0.0'
|
10
10
|
gem 'haml-rails', '>= 0.3.0'
|
11
11
|
gem 'sass-rails', '>= 4.0.3'
|
12
12
|
gem 'coffee-rails', '>= 3.1.0'
|
@@ -6,7 +6,7 @@ gem 'active_link_to', '>= 1.0.0'
|
|
6
6
|
gem 'paperclip', '>= 3.4.0'
|
7
7
|
gem 'kramdown', '>= 1.0.0'
|
8
8
|
gem 'jquery-rails', '>= 3.0.0'
|
9
|
-
gem 'jquery-ui-rails', '>=
|
9
|
+
gem 'jquery-ui-rails', '>= 5.0.0'
|
10
10
|
gem 'haml-rails', '>= 0.3.0'
|
11
11
|
gem 'sass-rails', '>= 4.0.3'
|
12
12
|
gem 'coffee-rails', '>= 3.1.0'
|
data/test/lib/fixtures_test.rb
CHANGED
@@ -32,7 +32,7 @@ class FixtureTest < ActiveSupport::TestCase
|
|
32
32
|
FileUtils.rm_rf(host_path)
|
33
33
|
end
|
34
34
|
|
35
|
-
def
|
35
|
+
def test_export_all_with_no_site
|
36
36
|
comfy_cms_sites(:default).destroy
|
37
37
|
|
38
38
|
assert_exception_raised ActiveRecord::RecordNotFound do
|
@@ -40,4 +40,4 @@ class FixtureTest < ActiveSupport::TestCase
|
|
40
40
|
end
|
41
41
|
end
|
42
42
|
|
43
|
-
end
|
43
|
+
end
|
data/test/test_helper.rb
CHANGED
@@ -19,6 +19,7 @@ class ActiveSupport::TestCase
|
|
19
19
|
|
20
20
|
def setup
|
21
21
|
reset_config
|
22
|
+
reset_locale
|
22
23
|
stub_paperclip
|
23
24
|
end
|
24
25
|
|
@@ -48,6 +49,11 @@ class ActiveSupport::TestCase
|
|
48
49
|
ComfortableMexicanSofa::HttpAuth.password = 'password'
|
49
50
|
end
|
50
51
|
|
52
|
+
def reset_locale
|
53
|
+
I18n.default_locale = :en
|
54
|
+
I18n.locale = :en
|
55
|
+
end
|
56
|
+
|
51
57
|
# Example usage:
|
52
58
|
# assert_has_errors_on @record, :field_1, :field_2
|
53
59
|
def assert_has_errors_on(record, *fields)
|
@@ -106,6 +112,7 @@ class ActionDispatch::IntegrationTest
|
|
106
112
|
def setup
|
107
113
|
host! 'test.host'
|
108
114
|
reset_config
|
115
|
+
reset_locale
|
109
116
|
stub_paperclip
|
110
117
|
end
|
111
118
|
|
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: 1.12.
|
4
|
+
version: 1.12.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Oleg Khabarov
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-08-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -114,14 +114,14 @@ dependencies:
|
|
114
114
|
requirements:
|
115
115
|
- - '>='
|
116
116
|
- !ruby/object:Gem::Version
|
117
|
-
version:
|
117
|
+
version: 5.0.0
|
118
118
|
type: :runtime
|
119
119
|
prerelease: false
|
120
120
|
version_requirements: !ruby/object:Gem::Requirement
|
121
121
|
requirements:
|
122
122
|
- - '>='
|
123
123
|
- !ruby/object:Gem::Version
|
124
|
-
version:
|
124
|
+
version: 5.0.0
|
125
125
|
- !ruby/object:Gem::Dependency
|
126
126
|
name: haml-rails
|
127
127
|
requirement: !ruby/object:Gem::Requirement
|
@@ -142,14 +142,14 @@ dependencies:
|
|
142
142
|
requirements:
|
143
143
|
- - '>='
|
144
144
|
- !ruby/object:Gem::Version
|
145
|
-
version: 4.0.
|
145
|
+
version: 4.0.1
|
146
146
|
type: :runtime
|
147
147
|
prerelease: false
|
148
148
|
version_requirements: !ruby/object:Gem::Requirement
|
149
149
|
requirements:
|
150
150
|
- - '>='
|
151
151
|
- !ruby/object:Gem::Version
|
152
|
-
version: 4.0.
|
152
|
+
version: 4.0.1
|
153
153
|
- !ruby/object:Gem::Dependency
|
154
154
|
name: coffee-rails
|
155
155
|
requirement: !ruby/object:Gem::Requirement
|
@@ -374,6 +374,7 @@ files:
|
|
374
374
|
- config/initializers/comfortable_mexican_sofa.rb
|
375
375
|
- config/initializers/paperclip.rb
|
376
376
|
- config/initializers/secret_token.rb
|
377
|
+
- config/locales/cs.yml
|
377
378
|
- config/locales/da.yml
|
378
379
|
- config/locales/de.yml
|
379
380
|
- config/locales/en.yml
|
@@ -381,12 +382,14 @@ files:
|
|
381
382
|
- config/locales/fr.yml
|
382
383
|
- config/locales/it.yml
|
383
384
|
- config/locales/ja.yml
|
385
|
+
- config/locales/nb.yml
|
384
386
|
- config/locales/nl.yml
|
385
387
|
- config/locales/pl.yml
|
386
388
|
- config/locales/pt-BR.yml
|
387
389
|
- config/locales/ru.yml
|
388
390
|
- config/locales/sv.yml
|
389
391
|
- config/locales/zh-CN.yml
|
392
|
+
- config/locales/zh-TW.yml
|
390
393
|
- db/cms_fixtures/sample-site/categories/files.yml
|
391
394
|
- db/cms_fixtures/sample-site/categories/pages.yml
|
392
395
|
- db/cms_fixtures/sample-site/categories/snippets.yml
|