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.
- checksums.yaml +4 -4
- data/db/migrate/20150507135428_create_spina_tables.rb +160 -0
- data/lib/generators/spina/install_generator.rb +47 -0
- data/lib/generators/spina/templates/application.html.erb +16 -0
- data/lib/generators/spina/templates/homepage.html.erb +3 -0
- data/lib/generators/spina/templates/show.html.erb +3 -0
- data/lib/generators/spina/templates/spina.rb +3 -0
- data/lib/generators/spina/templates/theme.rb +42 -0
- data/lib/spina/version.rb +1 -1
- data/lib/tasks/spina_tasks.rake +5 -9
- data/test/dummy/config/initializers/spina.rb +1 -56
- data/test/dummy/config/initializers/themes/default.rb +38 -0
- data/test/dummy/config/routes.rb +1 -1
- data/test/dummy/db/migrate/20150507153614_create_spina_tables.spina.rb +161 -0
- data/test/dummy/db/schema.rb +1 -1
- data/test/dummy/log/development.log +2005 -0
- data/test/lib/generators/spina/install_generator_test.rb +16 -0
- metadata +12 -54
- data/app/views/spina/pages/_page.html.haml +0 -3
- data/app/views/spina/pages/homepage.html.haml +0 -3
- data/app/views/spina/pages/show.html.haml +0 -1
- data/db/migrate/20130412140449_create_spina_pages.rb +0 -15
- data/db/migrate/20130412140656_change_columns_pages.rb +0 -6
- data/db/migrate/20130412173041_create_spina_users.rb +0 -12
- data/db/migrate/20130412175403_create_spina_page_parts.rb +0 -12
- data/db/migrate/20130412175531_change_admin_of_users.rb +0 -5
- data/db/migrate/20130412180027_create_spina_page_includes.rb +0 -12
- data/db/migrate/20130412182257_create_spina_photos.rb +0 -9
- data/db/migrate/20130412191946_create_spina_accounts.rb +0 -16
- data/db/migrate/20130414145608_create_spina_inquiries.rb +0 -13
- data/db/migrate/20130422094248_add_theme_to_spina_accounts.rb +0 -5
- data/db/migrate/20130422161041_remove_theme_from_spina_accounts.rb +0 -5
- data/db/migrate/20130422194143_change_default_value_column_archived_inquiries.rb +0 -5
- data/db/migrate/20130425080630_change_page_includes.rb +0 -8
- data/db/migrate/20130426122705_add_parent_id_to_spina_pages.rb +0 -5
- data/db/migrate/20130426133425_change_colum_n_spina_pages_again.rb +0 -5
- data/db/migrate/20130426133606_bring_out_the_nukes.rb +0 -6
- data/db/migrate/20130429092708_add_name_to_spina_pages.rb +0 -5
- data/db/migrate/20130429124414_change_column_stomme_onzin.rb +0 -6
- data/db/migrate/20130503072744_add_last_logged_in_to_users.rb +0 -5
- data/db/migrate/20130503073613_change_column_spina_users.rb +0 -5
- data/db/migrate/20130503104857_create_spina_spina_files.rb +0 -9
- data/db/migrate/20130503105356_add_file_to_spina_page_parts.rb +0 -5
- data/db/migrate/20130503105943_change_columns_spina_files.rb +0 -6
- data/db/migrate/20130503110240_fix_namespaces.rb +0 -12
- data/db/migrate/20130503133649_create_spina_galleries.rb +0 -10
- data/db/migrate/20130504163456_add_seo_title_to_spina_pages.rb +0 -5
- data/db/migrate/20130516132913_add_spam_to_spina_inquiries.rb +0 -5
- data/db/migrate/20130523132347_add_page_partable_to_spina_page_parts.rb +0 -137
- data/db/migrate/20130527124130_remove_deprecated_columns_from_spina_page_parts.rb +0 -11
- data/db/migrate/20130715151201_switch_to_nested_sets_instead_of_position_pages.rb +0 -10
- data/db/migrate/20130719120007_add_skip_to_first_child_and_templates_to_spina_pages.rb +0 -7
- data/db/migrate/20130719121520_add_draft_to_spina_pages.rb +0 -5
- data/db/migrate/20130719122139_add_link_url_to_spina_pages.rb +0 -5
- data/db/migrate/20130719134545_rename_spina_file_to_attachments.rb +0 -9
- data/db/migrate/20130725111749_add_ancestry_to_spina_pages.rb +0 -10
- data/db/migrate/20130730185527_add_materialized_path_to_spina_pages.rb +0 -5
- data/db/migrate/20130918133920_change_column_page_parts.rb +0 -6
- data/db/migrate/20130919074011_create_spina_texts.rb +0 -9
- data/db/migrate/20130919074023_create_spina_lines.rb +0 -9
- data/db/migrate/20130919074838_remove_column_from_spina_page_parts.rb +0 -5
- data/db/migrate/20131210122702_change_column_spina_texts.rb +0 -5
- data/db/migrate/20131212080016_add_required_stuff_to_spina_accounts.rb +0 -6
- data/db/migrate/20140225141812_create_layout_parts.rb +0 -12
- data/db/migrate/20140225151146_add_account_id_to_spina_layout_parts.rb +0 -5
- data/db/migrate/20140407095608_add_active_to_spina_pages.rb +0 -5
- data/db/migrate/20140711154425_add_robots_allowed_to_spina_accounts.rb +0 -5
- data/db/migrate/20140718095419_add_position_to_spina_photo_collections_photos.rb +0 -5
- data/db/migrate/20150402144347_create_structures.rb +0 -27
- 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,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,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
|