releaf 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/README.md +15 -12
- data/Rakefile +8 -0
- data/app/assets/javascripts/releaf/controllers/base.js +0 -40
- data/app/assets/javascripts/releaf/include/field.type_date_or_datetime_or_time.js +43 -0
- data/app/assets/javascripts/releaf/include/nested_fields.js +58 -65
- data/app/assets/javascripts/releaf/include/sortable.js +19 -17
- data/app/assets/stylesheets/releaf/controllers/releaf/content.css.erb +6 -0
- data/app/assets/stylesheets/releaf/include/field.css.erb +37 -13
- data/app/controllers/releaf/admins_controller.rb +13 -6
- data/app/controllers/releaf/base_application_controller.rb +4 -1
- data/app/controllers/releaf/base_controller.rb +415 -154
- data/app/controllers/releaf/content_controller.rb +62 -45
- data/app/controllers/releaf/roles_controller.rb +11 -9
- data/app/controllers/releaf/sessions_controller.rb +23 -1
- data/app/controllers/releaf/translations_controller.rb +21 -25
- data/app/helpers/releaf/admin_helper.rb +0 -20
- data/app/models/releaf/admin.rb +9 -0
- data/app/models/releaf/blank_node_base.rb +29 -0
- data/app/models/releaf/node.rb +6 -5
- data/app/models/releaf/node_base.rb +9 -3
- data/app/models/releaf/role.rb +9 -2
- data/app/views/layouts/releaf/admin.html.haml +12 -6
- data/app/views/layouts/releaf/devise.html.haml +32 -0
- data/app/views/releaf/aliases/{_edit.body.haml → _edit.body.html.haml} +0 -0
- data/app/views/releaf/aliases/{_edit.header.haml → _edit.header.html.haml} +1 -1
- data/app/views/releaf/aliases/_index.row.html.haml +5 -0
- data/app/views/releaf/aliases/{_secondary_panel.haml → _secondary_panel.html.haml} +0 -0
- data/app/views/releaf/base/_edit.body.html.haml +11 -0
- data/app/views/releaf/base/_edit.field.html.haml +23 -0
- data/app/views/releaf/base/{_edit.field.type_autocomplete.haml → _edit.field_type_autocomplete.html.haml} +1 -1
- data/app/views/releaf/base/{_edit.field.type_checkbox.haml → _edit.field_type_boolean.html.haml} +1 -1
- data/app/views/releaf/base/{_edit.field.type_date.haml → _edit.field_type_date.html.haml} +0 -0
- data/app/views/releaf/base/{_edit.field.type_datetime.haml → _edit.field_type_datetime.html.haml} +0 -0
- data/app/views/releaf/base/{_edit.field.type_delete_nested.haml → _edit.field_type_delete_nested.html.haml} +0 -0
- data/app/views/releaf/base/{_edit.field.type_file.haml → _edit.field_type_file.html.haml} +0 -0
- data/app/views/releaf/base/_edit.field_type_image.html.haml +12 -0
- data/app/views/releaf/base/_edit.field_type_item.html.haml +31 -0
- data/app/views/releaf/base/{_edit.field.type_link.haml → _edit.field_type_link.html.haml} +0 -0
- data/app/views/releaf/base/_edit.field_type_link_i18n.html.haml +26 -0
- data/app/views/releaf/base/{_edit.field.type_password.haml → _edit.field_type_password.html.haml} +0 -0
- data/app/views/releaf/base/{_edit.field.type_richtext.haml → _edit.field_type_richtext.html.haml} +0 -0
- data/app/views/releaf/base/{_edit.field.type_richtext_i18n.haml → _edit.field_type_richtext_i18n.html.haml} +0 -0
- data/app/views/releaf/base/{_edit.field.type_text.haml → _edit.field_type_text.html.haml} +0 -0
- data/app/views/releaf/base/{_edit.field.type_text_i18n.haml → _edit.field_type_text_i18n.html.haml} +0 -0
- data/app/views/releaf/base/{_edit.field.type_textarea.haml → _edit.field_type_textarea.html.haml} +0 -0
- data/app/views/releaf/base/{_edit.field.type_textarea_i18n.haml → _edit.field_type_textarea_i18n.html.haml} +0 -0
- data/app/views/releaf/base/{_edit.field.type_time.haml → _edit.field_type_time.html.haml} +0 -0
- data/app/views/releaf/base/_edit.fields.association.html.haml +48 -0
- data/app/views/releaf/base/_edit.fields.has_many_template.html.haml +15 -0
- data/app/views/releaf/base/_edit.fields.html.haml +20 -0
- data/app/views/releaf/base/{_edit.footer.haml → _edit.footer.html.haml} +2 -2
- data/app/views/releaf/base/_edit.form.html.haml +4 -0
- data/app/views/releaf/base/_edit.header.html.haml +3 -0
- data/app/views/releaf/base/{_index.body.haml → _index.body.html.haml} +2 -2
- data/app/views/releaf/base/_index.cell.html.haml +20 -0
- data/app/views/releaf/base/_index.footer.html.haml +28 -0
- data/app/views/releaf/base/_index.header.html.haml +4 -0
- data/app/views/releaf/base/_index.row.html.haml +6 -0
- data/app/views/releaf/base/_index.search.html.haml +5 -0
- data/app/views/releaf/base/_index.table.html.haml +24 -0
- data/app/views/releaf/base/_secondary_panel.html.haml +10 -0
- data/app/views/releaf/base/_show.body.html.haml +3 -0
- data/app/views/releaf/base/_show.field.html.haml +20 -0
- data/app/views/releaf/base/_show.field_type_date.html.haml +9 -0
- data/app/views/releaf/base/_show.field_type_date_time.html.haml +9 -0
- data/app/views/releaf/base/_show.field_type_email.html.haml +6 -0
- data/app/views/releaf/base/_show.field_type_file.html.haml +7 -0
- data/app/views/releaf/base/_show.field_type_image.html.haml +10 -0
- data/app/views/releaf/base/_show.field_type_item.html.haml +11 -0
- data/app/views/releaf/base/_show.field_type_link.html.haml +14 -0
- data/app/views/releaf/base/_show.field_type_password.html.haml +6 -0
- data/app/views/releaf/base/_show.field_type_richtext.html.haml +6 -0
- data/app/views/releaf/base/_show.field_type_text.html.haml +6 -0
- data/app/views/releaf/base/_show.field_type_textarea.html.haml +6 -0
- data/app/views/releaf/base/_show.field_type_time.html.haml +9 -0
- data/app/views/releaf/base/_show.field_type_url.html.haml +7 -0
- data/app/views/releaf/base/_show.fields.association.html.haml +36 -0
- data/app/views/releaf/base/_show.fields.has_many_template.html.haml +12 -0
- data/app/views/releaf/base/_show.fields.html.haml +17 -0
- data/app/views/releaf/base/{_show.footer.haml → _show.footer.html.haml} +6 -4
- data/app/views/releaf/base/_show.header.html.haml +3 -0
- data/app/views/releaf/base/confirm_destroy.html.haml +17 -0
- data/app/views/releaf/base/edit.html.haml +1 -0
- data/app/views/releaf/base/index.html.haml +3 -0
- data/app/views/releaf/base/new.html.haml +1 -0
- data/app/views/releaf/base/show.html.haml +3 -0
- data/app/views/releaf/content/{_edit.body.haml → _edit.body.html.haml} +7 -6
- data/app/views/releaf/content/_edit.content_fields.html.haml +11 -0
- data/app/views/releaf/content/_edit.fields.html.haml +17 -0
- data/app/views/releaf/content/{_edit.slug.haml → _edit.slug.html.haml} +0 -0
- data/app/views/releaf/content/{_get_content_form.haml → _get_content_form.html.haml} +2 -2
- data/app/views/releaf/content/{_secondary_panel.haml → _secondary_panel.html.haml} +0 -0
- data/app/views/releaf/content/{_tree_level.haml → _tree_level.html.haml} +0 -0
- data/app/views/releaf/content/{ajax.new.haml → ajax.new.html.haml} +0 -0
- data/app/views/releaf/content/{index.haml → index.html.haml} +0 -0
- data/app/views/releaf/roles/_edit.field.permissions.html.haml +5 -0
- data/app/views/releaf/roles/{_show.field.default.haml → _show.field.default.html.haml} +1 -1
- data/app/views/releaf/roles/{_show.field.permissions.haml → _show.field.permissions.html.haml} +2 -2
- data/app/views/releaf/translations/{_edit.body.haml → _edit.body.html.haml} +0 -0
- data/app/views/releaf/translations/{_edit.header.haml → _edit.header.html.haml} +1 -1
- data/app/views/releaf/translations/_index.row.html.haml +5 -0
- data/app/views/releaf/translations/{_secondary_panel.haml → _secondary_panel.html.haml} +0 -0
- data/lib/generators/releaf/templates/initializers/releaf.rb +0 -39
- data/lib/generators/releaf/templates/initializers/releaf_i18n.rb +17 -0
- data/lib/generators/releaf/templates/javascripts/3rd_party/jquery.jcarousel.js +1058 -0
- data/lib/generators/releaf/templates/javascripts/lib/init_jcarousel.js +40 -0
- data/lib/generators/releaf/templates/migrations/create_releaf_roles.rb +1 -0
- data/lib/generators/releaf/templates/migrations/create_releaf_tinymce_assets.rb +1 -0
- data/lib/generators/releaf/templates/models/admin_ability.rb +1 -1
- data/lib/i18n/backend/releaf.rb +5 -4
- data/lib/i18n/backend/releaf/translation.rb +5 -0
- data/lib/i18n/backend/releaf/translation_data.rb +7 -0
- data/lib/i18n/backend/releaf/translation_group.rb +4 -0
- data/lib/releaf.rb +4 -0
- data/lib/releaf/boolean_at.rb +77 -0
- data/lib/releaf/globalize3/fallbacks.rb +19 -0
- data/lib/releaf/resources.rb +101 -0
- data/lib/releaf/slug.rb +99 -60
- data/lib/releaf/version.rb +1 -1
- data/spec/spec_helper.rb +6 -0
- data/templates/releaf/installer.rb +15 -4
- metadata +275 -329
- data/app/views/releaf/aliases/_index.row.haml +0 -5
- data/app/views/releaf/base/_edit.body.haml +0 -19
- data/app/views/releaf/base/_edit.field.haml +0 -96
- data/app/views/releaf/base/_edit.field.type_image.haml +0 -14
- data/app/views/releaf/base/_edit.field.type_select.haml +0 -11
- data/app/views/releaf/base/_edit.form.haml +0 -4
- data/app/views/releaf/base/_edit.has_many_associations.haml +0 -45
- data/app/views/releaf/base/_edit.header.haml +0 -3
- data/app/views/releaf/base/_index.cell.haml +0 -19
- data/app/views/releaf/base/_index.footer.haml +0 -22
- data/app/views/releaf/base/_index.header.haml +0 -4
- data/app/views/releaf/base/_index.row.haml +0 -6
- data/app/views/releaf/base/_index.search.haml +0 -5
- data/app/views/releaf/base/_index.table.haml +0 -8
- data/app/views/releaf/base/_secondary_panel.haml +0 -9
- data/app/views/releaf/base/_show.body.haml +0 -7
- data/app/views/releaf/base/_show.field.haml +0 -78
- data/app/views/releaf/base/_show.field.type_html.haml +0 -1
- data/app/views/releaf/base/_show.header.haml +0 -3
- data/app/views/releaf/base/confirm_destroy.haml +0 -10
- data/app/views/releaf/base/edit.haml +0 -1
- data/app/views/releaf/base/index.haml +0 -3
- data/app/views/releaf/base/new.haml +0 -1
- data/app/views/releaf/base/show.haml +0 -3
- data/app/views/releaf/content/_edit.content_fields.haml +0 -19
- data/app/views/releaf/content/_show.field.content.haml +0 -11
- data/app/views/releaf/roles/_edit.field.admins.haml +0 -0
- data/app/views/releaf/roles/_edit.field.permissions.haml +0 -5
- data/app/views/releaf/translations/_index.row.haml +0 -5
- data/spec/dummy/README.rdoc +0 -261
- data/spec/dummy/Rakefile +0 -7
- data/spec/dummy/app/assets/images/rails.png +0 -0
- data/spec/dummy/app/assets/javascripts/application.js +0 -15
- data/spec/dummy/app/assets/stylesheets/application.css +0 -13
- data/spec/dummy/app/controllers/application_controller.rb +0 -3
- data/spec/dummy/app/helpers/application_helper.rb +0 -2
- data/spec/dummy/app/models/admin_ability.rb +0 -51
- data/spec/dummy/app/models/settings.rb +0 -2
- data/spec/dummy/app/views/layouts/application.html.haml +0 -10
- data/spec/dummy/config.ru +0 -4
- data/spec/dummy/config/application.rb +0 -68
- data/spec/dummy/config/boot.rb +0 -6
- data/spec/dummy/config/common_fields.yml.example +0 -17
- data/spec/dummy/config/database.yml +0 -42
- data/spec/dummy/config/environment.rb +0 -5
- data/spec/dummy/config/environments/development.rb +0 -37
- data/spec/dummy/config/environments/production.rb +0 -67
- data/spec/dummy/config/environments/test.rb +0 -37
- data/spec/dummy/config/initializers/backtrace_silencers.rb +0 -7
- data/spec/dummy/config/initializers/devise.rb +0 -232
- data/spec/dummy/config/initializers/dragonfly.rb +0 -1
- data/spec/dummy/config/initializers/inflections.rb +0 -15
- data/spec/dummy/config/initializers/mime_types.rb +0 -5
- data/spec/dummy/config/initializers/releaf.rb +0 -59
- data/spec/dummy/config/initializers/releaf_i18n.rb +0 -8
- data/spec/dummy/config/initializers/releaf_store_current_template.rb +0 -25
- data/spec/dummy/config/initializers/secret_token.rb +0 -7
- data/spec/dummy/config/initializers/session_store.rb +0 -8
- data/spec/dummy/config/initializers/wrap_parameters.rb +0 -14
- data/spec/dummy/config/locales/devise.en.yml +0 -58
- data/spec/dummy/config/locales/en.yml +0 -5
- data/spec/dummy/config/routes.rb +0 -11
- data/spec/dummy/db/migrate/20130204164516_create_settings.rb +0 -17
- data/spec/dummy/db/migrate/20130204164523_create_releaf_nodes.rb +0 -25
- data/spec/dummy/db/migrate/20130204164524_create_releaf_roles.rb +0 -11
- data/spec/dummy/db/migrate/20130204164525_create_releaf_translations.rb +0 -31
- data/spec/dummy/db/migrate/20130204164526_create_releaf_admins.rb +0 -53
- data/spec/dummy/db/schema.rb +0 -112
- data/spec/dummy/db/seeds.rb +0 -64
- data/spec/dummy/doc/README_FOR_APP +0 -2
- data/spec/dummy/log/development.log +0 -74
- data/spec/dummy/log/test.log +0 -129
- data/spec/dummy/public/404.html +0 -26
- data/spec/dummy/public/422.html +0 -26
- data/spec/dummy/public/500.html +0 -25
- data/spec/dummy/public/favicon.ico +0 -0
- data/spec/dummy/script/rails +0 -6
- data/spec/dummy/tmp/cache/9C5/660/settings%3Ai18n_updated_at +0 -1
data/spec/dummy/db/seeds.rb
DELETED
@@ -1,64 +0,0 @@
|
|
1
|
-
# encoding: UTF-8
|
2
|
-
|
3
|
-
Releaf::Role.delete_all
|
4
|
-
Releaf::Admin.delete_all
|
5
|
-
|
6
|
-
Settings.delete_all
|
7
|
-
|
8
|
-
# Role {{{
|
9
|
-
|
10
|
-
puts "Creating roles"
|
11
|
-
roles = {
|
12
|
-
default: {
|
13
|
-
name: 'default role',
|
14
|
-
default: true
|
15
|
-
},
|
16
|
-
admins: {
|
17
|
-
name: 'admins',
|
18
|
-
default: false,
|
19
|
-
admin_permission: true
|
20
|
-
}
|
21
|
-
}
|
22
|
-
|
23
|
-
roles.each_value do |value|
|
24
|
-
value[:id] = Releaf::Role.create!(value).id
|
25
|
-
end
|
26
|
-
|
27
|
-
# }}}
|
28
|
-
# Admin {{{
|
29
|
-
|
30
|
-
puts "Creating admins"
|
31
|
-
admins = {
|
32
|
-
admin: {
|
33
|
-
name: 'Admin',
|
34
|
-
surname: 'User',
|
35
|
-
password: 'password',
|
36
|
-
password_confirmation: 'password',
|
37
|
-
email: 'admin@example.com',
|
38
|
-
role_id: roles[:admins][:id],
|
39
|
-
},
|
40
|
-
janis: {
|
41
|
-
name: 'Simple',
|
42
|
-
surname: 'User',
|
43
|
-
password: 'LetMeIn',
|
44
|
-
password_confirmation: 'LetMeIn',
|
45
|
-
email: 'user@example.com',
|
46
|
-
role_id: roles[:default][:id]
|
47
|
-
}
|
48
|
-
}
|
49
|
-
|
50
|
-
admins.each_value do |value|
|
51
|
-
value[:id] = Releaf::Admin.create!(value).id
|
52
|
-
end
|
53
|
-
|
54
|
-
# }}}
|
55
|
-
# Settings {{{
|
56
|
-
|
57
|
-
puts "Creating settings"
|
58
|
-
Settings.i18n_locales = %w[en]
|
59
|
-
Settings.email_from = "do_not_reply@example.com"
|
60
|
-
|
61
|
-
# }}}
|
62
|
-
|
63
|
-
|
64
|
-
# vim: set fdm=marker:
|
@@ -1,74 +0,0 @@
|
|
1
|
-
Connecting to database specified by database.yml
|
2
|
-
Connecting to database specified by database.yml
|
3
|
-
Connecting to database specified by database.yml
|
4
|
-
Connecting to database specified by database.yml
|
5
|
-
[1m[36m (228.2ms)[0m [1mCREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB[0m
|
6
|
-
[1m[35m (428.0ms)[0m CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)
|
7
|
-
[1m[36m (39.0ms)[0m [1mSELECT `schema_migrations`.`version` FROM `schema_migrations` [0m
|
8
|
-
Migrating to CreateSettings (20130204164516)
|
9
|
-
[1m[35m (123.7ms)[0m CREATE TABLE `settings` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `var` varchar(255) NOT NULL, `value` text, `thing_id` int(11), `thing_type` varchar(30), `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB
|
10
|
-
[1m[36m (172.7ms)[0m [1mCREATE UNIQUE INDEX `index_settings_on_thing_type_and_thing_id_and_var` ON `settings` (`thing_type`, `thing_id`, `var`)[0m
|
11
|
-
[1m[35m (1.0ms)[0m INSERT INTO `schema_migrations` (`version`) VALUES ('20130204164516')
|
12
|
-
Migrating to CreateReleafNodes (20130204164523)
|
13
|
-
[1m[36m (121.1ms)[0m [1mCREATE TABLE `releaf_nodes` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `name` varchar(255), `slug` varchar(255), `parent_id` int(11), `lft` int(11), `rgt` int(11), `content_type` varchar(255), `content_id` int(11), `data` text, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL, `content_string` varchar(255), `position` int(11), `visible` tinyint(1) DEFAULT 1 NOT NULL, `protected` tinyint(1) DEFAULT 0 NOT NULL) ENGINE=InnoDB[0m
|
14
|
-
[1m[35m (178.6ms)[0m CREATE INDEX `index_releaf_nodes_on_parent_id` ON `releaf_nodes` (`parent_id`)
|
15
|
-
[1m[36m (145.3ms)[0m [1mCREATE INDEX `index_releaf_nodes_on_content_type_and_content_id` ON `releaf_nodes` (`content_type`, `content_id`)[0m
|
16
|
-
[1m[35m (147.1ms)[0m CREATE INDEX `index_releaf_nodes_on_lft` ON `releaf_nodes` (`lft`)
|
17
|
-
[1m[36m (148.0ms)[0m [1mCREATE INDEX `index_releaf_nodes_on_rgt` ON `releaf_nodes` (`rgt`)[0m
|
18
|
-
[1m[35m (156.3ms)[0m CREATE INDEX `index_releaf_nodes_on_slug` ON `releaf_nodes` (`slug`)
|
19
|
-
[1m[36m (2.8ms)[0m [1mINSERT INTO `schema_migrations` (`version`) VALUES ('20130204164523')[0m
|
20
|
-
Migrating to CreateReleafRoles (20130204164524)
|
21
|
-
[1m[35m (128.0ms)[0m CREATE TABLE `releaf_roles` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `name` varchar(255) NOT NULL, `permissions` text, `default` tinyint(1) DEFAULT 0 NOT NULL, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB
|
22
|
-
[1m[36m (2.2ms)[0m [1mINSERT INTO `schema_migrations` (`version`) VALUES ('20130204164524')[0m
|
23
|
-
Migrating to CreateReleafTranslations (20130204164525)
|
24
|
-
[1m[35m (147.8ms)[0m CREATE TABLE `releaf_translation_groups` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `scope` varchar(255) NOT NULL, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB
|
25
|
-
[1m[36m (140.7ms)[0m [1mCREATE UNIQUE INDEX `index_releaf_translation_groups_on_scope` ON `releaf_translation_groups` (`scope`)[0m
|
26
|
-
[1m[35m (131.7ms)[0m CREATE TABLE `releaf_translations` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `group_id` int(11) NOT NULL, `key` varchar(255) NOT NULL, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB
|
27
|
-
[1m[36m (149.0ms)[0m [1mCREATE UNIQUE INDEX `index_releaf_translations_on_group_id_and_key` ON `releaf_translations` (`group_id`, `key`)[0m
|
28
|
-
[1m[35m (138.1ms)[0m CREATE INDEX `index_releaf_translations_on_group_id` ON `releaf_translations` (`group_id`)
|
29
|
-
[1m[36m (133.4ms)[0m [1mCREATE TABLE `releaf_translation_data` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `translation_id` int(11) NOT NULL, `lang` varchar(5) NOT NULL, `localization` text, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB[0m
|
30
|
-
[1m[35m (138.5ms)[0m CREATE INDEX `index_releaf_translation_data_on_lang` ON `releaf_translation_data` (`lang`)
|
31
|
-
[1m[36m (135.2ms)[0m [1mCREATE INDEX `index_releaf_translation_data_on_translation_id` ON `releaf_translation_data` (`translation_id`)[0m
|
32
|
-
[1m[35m (132.7ms)[0m CREATE UNIQUE INDEX `index_releaf_translation_data_on_lang_and_translation_id` ON `releaf_translation_data` (`lang`, `translation_id`)
|
33
|
-
[1m[36m (1.8ms)[0m [1mINSERT INTO `schema_migrations` (`version`) VALUES ('20130204164525')[0m
|
34
|
-
Migrating to CreateReleafAdmins (20130204164526)
|
35
|
-
[1m[35m (125.1ms)[0m CREATE TABLE `releaf_admins` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `name` varchar(255) NOT NULL, `surname` varchar(255) NOT NULL, `phone` varchar(255), `avatar_uid` varchar(255), `role_id` int(11), `email` varchar(255) DEFAULT '' NOT NULL, `encrypted_password` varchar(255) DEFAULT '' NOT NULL, `reset_password_token` varchar(255), `reset_password_sent_at` datetime, `remember_created_at` datetime, `sign_in_count` int(11) DEFAULT 0, `current_sign_in_at` datetime, `last_sign_in_at` datetime, `current_sign_in_ip` varchar(255), `last_sign_in_ip` varchar(255), `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB
|
36
|
-
[1m[36m (169.1ms)[0m [1mCREATE INDEX `index_releaf_admins_on_role_id` ON `releaf_admins` (`role_id`)[0m
|
37
|
-
[1m[35m (145.9ms)[0m CREATE UNIQUE INDEX `index_releaf_admins_on_email` ON `releaf_admins` (`email`)
|
38
|
-
[1m[36m (140.5ms)[0m [1mCREATE UNIQUE INDEX `index_releaf_admins_on_reset_password_token` ON `releaf_admins` (`reset_password_token`)[0m
|
39
|
-
[1m[35m (0.9ms)[0m INSERT INTO `schema_migrations` (`version`) VALUES ('20130204164526')
|
40
|
-
[1m[36m (0.2ms)[0m [1mSELECT `schema_migrations`.`version` FROM `schema_migrations` [0m
|
41
|
-
Connecting to database specified by database.yml
|
42
|
-
[1m[36m (3.0ms)[0m [1mSELECT `schema_migrations`.`version` FROM `schema_migrations` [0m
|
43
|
-
[1m[35m (0.5ms)[0m DROP DATABASE IF EXISTS `dummy_test`
|
44
|
-
[1m[36m (0.4ms)[0m [1mCREATE DATABASE `dummy_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`[0m
|
45
|
-
[1m[35m (80.0ms)[0m CREATE TABLE `releaf_admins` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `name` varchar(255) NOT NULL, `surname` varchar(255) NOT NULL, `phone` varchar(255), `avatar_uid` varchar(255), `role_id` int(11), `email` varchar(255) DEFAULT '' NOT NULL, `encrypted_password` varchar(255) DEFAULT '' NOT NULL, `reset_password_token` varchar(255), `reset_password_sent_at` datetime, `remember_created_at` datetime, `sign_in_count` int(11) DEFAULT 0, `current_sign_in_at` datetime, `last_sign_in_at` datetime, `current_sign_in_ip` varchar(255), `last_sign_in_ip` varchar(255), `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB
|
46
|
-
[1m[36m (216.6ms)[0m [1mCREATE UNIQUE INDEX `index_releaf_admins_on_email` ON `releaf_admins` (`email`)[0m
|
47
|
-
[1m[35m (184.8ms)[0m CREATE UNIQUE INDEX `index_releaf_admins_on_reset_password_token` ON `releaf_admins` (`reset_password_token`)
|
48
|
-
[1m[36m (152.5ms)[0m [1mCREATE INDEX `index_releaf_admins_on_role_id` ON `releaf_admins` (`role_id`)[0m
|
49
|
-
[1m[35m (119.1ms)[0m CREATE TABLE `releaf_nodes` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `name` varchar(255), `slug` varchar(255), `parent_id` int(11), `lft` int(11), `rgt` int(11), `content_type` varchar(255), `content_id` int(11), `data` text, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL, `content_string` varchar(255), `position` int(11), `visible` tinyint(1) DEFAULT 1 NOT NULL, `protected` tinyint(1) DEFAULT 0 NOT NULL) ENGINE=InnoDB
|
50
|
-
[1m[36m (170.6ms)[0m [1mCREATE INDEX `index_releaf_nodes_on_content_type_and_content_id` ON `releaf_nodes` (`content_type`, `content_id`)[0m
|
51
|
-
[1m[35m (128.7ms)[0m CREATE INDEX `index_releaf_nodes_on_lft` ON `releaf_nodes` (`lft`)
|
52
|
-
[1m[36m (247.4ms)[0m [1mCREATE INDEX `index_releaf_nodes_on_parent_id` ON `releaf_nodes` (`parent_id`)[0m
|
53
|
-
[1m[35m (354.3ms)[0m CREATE INDEX `index_releaf_nodes_on_rgt` ON `releaf_nodes` (`rgt`)
|
54
|
-
[1m[36m (595.0ms)[0m [1mCREATE INDEX `index_releaf_nodes_on_slug` ON `releaf_nodes` (`slug`)[0m
|
55
|
-
[1m[35m (213.0ms)[0m CREATE TABLE `releaf_roles` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `name` varchar(255) NOT NULL, `permissions` text, `default` tinyint(1) DEFAULT 0 NOT NULL, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB
|
56
|
-
[1m[36m (136.7ms)[0m [1mCREATE TABLE `releaf_translation_data` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `translation_id` int(11) NOT NULL, `lang` varchar(5) NOT NULL, `localization` text, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB[0m
|
57
|
-
[1m[35m (132.8ms)[0m CREATE UNIQUE INDEX `index_releaf_translation_data_on_lang_and_translation_id` ON `releaf_translation_data` (`lang`, `translation_id`)
|
58
|
-
[1m[36m (135.4ms)[0m [1mCREATE INDEX `index_releaf_translation_data_on_lang` ON `releaf_translation_data` (`lang`)[0m
|
59
|
-
[1m[35m (159.7ms)[0m CREATE INDEX `index_releaf_translation_data_on_translation_id` ON `releaf_translation_data` (`translation_id`)
|
60
|
-
[1m[36m (126.1ms)[0m [1mCREATE TABLE `releaf_translation_groups` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `scope` varchar(255) NOT NULL, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB[0m
|
61
|
-
[1m[35m (154.6ms)[0m CREATE UNIQUE INDEX `index_releaf_translation_groups_on_scope` ON `releaf_translation_groups` (`scope`)
|
62
|
-
[1m[36m (125.9ms)[0m [1mCREATE TABLE `releaf_translations` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `group_id` int(11) NOT NULL, `key` varchar(255) NOT NULL, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB[0m
|
63
|
-
[1m[35m (180.7ms)[0m CREATE UNIQUE INDEX `index_releaf_translations_on_group_id_and_key` ON `releaf_translations` (`group_id`, `key`)
|
64
|
-
[1m[36m (152.6ms)[0m [1mCREATE INDEX `index_releaf_translations_on_group_id` ON `releaf_translations` (`group_id`)[0m
|
65
|
-
[1m[35m (138.6ms)[0m CREATE TABLE `settings` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `var` varchar(255) NOT NULL, `value` text, `thing_id` int(11), `thing_type` varchar(30), `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB
|
66
|
-
[1m[36m (151.2ms)[0m [1mCREATE UNIQUE INDEX `index_settings_on_thing_type_and_thing_id_and_var` ON `settings` (`thing_type`, `thing_id`, `var`)[0m
|
67
|
-
[1m[35m (137.6ms)[0m CREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB
|
68
|
-
[1m[36m (155.5ms)[0m [1mCREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)[0m
|
69
|
-
[1m[35m (0.2ms)[0m SELECT version FROM `schema_migrations`
|
70
|
-
[1m[36m (2.3ms)[0m [1mINSERT INTO `schema_migrations` (version) VALUES ('20130204164526')[0m
|
71
|
-
[1m[35m (0.8ms)[0m INSERT INTO `schema_migrations` (version) VALUES ('20130204164516')
|
72
|
-
[1m[36m (0.8ms)[0m [1mINSERT INTO `schema_migrations` (version) VALUES ('20130204164523')[0m
|
73
|
-
[1m[35m (0.8ms)[0m INSERT INTO `schema_migrations` (version) VALUES ('20130204164524')
|
74
|
-
[1m[36m (1.8ms)[0m [1mINSERT INTO `schema_migrations` (version) VALUES ('20130204164525')[0m
|
data/spec/dummy/log/test.log
DELETED
@@ -1,129 +0,0 @@
|
|
1
|
-
Connecting to database specified by database.yml
|
2
|
-
[1m[36m (3.0ms)[0m [1mSELECT lang FROM `releaf_translation_data` WHERE (lang IS NOT NULL) GROUP BY lang[0m
|
3
|
-
[1m[35mI18n::Backend::Releaf::Translation Load (2.6ms)[0m SELECT releaf_translations.*, releaf_translation_data.lang as "lang", releaf_translation_data.localization as "localization", releaf_translation_groups.scope as "scope" FROM `releaf_translations` INNER JOIN `releaf_translation_data` ON `releaf_translation_data`.`translation_id` = `releaf_translations`.`id` INNER JOIN `releaf_translation_groups` ON `releaf_translation_groups`.`id` = `releaf_translations`.`group_id` WHERE (releaf_translation_data.lang IS NOT NULL) AND (`releaf_translations`.`id` >= 0) ORDER BY `releaf_translations`.`id` ASC LIMIT 1000
|
4
|
-
[1m[36mSettings Load (0.5ms)[0m [1mSELECT `settings`.* FROM `settings` WHERE `settings`.`thing_type` IS NULL AND `settings`.`thing_id` IS NULL AND `settings`.`var` = 'i18n_updated_at' LIMIT 1[0m
|
5
|
-
[1m[35m (0.2ms)[0m BEGIN
|
6
|
-
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
7
|
-
[1m[35mReleaf::Role Exists (0.4ms)[0m SELECT 1 AS one FROM `releaf_roles` WHERE `releaf_roles`.`name` = 'role 1' LIMIT 1
|
8
|
-
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO `releaf_roles` (`created_at`, `default`, `name`, `permissions`, `updated_at`) VALUES ('2013-02-04 16:45:47', 0, 'role 1', '---\n- admin\n', '2013-02-04 16:45:47')[0m
|
9
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
10
|
-
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
11
|
-
[1m[35mReleaf::Admin Exists (0.4ms)[0m SELECT 1 AS one FROM `releaf_admins` WHERE `releaf_admins`.`email` = BINARY 'person-1@example.com' LIMIT 1
|
12
|
-
[1m[36mReleaf::Admin Exists (0.2ms)[0m [1mSELECT 1 AS one FROM `releaf_admins` WHERE `releaf_admins`.`email` = 'person-1@example.com' LIMIT 1[0m
|
13
|
-
[1m[35mSQL (0.3ms)[0m INSERT INTO `releaf_admins` (`avatar_uid`, `created_at`, `current_sign_in_at`, `current_sign_in_ip`, `email`, `encrypted_password`, `last_sign_in_at`, `last_sign_in_ip`, `name`, `phone`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `role_id`, `sign_in_count`, `surname`, `updated_at`) VALUES (NULL, '2013-02-04 16:45:47', NULL, NULL, 'person-1@example.com', '$2a$04$pbE/3hbHRSgPEIHt6LqKy.IRJ58PwHnDM2wF8TUxYxhOyzchHY3ty', NULL, NULL, 'admin', NULL, NULL, NULL, NULL, 1, 0, 'admin', '2013-02-04 16:45:47')
|
14
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
15
|
-
Started GET "/admin" for 127.0.0.1 at 2013-02-04 18:45:47 +0200
|
16
|
-
Processing by Releaf::ContentController#index as HTML
|
17
|
-
Completed 401 Unauthorized in 1ms
|
18
|
-
[1m[35mI18n::Backend::Releaf::Translation Exists (0.4ms)[0m SELECT 1 AS one FROM `releaf_translations` WHERE (releaf_translations.key IN ('devise.failure.releaf_admin.unauthenticated','devise.failure.unauthenticated','devise.unauthenticated','unauthenticated')) LIMIT 1
|
19
|
-
[1m[36mI18n::Backend::Releaf::TranslationGroup Load (0.2ms)[0m [1mSELECT `releaf_translation_groups`.* FROM `releaf_translation_groups` WHERE `releaf_translation_groups`.`scope` = 'devise.failure.releaf_admin' LIMIT 1[0m
|
20
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
21
|
-
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO `releaf_translation_groups` (`created_at`, `scope`, `updated_at`) VALUES ('2013-02-04 16:45:47', 'devise.failure.releaf_admin', '2013-02-04 16:45:47')[0m
|
22
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
23
|
-
[1m[36mI18n::Backend::Releaf::TranslationGroup Load (0.2ms)[0m [1mSELECT `releaf_translation_groups`.* FROM `releaf_translation_groups` WHERE `releaf_translation_groups`.`scope` = 'devise.failure' LIMIT 1[0m
|
24
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
25
|
-
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `releaf_translation_groups` (`created_at`, `scope`, `updated_at`) VALUES ('2013-02-04 16:45:47', 'devise.failure', '2013-02-04 16:45:47')[0m
|
26
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
27
|
-
[1m[36mI18n::Backend::Releaf::TranslationGroup Load (0.2ms)[0m [1mSELECT `releaf_translation_groups`.* FROM `releaf_translation_groups` WHERE `releaf_translation_groups`.`scope` = 'devise' LIMIT 1[0m
|
28
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
29
|
-
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `releaf_translation_groups` (`created_at`, `scope`, `updated_at`) VALUES ('2013-02-04 16:45:47', 'devise', '2013-02-04 16:45:47')[0m
|
30
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
31
|
-
[1m[36mI18n::Backend::Releaf::Translation Load (0.3ms)[0m [1mSELECT `releaf_translations`.* FROM `releaf_translations` WHERE `releaf_translations`.`group_id` = 1 AND `releaf_translations`.`key` = 'devise.failure.releaf_admin.unauthenticated' ORDER BY releaf_translations.key LIMIT 1[0m
|
32
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
33
|
-
[1m[36mI18n::Backend::Releaf::Translation Exists (0.4ms)[0m [1mSELECT 1 AS one FROM `releaf_translations` WHERE (`releaf_translations`.`key` = BINARY 'devise.failure.releaf_admin.unauthenticated' AND `releaf_translations`.`group_id` = 1) LIMIT 1[0m
|
34
|
-
[1m[35mSQL (0.2ms)[0m INSERT INTO `releaf_translations` (`created_at`, `group_id`, `key`, `updated_at`) VALUES ('2013-02-04 16:45:47', 1, 'devise.failure.releaf_admin.unauthenticated', '2013-02-04 16:45:47')
|
35
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
36
|
-
[1m[35mI18n::Backend::Releaf::Translation Exists (0.2ms)[0m SELECT 1 AS one FROM `releaf_translations` WHERE (releaf_translations.key IN ('devise.failure.unauthenticated','devise.unauthenticated','unauthenticated')) LIMIT 1
|
37
|
-
[1m[36mI18n::Backend::Releaf::TranslationGroup Load (0.2ms)[0m [1mSELECT `releaf_translation_groups`.* FROM `releaf_translation_groups` WHERE `releaf_translation_groups`.`scope` = 'devise.failure' LIMIT 1[0m
|
38
|
-
[1m[35mI18n::Backend::Releaf::TranslationGroup Load (0.3ms)[0m SELECT `releaf_translation_groups`.* FROM `releaf_translation_groups` WHERE `releaf_translation_groups`.`scope` = 'devise' LIMIT 1
|
39
|
-
[1m[36mI18n::Backend::Releaf::Translation Load (0.3ms)[0m [1mSELECT `releaf_translations`.* FROM `releaf_translations` WHERE `releaf_translations`.`group_id` = 2 AND `releaf_translations`.`key` = 'devise.failure.unauthenticated' ORDER BY releaf_translations.key LIMIT 1[0m
|
40
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
41
|
-
[1m[36mI18n::Backend::Releaf::Translation Exists (0.3ms)[0m [1mSELECT 1 AS one FROM `releaf_translations` WHERE (`releaf_translations`.`key` = BINARY 'devise.failure.unauthenticated' AND `releaf_translations`.`group_id` = 2) LIMIT 1[0m
|
42
|
-
[1m[35mSQL (0.2ms)[0m INSERT INTO `releaf_translations` (`created_at`, `group_id`, `key`, `updated_at`) VALUES ('2013-02-04 16:45:47', 2, 'devise.failure.unauthenticated', '2013-02-04 16:45:47')
|
43
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
44
|
-
Started GET "/admin/sign_in" for 127.0.0.1 at 2013-02-04 18:45:48 +0200
|
45
|
-
Processing by Releaf::SessionsController#new as HTML
|
46
|
-
Rendered /Users/miks/code/releaf/app/views/releaf/sessions/new.html.haml within layouts/releaf/admin (5.5ms)
|
47
|
-
Completed 200 OK in 26ms (Views: 25.2ms | ActiveRecord: 0.0ms)
|
48
|
-
Started POST "/admin/sign_in" for 127.0.0.1 at 2013-02-04 18:45:48 +0200
|
49
|
-
Processing by Releaf::SessionsController#create as HTML
|
50
|
-
Parameters: {"utf8"=>"✓", "releaf_admin"=>{"email"=>"person-1@example.com", "password"=>"[FILTERED]"}}
|
51
|
-
[1m[35mReleaf::Admin Load (0.4ms)[0m SELECT `releaf_admins`.* FROM `releaf_admins` WHERE `releaf_admins`.`email` = 'person-1@example.com' LIMIT 1
|
52
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
53
|
-
[1m[35m (0.4ms)[0m UPDATE `releaf_admins` SET `last_sign_in_at` = '2013-02-04 16:45:48', `current_sign_in_at` = '2013-02-04 16:45:48', `last_sign_in_ip` = '127.0.0.1', `current_sign_in_ip` = '127.0.0.1', `sign_in_count` = 1, `updated_at` = '2013-02-04 16:45:48' WHERE `releaf_admins`.`id` = 1
|
54
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
55
|
-
[1m[35mI18n::Backend::Releaf::Translation Exists (0.3ms)[0m SELECT 1 AS one FROM `releaf_translations` WHERE (releaf_translations.key IN ('devise.sessions.releaf_admin.signed_in','devise.sessions.signed_in','devise.signed_in','signed_in')) LIMIT 1
|
56
|
-
[1m[36mI18n::Backend::Releaf::TranslationGroup Load (0.2ms)[0m [1mSELECT `releaf_translation_groups`.* FROM `releaf_translation_groups` WHERE `releaf_translation_groups`.`scope` = 'devise.sessions.releaf_admin' LIMIT 1[0m
|
57
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
58
|
-
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `releaf_translation_groups` (`created_at`, `scope`, `updated_at`) VALUES ('2013-02-04 16:45:48', 'devise.sessions.releaf_admin', '2013-02-04 16:45:48')[0m
|
59
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
60
|
-
[1m[36mI18n::Backend::Releaf::TranslationGroup Load (0.2ms)[0m [1mSELECT `releaf_translation_groups`.* FROM `releaf_translation_groups` WHERE `releaf_translation_groups`.`scope` = 'devise.sessions' LIMIT 1[0m
|
61
|
-
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
62
|
-
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `releaf_translation_groups` (`created_at`, `scope`, `updated_at`) VALUES ('2013-02-04 16:45:48', 'devise.sessions', '2013-02-04 16:45:48')[0m
|
63
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
64
|
-
[1m[36mI18n::Backend::Releaf::TranslationGroup Load (0.2ms)[0m [1mSELECT `releaf_translation_groups`.* FROM `releaf_translation_groups` WHERE `releaf_translation_groups`.`scope` = 'devise' LIMIT 1[0m
|
65
|
-
[1m[35mI18n::Backend::Releaf::Translation Load (0.2ms)[0m SELECT `releaf_translations`.* FROM `releaf_translations` WHERE `releaf_translations`.`group_id` = 4 AND `releaf_translations`.`key` = 'devise.sessions.releaf_admin.signed_in' ORDER BY releaf_translations.key LIMIT 1
|
66
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
67
|
-
[1m[35mI18n::Backend::Releaf::Translation Exists (0.3ms)[0m SELECT 1 AS one FROM `releaf_translations` WHERE (`releaf_translations`.`key` = BINARY 'devise.sessions.releaf_admin.signed_in' AND `releaf_translations`.`group_id` = 4) LIMIT 1
|
68
|
-
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `releaf_translations` (`created_at`, `group_id`, `key`, `updated_at`) VALUES ('2013-02-04 16:45:48', 4, 'devise.sessions.releaf_admin.signed_in', '2013-02-04 16:45:48')[0m
|
69
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
70
|
-
[1m[36mI18n::Backend::Releaf::Translation Exists (0.2ms)[0m [1mSELECT 1 AS one FROM `releaf_translations` WHERE (releaf_translations.key IN ('devise.sessions.signed_in','devise.signed_in','signed_in')) LIMIT 1[0m
|
71
|
-
[1m[35mI18n::Backend::Releaf::TranslationGroup Load (0.2ms)[0m SELECT `releaf_translation_groups`.* FROM `releaf_translation_groups` WHERE `releaf_translation_groups`.`scope` = 'devise.sessions' LIMIT 1
|
72
|
-
[1m[36mI18n::Backend::Releaf::TranslationGroup Load (0.2ms)[0m [1mSELECT `releaf_translation_groups`.* FROM `releaf_translation_groups` WHERE `releaf_translation_groups`.`scope` = 'devise' LIMIT 1[0m
|
73
|
-
[1m[35mI18n::Backend::Releaf::Translation Load (0.2ms)[0m SELECT `releaf_translations`.* FROM `releaf_translations` WHERE `releaf_translations`.`group_id` = 5 AND `releaf_translations`.`key` = 'devise.sessions.signed_in' ORDER BY releaf_translations.key LIMIT 1
|
74
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
75
|
-
[1m[35mI18n::Backend::Releaf::Translation Exists (0.3ms)[0m SELECT 1 AS one FROM `releaf_translations` WHERE (`releaf_translations`.`key` = BINARY 'devise.sessions.signed_in' AND `releaf_translations`.`group_id` = 5) LIMIT 1
|
76
|
-
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `releaf_translations` (`created_at`, `group_id`, `key`, `updated_at`) VALUES ('2013-02-04 16:45:48', 5, 'devise.sessions.signed_in', '2013-02-04 16:45:48')[0m
|
77
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
78
|
-
Redirected to http://www.example.com/admin
|
79
|
-
Completed 302 Found in 35ms (ActiveRecord: 0.0ms)
|
80
|
-
Started GET "/admin" for 127.0.0.1 at 2013-02-04 18:45:48 +0200
|
81
|
-
Processing by Releaf::ContentController#index as HTML
|
82
|
-
[1m[36mReleaf::Admin Load (0.4ms)[0m [1mSELECT `releaf_admins`.* FROM `releaf_admins` WHERE `releaf_admins`.`id` = 1 LIMIT 1[0m
|
83
|
-
[1m[35mReleaf::Role Load (0.3ms)[0m SELECT `releaf_roles`.* FROM `releaf_roles` WHERE `releaf_roles`.`id` = 1 LIMIT 1
|
84
|
-
Rendered /Users/miks/code/releaf/app/views/releaf/content/index.haml within layouts/releaf/admin (0.7ms)
|
85
|
-
[1m[36mI18n::Backend::Releaf::Translation Exists (0.3ms)[0m [1mSELECT 1 AS one FROM `releaf_translations` WHERE (releaf_translations.key IN ('global.logout','logout')) LIMIT 1[0m
|
86
|
-
[1m[35mI18n::Backend::Releaf::TranslationGroup Load (0.2ms)[0m SELECT `releaf_translation_groups`.* FROM `releaf_translation_groups` WHERE `releaf_translation_groups`.`scope` = 'global' LIMIT 1
|
87
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
88
|
-
[1m[35mSQL (0.2ms)[0m INSERT INTO `releaf_translation_groups` (`created_at`, `scope`, `updated_at`) VALUES ('2013-02-04 16:45:48', 'global', '2013-02-04 16:45:48')
|
89
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
90
|
-
[1m[35mI18n::Backend::Releaf::Translation Load (0.2ms)[0m SELECT `releaf_translations`.* FROM `releaf_translations` WHERE `releaf_translations`.`group_id` = 6 AND `releaf_translations`.`key` = 'global.logout' ORDER BY releaf_translations.key LIMIT 1
|
91
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
92
|
-
[1m[35mI18n::Backend::Releaf::Translation Exists (0.3ms)[0m SELECT 1 AS one FROM `releaf_translations` WHERE (`releaf_translations`.`key` = BINARY 'global.logout' AND `releaf_translations`.`group_id` = 6) LIMIT 1
|
93
|
-
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `releaf_translations` (`created_at`, `group_id`, `key`, `updated_at`) VALUES ('2013-02-04 16:45:48', 6, 'global.logout', '2013-02-04 16:45:48')[0m
|
94
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
95
|
-
[1m[36mI18n::Backend::Releaf::Translation Exists (0.3ms)[0m [1mSELECT 1 AS one FROM `releaf_translations` WHERE (releaf_translations.key IN ('admin.main_menu.releaf/content','admin.releaf/content','releaf/content')) LIMIT 1[0m
|
96
|
-
[1m[35mI18n::Backend::Releaf::TranslationGroup Load (0.3ms)[0m SELECT `releaf_translation_groups`.* FROM `releaf_translation_groups` WHERE `releaf_translation_groups`.`scope` = 'admin.main_menu' LIMIT 1
|
97
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
98
|
-
[1m[35mSQL (0.2ms)[0m INSERT INTO `releaf_translation_groups` (`created_at`, `scope`, `updated_at`) VALUES ('2013-02-04 16:45:48', 'admin.main_menu', '2013-02-04 16:45:48')
|
99
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
100
|
-
[1m[35mI18n::Backend::Releaf::TranslationGroup Load (0.2ms)[0m SELECT `releaf_translation_groups`.* FROM `releaf_translation_groups` WHERE `releaf_translation_groups`.`scope` = 'admin' LIMIT 1
|
101
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
102
|
-
[1m[35mSQL (0.2ms)[0m INSERT INTO `releaf_translation_groups` (`created_at`, `scope`, `updated_at`) VALUES ('2013-02-04 16:45:48', 'admin', '2013-02-04 16:45:48')
|
103
|
-
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
104
|
-
[1m[35mI18n::Backend::Releaf::Translation Load (0.2ms)[0m SELECT `releaf_translations`.* FROM `releaf_translations` WHERE `releaf_translations`.`group_id` = 7 AND `releaf_translations`.`key` = 'admin.main_menu.releaf/content' ORDER BY releaf_translations.key LIMIT 1
|
105
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
106
|
-
[1m[35mI18n::Backend::Releaf::Translation Exists (0.3ms)[0m SELECT 1 AS one FROM `releaf_translations` WHERE (`releaf_translations`.`key` = BINARY 'admin.main_menu.releaf/content' AND `releaf_translations`.`group_id` = 7) LIMIT 1
|
107
|
-
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `releaf_translations` (`created_at`, `group_id`, `key`, `updated_at`) VALUES ('2013-02-04 16:45:48', 7, 'admin.main_menu.releaf/content', '2013-02-04 16:45:48')[0m
|
108
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
109
|
-
[1m[36mI18n::Backend::Releaf::Translation Exists (0.3ms)[0m [1mSELECT 1 AS one FROM `releaf_translations` WHERE (releaf_translations.key IN ('admin.main_menu.*permissions','admin.*permissions','*permissions')) LIMIT 1[0m
|
110
|
-
[1m[35mI18n::Backend::Releaf::TranslationGroup Load (0.2ms)[0m SELECT `releaf_translation_groups`.* FROM `releaf_translation_groups` WHERE `releaf_translation_groups`.`scope` = 'admin.main_menu' LIMIT 1
|
111
|
-
[1m[36mI18n::Backend::Releaf::TranslationGroup Load (0.2ms)[0m [1mSELECT `releaf_translation_groups`.* FROM `releaf_translation_groups` WHERE `releaf_translation_groups`.`scope` = 'admin' LIMIT 1[0m
|
112
|
-
[1m[35mI18n::Backend::Releaf::Translation Load (0.2ms)[0m SELECT `releaf_translations`.* FROM `releaf_translations` WHERE `releaf_translations`.`group_id` = 7 AND `releaf_translations`.`key` = 'admin.main_menu.*permissions' ORDER BY releaf_translations.key LIMIT 1
|
113
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
114
|
-
[1m[35mI18n::Backend::Releaf::Translation Exists (0.3ms)[0m SELECT 1 AS one FROM `releaf_translations` WHERE (`releaf_translations`.`key` = BINARY 'admin.main_menu.*permissions' AND `releaf_translations`.`group_id` = 7) LIMIT 1
|
115
|
-
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `releaf_translations` (`created_at`, `group_id`, `key`, `updated_at`) VALUES ('2013-02-04 16:45:48', 7, 'admin.main_menu.*permissions', '2013-02-04 16:45:48')[0m
|
116
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
117
|
-
[1m[36mI18n::Backend::Releaf::Translation Exists (0.3ms)[0m [1mSELECT 1 AS one FROM `releaf_translations` WHERE (releaf_translations.key IN ('admin.main_menu.releaf/translations','admin.releaf/translations','releaf/translations')) LIMIT 1[0m
|
118
|
-
[1m[35mI18n::Backend::Releaf::TranslationGroup Load (0.2ms)[0m SELECT `releaf_translation_groups`.* FROM `releaf_translation_groups` WHERE `releaf_translation_groups`.`scope` = 'admin.main_menu' LIMIT 1
|
119
|
-
[1m[36mI18n::Backend::Releaf::TranslationGroup Load (0.2ms)[0m [1mSELECT `releaf_translation_groups`.* FROM `releaf_translation_groups` WHERE `releaf_translation_groups`.`scope` = 'admin' LIMIT 1[0m
|
120
|
-
[1m[35mI18n::Backend::Releaf::Translation Load (0.2ms)[0m SELECT `releaf_translations`.* FROM `releaf_translations` WHERE `releaf_translations`.`group_id` = 7 AND `releaf_translations`.`key` = 'admin.main_menu.releaf/translations' ORDER BY releaf_translations.key LIMIT 1
|
121
|
-
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
122
|
-
[1m[35mI18n::Backend::Releaf::Translation Exists (0.3ms)[0m SELECT 1 AS one FROM `releaf_translations` WHERE (`releaf_translations`.`key` = BINARY 'admin.main_menu.releaf/translations' AND `releaf_translations`.`group_id` = 7) LIMIT 1
|
123
|
-
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `releaf_translations` (`created_at`, `group_id`, `key`, `updated_at`) VALUES ('2013-02-04 16:45:48', 7, 'admin.main_menu.releaf/translations', '2013-02-04 16:45:48')[0m
|
124
|
-
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
125
|
-
[1m[36mReleaf::Node Load (0.4ms)[0m [1mSELECT `releaf_nodes`.* FROM `releaf_nodes` WHERE `releaf_nodes`.`parent_id` IS NULL ORDER BY position, `releaf_nodes`.`lft`[0m
|
126
|
-
Rendered /Users/miks/code/releaf/app/views/releaf/content/_tree_level.haml (10.9ms)
|
127
|
-
Rendered /Users/miks/code/releaf/app/views/releaf/content/_secondary_panel.haml (16.6ms)
|
128
|
-
Completed 200 OK in 112ms (Views: 85.3ms | ActiveRecord: 12.3ms)
|
129
|
-
[1m[35m (1.5ms)[0m ROLLBACK
|
data/spec/dummy/public/404.html
DELETED
@@ -1,26 +0,0 @@
|
|
1
|
-
<!DOCTYPE html>
|
2
|
-
<html>
|
3
|
-
<head>
|
4
|
-
<title>The page you were looking for doesn't exist (404)</title>
|
5
|
-
<style type="text/css">
|
6
|
-
body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
|
7
|
-
div.dialog {
|
8
|
-
width: 25em;
|
9
|
-
padding: 0 4em;
|
10
|
-
margin: 4em auto 0 auto;
|
11
|
-
border: 1px solid #ccc;
|
12
|
-
border-right-color: #999;
|
13
|
-
border-bottom-color: #999;
|
14
|
-
}
|
15
|
-
h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
|
16
|
-
</style>
|
17
|
-
</head>
|
18
|
-
|
19
|
-
<body>
|
20
|
-
<!-- This file lives in public/404.html -->
|
21
|
-
<div class="dialog">
|
22
|
-
<h1>The page you were looking for doesn't exist.</h1>
|
23
|
-
<p>You may have mistyped the address or the page may have moved.</p>
|
24
|
-
</div>
|
25
|
-
</body>
|
26
|
-
</html>
|
data/spec/dummy/public/422.html
DELETED
@@ -1,26 +0,0 @@
|
|
1
|
-
<!DOCTYPE html>
|
2
|
-
<html>
|
3
|
-
<head>
|
4
|
-
<title>The change you wanted was rejected (422)</title>
|
5
|
-
<style type="text/css">
|
6
|
-
body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
|
7
|
-
div.dialog {
|
8
|
-
width: 25em;
|
9
|
-
padding: 0 4em;
|
10
|
-
margin: 4em auto 0 auto;
|
11
|
-
border: 1px solid #ccc;
|
12
|
-
border-right-color: #999;
|
13
|
-
border-bottom-color: #999;
|
14
|
-
}
|
15
|
-
h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
|
16
|
-
</style>
|
17
|
-
</head>
|
18
|
-
|
19
|
-
<body>
|
20
|
-
<!-- This file lives in public/422.html -->
|
21
|
-
<div class="dialog">
|
22
|
-
<h1>The change you wanted was rejected.</h1>
|
23
|
-
<p>Maybe you tried to change something you didn't have access to.</p>
|
24
|
-
</div>
|
25
|
-
</body>
|
26
|
-
</html>
|
data/spec/dummy/public/500.html
DELETED
@@ -1,25 +0,0 @@
|
|
1
|
-
<!DOCTYPE html>
|
2
|
-
<html>
|
3
|
-
<head>
|
4
|
-
<title>We're sorry, but something went wrong (500)</title>
|
5
|
-
<style type="text/css">
|
6
|
-
body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
|
7
|
-
div.dialog {
|
8
|
-
width: 25em;
|
9
|
-
padding: 0 4em;
|
10
|
-
margin: 4em auto 0 auto;
|
11
|
-
border: 1px solid #ccc;
|
12
|
-
border-right-color: #999;
|
13
|
-
border-bottom-color: #999;
|
14
|
-
}
|
15
|
-
h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
|
16
|
-
</style>
|
17
|
-
</head>
|
18
|
-
|
19
|
-
<body>
|
20
|
-
<!-- This file lives in public/500.html -->
|
21
|
-
<div class="dialog">
|
22
|
-
<h1>We're sorry, but something went wrong.</h1>
|
23
|
-
</div>
|
24
|
-
</body>
|
25
|
-
</html>
|
File without changes
|
data/spec/dummy/script/rails
DELETED
@@ -1,6 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
# This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application.
|
3
|
-
|
4
|
-
APP_PATH = File.expand_path('../../config/application', __FILE__)
|
5
|
-
require File.expand_path('../../config/boot', __FILE__)
|
6
|
-
require 'rails/commands'
|
@@ -1 +0,0 @@
|
|
1
|
-
o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1359996345.613906:@value0
|