comfortable_mexican_sofa 1.3.1 → 1.3.2
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +23 -38
- data/VERSION +1 -1
- data/app/assets/images/comfortable_mexican_sofa/jquery_ui/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
- data/app/assets/images/comfortable_mexican_sofa/jquery_ui/ui-bg_flat_75_ffffff_40x100.png +0 -0
- data/app/assets/images/comfortable_mexican_sofa/jquery_ui/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
- data/app/assets/images/comfortable_mexican_sofa/jquery_ui/ui-bg_glass_65_ffffff_1x400.png +0 -0
- data/app/assets/images/comfortable_mexican_sofa/jquery_ui/ui-bg_glass_75_dadada_1x400.png +0 -0
- data/app/assets/images/comfortable_mexican_sofa/jquery_ui/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
- data/app/assets/images/comfortable_mexican_sofa/jquery_ui/ui-bg_glass_95_fef1ec_1x400.png +0 -0
- data/app/assets/images/comfortable_mexican_sofa/jquery_ui/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
- data/app/assets/images/comfortable_mexican_sofa/jquery_ui/ui-icons_222222_256x240.png +0 -0
- data/app/assets/images/comfortable_mexican_sofa/jquery_ui/ui-icons_2e83ff_256x240.png +0 -0
- data/app/assets/images/comfortable_mexican_sofa/jquery_ui/ui-icons_454545_256x240.png +0 -0
- data/app/assets/images/comfortable_mexican_sofa/jquery_ui/ui-icons_888888_256x240.png +0 -0
- data/app/assets/images/comfortable_mexican_sofa/jquery_ui/ui-icons_cd0a0a_256x240.png +0 -0
- data/app/assets/javascripts/comfortable_mexican_sofa/jquery_ui.js +624 -83
- data/app/assets/stylesheets/comfortable_mexican_sofa/application.css +1 -0
- data/app/assets/stylesheets/comfortable_mexican_sofa/form.css +6 -0
- data/app/assets/stylesheets/comfortable_mexican_sofa/jquery_ui.css +568 -0
- data/app/controllers/cms_admin/sites_controller.rb +1 -1
- data/app/views/layouts/cms_admin/_head.html.erb +2 -1
- data/comfortable_mexican_sofa.gemspec +16 -6
- data/config/initializers/comfortable_mexican_sofa.rb +1 -1
- data/db/migrate/upgrades/04_upgrade_to_1_3_0.rb +5 -5
- data/lib/generators/cms_generator.rb +2 -0
- data/test/functional/cms_admin/sites_controller_test.rb +1 -1
- metadata +23 -13
- data/public/422.html +0 -26
- data/public/500.html +0 -26
- data/public/favicon.ico +0 -0
- data/public/robots.txt +0 -5
@@ -22,7 +22,7 @@ class CmsAdmin::SitesController < CmsAdmin::BaseController
|
|
22
22
|
def create
|
23
23
|
@site.save!
|
24
24
|
flash[:notice] = I18n.t('cms.sites.created')
|
25
|
-
redirect_to
|
25
|
+
redirect_to cms_admin_site_layouts_path(@site)
|
26
26
|
rescue ActiveRecord::RecordInvalid
|
27
27
|
flash.now[:error] = I18n.t('cms.sites.creation_failure')
|
28
28
|
render :action => :new
|
@@ -24,7 +24,8 @@
|
|
24
24
|
'comfortable_mexican_sofa/form',
|
25
25
|
'comfortable_mexican_sofa/content',
|
26
26
|
'comfortable_mexican_sofa/widgets',
|
27
|
-
'comfortable_mexican_sofa/codemirror'
|
27
|
+
'comfortable_mexican_sofa/codemirror',
|
28
|
+
'comfortable_mexican_sofa/jquery_ui' %>
|
28
29
|
<%= javascript_include_tag 'comfortable_mexican_sofa/jquery',
|
29
30
|
'comfortable_mexican_sofa/jquery_ui',
|
30
31
|
'comfortable_mexican_sofa/rails',
|
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{comfortable_mexican_sofa}
|
8
|
-
s.version = "1.3.
|
8
|
+
s.version = "1.3.2"
|
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"]
|
12
|
-
s.date = %q{2011-07-
|
12
|
+
s.date = %q{2011-07-10}
|
13
13
|
s.description = %q{}
|
14
14
|
s.email = %q{oleg@theworkinggroup.ca}
|
15
15
|
s.extra_rdoc_files = [
|
@@ -29,6 +29,19 @@ Gem::Specification.new do |s|
|
|
29
29
|
"app/assets/images/comfortable_mexican_sofa/icon_move.gif",
|
30
30
|
"app/assets/images/comfortable_mexican_sofa/icon_regular.gif",
|
31
31
|
"app/assets/images/comfortable_mexican_sofa/icon_snippet.gif",
|
32
|
+
"app/assets/images/comfortable_mexican_sofa/jquery_ui/ui-bg_flat_0_aaaaaa_40x100.png",
|
33
|
+
"app/assets/images/comfortable_mexican_sofa/jquery_ui/ui-bg_flat_75_ffffff_40x100.png",
|
34
|
+
"app/assets/images/comfortable_mexican_sofa/jquery_ui/ui-bg_glass_55_fbf9ee_1x400.png",
|
35
|
+
"app/assets/images/comfortable_mexican_sofa/jquery_ui/ui-bg_glass_65_ffffff_1x400.png",
|
36
|
+
"app/assets/images/comfortable_mexican_sofa/jquery_ui/ui-bg_glass_75_dadada_1x400.png",
|
37
|
+
"app/assets/images/comfortable_mexican_sofa/jquery_ui/ui-bg_glass_75_e6e6e6_1x400.png",
|
38
|
+
"app/assets/images/comfortable_mexican_sofa/jquery_ui/ui-bg_glass_95_fef1ec_1x400.png",
|
39
|
+
"app/assets/images/comfortable_mexican_sofa/jquery_ui/ui-bg_highlight-soft_75_cccccc_1x100.png",
|
40
|
+
"app/assets/images/comfortable_mexican_sofa/jquery_ui/ui-icons_222222_256x240.png",
|
41
|
+
"app/assets/images/comfortable_mexican_sofa/jquery_ui/ui-icons_2e83ff_256x240.png",
|
42
|
+
"app/assets/images/comfortable_mexican_sofa/jquery_ui/ui-icons_454545_256x240.png",
|
43
|
+
"app/assets/images/comfortable_mexican_sofa/jquery_ui/ui-icons_888888_256x240.png",
|
44
|
+
"app/assets/images/comfortable_mexican_sofa/jquery_ui/ui-icons_cd0a0a_256x240.png",
|
32
45
|
"app/assets/images/comfortable_mexican_sofa/wym_icons.png",
|
33
46
|
"app/assets/javascripts/comfortable_mexican_sofa/application.js",
|
34
47
|
"app/assets/javascripts/comfortable_mexican_sofa/codemirror/codemirror.js",
|
@@ -79,6 +92,7 @@ Gem::Specification.new do |s|
|
|
79
92
|
"app/assets/stylesheets/comfortable_mexican_sofa/codemirror.css",
|
80
93
|
"app/assets/stylesheets/comfortable_mexican_sofa/content.css",
|
81
94
|
"app/assets/stylesheets/comfortable_mexican_sofa/form.css",
|
95
|
+
"app/assets/stylesheets/comfortable_mexican_sofa/jquery_ui.css",
|
82
96
|
"app/assets/stylesheets/comfortable_mexican_sofa/reset.css",
|
83
97
|
"app/assets/stylesheets/comfortable_mexican_sofa/structure.css",
|
84
98
|
"app/assets/stylesheets/comfortable_mexican_sofa/typography.css",
|
@@ -200,10 +214,6 @@ Gem::Specification.new do |s|
|
|
200
214
|
"lib/generators/README",
|
201
215
|
"lib/generators/cms_generator.rb",
|
202
216
|
"lib/tasks/comfortable_mexican_sofa.rake",
|
203
|
-
"public/422.html",
|
204
|
-
"public/500.html",
|
205
|
-
"public/favicon.ico",
|
206
|
-
"public/robots.txt",
|
207
217
|
"script/rails",
|
208
218
|
"test/fixtures/cms/blocks.yml",
|
209
219
|
"test/fixtures/cms/layouts.yml",
|
@@ -2,12 +2,12 @@ class UpgradeTo130 < ActiveRecord::Migration
|
|
2
2
|
def self.up
|
3
3
|
add_column :cms_sites, :is_mirrored, :boolean, :null => false, :default => false
|
4
4
|
add_column :cms_sites, :path, :string
|
5
|
-
add_column :cms_sites, :locale, :string, :
|
6
|
-
add_index :cms_sites, :is_mirrored
|
5
|
+
add_column :cms_sites, :locale, :string, :null => false, :default => 'en'
|
6
|
+
add_index :cms_sites, :is_mirrored
|
7
7
|
|
8
|
-
add_column :cms_layouts, :is_shared, :null => false, :default => false
|
9
|
-
add_column :cms_pages, :is_shared, :null => false, :default => false
|
10
|
-
add_column :cms_snippets, :is_shared, :null => false, :default => false
|
8
|
+
add_column :cms_layouts, :is_shared, :boolean, :null => false, :default => false
|
9
|
+
add_column :cms_pages, :is_shared, :boolean, :null => false, :default => false
|
10
|
+
add_column :cms_snippets, :is_shared, :boolean, :null => false, :default => false
|
11
11
|
end
|
12
12
|
|
13
13
|
def self.down
|
@@ -32,6 +32,8 @@ class CmsGenerator < Rails::Generators::Base
|
|
32
32
|
'/assets/comfortable_mexican_sofa/', '/images/comfortable_mexican_sofa/'
|
33
33
|
gsub_file 'public/stylesheets/comfortable_mexican_sofa/widgets.css',
|
34
34
|
'/assets/comfortable_mexican_sofa/', '/images/comfortable_mexican_sofa/'
|
35
|
+
gsub_file 'public/stylesheets/comfortable_mexican_sofa/jquery_ui.css',
|
36
|
+
'/assets/comfortable_mexican_sofa/', '/images/comfortable_mexican_sofa/'
|
35
37
|
end
|
36
38
|
|
37
39
|
def generate_cms_seeds
|
@@ -49,7 +49,7 @@ class CmsAdmin::SitesControllerTest < ActionController::TestCase
|
|
49
49
|
}
|
50
50
|
assert_response :redirect
|
51
51
|
site = Cms::Site.last
|
52
|
-
assert_redirected_to
|
52
|
+
assert_redirected_to cms_admin_site_layouts_path(site)
|
53
53
|
assert_equal 'Site created', flash[:notice]
|
54
54
|
end
|
55
55
|
end
|
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.3.
|
4
|
+
version: 1.3.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -10,12 +10,12 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2011-07-
|
13
|
+
date: 2011-07-10 00:00:00.000000000 -04:00
|
14
14
|
default_executable:
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: rails
|
18
|
-
requirement: &
|
18
|
+
requirement: &70107226381460 !ruby/object:Gem::Requirement
|
19
19
|
none: false
|
20
20
|
requirements:
|
21
21
|
- - ! '>='
|
@@ -23,10 +23,10 @@ dependencies:
|
|
23
23
|
version: 3.0.0
|
24
24
|
type: :runtime
|
25
25
|
prerelease: false
|
26
|
-
version_requirements: *
|
26
|
+
version_requirements: *70107226381460
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: active_link_to
|
29
|
-
requirement: &
|
29
|
+
requirement: &70107226380760 !ruby/object:Gem::Requirement
|
30
30
|
none: false
|
31
31
|
requirements:
|
32
32
|
- - ! '>='
|
@@ -34,10 +34,10 @@ dependencies:
|
|
34
34
|
version: 0.0.8
|
35
35
|
type: :runtime
|
36
36
|
prerelease: false
|
37
|
-
version_requirements: *
|
37
|
+
version_requirements: *70107226380760
|
38
38
|
- !ruby/object:Gem::Dependency
|
39
39
|
name: paperclip
|
40
|
-
requirement: &
|
40
|
+
requirement: &70107226380140 !ruby/object:Gem::Requirement
|
41
41
|
none: false
|
42
42
|
requirements:
|
43
43
|
- - ! '>='
|
@@ -45,7 +45,7 @@ dependencies:
|
|
45
45
|
version: 2.3.14
|
46
46
|
type: :runtime
|
47
47
|
prerelease: false
|
48
|
-
version_requirements: *
|
48
|
+
version_requirements: *70107226380140
|
49
49
|
description: ''
|
50
50
|
email: oleg@theworkinggroup.ca
|
51
51
|
executables: []
|
@@ -66,6 +66,19 @@ files:
|
|
66
66
|
- app/assets/images/comfortable_mexican_sofa/icon_move.gif
|
67
67
|
- app/assets/images/comfortable_mexican_sofa/icon_regular.gif
|
68
68
|
- app/assets/images/comfortable_mexican_sofa/icon_snippet.gif
|
69
|
+
- app/assets/images/comfortable_mexican_sofa/jquery_ui/ui-bg_flat_0_aaaaaa_40x100.png
|
70
|
+
- app/assets/images/comfortable_mexican_sofa/jquery_ui/ui-bg_flat_75_ffffff_40x100.png
|
71
|
+
- app/assets/images/comfortable_mexican_sofa/jquery_ui/ui-bg_glass_55_fbf9ee_1x400.png
|
72
|
+
- app/assets/images/comfortable_mexican_sofa/jquery_ui/ui-bg_glass_65_ffffff_1x400.png
|
73
|
+
- app/assets/images/comfortable_mexican_sofa/jquery_ui/ui-bg_glass_75_dadada_1x400.png
|
74
|
+
- app/assets/images/comfortable_mexican_sofa/jquery_ui/ui-bg_glass_75_e6e6e6_1x400.png
|
75
|
+
- app/assets/images/comfortable_mexican_sofa/jquery_ui/ui-bg_glass_95_fef1ec_1x400.png
|
76
|
+
- app/assets/images/comfortable_mexican_sofa/jquery_ui/ui-bg_highlight-soft_75_cccccc_1x100.png
|
77
|
+
- app/assets/images/comfortable_mexican_sofa/jquery_ui/ui-icons_222222_256x240.png
|
78
|
+
- app/assets/images/comfortable_mexican_sofa/jquery_ui/ui-icons_2e83ff_256x240.png
|
79
|
+
- app/assets/images/comfortable_mexican_sofa/jquery_ui/ui-icons_454545_256x240.png
|
80
|
+
- app/assets/images/comfortable_mexican_sofa/jquery_ui/ui-icons_888888_256x240.png
|
81
|
+
- app/assets/images/comfortable_mexican_sofa/jquery_ui/ui-icons_cd0a0a_256x240.png
|
69
82
|
- app/assets/images/comfortable_mexican_sofa/wym_icons.png
|
70
83
|
- app/assets/javascripts/comfortable_mexican_sofa/application.js
|
71
84
|
- app/assets/javascripts/comfortable_mexican_sofa/codemirror/codemirror.js
|
@@ -116,6 +129,7 @@ files:
|
|
116
129
|
- app/assets/stylesheets/comfortable_mexican_sofa/codemirror.css
|
117
130
|
- app/assets/stylesheets/comfortable_mexican_sofa/content.css
|
118
131
|
- app/assets/stylesheets/comfortable_mexican_sofa/form.css
|
132
|
+
- app/assets/stylesheets/comfortable_mexican_sofa/jquery_ui.css
|
119
133
|
- app/assets/stylesheets/comfortable_mexican_sofa/reset.css
|
120
134
|
- app/assets/stylesheets/comfortable_mexican_sofa/structure.css
|
121
135
|
- app/assets/stylesheets/comfortable_mexican_sofa/typography.css
|
@@ -237,10 +251,6 @@ files:
|
|
237
251
|
- lib/generators/README
|
238
252
|
- lib/generators/cms_generator.rb
|
239
253
|
- lib/tasks/comfortable_mexican_sofa.rake
|
240
|
-
- public/422.html
|
241
|
-
- public/500.html
|
242
|
-
- public/favicon.ico
|
243
|
-
- public/robots.txt
|
244
254
|
- script/rails
|
245
255
|
- test/fixtures/cms/blocks.yml
|
246
256
|
- test/fixtures/cms/layouts.yml
|
@@ -311,7 +321,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
311
321
|
version: '0'
|
312
322
|
segments:
|
313
323
|
- 0
|
314
|
-
hash:
|
324
|
+
hash: 1116101950145069320
|
315
325
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
316
326
|
none: false
|
317
327
|
requirements:
|
data/public/422.html
DELETED
@@ -1,26 +0,0 @@
|
|
1
|
-
<!DOCTYPE html>
|
2
|
-
<html>
|
3
|
-
<head>
|
4
|
-
<title>The change you wanted was rejected (422)</title>
|
5
|
-
<style type="text/css">
|
6
|
-
body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
|
7
|
-
div.dialog {
|
8
|
-
width: 25em;
|
9
|
-
padding: 0 4em;
|
10
|
-
margin: 4em auto 0 auto;
|
11
|
-
border: 1px solid #ccc;
|
12
|
-
border-right-color: #999;
|
13
|
-
border-bottom-color: #999;
|
14
|
-
}
|
15
|
-
h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
|
16
|
-
</style>
|
17
|
-
</head>
|
18
|
-
|
19
|
-
<body>
|
20
|
-
<!-- This file lives in public/422.html -->
|
21
|
-
<div class="dialog">
|
22
|
-
<h1>The change you wanted was rejected.</h1>
|
23
|
-
<p>Maybe you tried to change something you didn't have access to.</p>
|
24
|
-
</div>
|
25
|
-
</body>
|
26
|
-
</html>
|
data/public/500.html
DELETED
@@ -1,26 +0,0 @@
|
|
1
|
-
<!DOCTYPE html>
|
2
|
-
<html>
|
3
|
-
<head>
|
4
|
-
<title>We're sorry, but something went wrong (500)</title>
|
5
|
-
<style type="text/css">
|
6
|
-
body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
|
7
|
-
div.dialog {
|
8
|
-
width: 25em;
|
9
|
-
padding: 0 4em;
|
10
|
-
margin: 4em auto 0 auto;
|
11
|
-
border: 1px solid #ccc;
|
12
|
-
border-right-color: #999;
|
13
|
-
border-bottom-color: #999;
|
14
|
-
}
|
15
|
-
h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
|
16
|
-
</style>
|
17
|
-
</head>
|
18
|
-
|
19
|
-
<body>
|
20
|
-
<!-- This file lives in public/500.html -->
|
21
|
-
<div class="dialog">
|
22
|
-
<h1>We're sorry, but something went wrong.</h1>
|
23
|
-
<p>We've been notified about this issue and we'll take a look at it shortly.</p>
|
24
|
-
</div>
|
25
|
-
</body>
|
26
|
-
</html>
|
data/public/favicon.ico
DELETED
File without changes
|