spud_cms 0.9.21 → 1.0.0.RC1
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.
- checksums.yaml +6 -14
- data/app/assets/javascripts/spud/admin/cms/menu_items.js +31 -3
- data/app/assets/stylesheets/spud/admin/cms/application.css +4 -0
- data/app/controllers/pages_controller.rb +5 -8
- data/app/controllers/spud/admin/menu_items_controller.rb +28 -6
- data/app/controllers/spud/admin/menus_controller.rb +6 -2
- data/app/controllers/spud/admin/pages_controller.rb +13 -6
- data/app/controllers/spud/admin/snippets_controller.rb +7 -3
- data/app/controllers/spud/cms/sitemaps_controller.rb +0 -2
- data/app/helpers/spud/cms/application_helper.rb +6 -4
- data/app/models/concerns/spud/liquid_taggable.rb +8 -0
- data/app/models/spud_menu.rb +4 -4
- data/app/models/spud_menu_item.rb +2 -5
- data/app/models/spud_page.rb +9 -12
- data/app/models/spud_page_liquid_tag.rb +1 -2
- data/app/models/spud_page_partial.rb +14 -6
- data/app/models/spud_page_partial_revision.rb +1 -4
- data/app/models/spud_snippet.rb +22 -4
- data/app/observers/page_sweeper.rb +2 -0
- data/app/views/pages/show.html.erb +7 -2
- data/app/views/spud/admin/menu_items/_form.html.erb +3 -10
- data/app/views/spud/admin/menu_items/_menu_item_row.html.erb +2 -2
- data/app/views/spud/admin/menu_items/index.html.erb +3 -1
- data/app/views/spud/admin/pages/_form.html.erb +8 -1
- data/app/views/spud/admin/pages/show.html.erb +13 -11
- data/app/views/spud/admin/snippets/_form.html.erb +8 -1
- data/config/routes.rb +7 -2
- data/lib/spud_cms/engine.rb +11 -8
- data/lib/spud_cms/liquid_taggable.rb +28 -0
- data/lib/spud_cms/page_route.rb +2 -2
- data/lib/spud_cms/version.rb +1 -1
- data/spec/controllers/pages_controller_spec.rb +5 -2
- data/spec/controllers/spud/cms/sitemaps_controller_spec.rb +3 -2
- data/spec/dummy/config/environments/development.rb +2 -4
- data/spec/dummy/config/environments/production.rb +1 -1
- data/spec/dummy/config/environments/test.rb +2 -4
- data/spec/dummy/log/test.log +19992 -4353
- data/spec/models/spud_page_partial_spec.rb +3 -3
- data/spec/models/spud_page_spec.rb +3 -3
- metadata +36 -36
- data/spec/dummy/log/development.log +0 -182
@@ -16,12 +16,12 @@ describe SpudPagePartial do
|
|
16
16
|
|
17
17
|
describe "save hooks" do
|
18
18
|
it "should save the symbol name" do
|
19
|
-
p =
|
19
|
+
p = FactoryGirl.create(:spud_page_partial,:name => "Test Page")
|
20
20
|
p.attributes["symbol_name"].should == "test_page"
|
21
21
|
end
|
22
22
|
|
23
23
|
it "should create a new revision if content is changed" do
|
24
|
-
p =
|
24
|
+
p = FactoryGirl.create(:spud_page_partial,:name => "Test Page",:content =>"Home Sweet Home",:spud_page_id => 1)
|
25
25
|
SpudPagePartialRevision.where(:spud_page_id => 1,:name => "Test Page").count.should == 1
|
26
26
|
end
|
27
27
|
|
@@ -29,7 +29,7 @@ describe SpudPagePartial do
|
|
29
29
|
Spud::Cms.configure do |config|
|
30
30
|
config.max_revisions = 2
|
31
31
|
end
|
32
|
-
p =
|
32
|
+
p = FactoryGirl.create(:spud_page_partial,:name => "Test Page",:content =>"Home Sweet Home",:spud_page_id => 1)
|
33
33
|
p.content = "Nah"
|
34
34
|
p.save
|
35
35
|
|
@@ -16,13 +16,13 @@ describe SpudPage do
|
|
16
16
|
end
|
17
17
|
|
18
18
|
it "should require a unique url_name" do
|
19
|
-
|
19
|
+
FactoryGirl.create(:spud_page, :url_name => "test", :use_custom_url_name => true)
|
20
20
|
t = FactoryGirl.build(:spud_page, :url_name => "test", :use_custom_url_name => true)
|
21
21
|
t.should_not be_valid
|
22
22
|
end
|
23
23
|
|
24
24
|
it "should generate a url_name if taken" do
|
25
|
-
|
25
|
+
FactoryGirl.create(:spud_page, :name => "test")
|
26
26
|
t = FactoryGirl.build(:spud_page, :name => "test")
|
27
27
|
lambda {
|
28
28
|
t.valid?
|
@@ -30,7 +30,7 @@ describe SpudPage do
|
|
30
30
|
end
|
31
31
|
|
32
32
|
it "should dependantly destroy page_partials" do
|
33
|
-
t =
|
33
|
+
t = FactoryGirl.create(:spud_page, :spud_page_partials => [SpudPagePartial.new(:name => "body")])
|
34
34
|
lambda {
|
35
35
|
t.destroy
|
36
36
|
}.should change(SpudPagePartial, :count).from(1).to(0)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: spud_cms
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 1.0.0.RC1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Estes
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2014-01-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -16,84 +16,84 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ~>
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: 4.0.0.beta1
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - ~>
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
26
|
+
version: 4.0.0.beta1
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: spud_core
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- -
|
31
|
+
- - '>='
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 0.
|
33
|
+
version: 1.0.0.rc1
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- -
|
38
|
+
- - '>='
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 0.
|
40
|
+
version: 1.0.0.rc1
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: spud_permalinks
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- -
|
45
|
+
- - '>='
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: 0.
|
47
|
+
version: 1.0.0.rc1
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- -
|
52
|
+
- - '>='
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: 0.
|
54
|
+
version: 1.0.0.rc1
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: liquid
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- -
|
59
|
+
- - '>='
|
60
60
|
- !ruby/object:Gem::Version
|
61
61
|
version: '0'
|
62
62
|
type: :runtime
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- -
|
66
|
+
- - '>='
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '0'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: codemirror-rails
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
|
-
- -
|
73
|
+
- - '>='
|
74
74
|
- !ruby/object:Gem::Version
|
75
75
|
version: '0'
|
76
76
|
type: :runtime
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
|
-
- -
|
80
|
+
- - '>='
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: '0'
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: mysql2
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
|
-
- - '
|
87
|
+
- - '>='
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version: 0
|
89
|
+
version: '0'
|
90
90
|
type: :development
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
|
-
- - '
|
94
|
+
- - '>='
|
95
95
|
- !ruby/object:Gem::Version
|
96
|
-
version: 0
|
96
|
+
version: '0'
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
98
|
name: rspec
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
@@ -140,44 +140,44 @@ dependencies:
|
|
140
140
|
name: factory_girl
|
141
141
|
requirement: !ruby/object:Gem::Requirement
|
142
142
|
requirements:
|
143
|
-
- -
|
143
|
+
- - ~>
|
144
144
|
- !ruby/object:Gem::Version
|
145
|
-
version:
|
145
|
+
version: '3.0'
|
146
146
|
type: :development
|
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:
|
152
|
+
version: '3.0'
|
153
153
|
- !ruby/object:Gem::Dependency
|
154
|
-
name:
|
154
|
+
name: database_cleaner
|
155
155
|
requirement: !ruby/object:Gem::Requirement
|
156
156
|
requirements:
|
157
157
|
- - '='
|
158
158
|
- !ruby/object:Gem::Version
|
159
|
-
version: 0.
|
159
|
+
version: 1.0.0.RC1
|
160
160
|
type: :development
|
161
161
|
prerelease: false
|
162
162
|
version_requirements: !ruby/object:Gem::Requirement
|
163
163
|
requirements:
|
164
164
|
- - '='
|
165
165
|
- !ruby/object:Gem::Version
|
166
|
-
version: 0.
|
166
|
+
version: 1.0.0.RC1
|
167
167
|
- !ruby/object:Gem::Dependency
|
168
|
-
name:
|
168
|
+
name: mocha
|
169
169
|
requirement: !ruby/object:Gem::Requirement
|
170
170
|
requirements:
|
171
171
|
- - '='
|
172
172
|
- !ruby/object:Gem::Version
|
173
|
-
version: 0.
|
173
|
+
version: 0.14.0
|
174
174
|
type: :development
|
175
175
|
prerelease: false
|
176
176
|
version_requirements: !ruby/object:Gem::Requirement
|
177
177
|
requirements:
|
178
178
|
- - '='
|
179
179
|
- !ruby/object:Gem::Version
|
180
|
-
version: 0.
|
180
|
+
version: 0.14.0
|
181
181
|
- !ruby/object:Gem::Dependency
|
182
182
|
name: simplecov
|
183
183
|
requirement: !ruby/object:Gem::Requirement
|
@@ -224,6 +224,7 @@ files:
|
|
224
224
|
- app/controllers/spud/admin/snippets_controller.rb
|
225
225
|
- app/controllers/spud/cms/sitemaps_controller.rb
|
226
226
|
- app/helpers/spud/cms/application_helper.rb
|
227
|
+
- app/models/concerns/spud/liquid_taggable.rb
|
227
228
|
- app/models/spud_menu.rb
|
228
229
|
- app/models/spud_menu_item.rb
|
229
230
|
- app/models/spud_page.rb
|
@@ -288,6 +289,7 @@ files:
|
|
288
289
|
- lib/spud_cms/configuration.rb
|
289
290
|
- lib/spud_cms/engine.rb
|
290
291
|
- lib/spud_cms/liquid_snippet.rb
|
292
|
+
- lib/spud_cms/liquid_taggable.rb
|
291
293
|
- lib/spud_cms/page_route.rb
|
292
294
|
- lib/spud_cms/template_parser.rb
|
293
295
|
- lib/spud_cms/test_files.rb
|
@@ -334,7 +336,6 @@ files:
|
|
334
336
|
- spec/dummy/db/migrate/20120610123557_create_spud_user_settings.spud_core.rb
|
335
337
|
- spec/dummy/db/migrate/20120610123615_add_site_id_to_spud_permalinks.spud_permalinks.rb
|
336
338
|
- spec/dummy/db/schema.rb
|
337
|
-
- spec/dummy/log/development.log
|
338
339
|
- spec/dummy/log/test.log
|
339
340
|
- spec/dummy/public/404.html
|
340
341
|
- spec/dummy/public/422.html
|
@@ -361,17 +362,17 @@ require_paths:
|
|
361
362
|
- lib
|
362
363
|
required_ruby_version: !ruby/object:Gem::Requirement
|
363
364
|
requirements:
|
364
|
-
- -
|
365
|
+
- - '>='
|
365
366
|
- !ruby/object:Gem::Version
|
366
367
|
version: '0'
|
367
368
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
368
369
|
requirements:
|
369
|
-
- -
|
370
|
+
- - '>'
|
370
371
|
- !ruby/object:Gem::Version
|
371
|
-
version:
|
372
|
+
version: 1.3.1
|
372
373
|
requirements: []
|
373
374
|
rubyforge_project:
|
374
|
-
rubygems_version: 2.0.
|
375
|
+
rubygems_version: 2.0.5
|
375
376
|
signing_key:
|
376
377
|
specification_version: 4
|
377
378
|
summary: Modular CMS Engine
|
@@ -413,7 +414,6 @@ test_files:
|
|
413
414
|
- spec/dummy/db/migrate/20120610123557_create_spud_user_settings.spud_core.rb
|
414
415
|
- spec/dummy/db/migrate/20120610123615_add_site_id_to_spud_permalinks.spud_permalinks.rb
|
415
416
|
- spec/dummy/db/schema.rb
|
416
|
-
- spec/dummy/log/development.log
|
417
417
|
- spec/dummy/log/test.log
|
418
418
|
- spec/dummy/public/404.html
|
419
419
|
- spec/dummy/public/422.html
|
@@ -1,182 +0,0 @@
|
|
1
|
-
Connecting to database specified by database.yml
|
2
|
-
[1m[36m (39.6ms)[0m [1mCREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB[0m
|
3
|
-
[1m[35m (9.7ms)[0m CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)
|
4
|
-
[1m[36m (1.6ms)[0m [1mSELECT `schema_migrations`.`version` FROM `schema_migrations` [0m
|
5
|
-
Migrating to CreateSpudPages (20120101192412)
|
6
|
-
[1m[35m (32.8ms)[0m CREATE TABLE `spud_pages` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `name` varchar(255), `url_name` varchar(255), `publish_at` datetime, `created_by` int(11), `updated_by` int(11), `format` varchar(255) DEFAULT 'html', `spud_page_id` int(11), `meta_description` text, `meta_keywords` varchar(255), `page_order` int(11), `template_id` int(11), `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB
|
7
|
-
[1m[36m (0.4ms)[0m [1mINSERT INTO `schema_migrations` (`version`) VALUES ('20120101192412')[0m
|
8
|
-
Migrating to CreateSpudMenus (20120101193138)
|
9
|
-
[1m[35m (5.9ms)[0m CREATE TABLE `spud_menus` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `name` varchar(255), `description` text, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB
|
10
|
-
[1m[36m (0.3ms)[0m [1mINSERT INTO `schema_migrations` (`version`) VALUES ('20120101193138')[0m
|
11
|
-
Migrating to CreateSpudMenuItems (20120101193255)
|
12
|
-
[1m[35m (12.6ms)[0m CREATE TABLE `spud_menu_items` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `parent_type` varchar(255), `parent_id` int(11), `item_type` int(11), `spud_page_id` int(11), `menu_order` int(11) DEFAULT 0, `url` varchar(255), `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB
|
13
|
-
[1m[36m (23.3ms)[0m [1mCREATE INDEX `index_spud_menu_items_on_parent_type_and_parent_id` ON `spud_menu_items` (`parent_type`, `parent_id`)[0m
|
14
|
-
[1m[35m (9.4ms)[0m CREATE INDEX `index_spud_menu_items_on_menu_order` ON `spud_menu_items` (`menu_order`)
|
15
|
-
[1m[36m (0.4ms)[0m [1mINSERT INTO `schema_migrations` (`version`) VALUES ('20120101193255')[0m
|
16
|
-
Migrating to CreateSpudTemplates (20120101194124)
|
17
|
-
[1m[35m (15.1ms)[0m CREATE TABLE `spud_templates` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `name` varchar(255), `base_layout` varchar(255), `content` text, `page_parts` text, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB
|
18
|
-
[1m[36m (0.3ms)[0m [1mINSERT INTO `schema_migrations` (`version`) VALUES ('20120101194124')[0m
|
19
|
-
Migrating to CreateSpudPagePartials (20120103034659)
|
20
|
-
[1m[35m (12.0ms)[0m CREATE TABLE `spud_page_partials` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `spud_page_id` int(11), `name` varchar(255), `content` text, `format` varchar(255), `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB
|
21
|
-
[1m[36m (6.5ms)[0m [1mCREATE INDEX `index_spud_page_partials_on_spud_page_id` ON `spud_page_partials` (`spud_page_id`)[0m
|
22
|
-
[1m[35m (0.4ms)[0m INSERT INTO `schema_migrations` (`version`) VALUES ('20120103034659')
|
23
|
-
Migrating to AddVisibilityToSpudPages (20120104194032)
|
24
|
-
[1m[36m (18.7ms)[0m [1mALTER TABLE `spud_pages` ADD `visibility` int(11) DEFAULT 0[0m
|
25
|
-
[1m[35m (11.8ms)[0m ALTER TABLE `spud_pages` ADD `published` tinyint(1) DEFAULT 1
|
26
|
-
[1m[36m (0.3ms)[0m [1mINSERT INTO `schema_migrations` (`version`) VALUES ('20120104194032')[0m
|
27
|
-
Migrating to AddMenuNameToSpudMenuItems (20120107181337)
|
28
|
-
[1m[35m (15.8ms)[0m ALTER TABLE `spud_menu_items` ADD `name` varchar(255)
|
29
|
-
[1m[36m (0.3ms)[0m [1mINSERT INTO `schema_migrations` (`version`) VALUES ('20120107181337')[0m
|
30
|
-
Migrating to AddUseCustomUrlNameToSpudPages (20120111134754)
|
31
|
-
[1m[35m (18.8ms)[0m ALTER TABLE `spud_pages` ADD `use_custom_url_name` tinyint(1) DEFAULT 0
|
32
|
-
[1m[36m (0.4ms)[0m [1mINSERT INTO `schema_migrations` (`version`) VALUES ('20120111134754')[0m
|
33
|
-
Migrating to AddNotesToSpudPages (20120118141852)
|
34
|
-
[1m[35m (16.7ms)[0m ALTER TABLE `spud_pages` ADD `notes` text
|
35
|
-
[1m[36m (0.2ms)[0m [1mINSERT INTO `schema_migrations` (`version`) VALUES ('20120118141852')[0m
|
36
|
-
Migrating to AddMenuIdToSpudMenuItems (20120126232428)
|
37
|
-
[1m[35m (20.2ms)[0m ALTER TABLE `spud_menu_items` ADD `spud_menu_id` int(11)
|
38
|
-
[1m[36m (8.7ms)[0m [1mCREATE INDEX `index_spud_menu_items_on_spud_menu_id` ON `spud_menu_items` (`spud_menu_id`)[0m
|
39
|
-
[1m[35m (0.4ms)[0m INSERT INTO `schema_migrations` (`version`) VALUES ('20120126232428')
|
40
|
-
Migrating to AddClassesToSpudMenuItems (20120128163601)
|
41
|
-
[1m[36m (19.4ms)[0m [1mALTER TABLE `spud_menu_items` ADD `classes` varchar(255)[0m
|
42
|
-
[1m[35m (0.4ms)[0m INSERT INTO `schema_migrations` (`version`) VALUES ('20120128163601')
|
43
|
-
Migrating to CreateSpudAdminPermissions (20120307002859)
|
44
|
-
[1m[36m (9.8ms)[0m [1mCREATE TABLE `spud_admin_permissions` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `user_id` int(11), `name` varchar(255), `access` tinyint(1), `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB[0m
|
45
|
-
[1m[35m (0.3ms)[0m INSERT INTO `schema_migrations` (`version`) VALUES ('20120307002859')
|
46
|
-
Migrating to CreateSpudUsers (20120307002860)
|
47
|
-
[1m[36m (14.7ms)[0m [1mCREATE TABLE `spud_users` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `first_name` varchar(255), `last_name` varchar(255), `super_admin` tinyint(1), `login` varchar(255) NOT NULL, `email` varchar(255) NOT NULL, `crypted_password` varchar(255) NOT NULL, `password_salt` varchar(255) NOT NULL, `persistence_token` varchar(255) NOT NULL, `single_access_token` varchar(255) NOT NULL, `perishable_token` varchar(255) NOT NULL, `login_count` int(11) DEFAULT 0 NOT NULL, `failed_login_count` int(11) DEFAULT 0 NOT NULL, `last_request_at` datetime, `current_login_at` datetime, `last_login_at` datetime, `current_login_ip` varchar(255), `last_login_ip` varchar(255), `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB[0m
|
48
|
-
[1m[35m (24.8ms)[0m CREATE INDEX `index_spud_users_on_login` ON `spud_users` (`login`)
|
49
|
-
[1m[36m (26.8ms)[0m [1mCREATE INDEX `index_spud_users_on_email` ON `spud_users` (`email`)[0m
|
50
|
-
[1m[35m (0.4ms)[0m INSERT INTO `schema_migrations` (`version`) VALUES ('20120307002860')
|
51
|
-
Migrating to CreateSpudPermalinks (20120307003559)
|
52
|
-
[1m[36m (14.7ms)[0m [1mCREATE TABLE `spud_permalinks` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `url_name` varchar(255), `attachment_type` varchar(255), `attachment_id` int(11), `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB[0m
|
53
|
-
[1m[35m (20.8ms)[0m CREATE INDEX `index_spud_permalinks_on_attachment_type_and_attachment_id` ON `spud_permalinks` (`attachment_type`, `attachment_id`)
|
54
|
-
[1m[36m (0.2ms)[0m [1mINSERT INTO `schema_migrations` (`version`) VALUES ('20120307003559')[0m
|
55
|
-
Migrating to AddSiteIdToSpudPages (20120329132314)
|
56
|
-
[1m[35m (29.2ms)[0m ALTER TABLE `spud_pages` ADD `site_id` int(11)
|
57
|
-
[1m[36m (24.1ms)[0m [1mCREATE INDEX `index_spud_pages_on_site_id` ON `spud_pages` (`site_id`)[0m
|
58
|
-
[1m[35m (0.3ms)[0m INSERT INTO `schema_migrations` (`version`) VALUES ('20120329132314')
|
59
|
-
Migrating to AddSiteIdToSpudTemplates (20120329132322)
|
60
|
-
[1m[36m (22.9ms)[0m [1mALTER TABLE `spud_templates` ADD `site_id` int(11)[0m
|
61
|
-
[1m[35m (7.8ms)[0m CREATE INDEX `index_spud_templates_on_site_id` ON `spud_templates` (`site_id`)
|
62
|
-
[1m[36m (0.3ms)[0m [1mINSERT INTO `schema_migrations` (`version`) VALUES ('20120329132322')[0m
|
63
|
-
Migrating to AddSiteIdToSpudMenus (20120329132330)
|
64
|
-
[1m[35m (19.5ms)[0m ALTER TABLE `spud_menus` ADD `site_id` int(11)
|
65
|
-
[1m[36m (9.1ms)[0m [1mCREATE INDEX `index_spud_menus_on_site_id` ON `spud_menus` (`site_id`)[0m
|
66
|
-
[1m[35m (0.4ms)[0m INSERT INTO `schema_migrations` (`version`) VALUES ('20120329132330')
|
67
|
-
Migrating to CreateSpudPagePartialRevisions (20120510195151)
|
68
|
-
[1m[36m (28.1ms)[0m [1mCREATE TABLE `spud_page_partial_revisions` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `name` varchar(255), `content` text, `format` varchar(255), `spud_page_id` int(11), `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB[0m
|
69
|
-
[1m[35m (18.2ms)[0m CREATE INDEX `revision_idx` ON `spud_page_partial_revisions` (`spud_page_id`, `name`)
|
70
|
-
[1m[36m (0.3ms)[0m [1mINSERT INTO `schema_migrations` (`version`) VALUES ('20120510195151')[0m
|
71
|
-
Migrating to AddTimeZoneToSpudUser (20120610123555)
|
72
|
-
[1m[35m (19.8ms)[0m ALTER TABLE `spud_users` ADD `time_zone` varchar(255)
|
73
|
-
[1m[36m (0.3ms)[0m [1mINSERT INTO `schema_migrations` (`version`) VALUES ('20120610123555')[0m
|
74
|
-
Migrating to AddScopeToSpudAdminPermissions (20120610123556)
|
75
|
-
[1m[35m (6.5ms)[0m ALTER TABLE `spud_admin_permissions` ADD `scope` varchar(255)
|
76
|
-
[1m[36m (0.3ms)[0m [1mINSERT INTO `schema_migrations` (`version`) VALUES ('20120610123556')[0m
|
77
|
-
Migrating to CreateSpudUserSettings (20120610123557)
|
78
|
-
[1m[35m (22.0ms)[0m CREATE TABLE `spud_user_settings` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `spud_user_id` int(11), `key` varchar(255), `value` varchar(255), `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB
|
79
|
-
[1m[36m (0.6ms)[0m [1mINSERT INTO `schema_migrations` (`version`) VALUES ('20120610123557')[0m
|
80
|
-
Migrating to AddSiteIdToSpudPermalinks (20120610123615)
|
81
|
-
[1m[35m (22.4ms)[0m ALTER TABLE `spud_permalinks` ADD `site_id` int(11)
|
82
|
-
[1m[36m (23.5ms)[0m [1mCREATE INDEX `index_spud_permalinks_on_site_id` ON `spud_permalinks` (`site_id`)[0m
|
83
|
-
[1m[35m (0.4ms)[0m INSERT INTO `schema_migrations` (`version`) VALUES ('20120610123615')
|
84
|
-
Migrating to AddSymbolNameToSpudPagePartials (20120911190030)
|
85
|
-
[1m[36m (17.5ms)[0m [1mALTER TABLE `spud_page_partials` ADD `symbol_name` varchar(255)[0m
|
86
|
-
[1m[35m (0.5ms)[0m INSERT INTO `schema_migrations` (`version`) VALUES ('20120911190030')
|
87
|
-
Migrating to ModifySiteIdForSpudPages (20120912121313)
|
88
|
-
[1m[36m (15.9ms)[0m [1mALTER TABLE `spud_pages` CHANGE `site_id` `site_id` int(11) DEFAULT 0 NOT NULL[0m
|
89
|
-
[1m[35m (19.2ms)[0m ALTER TABLE `spud_templates` CHANGE `site_id` `site_id` int(11) DEFAULT 0 NOT NULL
|
90
|
-
[1m[36m (18.4ms)[0m [1mALTER TABLE `spud_menus` CHANGE `site_id` `site_id` int(11) DEFAULT 0 NOT NULL[0m
|
91
|
-
Creating scope :public. Overwriting existing method SpudPage.public.
|
92
|
-
[1m[35mSpudPage Load (0.2ms)[0m SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL
|
93
|
-
[1m[36mSpudMenu Load (0.2ms)[0m [1mSELECT `spud_menus`.* FROM `spud_menus` WHERE `spud_menus`.`site_id` IS NULL[0m
|
94
|
-
[1m[35m (0.4ms)[0m INSERT INTO `schema_migrations` (`version`) VALUES ('20120912121313')
|
95
|
-
Migrating to AddContentProcessedToSpudPagePartials (20121016233715)
|
96
|
-
[1m[36m (25.7ms)[0m [1mALTER TABLE `spud_page_partials` ADD `content_processed` text[0m
|
97
|
-
[1m[35m (0.3ms)[0m INSERT INTO `schema_migrations` (`version`) VALUES ('20121016233715')
|
98
|
-
Migrating to AddLayoutToSpudPages (20121112151110)
|
99
|
-
[1m[36m (15.7ms)[0m [1mALTER TABLE `spud_pages` ADD `layout` varchar(255)[0m
|
100
|
-
[1m[35m (14.4ms)[0m ALTER TABLE `spud_pages` DROP `template_id`
|
101
|
-
[1m[36m (0.7ms)[0m [1mDROP TABLE `spud_templates`[0m
|
102
|
-
[1m[35m (0.3ms)[0m INSERT INTO `schema_migrations` (`version`) VALUES ('20121112151110')
|
103
|
-
Migrating to CreateSpudPageLiquidTags (20121112212113)
|
104
|
-
[1m[36m (13.8ms)[0m [1mCREATE TABLE `spud_page_liquid_tags` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `spud_page_partial_id` int(11), `tag_name` varchar(255), `value` varchar(255), `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB[0m
|
105
|
-
[1m[35m (8.0ms)[0m CREATE INDEX `index_spud_page_liquid_tags_on_tag_name_and_value` ON `spud_page_liquid_tags` (`tag_name`, `value`)
|
106
|
-
[1m[36m (0.3ms)[0m [1mINSERT INTO `schema_migrations` (`version`) VALUES ('20121112212113')[0m
|
107
|
-
Migrating to CreateSpudSnippets (20121119025608)
|
108
|
-
[1m[35m (18.4ms)[0m CREATE TABLE `spud_snippets` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `name` varchar(255), `content` text, `format` varchar(255), `content_processed` text, `site_id` int(11) DEFAULT 0, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB
|
109
|
-
[1m[36m (7.3ms)[0m [1mCREATE INDEX `index_spud_snippets_on_site_id` ON `spud_snippets` (`site_id`)[0m
|
110
|
-
[1m[35m (22.3ms)[0m CREATE INDEX `index_spud_snippets_on_name` ON `spud_snippets` (`name`)
|
111
|
-
[1m[36m (0.3ms)[0m [1mINSERT INTO `schema_migrations` (`version`) VALUES ('20121119025608')[0m
|
112
|
-
Migrating to ChangeLiquidTagsToPolymorphic (20121119030136)
|
113
|
-
[1m[35m (0.7ms)[0m SHOW COLUMNS FROM `spud_page_liquid_tags` LIKE 'spud_page_partial_id'
|
114
|
-
[1m[36m (27.0ms)[0m [1mALTER TABLE `spud_page_liquid_tags` CHANGE `spud_page_partial_id` `attachment_id` int(11) DEFAULT NULL[0m
|
115
|
-
[1m[35m (17.5ms)[0m ALTER TABLE `spud_page_liquid_tags` ADD `attachment_type` varchar(255)
|
116
|
-
[1m[36m (13.8ms)[0m [1mCREATE INDEX `index_spud_page_liquid_tags_on_attachment_type_and_attachment_id` ON `spud_page_liquid_tags` (`attachment_type`, `attachment_id`)[0m
|
117
|
-
[1m[35mSpudPageLiquidTag Load (0.1ms)[0m SELECT `spud_page_liquid_tags`.* FROM `spud_page_liquid_tags`
|
118
|
-
[1m[36m (0.3ms)[0m [1mINSERT INTO `schema_migrations` (`version`) VALUES ('20121119030136')[0m
|
119
|
-
[1m[35m (0.2ms)[0m SELECT `schema_migrations`.`version` FROM `schema_migrations`
|
120
|
-
Connecting to database specified by database.yml
|
121
|
-
Creating scope :public. Overwriting existing method SpudPage.public.
|
122
|
-
[1m[36m (1.6ms)[0m [1mSELECT `schema_migrations`.`version` FROM `schema_migrations` [0m
|
123
|
-
[1m[35m (0.3ms)[0m DROP DATABASE IF EXISTS `spud_cms_test`
|
124
|
-
[1m[36m (0.2ms)[0m [1mCREATE DATABASE `spud_cms_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`[0m
|
125
|
-
[1m[35m (51.7ms)[0m CREATE TABLE `spud_admin_permissions` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `user_id` int(11), `name` varchar(255), `access` tinyint(1), `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL, `scope` varchar(255)) ENGINE=InnoDB
|
126
|
-
[1m[36m (11.7ms)[0m [1mCREATE TABLE `spud_menu_items` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `parent_type` varchar(255), `parent_id` int(11), `item_type` int(11), `spud_page_id` int(11), `menu_order` int(11) DEFAULT 0, `url` varchar(255), `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL, `name` varchar(255), `spud_menu_id` int(11), `classes` varchar(255)) ENGINE=InnoDB[0m
|
127
|
-
[1m[35m (10.3ms)[0m CREATE INDEX `index_spud_menu_items_on_menu_order` ON `spud_menu_items` (`menu_order`)
|
128
|
-
[1m[36m (14.0ms)[0m [1mCREATE INDEX `index_spud_menu_items_on_parent_type_and_parent_id` ON `spud_menu_items` (`parent_type`, `parent_id`)[0m
|
129
|
-
[1m[35m (19.8ms)[0m CREATE INDEX `index_spud_menu_items_on_spud_menu_id` ON `spud_menu_items` (`spud_menu_id`)
|
130
|
-
[1m[36m (16.8ms)[0m [1mCREATE TABLE `spud_menus` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `name` varchar(255), `description` text, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL, `site_id` int(11) DEFAULT 0 NOT NULL) ENGINE=InnoDB[0m
|
131
|
-
[1m[35m (6.5ms)[0m CREATE INDEX `index_spud_menus_on_site_id` ON `spud_menus` (`site_id`)
|
132
|
-
[1m[36m (11.8ms)[0m [1mCREATE TABLE `spud_page_liquid_tags` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `attachment_id` int(11), `tag_name` varchar(255), `value` varchar(255), `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL, `attachment_type` varchar(255)) ENGINE=InnoDB[0m
|
133
|
-
[1m[35m (7.1ms)[0m CREATE INDEX `index_spud_page_liquid_tags_on_attachment_type_and_attachment_id` ON `spud_page_liquid_tags` (`attachment_type`, `attachment_id`)
|
134
|
-
[1m[36m (14.2ms)[0m [1mCREATE INDEX `index_spud_page_liquid_tags_on_tag_name_and_value` ON `spud_page_liquid_tags` (`tag_name`, `value`)[0m
|
135
|
-
[1m[35m (14.7ms)[0m CREATE TABLE `spud_page_partial_revisions` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `name` varchar(255), `content` text, `format` varchar(255), `spud_page_id` int(11), `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB
|
136
|
-
[1m[36m (7.0ms)[0m [1mCREATE INDEX `revision_idx` ON `spud_page_partial_revisions` (`spud_page_id`, `name`)[0m
|
137
|
-
[1m[35m (11.2ms)[0m CREATE TABLE `spud_page_partials` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `spud_page_id` int(11), `name` varchar(255), `content` text, `format` varchar(255), `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL, `symbol_name` varchar(255), `content_processed` text) ENGINE=InnoDB
|
138
|
-
[1m[36m (6.9ms)[0m [1mCREATE INDEX `index_spud_page_partials_on_spud_page_id` ON `spud_page_partials` (`spud_page_id`)[0m
|
139
|
-
[1m[35m (11.0ms)[0m CREATE TABLE `spud_pages` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `name` varchar(255), `url_name` varchar(255), `publish_at` datetime, `created_by` int(11), `updated_by` int(11), `format` varchar(255) DEFAULT 'html', `spud_page_id` int(11), `meta_description` text, `meta_keywords` varchar(255), `page_order` int(11), `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL, `visibility` int(11) DEFAULT 0, `published` tinyint(1) DEFAULT 1, `use_custom_url_name` tinyint(1) DEFAULT 0, `notes` text, `site_id` int(11) DEFAULT 0 NOT NULL, `layout` varchar(255)) ENGINE=InnoDB
|
140
|
-
[1m[36m (6.9ms)[0m [1mCREATE INDEX `index_spud_pages_on_site_id` ON `spud_pages` (`site_id`)[0m
|
141
|
-
[1m[35m (10.7ms)[0m CREATE TABLE `spud_permalinks` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `url_name` varchar(255), `attachment_type` varchar(255), `attachment_id` int(11), `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL, `site_id` int(11)) ENGINE=InnoDB
|
142
|
-
[1m[36m (7.0ms)[0m [1mCREATE INDEX `index_spud_permalinks_on_attachment_type_and_attachment_id` ON `spud_permalinks` (`attachment_type`, `attachment_id`)[0m
|
143
|
-
[1m[35m (13.1ms)[0m CREATE INDEX `index_spud_permalinks_on_site_id` ON `spud_permalinks` (`site_id`)
|
144
|
-
[1m[36m (17.6ms)[0m [1mCREATE TABLE `spud_snippets` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `name` varchar(255), `content` text, `format` varchar(255), `content_processed` text, `site_id` int(11) DEFAULT 0, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB[0m
|
145
|
-
[1m[35m (7.7ms)[0m CREATE INDEX `index_spud_snippets_on_name` ON `spud_snippets` (`name`)
|
146
|
-
[1m[36m (21.8ms)[0m [1mCREATE INDEX `index_spud_snippets_on_site_id` ON `spud_snippets` (`site_id`)[0m
|
147
|
-
[1m[35m (16.5ms)[0m CREATE TABLE `spud_user_settings` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `spud_user_id` int(11), `key` varchar(255), `value` varchar(255), `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB
|
148
|
-
[1m[36m (5.6ms)[0m [1mCREATE TABLE `spud_users` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `first_name` varchar(255), `last_name` varchar(255), `super_admin` tinyint(1), `login` varchar(255) NOT NULL, `email` varchar(255) NOT NULL, `crypted_password` varchar(255) NOT NULL, `password_salt` varchar(255) NOT NULL, `persistence_token` varchar(255) NOT NULL, `single_access_token` varchar(255) NOT NULL, `perishable_token` varchar(255) NOT NULL, `login_count` int(11) DEFAULT 0 NOT NULL, `failed_login_count` int(11) DEFAULT 0 NOT NULL, `last_request_at` datetime, `current_login_at` datetime, `last_login_at` datetime, `current_login_ip` varchar(255), `last_login_ip` varchar(255), `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL, `time_zone` varchar(255)) ENGINE=InnoDB[0m
|
149
|
-
[1m[35m (7.0ms)[0m CREATE INDEX `index_spud_users_on_email` ON `spud_users` (`email`)
|
150
|
-
[1m[36m (17.8ms)[0m [1mCREATE INDEX `index_spud_users_on_login` ON `spud_users` (`login`)[0m
|
151
|
-
[1m[35m (15.4ms)[0m CREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB
|
152
|
-
[1m[36m (7.7ms)[0m [1mCREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)[0m
|
153
|
-
[1m[35m (0.2ms)[0m SELECT version FROM `schema_migrations`
|
154
|
-
[1m[36m (0.4ms)[0m [1mINSERT INTO `schema_migrations` (version) VALUES ('20121119030136')[0m
|
155
|
-
[1m[35m (0.3ms)[0m INSERT INTO `schema_migrations` (version) VALUES ('20120307002859')
|
156
|
-
[1m[36m (0.4ms)[0m [1mINSERT INTO `schema_migrations` (version) VALUES ('20120307002860')[0m
|
157
|
-
[1m[35m (0.2ms)[0m INSERT INTO `schema_migrations` (version) VALUES ('20120307003559')
|
158
|
-
[1m[36m (0.2ms)[0m [1mINSERT INTO `schema_migrations` (version) VALUES ('20120610123555')[0m
|
159
|
-
[1m[35m (0.2ms)[0m INSERT INTO `schema_migrations` (version) VALUES ('20120610123556')
|
160
|
-
[1m[36m (0.2ms)[0m [1mINSERT INTO `schema_migrations` (version) VALUES ('20120610123557')[0m
|
161
|
-
[1m[35m (0.2ms)[0m INSERT INTO `schema_migrations` (version) VALUES ('20120610123615')
|
162
|
-
[1m[36m (0.2ms)[0m [1mINSERT INTO `schema_migrations` (version) VALUES ('20120101192412')[0m
|
163
|
-
[1m[35m (0.2ms)[0m INSERT INTO `schema_migrations` (version) VALUES ('20120101193138')
|
164
|
-
[1m[36m (0.2ms)[0m [1mINSERT INTO `schema_migrations` (version) VALUES ('20120101193255')[0m
|
165
|
-
[1m[35m (0.2ms)[0m INSERT INTO `schema_migrations` (version) VALUES ('20120101194124')
|
166
|
-
[1m[36m (0.2ms)[0m [1mINSERT INTO `schema_migrations` (version) VALUES ('20120103034659')[0m
|
167
|
-
[1m[35m (0.2ms)[0m INSERT INTO `schema_migrations` (version) VALUES ('20120104194032')
|
168
|
-
[1m[36m (0.2ms)[0m [1mINSERT INTO `schema_migrations` (version) VALUES ('20120107181337')[0m
|
169
|
-
[1m[35m (0.2ms)[0m INSERT INTO `schema_migrations` (version) VALUES ('20120111134754')
|
170
|
-
[1m[36m (0.2ms)[0m [1mINSERT INTO `schema_migrations` (version) VALUES ('20120118141852')[0m
|
171
|
-
[1m[35m (0.2ms)[0m INSERT INTO `schema_migrations` (version) VALUES ('20120126232428')
|
172
|
-
[1m[36m (0.2ms)[0m [1mINSERT INTO `schema_migrations` (version) VALUES ('20120128163601')[0m
|
173
|
-
[1m[35m (0.2ms)[0m INSERT INTO `schema_migrations` (version) VALUES ('20120329132314')
|
174
|
-
[1m[36m (0.2ms)[0m [1mINSERT INTO `schema_migrations` (version) VALUES ('20120329132322')[0m
|
175
|
-
[1m[35m (0.2ms)[0m INSERT INTO `schema_migrations` (version) VALUES ('20120329132330')
|
176
|
-
[1m[36m (0.2ms)[0m [1mINSERT INTO `schema_migrations` (version) VALUES ('20120510195151')[0m
|
177
|
-
[1m[35m (0.2ms)[0m INSERT INTO `schema_migrations` (version) VALUES ('20120911190030')
|
178
|
-
[1m[36m (0.2ms)[0m [1mINSERT INTO `schema_migrations` (version) VALUES ('20120912121313')[0m
|
179
|
-
[1m[35m (0.2ms)[0m INSERT INTO `schema_migrations` (version) VALUES ('20121016233715')
|
180
|
-
[1m[36m (0.2ms)[0m [1mINSERT INTO `schema_migrations` (version) VALUES ('20121112151110')[0m
|
181
|
-
[1m[35m (0.2ms)[0m INSERT INTO `schema_migrations` (version) VALUES ('20121112212113')
|
182
|
-
[1m[36m (0.2ms)[0m [1mINSERT INTO `schema_migrations` (version) VALUES ('20121119025608')[0m
|