comfortable_mexican_sofa 1.4.9 → 1.4.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/VERSION +1 -1
- data/app/views/cms_admin/pages/_form.html.erb +1 -2
- data/comfortable_mexican_sofa.gemspec +2 -2
- data/db/migrate/01_create_cms.rb +0 -8
- data/db/migrate/upgrades/02_upgrade_to_1_1_0.rb +0 -2
- data/db/migrate/upgrades/03_upgrade_to_1_2_0.rb +0 -2
- data/db/migrate/upgrades/04_upgrade_to_1_3_0.rb +0 -2
- data/db/migrate/upgrades/05_upgrade_to_1_4_0.rb +0 -2
- data/lib/comfortable_mexican_sofa/controller_methods.rb +1 -1
- data/lib/comfortable_mexican_sofa/fixtures.rb +2 -2
- metadata +9 -9
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.4.
|
|
1
|
+
1.4.10
|
|
@@ -25,12 +25,11 @@
|
|
|
25
25
|
<%= form.select :target_page_id, [["---- #{t('.select_target_page')} ----", nil]] + options %>
|
|
26
26
|
<% end %>
|
|
27
27
|
<%= cms_hook :page_form, :object => form %>
|
|
28
|
+
<%= render :partial => 'cms_admin/categories/form', :object => form %>
|
|
28
29
|
</div>
|
|
29
30
|
|
|
30
31
|
<%= render :partial => 'form_blocks' %>
|
|
31
32
|
|
|
32
|
-
<%= render :partial => 'cms_admin/categories/form', :object => form %>
|
|
33
|
-
|
|
34
33
|
<%= form.simple_field nil, nil, :class => 'submit_element' do %>
|
|
35
34
|
<%= form.check_box :is_published, :disable_builder => true %>
|
|
36
35
|
<%= form.label_for :is_published %>
|
|
@@ -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.4.
|
|
8
|
+
s.version = "1.4.10"
|
|
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-09-
|
|
12
|
+
s.date = %q{2011-09-09}
|
|
13
13
|
s.description = %q{}
|
|
14
14
|
s.email = %q{oleg@theworkinggroup.ca}
|
|
15
15
|
s.extra_rdoc_files = [
|
data/db/migrate/01_create_cms.rb
CHANGED
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
class CreateCms < ActiveRecord::Migration
|
|
2
2
|
|
|
3
3
|
def self.up
|
|
4
|
-
|
|
5
|
-
ComfortableMexicanSofa.establish_connection(ActiveRecord::Base)
|
|
6
|
-
|
|
7
4
|
# -- Sites --------------------------------------------------------------
|
|
8
5
|
create_table :cms_sites do |t|
|
|
9
6
|
t.string :label
|
|
@@ -107,13 +104,9 @@ class CreateCms < ActiveRecord::Migration
|
|
|
107
104
|
end
|
|
108
105
|
add_index :cms_categorizations, [:category_id, :categorized_type, :categorized_id], :unique => true,
|
|
109
106
|
:name => 'index_cms_categorizations_on_cat_id_and_catd_type_and_catd_id'
|
|
110
|
-
|
|
111
107
|
end
|
|
112
108
|
|
|
113
109
|
def self.down
|
|
114
|
-
|
|
115
|
-
ComfortableMexicanSofa.establish_connection(ActiveRecord::Base)
|
|
116
|
-
|
|
117
110
|
drop_table :cms_sites
|
|
118
111
|
drop_table :cms_layouts
|
|
119
112
|
drop_table :cms_pages
|
|
@@ -123,6 +116,5 @@ class CreateCms < ActiveRecord::Migration
|
|
|
123
116
|
drop_table :cms_revisions
|
|
124
117
|
drop_table :cms_categories
|
|
125
118
|
drop_table :cms_categorizations
|
|
126
|
-
|
|
127
119
|
end
|
|
128
120
|
end
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
class UpgradeTo110 < ActiveRecord::Migration
|
|
2
2
|
def self.up
|
|
3
|
-
ComfortableMexicanSofa.establish_connection(ActiveRecord::Base)
|
|
4
3
|
rename_column :cms_layouts, :cms_site_id, :site_id
|
|
5
4
|
rename_column :cms_pages, :cms_site_id, :site_id
|
|
6
5
|
rename_column :cms_pages, :cms_layout_id, :layout_id
|
|
@@ -10,7 +9,6 @@ class UpgradeTo110 < ActiveRecord::Migration
|
|
|
10
9
|
end
|
|
11
10
|
|
|
12
11
|
def self.down
|
|
13
|
-
ComfortableMexicanSofa.establish_connection(ActiveRecord::Base)
|
|
14
12
|
rename_column :cms_uploads, :site_id, :cms_site_id
|
|
15
13
|
rename_column :cms_snippets, :site_id, :cms_site_id
|
|
16
14
|
rename_column :cms_blocks, :page_id, :cms_page_id
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
class UpgradeTo120 < ActiveRecord::Migration
|
|
2
2
|
def self.up
|
|
3
|
-
ComfortableMexicanSofa.establish_connection(ActiveRecord::Base)
|
|
4
3
|
create_table :cms_revisions, :force => true do |t|
|
|
5
4
|
t.string :record_type
|
|
6
5
|
t.integer :record_id
|
|
@@ -11,7 +10,6 @@ class UpgradeTo120 < ActiveRecord::Migration
|
|
|
11
10
|
end
|
|
12
11
|
|
|
13
12
|
def self.down
|
|
14
|
-
ComfortableMexicanSofa.establish_connection(ActiveRecord::Base)
|
|
15
13
|
drop_table :cms_revisions
|
|
16
14
|
end
|
|
17
15
|
end
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
class UpgradeTo130 < ActiveRecord::Migration
|
|
2
2
|
def self.up
|
|
3
|
-
ComfortableMexicanSofa.establish_connection(ActiveRecord::Base)
|
|
4
3
|
add_column :cms_sites, :is_mirrored, :boolean, :null => false, :default => false
|
|
5
4
|
add_column :cms_sites, :path, :string
|
|
6
5
|
add_column :cms_sites, :locale, :string, :null => false, :default => 'en'
|
|
@@ -12,7 +11,6 @@ class UpgradeTo130 < ActiveRecord::Migration
|
|
|
12
11
|
end
|
|
13
12
|
|
|
14
13
|
def self.down
|
|
15
|
-
ComfortableMexicanSofa.establish_connection(ActiveRecord::Base)
|
|
16
14
|
remove_index :cms_sites, :is_mirrored
|
|
17
15
|
remove_column :cms_sites, :path
|
|
18
16
|
remove_column :cms_sites, :is_mirrored
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
class UpgradeTo140 < ActiveRecord::Migration
|
|
2
2
|
def self.up
|
|
3
|
-
ComfortableMexicanSofa.establish_connection(ActiveRecord::Base)
|
|
4
3
|
rename_table :cms_uploads, :cms_files
|
|
5
4
|
add_column :cms_files, :label, :string
|
|
6
5
|
add_column :cms_files, :description, :string, :limit => 2048
|
|
@@ -23,7 +22,6 @@ class UpgradeTo140 < ActiveRecord::Migration
|
|
|
23
22
|
end
|
|
24
23
|
|
|
25
24
|
def self.down
|
|
26
|
-
ComfortableMexicanSofa.establish_connection(ActiveRecord::Base)
|
|
27
25
|
remove_index :cms_files, [:site_id, :label]
|
|
28
26
|
remove_column :cms_files, :description
|
|
29
27
|
remove_column :cms_files, :label
|
|
@@ -20,7 +20,7 @@ module ComfortableMexicanSofa::ControllerMethods
|
|
|
20
20
|
# by the cms page and/or layout)
|
|
21
21
|
def render(options = {}, locals = {}, &block)
|
|
22
22
|
if options.is_a?(Hash) && path = options.delete(:cms_page)
|
|
23
|
-
site = Cms::Site.
|
|
23
|
+
site = Cms::Site.find_site(request.host.downcase, request.fullpath)
|
|
24
24
|
page = site && site.pages.find_by_full_path(path)
|
|
25
25
|
if page
|
|
26
26
|
cms_app_layout = page.layout.try(:app_layout)
|
|
@@ -65,7 +65,7 @@ module ComfortableMexicanSofa::Fixtures
|
|
|
65
65
|
site.layouts.where('id NOT IN (?)', layout_ids.uniq).each{ |l| l.destroy } if root
|
|
66
66
|
|
|
67
67
|
# returning ids of layouts in fixtures
|
|
68
|
-
layout_ids
|
|
68
|
+
layout_ids.uniq
|
|
69
69
|
end
|
|
70
70
|
|
|
71
71
|
def self.import_pages(to_hostname, from_hostname = nil, path = nil, root = true, parent = nil, page_ids = [])
|
|
@@ -122,7 +122,7 @@ module ComfortableMexicanSofa::Fixtures
|
|
|
122
122
|
site.pages.where('id NOT IN (?)', page_ids.uniq).each{ |p| p.destroy } if root
|
|
123
123
|
|
|
124
124
|
# returning ids of layouts in fixtures
|
|
125
|
-
page_ids
|
|
125
|
+
page_ids.uniq
|
|
126
126
|
end
|
|
127
127
|
|
|
128
128
|
def self.import_snippets(to_hostname, from_hostname = nil)
|
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.4.
|
|
4
|
+
version: 1.4.10
|
|
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-09-
|
|
13
|
+
date: 2011-09-09 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: &70241019987880 !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: *70241019987880
|
|
27
27
|
- !ruby/object:Gem::Dependency
|
|
28
28
|
name: active_link_to
|
|
29
|
-
requirement: &
|
|
29
|
+
requirement: &70241019987160 !ruby/object:Gem::Requirement
|
|
30
30
|
none: false
|
|
31
31
|
requirements:
|
|
32
32
|
- - ! '>='
|
|
@@ -34,10 +34,10 @@ dependencies:
|
|
|
34
34
|
version: 1.0.0
|
|
35
35
|
type: :runtime
|
|
36
36
|
prerelease: false
|
|
37
|
-
version_requirements: *
|
|
37
|
+
version_requirements: *70241019987160
|
|
38
38
|
- !ruby/object:Gem::Dependency
|
|
39
39
|
name: paperclip
|
|
40
|
-
requirement: &
|
|
40
|
+
requirement: &70241019986320 !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: *70241019986320
|
|
49
49
|
description: ''
|
|
50
50
|
email: oleg@theworkinggroup.ca
|
|
51
51
|
executables: []
|
|
@@ -347,7 +347,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
347
347
|
version: '0'
|
|
348
348
|
segments:
|
|
349
349
|
- 0
|
|
350
|
-
hash:
|
|
350
|
+
hash: -1886242251632818290
|
|
351
351
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
352
352
|
none: false
|
|
353
353
|
requirements:
|