spud_cms 0.9.21 → 1.0.0.RC1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (41) hide show
  1. checksums.yaml +6 -14
  2. data/app/assets/javascripts/spud/admin/cms/menu_items.js +31 -3
  3. data/app/assets/stylesheets/spud/admin/cms/application.css +4 -0
  4. data/app/controllers/pages_controller.rb +5 -8
  5. data/app/controllers/spud/admin/menu_items_controller.rb +28 -6
  6. data/app/controllers/spud/admin/menus_controller.rb +6 -2
  7. data/app/controllers/spud/admin/pages_controller.rb +13 -6
  8. data/app/controllers/spud/admin/snippets_controller.rb +7 -3
  9. data/app/controllers/spud/cms/sitemaps_controller.rb +0 -2
  10. data/app/helpers/spud/cms/application_helper.rb +6 -4
  11. data/app/models/concerns/spud/liquid_taggable.rb +8 -0
  12. data/app/models/spud_menu.rb +4 -4
  13. data/app/models/spud_menu_item.rb +2 -5
  14. data/app/models/spud_page.rb +9 -12
  15. data/app/models/spud_page_liquid_tag.rb +1 -2
  16. data/app/models/spud_page_partial.rb +14 -6
  17. data/app/models/spud_page_partial_revision.rb +1 -4
  18. data/app/models/spud_snippet.rb +22 -4
  19. data/app/observers/page_sweeper.rb +2 -0
  20. data/app/views/pages/show.html.erb +7 -2
  21. data/app/views/spud/admin/menu_items/_form.html.erb +3 -10
  22. data/app/views/spud/admin/menu_items/_menu_item_row.html.erb +2 -2
  23. data/app/views/spud/admin/menu_items/index.html.erb +3 -1
  24. data/app/views/spud/admin/pages/_form.html.erb +8 -1
  25. data/app/views/spud/admin/pages/show.html.erb +13 -11
  26. data/app/views/spud/admin/snippets/_form.html.erb +8 -1
  27. data/config/routes.rb +7 -2
  28. data/lib/spud_cms/engine.rb +11 -8
  29. data/lib/spud_cms/liquid_taggable.rb +28 -0
  30. data/lib/spud_cms/page_route.rb +2 -2
  31. data/lib/spud_cms/version.rb +1 -1
  32. data/spec/controllers/pages_controller_spec.rb +5 -2
  33. data/spec/controllers/spud/cms/sitemaps_controller_spec.rb +3 -2
  34. data/spec/dummy/config/environments/development.rb +2 -4
  35. data/spec/dummy/config/environments/production.rb +1 -1
  36. data/spec/dummy/config/environments/test.rb +2 -4
  37. data/spec/dummy/log/test.log +19992 -4353
  38. data/spec/models/spud_page_partial_spec.rb +3 -3
  39. data/spec/models/spud_page_spec.rb +3 -3
  40. metadata +36 -36
  41. 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 = Factory.create(:spud_page_partial,:name => "Test Page")
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 = Factory.create(:spud_page_partial,:name => "Test Page",:content =>"Home Sweet Home",:spud_page_id => 1)
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 = Factory.create(:spud_page_partial,:name => "Test Page",:content =>"Home Sweet Home",:spud_page_id => 1)
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
- Factory(:spud_page, :url_name => "test", :use_custom_url_name => true)
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
- Factory(:spud_page, :name => "test")
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 = Factory(:spud_page, :spud_page_partials => [SpudPagePartial.new(:name => "body")])
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.9.21
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: 2013-10-10 00:00:00.000000000 Z
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: 3.2.1
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: 3.2.1
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.9.10
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.9.10
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.9.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.9.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.3.11
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.3.11
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: 2.5.0
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: 2.5.0
152
+ version: '3.0'
153
153
  - !ruby/object:Gem::Dependency
154
- name: mocha
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.14.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.14.0
166
+ version: 1.0.0.RC1
167
167
  - !ruby/object:Gem::Dependency
168
- name: database_cleaner
168
+ name: mocha
169
169
  requirement: !ruby/object:Gem::Requirement
170
170
  requirements:
171
171
  - - '='
172
172
  - !ruby/object:Gem::Version
173
- version: 0.7.1
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.7.1
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: '0'
372
+ version: 1.3.1
372
373
  requirements: []
373
374
  rubyforge_project:
374
- rubygems_version: 2.0.7
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
-  (39.6ms) CREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB
3
-  (9.7ms) CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)
4
-  (1.6ms) SELECT `schema_migrations`.`version` FROM `schema_migrations` 
5
- Migrating to CreateSpudPages (20120101192412)
6
-  (32.8ms) 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
-  (0.4ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20120101192412')
8
- Migrating to CreateSpudMenus (20120101193138)
9
-  (5.9ms) 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
-  (0.3ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20120101193138')
11
- Migrating to CreateSpudMenuItems (20120101193255)
12
-  (12.6ms) 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
-  (23.3ms) CREATE INDEX `index_spud_menu_items_on_parent_type_and_parent_id` ON `spud_menu_items` (`parent_type`, `parent_id`)
14
-  (9.4ms) CREATE INDEX `index_spud_menu_items_on_menu_order` ON `spud_menu_items` (`menu_order`)
15
-  (0.4ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20120101193255')
16
- Migrating to CreateSpudTemplates (20120101194124)
17
-  (15.1ms) 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
-  (0.3ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20120101194124')
19
- Migrating to CreateSpudPagePartials (20120103034659)
20
-  (12.0ms) 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
-  (6.5ms) CREATE INDEX `index_spud_page_partials_on_spud_page_id` ON `spud_page_partials` (`spud_page_id`)
22
-  (0.4ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20120103034659')
23
- Migrating to AddVisibilityToSpudPages (20120104194032)
24
-  (18.7ms) ALTER TABLE `spud_pages` ADD `visibility` int(11) DEFAULT 0
25
-  (11.8ms) ALTER TABLE `spud_pages` ADD `published` tinyint(1) DEFAULT 1
26
-  (0.3ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20120104194032')
27
- Migrating to AddMenuNameToSpudMenuItems (20120107181337)
28
-  (15.8ms) ALTER TABLE `spud_menu_items` ADD `name` varchar(255)
29
-  (0.3ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20120107181337')
30
- Migrating to AddUseCustomUrlNameToSpudPages (20120111134754)
31
-  (18.8ms) ALTER TABLE `spud_pages` ADD `use_custom_url_name` tinyint(1) DEFAULT 0
32
-  (0.4ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20120111134754')
33
- Migrating to AddNotesToSpudPages (20120118141852)
34
-  (16.7ms) ALTER TABLE `spud_pages` ADD `notes` text
35
-  (0.2ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20120118141852')
36
- Migrating to AddMenuIdToSpudMenuItems (20120126232428)
37
-  (20.2ms) ALTER TABLE `spud_menu_items` ADD `spud_menu_id` int(11)
38
-  (8.7ms) CREATE INDEX `index_spud_menu_items_on_spud_menu_id` ON `spud_menu_items` (`spud_menu_id`)
39
-  (0.4ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20120126232428')
40
- Migrating to AddClassesToSpudMenuItems (20120128163601)
41
-  (19.4ms) ALTER TABLE `spud_menu_items` ADD `classes` varchar(255)
42
-  (0.4ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20120128163601')
43
- Migrating to CreateSpudAdminPermissions (20120307002859)
44
-  (9.8ms) 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) ENGINE=InnoDB
45
-  (0.3ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20120307002859')
46
- Migrating to CreateSpudUsers (20120307002860)
47
-  (14.7ms) CREATE 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
48
-  (24.8ms) CREATE INDEX `index_spud_users_on_login` ON `spud_users` (`login`)
49
-  (26.8ms) CREATE INDEX `index_spud_users_on_email` ON `spud_users` (`email`)
50
-  (0.4ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20120307002860')
51
- Migrating to CreateSpudPermalinks (20120307003559)
52
-  (14.7ms) 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) ENGINE=InnoDB
53
-  (20.8ms) CREATE INDEX `index_spud_permalinks_on_attachment_type_and_attachment_id` ON `spud_permalinks` (`attachment_type`, `attachment_id`)
54
-  (0.2ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20120307003559')
55
- Migrating to AddSiteIdToSpudPages (20120329132314)
56
-  (29.2ms) ALTER TABLE `spud_pages` ADD `site_id` int(11)
57
-  (24.1ms) CREATE INDEX `index_spud_pages_on_site_id` ON `spud_pages` (`site_id`)
58
-  (0.3ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20120329132314')
59
- Migrating to AddSiteIdToSpudTemplates (20120329132322)
60
-  (22.9ms) ALTER TABLE `spud_templates` ADD `site_id` int(11)
61
-  (7.8ms) CREATE INDEX `index_spud_templates_on_site_id` ON `spud_templates` (`site_id`)
62
-  (0.3ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20120329132322')
63
- Migrating to AddSiteIdToSpudMenus (20120329132330)
64
-  (19.5ms) ALTER TABLE `spud_menus` ADD `site_id` int(11)
65
-  (9.1ms) CREATE INDEX `index_spud_menus_on_site_id` ON `spud_menus` (`site_id`)
66
-  (0.4ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20120329132330')
67
- Migrating to CreateSpudPagePartialRevisions (20120510195151)
68
-  (28.1ms) 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
69
-  (18.2ms) CREATE INDEX `revision_idx` ON `spud_page_partial_revisions` (`spud_page_id`, `name`)
70
-  (0.3ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20120510195151')
71
- Migrating to AddTimeZoneToSpudUser (20120610123555)
72
-  (19.8ms) ALTER TABLE `spud_users` ADD `time_zone` varchar(255)
73
-  (0.3ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20120610123555')
74
- Migrating to AddScopeToSpudAdminPermissions (20120610123556)
75
-  (6.5ms) ALTER TABLE `spud_admin_permissions` ADD `scope` varchar(255)
76
-  (0.3ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20120610123556')
77
- Migrating to CreateSpudUserSettings (20120610123557)
78
-  (22.0ms) 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
-  (0.6ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20120610123557')
80
- Migrating to AddSiteIdToSpudPermalinks (20120610123615)
81
-  (22.4ms) ALTER TABLE `spud_permalinks` ADD `site_id` int(11)
82
-  (23.5ms) CREATE INDEX `index_spud_permalinks_on_site_id` ON `spud_permalinks` (`site_id`)
83
-  (0.4ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20120610123615')
84
- Migrating to AddSymbolNameToSpudPagePartials (20120911190030)
85
-  (17.5ms) ALTER TABLE `spud_page_partials` ADD `symbol_name` varchar(255)
86
-  (0.5ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20120911190030')
87
- Migrating to ModifySiteIdForSpudPages (20120912121313)
88
-  (15.9ms) ALTER TABLE `spud_pages` CHANGE `site_id` `site_id` int(11) DEFAULT 0 NOT NULL
89
-  (19.2ms) ALTER TABLE `spud_templates` CHANGE `site_id` `site_id` int(11) DEFAULT 0 NOT NULL
90
-  (18.4ms) ALTER TABLE `spud_menus` CHANGE `site_id` `site_id` int(11) DEFAULT 0 NOT NULL
91
- Creating scope :public. Overwriting existing method SpudPage.public.
92
- SpudPage Load (0.2ms) SELECT `spud_pages`.* FROM `spud_pages` WHERE `spud_pages`.`site_id` IS NULL
93
- SpudMenu Load (0.2ms) SELECT `spud_menus`.* FROM `spud_menus` WHERE `spud_menus`.`site_id` IS NULL
94
-  (0.4ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20120912121313')
95
- Migrating to AddContentProcessedToSpudPagePartials (20121016233715)
96
-  (25.7ms) ALTER TABLE `spud_page_partials` ADD `content_processed` text
97
-  (0.3ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20121016233715')
98
- Migrating to AddLayoutToSpudPages (20121112151110)
99
-  (15.7ms) ALTER TABLE `spud_pages` ADD `layout` varchar(255)
100
-  (14.4ms) ALTER TABLE `spud_pages` DROP `template_id`
101
-  (0.7ms) DROP TABLE `spud_templates`
102
-  (0.3ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20121112151110')
103
- Migrating to CreateSpudPageLiquidTags (20121112212113)
104
-  (13.8ms) CREATE 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
105
-  (8.0ms) CREATE INDEX `index_spud_page_liquid_tags_on_tag_name_and_value` ON `spud_page_liquid_tags` (`tag_name`, `value`)
106
-  (0.3ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20121112212113')
107
- Migrating to CreateSpudSnippets (20121119025608)
108
-  (18.4ms) 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
-  (7.3ms) CREATE INDEX `index_spud_snippets_on_site_id` ON `spud_snippets` (`site_id`)
110
-  (22.3ms) CREATE INDEX `index_spud_snippets_on_name` ON `spud_snippets` (`name`)
111
-  (0.3ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20121119025608')
112
- Migrating to ChangeLiquidTagsToPolymorphic (20121119030136)
113
-  (0.7ms) SHOW COLUMNS FROM `spud_page_liquid_tags` LIKE 'spud_page_partial_id'
114
-  (27.0ms) ALTER TABLE `spud_page_liquid_tags` CHANGE `spud_page_partial_id` `attachment_id` int(11) DEFAULT NULL
115
-  (17.5ms) ALTER TABLE `spud_page_liquid_tags` ADD `attachment_type` varchar(255)
116
-  (13.8ms) CREATE INDEX `index_spud_page_liquid_tags_on_attachment_type_and_attachment_id` ON `spud_page_liquid_tags` (`attachment_type`, `attachment_id`)
117
- SpudPageLiquidTag Load (0.1ms) SELECT `spud_page_liquid_tags`.* FROM `spud_page_liquid_tags`
118
-  (0.3ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20121119030136')
119
-  (0.2ms) 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
-  (1.6ms) SELECT `schema_migrations`.`version` FROM `schema_migrations` 
123
-  (0.3ms) DROP DATABASE IF EXISTS `spud_cms_test`
124
-  (0.2ms) CREATE DATABASE `spud_cms_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`
125
-  (51.7ms) 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
-  (11.7ms) 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, `name` varchar(255), `spud_menu_id` int(11), `classes` varchar(255)) ENGINE=InnoDB
127
-  (10.3ms) CREATE INDEX `index_spud_menu_items_on_menu_order` ON `spud_menu_items` (`menu_order`)
128
-  (14.0ms) CREATE INDEX `index_spud_menu_items_on_parent_type_and_parent_id` ON `spud_menu_items` (`parent_type`, `parent_id`)
129
-  (19.8ms) CREATE INDEX `index_spud_menu_items_on_spud_menu_id` ON `spud_menu_items` (`spud_menu_id`)
130
-  (16.8ms) 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, `site_id` int(11) DEFAULT 0 NOT NULL) ENGINE=InnoDB
131
-  (6.5ms) CREATE INDEX `index_spud_menus_on_site_id` ON `spud_menus` (`site_id`)
132
-  (11.8ms) CREATE 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
133
-  (7.1ms) CREATE INDEX `index_spud_page_liquid_tags_on_attachment_type_and_attachment_id` ON `spud_page_liquid_tags` (`attachment_type`, `attachment_id`)
134
-  (14.2ms) CREATE INDEX `index_spud_page_liquid_tags_on_tag_name_and_value` ON `spud_page_liquid_tags` (`tag_name`, `value`)
135
-  (14.7ms) 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
-  (7.0ms) CREATE INDEX `revision_idx` ON `spud_page_partial_revisions` (`spud_page_id`, `name`)
137
-  (11.2ms) 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
-  (6.9ms) CREATE INDEX `index_spud_page_partials_on_spud_page_id` ON `spud_page_partials` (`spud_page_id`)
139
-  (11.0ms) 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
-  (6.9ms) CREATE INDEX `index_spud_pages_on_site_id` ON `spud_pages` (`site_id`)
141
-  (10.7ms) 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
-  (7.0ms) CREATE INDEX `index_spud_permalinks_on_attachment_type_and_attachment_id` ON `spud_permalinks` (`attachment_type`, `attachment_id`)
143
-  (13.1ms) CREATE INDEX `index_spud_permalinks_on_site_id` ON `spud_permalinks` (`site_id`)
144
-  (17.6ms) 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
145
-  (7.7ms) CREATE INDEX `index_spud_snippets_on_name` ON `spud_snippets` (`name`)
146
-  (21.8ms) CREATE INDEX `index_spud_snippets_on_site_id` ON `spud_snippets` (`site_id`)
147
-  (16.5ms) 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
-  (5.6ms) CREATE 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
149
-  (7.0ms) CREATE INDEX `index_spud_users_on_email` ON `spud_users` (`email`)
150
-  (17.8ms) CREATE INDEX `index_spud_users_on_login` ON `spud_users` (`login`)
151
-  (15.4ms) CREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB
152
-  (7.7ms) CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)
153
-  (0.2ms) SELECT version FROM `schema_migrations`
154
-  (0.4ms) INSERT INTO `schema_migrations` (version) VALUES ('20121119030136')
155
-  (0.3ms) INSERT INTO `schema_migrations` (version) VALUES ('20120307002859')
156
-  (0.4ms) INSERT INTO `schema_migrations` (version) VALUES ('20120307002860')
157
-  (0.2ms) INSERT INTO `schema_migrations` (version) VALUES ('20120307003559')
158
-  (0.2ms) INSERT INTO `schema_migrations` (version) VALUES ('20120610123555')
159
-  (0.2ms) INSERT INTO `schema_migrations` (version) VALUES ('20120610123556')
160
-  (0.2ms) INSERT INTO `schema_migrations` (version) VALUES ('20120610123557')
161
-  (0.2ms) INSERT INTO `schema_migrations` (version) VALUES ('20120610123615')
162
-  (0.2ms) INSERT INTO `schema_migrations` (version) VALUES ('20120101192412')
163
-  (0.2ms) INSERT INTO `schema_migrations` (version) VALUES ('20120101193138')
164
-  (0.2ms) INSERT INTO `schema_migrations` (version) VALUES ('20120101193255')
165
-  (0.2ms) INSERT INTO `schema_migrations` (version) VALUES ('20120101194124')
166
-  (0.2ms) INSERT INTO `schema_migrations` (version) VALUES ('20120103034659')
167
-  (0.2ms) INSERT INTO `schema_migrations` (version) VALUES ('20120104194032')
168
-  (0.2ms) INSERT INTO `schema_migrations` (version) VALUES ('20120107181337')
169
-  (0.2ms) INSERT INTO `schema_migrations` (version) VALUES ('20120111134754')
170
-  (0.2ms) INSERT INTO `schema_migrations` (version) VALUES ('20120118141852')
171
-  (0.2ms) INSERT INTO `schema_migrations` (version) VALUES ('20120126232428')
172
-  (0.2ms) INSERT INTO `schema_migrations` (version) VALUES ('20120128163601')
173
-  (0.2ms) INSERT INTO `schema_migrations` (version) VALUES ('20120329132314')
174
-  (0.2ms) INSERT INTO `schema_migrations` (version) VALUES ('20120329132322')
175
-  (0.2ms) INSERT INTO `schema_migrations` (version) VALUES ('20120329132330')
176
-  (0.2ms) INSERT INTO `schema_migrations` (version) VALUES ('20120510195151')
177
-  (0.2ms) INSERT INTO `schema_migrations` (version) VALUES ('20120911190030')
178
-  (0.2ms) INSERT INTO `schema_migrations` (version) VALUES ('20120912121313')
179
-  (0.2ms) INSERT INTO `schema_migrations` (version) VALUES ('20121016233715')
180
-  (0.2ms) INSERT INTO `schema_migrations` (version) VALUES ('20121112151110')
181
-  (0.2ms) INSERT INTO `schema_migrations` (version) VALUES ('20121112212113')
182
-  (0.2ms) INSERT INTO `schema_migrations` (version) VALUES ('20121119025608')