spina 0.6.22 → 0.6.23

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of spina might be problematic. Click here for more details.

Files changed (70) hide show
  1. checksums.yaml +4 -4
  2. data/db/migrate/20150507135428_create_spina_tables.rb +160 -0
  3. data/lib/generators/spina/install_generator.rb +47 -0
  4. data/lib/generators/spina/templates/application.html.erb +16 -0
  5. data/lib/generators/spina/templates/homepage.html.erb +3 -0
  6. data/lib/generators/spina/templates/show.html.erb +3 -0
  7. data/lib/generators/spina/templates/spina.rb +3 -0
  8. data/lib/generators/spina/templates/theme.rb +42 -0
  9. data/lib/spina/version.rb +1 -1
  10. data/lib/tasks/spina_tasks.rake +5 -9
  11. data/test/dummy/config/initializers/spina.rb +1 -56
  12. data/test/dummy/config/initializers/themes/default.rb +38 -0
  13. data/test/dummy/config/routes.rb +1 -1
  14. data/test/dummy/db/migrate/20150507153614_create_spina_tables.spina.rb +161 -0
  15. data/test/dummy/db/schema.rb +1 -1
  16. data/test/dummy/log/development.log +2005 -0
  17. data/test/lib/generators/spina/install_generator_test.rb +16 -0
  18. metadata +12 -54
  19. data/app/views/spina/pages/_page.html.haml +0 -3
  20. data/app/views/spina/pages/homepage.html.haml +0 -3
  21. data/app/views/spina/pages/show.html.haml +0 -1
  22. data/db/migrate/20130412140449_create_spina_pages.rb +0 -15
  23. data/db/migrate/20130412140656_change_columns_pages.rb +0 -6
  24. data/db/migrate/20130412173041_create_spina_users.rb +0 -12
  25. data/db/migrate/20130412175403_create_spina_page_parts.rb +0 -12
  26. data/db/migrate/20130412175531_change_admin_of_users.rb +0 -5
  27. data/db/migrate/20130412180027_create_spina_page_includes.rb +0 -12
  28. data/db/migrate/20130412182257_create_spina_photos.rb +0 -9
  29. data/db/migrate/20130412191946_create_spina_accounts.rb +0 -16
  30. data/db/migrate/20130414145608_create_spina_inquiries.rb +0 -13
  31. data/db/migrate/20130422094248_add_theme_to_spina_accounts.rb +0 -5
  32. data/db/migrate/20130422161041_remove_theme_from_spina_accounts.rb +0 -5
  33. data/db/migrate/20130422194143_change_default_value_column_archived_inquiries.rb +0 -5
  34. data/db/migrate/20130425080630_change_page_includes.rb +0 -8
  35. data/db/migrate/20130426122705_add_parent_id_to_spina_pages.rb +0 -5
  36. data/db/migrate/20130426133425_change_colum_n_spina_pages_again.rb +0 -5
  37. data/db/migrate/20130426133606_bring_out_the_nukes.rb +0 -6
  38. data/db/migrate/20130429092708_add_name_to_spina_pages.rb +0 -5
  39. data/db/migrate/20130429124414_change_column_stomme_onzin.rb +0 -6
  40. data/db/migrate/20130503072744_add_last_logged_in_to_users.rb +0 -5
  41. data/db/migrate/20130503073613_change_column_spina_users.rb +0 -5
  42. data/db/migrate/20130503104857_create_spina_spina_files.rb +0 -9
  43. data/db/migrate/20130503105356_add_file_to_spina_page_parts.rb +0 -5
  44. data/db/migrate/20130503105943_change_columns_spina_files.rb +0 -6
  45. data/db/migrate/20130503110240_fix_namespaces.rb +0 -12
  46. data/db/migrate/20130503133649_create_spina_galleries.rb +0 -10
  47. data/db/migrate/20130504163456_add_seo_title_to_spina_pages.rb +0 -5
  48. data/db/migrate/20130516132913_add_spam_to_spina_inquiries.rb +0 -5
  49. data/db/migrate/20130523132347_add_page_partable_to_spina_page_parts.rb +0 -137
  50. data/db/migrate/20130527124130_remove_deprecated_columns_from_spina_page_parts.rb +0 -11
  51. data/db/migrate/20130715151201_switch_to_nested_sets_instead_of_position_pages.rb +0 -10
  52. data/db/migrate/20130719120007_add_skip_to_first_child_and_templates_to_spina_pages.rb +0 -7
  53. data/db/migrate/20130719121520_add_draft_to_spina_pages.rb +0 -5
  54. data/db/migrate/20130719122139_add_link_url_to_spina_pages.rb +0 -5
  55. data/db/migrate/20130719134545_rename_spina_file_to_attachments.rb +0 -9
  56. data/db/migrate/20130725111749_add_ancestry_to_spina_pages.rb +0 -10
  57. data/db/migrate/20130730185527_add_materialized_path_to_spina_pages.rb +0 -5
  58. data/db/migrate/20130918133920_change_column_page_parts.rb +0 -6
  59. data/db/migrate/20130919074011_create_spina_texts.rb +0 -9
  60. data/db/migrate/20130919074023_create_spina_lines.rb +0 -9
  61. data/db/migrate/20130919074838_remove_column_from_spina_page_parts.rb +0 -5
  62. data/db/migrate/20131210122702_change_column_spina_texts.rb +0 -5
  63. data/db/migrate/20131212080016_add_required_stuff_to_spina_accounts.rb +0 -6
  64. data/db/migrate/20140225141812_create_layout_parts.rb +0 -12
  65. data/db/migrate/20140225151146_add_account_id_to_spina_layout_parts.rb +0 -5
  66. data/db/migrate/20140407095608_add_active_to_spina_pages.rb +0 -5
  67. data/db/migrate/20140711154425_add_robots_allowed_to_spina_accounts.rb +0 -5
  68. data/db/migrate/20140718095419_add_position_to_spina_photo_collections_photos.rb +0 -5
  69. data/db/migrate/20150402144347_create_structures.rb +0 -27
  70. data/db/migrate/20150430085527_create_spina_colors.rb +0 -8
@@ -1,11 +0,0 @@
1
- class RemoveDeprecatedColumnsFromSpinaPageParts < ActiveRecord::Migration
2
- def up
3
- remove_column :spina_page_parts, :file
4
- remove_column :spina_page_parts, :position
5
- end
6
-
7
- def down
8
- add_column :spina_page_parts, :file, :string
9
- add_column :spina_page_parts, :position, :integer
10
- end
11
- end
@@ -1,10 +0,0 @@
1
- class SwitchToNestedSetsInsteadOfPositionPages < ActiveRecord::Migration
2
-
3
- def change
4
- remove_column :spina_pages, :position
5
- add_column :spina_pages, :lft, :integer
6
- add_column :spina_pages, :rgt, :integer
7
- add_column :spina_pages, :depth, :integer
8
- end
9
-
10
- end
@@ -1,7 +0,0 @@
1
- class AddSkipToFirstChildAndTemplatesToSpinaPages < ActiveRecord::Migration
2
- def change
3
- add_column :spina_pages, :skip_to_first_child, :boolean, default: false
4
- add_column :spina_pages, :view_template, :string
5
- add_column :spina_pages, :layout_template, :string
6
- end
7
- end
@@ -1,5 +0,0 @@
1
- class AddDraftToSpinaPages < ActiveRecord::Migration
2
- def change
3
- add_column :spina_pages, :draft, :boolean, default: false
4
- end
5
- end
@@ -1,5 +0,0 @@
1
- class AddLinkUrlToSpinaPages < ActiveRecord::Migration
2
- def change
3
- add_column :spina_pages, :link_url, :string
4
- end
5
- end
@@ -1,9 +0,0 @@
1
- class RenameSpinaFileToAttachments < ActiveRecord::Migration
2
- def change
3
- rename_table :spina_files, :spina_attachments
4
- rename_table :spina_file_collections, :spina_attachment_collections
5
- rename_table :spina_file_collections_files, :spina_attachment_collections_attachments
6
- rename_column :spina_attachment_collections_attachments, :file_id, :attachment_id
7
- rename_column :spina_attachment_collections_attachments, :file_collection_id, :attachment_collection_id
8
- end
9
- end
@@ -1,10 +0,0 @@
1
- class AddAncestryToSpinaPages < ActiveRecord::Migration
2
- def change
3
- add_column :spina_pages, :ancestry, :string
4
- add_column :spina_pages, :position, :integer
5
- remove_column :spina_pages, :parent_id, :integer
6
- remove_column :spina_pages, :depth, :integer
7
- remove_column :spina_pages, :rgt, :integer
8
- remove_column :spina_pages, :lft, :integer
9
- end
10
- end
@@ -1,5 +0,0 @@
1
- class AddMaterializedPathToSpinaPages < ActiveRecord::Migration
2
- def change
3
- add_column :spina_pages, :materialized_path, :string
4
- end
5
- end
@@ -1,6 +0,0 @@
1
- class ChangeColumnPageParts < ActiveRecord::Migration
2
- def change
3
- rename_column :spina_page_parts, :name, :title
4
- rename_column :spina_page_parts, :tag, :name
5
- end
6
- end
@@ -1,9 +0,0 @@
1
- class CreateSpinaTexts < ActiveRecord::Migration
2
- def change
3
- create_table :spina_texts do |t|
4
- t.string :content
5
-
6
- t.timestamps
7
- end
8
- end
9
- end
@@ -1,9 +0,0 @@
1
- class CreateSpinaLines < ActiveRecord::Migration
2
- def change
3
- create_table :spina_lines do |t|
4
- t.string :content
5
-
6
- t.timestamps
7
- end
8
- end
9
- end
@@ -1,5 +0,0 @@
1
- class RemoveColumnFromSpinaPageParts < ActiveRecord::Migration
2
- def change
3
- remove_column :spina_page_parts, :content
4
- end
5
- end
@@ -1,5 +0,0 @@
1
- class ChangeColumnSpinaTexts < ActiveRecord::Migration
2
- def change
3
- change_column :spina_texts, :content, :text
4
- end
5
- end
@@ -1,6 +0,0 @@
1
- class AddRequiredStuffToSpinaAccounts < ActiveRecord::Migration
2
- def change
3
- add_column :spina_accounts, :kvk_identifier, :string
4
- add_column :spina_accounts, :vat_identifier, :string
5
- end
6
- end
@@ -1,12 +0,0 @@
1
- class CreateLayoutParts < ActiveRecord::Migration
2
- def change
3
- create_table :spina_layout_parts do |t|
4
- t.string :title
5
- t.string :name
6
- t.integer :layout_partable_id
7
- t.string :layout_partable_type
8
-
9
- t.timestamps
10
- end
11
- end
12
- end
@@ -1,5 +0,0 @@
1
- class AddAccountIdToSpinaLayoutParts < ActiveRecord::Migration
2
- def change
3
- add_column :spina_layout_parts, :account_id, :integer
4
- end
5
- end
@@ -1,5 +0,0 @@
1
- class AddActiveToSpinaPages < ActiveRecord::Migration
2
- def change
3
- add_column :spina_pages, :active, :boolean, default: true
4
- end
5
- end
@@ -1,5 +0,0 @@
1
- class AddRobotsAllowedToSpinaAccounts < ActiveRecord::Migration
2
- def change
3
- add_column :spina_accounts, :robots_allowed, :boolean, default: false
4
- end
5
- end
@@ -1,5 +0,0 @@
1
- class AddPositionToSpinaPhotoCollectionsPhotos < ActiveRecord::Migration
2
- def change
3
- add_column :spina_photo_collections_photos, :position, :integer
4
- end
5
- end
@@ -1,27 +0,0 @@
1
- class CreateStructures < ActiveRecord::Migration
2
- def change
3
- create_table :spina_structures do |t|
4
- t.timestamps
5
- end
6
-
7
- create_table :spina_structure_items do |t|
8
- t.integer :structure_id
9
- t.integer :position
10
- t.timestamps
11
- end
12
-
13
- add_index :spina_structure_items, :structure_id
14
-
15
- create_table :spina_structure_parts do |t|
16
- t.integer :structure_item_id
17
- t.integer :structure_partable_id
18
- t.string :structure_partable_type
19
- t.string :name
20
- t.string :title
21
- t.timestamps
22
- end
23
-
24
- add_index :spina_structure_parts, :structure_item_id
25
- add_index :spina_structure_parts, :structure_partable_id
26
- end
27
- end
@@ -1,8 +0,0 @@
1
- class CreateSpinaColors < ActiveRecord::Migration
2
- def change
3
- create_table :spina_colors do |t|
4
- t.text :content
5
- t.timestamps
6
- end
7
- end
8
- end