beerify 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/app/models/ability.rb +1 -0
- data/app/models/category.rb +6 -0
- data/app/models/news.rb +1 -0
- data/config/initializers/rails_admin.rb +1 -1
- data/config/initializers/rails_admin/news_admin.rb +1 -0
- data/config/locales/attributes.en.yml +6 -0
- data/config/locales/attributes.fr.yml +6 -0
- data/config/locales/models.en.yml +3 -0
- data/config/locales/models.fr.yml +3 -0
- data/db/migrate/20131009081122_create_categories.rb +10 -0
- data/db/migrate/20131009081315_add_category_to_news.rb +5 -0
- data/lib/beerify/version.rb +1 -1
- data/spec/beerify/models/category_spec.rb +5 -0
- data/spec/dummy/db/migrate/{20130904085929_create_users.beerify.rb → 20131009094348_create_users.beerify.rb} +0 -0
- data/spec/dummy/db/migrate/{20130904085930_add_devise_to_users.beerify.rb → 20131009094349_add_devise_to_users.beerify.rb} +0 -0
- data/spec/dummy/db/migrate/{20130904085931_create_catalogs.beerify.rb → 20131009094350_create_catalogs.beerify.rb} +0 -0
- data/spec/dummy/db/migrate/{20130904085932_create_photos.beerify.rb → 20131009094351_create_photos.beerify.rb} +0 -0
- data/spec/dummy/db/migrate/{20130904085933_create_products.beerify.rb → 20131009094352_create_products.beerify.rb} +0 -0
- data/spec/dummy/db/migrate/{20130904085934_add_photos_to_product.beerify.rb → 20131009094353_add_photos_to_product.beerify.rb} +0 -0
- data/spec/dummy/db/migrate/{20130904085935_create_contacts.beerify.rb → 20131009094354_create_contacts.beerify.rb} +0 -0
- data/spec/dummy/db/migrate/{20130906090417_create_news.beerify.rb → 20131009094355_create_news.beerify.rb} +0 -0
- data/spec/dummy/db/migrate/{20130906090418_create_ckeditor_assets.beerify.rb → 20131009094356_create_ckeditor_assets.beerify.rb} +0 -0
- data/spec/dummy/db/migrate/{20130918132952_add_highlight_to_products.beerify.rb → 20131009094357_add_highlight_to_products.beerify.rb} +0 -0
- data/spec/dummy/db/migrate/20131009094358_create_categories.beerify.rb +11 -0
- data/spec/dummy/db/migrate/20131009094359_add_category_to_news.beerify.rb +6 -0
- data/spec/dummy/db/schema.rb +10 -1
- data/spec/dummy/log/test.log +176 -0
- metadata +33 -22
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: effe188e853f7e2ca50942708d7912dcceb1dc1d
|
4
|
+
data.tar.gz: 1113396b5c4e44a38b4a7f4c087cdfaafa91d5d5
|
5
5
|
!binary "U0hBNTEy":
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2ebe843c9c9c2091df019cf105e0ebdeba905d350f3d4ef958866ed83f4719809b9c54bf7d8ab9362c7ed4232579300023580cb252b3807946a4fcd67e5f6d07
|
7
|
+
data.tar.gz: f666f589f34b46c924560d1148478a88755e1500981b1b5a8e27c5c2bb0d902d8c043bf3be0edf6e68fd99c6b3773bc9155d042cd14f4a03d8f7b219d42d503a
|
data/app/models/ability.rb
CHANGED
@@ -16,6 +16,7 @@ class Ability
|
|
16
16
|
can :dashboard
|
17
17
|
|
18
18
|
can [:read, :create, :update, :destroy, :export], Catalog
|
19
|
+
can [:read, :create, :update, :destroy, :export], Category
|
19
20
|
can [:read, :create, :update, :destroy ], Ckeditor::Picture
|
20
21
|
can [:read, :export], Contact
|
21
22
|
can [:read, :create, :update, :destroy, :export], News
|
data/app/models/news.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
RailsAdmin.config do |config|
|
2
2
|
config.authorize_with :cancan
|
3
3
|
|
4
|
-
config.included_models = [Catalog, Contact, News, Photo, Product, Users::Admin, Users::Customer]
|
4
|
+
config.included_models = [Catalog, Category, Contact, News, Photo, Product, Users::Admin, Users::Customer]
|
5
5
|
end
|
@@ -11,6 +11,11 @@ en:
|
|
11
11
|
description: 'Description'
|
12
12
|
products: 'Products'
|
13
13
|
title: 'Title'
|
14
|
+
category:
|
15
|
+
<<: *timestamps
|
16
|
+
description: 'Description'
|
17
|
+
news: 'News'
|
18
|
+
title: 'Title'
|
14
19
|
ckeditor:
|
15
20
|
buttons:
|
16
21
|
cancel: 'Cancel'
|
@@ -25,6 +30,7 @@ en:
|
|
25
30
|
name: 'Name'
|
26
31
|
news:
|
27
32
|
<<: *timestamps
|
33
|
+
category: 'Category'
|
28
34
|
content: 'Content'
|
29
35
|
photo: 'Photo'
|
30
36
|
published_on: 'Published on'
|
@@ -11,6 +11,11 @@ fr:
|
|
11
11
|
description: 'Description'
|
12
12
|
products: 'Produits'
|
13
13
|
title: 'Titre'
|
14
|
+
category:
|
15
|
+
<<: *timestamps
|
16
|
+
description: 'Description'
|
17
|
+
news: 'Actualités'
|
18
|
+
title: 'Titre'
|
14
19
|
ckeditor:
|
15
20
|
buttons:
|
16
21
|
cancel: 'Annuler'
|
@@ -25,6 +30,7 @@ fr:
|
|
25
30
|
name: 'Nom'
|
26
31
|
news:
|
27
32
|
<<: *timestamps
|
33
|
+
category: 'Categorie'
|
28
34
|
content: 'Contenu'
|
29
35
|
photo: 'Photo'
|
30
36
|
published_on: 'Publié le'
|
data/lib/beerify/version.rb
CHANGED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
data/spec/dummy/db/schema.rb
CHANGED
@@ -11,7 +11,7 @@
|
|
11
11
|
#
|
12
12
|
# It's strongly recommended that you check this file into your version control system.
|
13
13
|
|
14
|
-
ActiveRecord::Schema.define(version:
|
14
|
+
ActiveRecord::Schema.define(version: 20131009094359) do
|
15
15
|
|
16
16
|
create_table "catalogs", force: true do |t|
|
17
17
|
t.integer "catalog_id"
|
@@ -25,6 +25,13 @@ ActiveRecord::Schema.define(version: 20130918132952) do
|
|
25
25
|
add_index "catalogs", ["catalog_id"], name: "index_catalogs_on_catalog_id", using: :btree
|
26
26
|
add_index "catalogs", ["slug"], name: "index_catalogs_on_slug", unique: true, using: :btree
|
27
27
|
|
28
|
+
create_table "categories", force: true do |t|
|
29
|
+
t.string "title"
|
30
|
+
t.text "description"
|
31
|
+
t.datetime "created_at"
|
32
|
+
t.datetime "updated_at"
|
33
|
+
end
|
34
|
+
|
28
35
|
create_table "ckeditor_assets", force: true do |t|
|
29
36
|
t.integer "assetable_id"
|
30
37
|
t.integer "data_file_size"
|
@@ -58,8 +65,10 @@ ActiveRecord::Schema.define(version: 20130918132952) do
|
|
58
65
|
t.text "content"
|
59
66
|
t.datetime "created_at"
|
60
67
|
t.datetime "updated_at"
|
68
|
+
t.integer "category_id"
|
61
69
|
end
|
62
70
|
|
71
|
+
add_index "news", ["category_id"], name: "index_news_on_category_id", using: :btree
|
63
72
|
add_index "news", ["slug"], name: "index_news_on_slug", unique: true, using: :btree
|
64
73
|
add_index "news", ["user_id"], name: "index_news_on_user_id", using: :btree
|
65
74
|
|
@@ -0,0 +1,176 @@
|
|
1
|
+
[1m[36m (68.5ms)[0m [1mCREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB[0m
|
2
|
+
[1m[35m (174.9ms)[0m CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)
|
3
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
|
4
|
+
Migrating to CreateUsers (20131009094348)
|
5
|
+
[1m[35m (99.6ms)[0m CREATE TABLE `users` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `firstname` varchar(255), `lastname` varchar(255), `type` varchar(255), `username` varchar(255), `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
|
6
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
7
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO `schema_migrations` (`version`) VALUES ('20131009094348')
|
8
|
+
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
|
9
|
+
Migrating to AddDeviseToUsers (20131009094349)
|
10
|
+
[1m[35m (147.4ms)[0m ALTER TABLE `users` ADD `email` varchar(255) DEFAULT '' NOT NULL
|
11
|
+
[1m[36m (99.8ms)[0m [1mALTER TABLE `users` ADD `encrypted_password` varchar(255) DEFAULT '' NOT NULL[0m
|
12
|
+
[1m[35m (121.2ms)[0m ALTER TABLE `users` ADD `reset_password_token` varchar(255)
|
13
|
+
[1m[36m (122.7ms)[0m [1mALTER TABLE `users` ADD `reset_password_sent_at` datetime[0m
|
14
|
+
[1m[35m (100.7ms)[0m ALTER TABLE `users` ADD `remember_created_at` datetime
|
15
|
+
[1m[36m (145.6ms)[0m [1mALTER TABLE `users` ADD `sign_in_count` int(11) DEFAULT 0[0m
|
16
|
+
[1m[35m (121.6ms)[0m ALTER TABLE `users` ADD `current_sign_in_at` datetime
|
17
|
+
[1m[36m (99.6ms)[0m [1mALTER TABLE `users` ADD `last_sign_in_at` datetime[0m
|
18
|
+
[1m[35m (132.7ms)[0m ALTER TABLE `users` ADD `current_sign_in_ip` varchar(255)
|
19
|
+
[1m[36m (126.6ms)[0m [1mALTER TABLE `users` ADD `last_sign_in_ip` varchar(255)[0m
|
20
|
+
[1m[35m (110.1ms)[0m ALTER TABLE `users` ADD `authentication_token` varchar(255)
|
21
|
+
[1m[36m (112.0ms)[0m [1mCREATE UNIQUE INDEX `index_users_on_email` ON `users` (`email`) [0m
|
22
|
+
[1m[35m (93.2ms)[0m CREATE UNIQUE INDEX `index_users_on_reset_password_token` ON `users` (`reset_password_token`)
|
23
|
+
[1m[36m (89.9ms)[0m [1mCREATE UNIQUE INDEX `index_users_on_authentication_token` ON `users` (`authentication_token`) [0m
|
24
|
+
[1m[35m (0.2ms)[0m BEGIN
|
25
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO `schema_migrations` (`version`) VALUES ('20131009094349')[0m
|
26
|
+
[1m[35m (0.7ms)[0m COMMIT
|
27
|
+
Migrating to CreateCatalogs (20131009094350)
|
28
|
+
[1m[36m (94.5ms)[0m [1mCREATE TABLE `catalogs` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `catalog_id` int(11), `slug` varchar(255), `title` varchar(255), `description` text, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB[0m
|
29
|
+
[1m[35m (100.6ms)[0m CREATE INDEX `index_catalogs_on_catalog_id` ON `catalogs` (`catalog_id`)
|
30
|
+
[1m[36m (74.3ms)[0m [1mCREATE UNIQUE INDEX `index_catalogs_on_slug` ON `catalogs` (`slug`) [0m
|
31
|
+
[1m[35m (0.2ms)[0m BEGIN
|
32
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO `schema_migrations` (`version`) VALUES ('20131009094350')[0m
|
33
|
+
[1m[35m (0.6ms)[0m COMMIT
|
34
|
+
Migrating to CreatePhotos (20131009094351)
|
35
|
+
[1m[36m (94.9ms)[0m [1mCREATE TABLE `photos` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `priority` int(11), `attachment` varchar(255), `title` varchar(255), `description` text, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB[0m
|
36
|
+
[1m[35m (0.3ms)[0m BEGIN
|
37
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO `schema_migrations` (`version`) VALUES ('20131009094351')[0m
|
38
|
+
[1m[35m (0.6ms)[0m COMMIT
|
39
|
+
Migrating to CreateProducts (20131009094352)
|
40
|
+
[1m[36m (95.4ms)[0m [1mCREATE TABLE `products` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `price` decimal, `catalog_id` int(11), `title` varchar(255), `slug` varchar(255), `description` text, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB[0m
|
41
|
+
[1m[35m (81.4ms)[0m CREATE INDEX `index_products_on_catalog_id` ON `products` (`catalog_id`)
|
42
|
+
[1m[36m (93.3ms)[0m [1mCREATE UNIQUE INDEX `index_products_on_slug` ON `products` (`slug`) [0m
|
43
|
+
[1m[35m (0.2ms)[0m BEGIN
|
44
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO `schema_migrations` (`version`) VALUES ('20131009094352')[0m
|
45
|
+
[1m[35m (0.6ms)[0m COMMIT
|
46
|
+
Migrating to AddPhotosToProduct (20131009094353)
|
47
|
+
[1m[36m (109.3ms)[0m [1mALTER TABLE `photos` ADD `product_id` int(11)[0m
|
48
|
+
[1m[35m (120.6ms)[0m CREATE INDEX `index_photos_on_product_id` ON `photos` (`product_id`)
|
49
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
50
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO `schema_migrations` (`version`) VALUES ('20131009094353')
|
51
|
+
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
|
52
|
+
Migrating to CreateContacts (20131009094354)
|
53
|
+
[1m[35m (105.1ms)[0m CREATE TABLE `contacts` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `email` varchar(255), `name` varchar(255), `content` text, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
|
54
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
55
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO `schema_migrations` (`version`) VALUES ('20131009094354')
|
56
|
+
[1m[36m (0.5ms)[0m [1mCOMMIT[0m
|
57
|
+
Migrating to CreateNews (20131009094355)
|
58
|
+
[1m[35m (94.8ms)[0m CREATE TABLE `news` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `published_on` datetime, `user_id` int(11), `photo` varchar(255), `slug` varchar(255), `title` varchar(255), `content` text, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
|
59
|
+
[1m[36m (83.7ms)[0m [1mCREATE INDEX `index_news_on_user_id` ON `news` (`user_id`) [0m
|
60
|
+
[1m[35m (83.7ms)[0m CREATE UNIQUE INDEX `index_news_on_slug` ON `news` (`slug`)
|
61
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
62
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO `schema_migrations` (`version`) VALUES ('20131009094355')
|
63
|
+
[1m[36m (0.6ms)[0m [1mCOMMIT[0m
|
64
|
+
Migrating to CreateCkeditorAssets (20131009094356)
|
65
|
+
[1m[35m (94.9ms)[0m CREATE TABLE `ckeditor_assets` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `assetable_id` int(11), `data_file_size` int(11), `height` int(11), `width` int(11), `assetable_type` varchar(30), `data_content_type` varchar(255), `data_file_name` varchar(255) NOT NULL, `type` varchar(30), `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
|
66
|
+
[1m[36m (100.1ms)[0m [1mCREATE INDEX `idx_ckeditor_assetable_type` ON `ckeditor_assets` (`assetable_type`, `type`, `assetable_id`) [0m
|
67
|
+
[1m[35m (83.4ms)[0m CREATE INDEX `idx_ckeditor_assetable` ON `ckeditor_assets` (`assetable_type`, `assetable_id`)
|
68
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
69
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO `schema_migrations` (`version`) VALUES ('20131009094356')
|
70
|
+
[1m[36m (0.6ms)[0m [1mCOMMIT[0m
|
71
|
+
Migrating to AddHighlightToProducts (20131009094357)
|
72
|
+
[1m[35m (100.9ms)[0m ALTER TABLE `products` ADD `highlight` tinyint(1)
|
73
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
74
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO `schema_migrations` (`version`) VALUES ('20131009094357')
|
75
|
+
[1m[36m (0.5ms)[0m [1mCOMMIT[0m
|
76
|
+
Migrating to CreateCategories (20131009094358)
|
77
|
+
[1m[35m (90.4ms)[0m CREATE TABLE `categories` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `title` varchar(255), `description` text, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
|
78
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
79
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO `schema_migrations` (`version`) VALUES ('20131009094358')
|
80
|
+
[1m[36m (0.7ms)[0m [1mCOMMIT[0m
|
81
|
+
Migrating to AddCategoryToNews (20131009094359)
|
82
|
+
[1m[35m (96.1ms)[0m ALTER TABLE `news` ADD `category_id` int(11)
|
83
|
+
[1m[36m (84.1ms)[0m [1mCREATE INDEX `index_news_on_category_id` ON `news` (`category_id`) [0m
|
84
|
+
[1m[35m (0.4ms)[0m BEGIN
|
85
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO `schema_migrations` (`version`) VALUES ('20131009094359')[0m
|
86
|
+
[1m[35m (0.8ms)[0m COMMIT
|
87
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
|
88
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
|
89
|
+
[1m[35m (0.2ms)[0m BEGIN
|
90
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
91
|
+
[1m[35m (0.1ms)[0m BEGIN
|
92
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
93
|
+
[1m[35m (0.1ms)[0m BEGIN
|
94
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
95
|
+
[1m[35m (0.1ms)[0m BEGIN
|
96
|
+
[1m[36m (0.4ms)[0m [1mROLLBACK[0m
|
97
|
+
[1m[35m (0.1ms)[0m BEGIN
|
98
|
+
[1m[36m (0.4ms)[0m [1mROLLBACK[0m
|
99
|
+
[1m[35m (0.2ms)[0m BEGIN
|
100
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
101
|
+
[1m[35m (0.1ms)[0m BEGIN
|
102
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
103
|
+
[1m[35m (0.1ms)[0m BEGIN
|
104
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
105
|
+
[1m[35m (0.1ms)[0m BEGIN
|
106
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
107
|
+
[1m[35m (0.1ms)[0m BEGIN
|
108
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
109
|
+
[1m[35m (0.1ms)[0m BEGIN
|
110
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
111
|
+
[1m[35m (0.2ms)[0m BEGIN
|
112
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
113
|
+
[1m[35m (0.1ms)[0m BEGIN
|
114
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
115
|
+
[1m[35m (0.1ms)[0m BEGIN
|
116
|
+
[1m[36m (0.4ms)[0m [1mROLLBACK[0m
|
117
|
+
[1m[35m (0.3ms)[0m BEGIN
|
118
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
119
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
|
120
|
+
[1m[35m (0.4ms)[0m BEGIN
|
121
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
122
|
+
[1m[35m (0.5ms)[0m BEGIN
|
123
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
124
|
+
[1m[35m (0.3ms)[0m BEGIN
|
125
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
126
|
+
[1m[35m (0.2ms)[0m BEGIN
|
127
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
128
|
+
[1m[35m (0.1ms)[0m BEGIN
|
129
|
+
[1m[36m (0.4ms)[0m [1mROLLBACK[0m
|
130
|
+
[1m[35m (0.1ms)[0m BEGIN
|
131
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
132
|
+
[1m[35m (0.1ms)[0m BEGIN
|
133
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
134
|
+
[1m[35m (0.1ms)[0m BEGIN
|
135
|
+
[1m[36m (0.4ms)[0m [1mROLLBACK[0m
|
136
|
+
[1m[35m (0.4ms)[0m BEGIN
|
137
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
138
|
+
[1m[35m (0.2ms)[0m BEGIN
|
139
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
140
|
+
[1m[35m (0.2ms)[0m BEGIN
|
141
|
+
[1m[36m (0.4ms)[0m [1mROLLBACK[0m
|
142
|
+
[1m[35m (0.1ms)[0m BEGIN
|
143
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
144
|
+
[1m[35m (0.3ms)[0m BEGIN
|
145
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
146
|
+
[1m[35m (0.2ms)[0m BEGIN
|
147
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
148
|
+
[1m[35m (0.1ms)[0m BEGIN
|
149
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
150
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
|
151
|
+
[1m[35m (0.4ms)[0m BEGIN
|
152
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
153
|
+
[1m[35m (0.1ms)[0m BEGIN
|
154
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
155
|
+
[1m[35m (0.1ms)[0m BEGIN
|
156
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
157
|
+
[1m[35m (0.2ms)[0m BEGIN
|
158
|
+
[1m[36m (0.4ms)[0m [1mROLLBACK[0m
|
159
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
|
160
|
+
[1m[35m (0.4ms)[0m BEGIN
|
161
|
+
[1m[36m (0.4ms)[0m [1mROLLBACK[0m
|
162
|
+
[1m[35m (0.4ms)[0m BEGIN
|
163
|
+
[1m[36m (0.4ms)[0m [1mROLLBACK[0m
|
164
|
+
[1m[35m (0.4ms)[0m BEGIN
|
165
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
166
|
+
[1m[35m (0.2ms)[0m BEGIN
|
167
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
168
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
|
169
|
+
[1m[35m (0.4ms)[0m BEGIN
|
170
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
171
|
+
[1m[35m (0.3ms)[0m BEGIN
|
172
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
173
|
+
[1m[35m (0.2ms)[0m BEGIN
|
174
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
175
|
+
[1m[35m (0.2ms)[0m BEGIN
|
176
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: beerify
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- EPNet
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2013-
|
13
|
+
date: 2013-10-31 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: cancan
|
@@ -441,6 +441,7 @@ files:
|
|
441
441
|
- app/helpers/contacts_helper.rb
|
442
442
|
- app/models/ability.rb
|
443
443
|
- app/models/catalog.rb
|
444
|
+
- app/models/category.rb
|
444
445
|
- app/models/ckeditor/asset.rb
|
445
446
|
- app/models/ckeditor/attachment_file.rb
|
446
447
|
- app/models/ckeditor/picture.rb
|
@@ -505,6 +506,8 @@ files:
|
|
505
506
|
- db/migrate/20130903130542_create_news.rb
|
506
507
|
- db/migrate/20130904000525_create_ckeditor_assets.rb
|
507
508
|
- db/migrate/20130918132647_add_highlight_to_products.rb
|
509
|
+
- db/migrate/20131009081122_create_categories.rb
|
510
|
+
- db/migrate/20131009081315_add_category_to_news.rb
|
508
511
|
- lib/beerify/engine.rb
|
509
512
|
- lib/beerify/version.rb
|
510
513
|
- lib/beerify.rb
|
@@ -513,6 +516,7 @@ files:
|
|
513
516
|
- Rakefile
|
514
517
|
- README.md
|
515
518
|
- spec/beerify/models/catalog_spec.rb
|
519
|
+
- spec/beerify/models/category_spec.rb
|
516
520
|
- spec/beerify/models/contact_spec.rb
|
517
521
|
- spec/beerify/models/news_spec.rb
|
518
522
|
- spec/beerify/models/photo_spec.rb
|
@@ -545,17 +549,20 @@ files:
|
|
545
549
|
- spec/dummy/config/locales/en.yml
|
546
550
|
- spec/dummy/config/routes.rb
|
547
551
|
- spec/dummy/config.ru
|
548
|
-
- spec/dummy/db/migrate/
|
549
|
-
- spec/dummy/db/migrate/
|
550
|
-
- spec/dummy/db/migrate/
|
551
|
-
- spec/dummy/db/migrate/
|
552
|
-
- spec/dummy/db/migrate/
|
553
|
-
- spec/dummy/db/migrate/
|
554
|
-
- spec/dummy/db/migrate/
|
555
|
-
- spec/dummy/db/migrate/
|
556
|
-
- spec/dummy/db/migrate/
|
557
|
-
- spec/dummy/db/migrate/
|
552
|
+
- spec/dummy/db/migrate/20131009094348_create_users.beerify.rb
|
553
|
+
- spec/dummy/db/migrate/20131009094349_add_devise_to_users.beerify.rb
|
554
|
+
- spec/dummy/db/migrate/20131009094350_create_catalogs.beerify.rb
|
555
|
+
- spec/dummy/db/migrate/20131009094351_create_photos.beerify.rb
|
556
|
+
- spec/dummy/db/migrate/20131009094352_create_products.beerify.rb
|
557
|
+
- spec/dummy/db/migrate/20131009094353_add_photos_to_product.beerify.rb
|
558
|
+
- spec/dummy/db/migrate/20131009094354_create_contacts.beerify.rb
|
559
|
+
- spec/dummy/db/migrate/20131009094355_create_news.beerify.rb
|
560
|
+
- spec/dummy/db/migrate/20131009094356_create_ckeditor_assets.beerify.rb
|
561
|
+
- spec/dummy/db/migrate/20131009094357_add_highlight_to_products.beerify.rb
|
562
|
+
- spec/dummy/db/migrate/20131009094358_create_categories.beerify.rb
|
563
|
+
- spec/dummy/db/migrate/20131009094359_add_category_to_news.beerify.rb
|
558
564
|
- spec/dummy/db/schema.rb
|
565
|
+
- spec/dummy/log/test.log
|
559
566
|
- spec/dummy/public/404.html
|
560
567
|
- spec/dummy/public/422.html
|
561
568
|
- spec/dummy/public/500.html
|
@@ -589,6 +596,7 @@ specification_version: 4
|
|
589
596
|
summary: A Rails engine boilerplate to show products, news, etc...
|
590
597
|
test_files:
|
591
598
|
- spec/beerify/models/catalog_spec.rb
|
599
|
+
- spec/beerify/models/category_spec.rb
|
592
600
|
- spec/beerify/models/contact_spec.rb
|
593
601
|
- spec/beerify/models/news_spec.rb
|
594
602
|
- spec/beerify/models/photo_spec.rb
|
@@ -621,17 +629,20 @@ test_files:
|
|
621
629
|
- spec/dummy/config/locales/en.yml
|
622
630
|
- spec/dummy/config/routes.rb
|
623
631
|
- spec/dummy/config.ru
|
624
|
-
- spec/dummy/db/migrate/
|
625
|
-
- spec/dummy/db/migrate/
|
626
|
-
- spec/dummy/db/migrate/
|
627
|
-
- spec/dummy/db/migrate/
|
628
|
-
- spec/dummy/db/migrate/
|
629
|
-
- spec/dummy/db/migrate/
|
630
|
-
- spec/dummy/db/migrate/
|
631
|
-
- spec/dummy/db/migrate/
|
632
|
-
- spec/dummy/db/migrate/
|
633
|
-
- spec/dummy/db/migrate/
|
632
|
+
- spec/dummy/db/migrate/20131009094348_create_users.beerify.rb
|
633
|
+
- spec/dummy/db/migrate/20131009094349_add_devise_to_users.beerify.rb
|
634
|
+
- spec/dummy/db/migrate/20131009094350_create_catalogs.beerify.rb
|
635
|
+
- spec/dummy/db/migrate/20131009094351_create_photos.beerify.rb
|
636
|
+
- spec/dummy/db/migrate/20131009094352_create_products.beerify.rb
|
637
|
+
- spec/dummy/db/migrate/20131009094353_add_photos_to_product.beerify.rb
|
638
|
+
- spec/dummy/db/migrate/20131009094354_create_contacts.beerify.rb
|
639
|
+
- spec/dummy/db/migrate/20131009094355_create_news.beerify.rb
|
640
|
+
- spec/dummy/db/migrate/20131009094356_create_ckeditor_assets.beerify.rb
|
641
|
+
- spec/dummy/db/migrate/20131009094357_add_highlight_to_products.beerify.rb
|
642
|
+
- spec/dummy/db/migrate/20131009094358_create_categories.beerify.rb
|
643
|
+
- spec/dummy/db/migrate/20131009094359_add_category_to_news.beerify.rb
|
634
644
|
- spec/dummy/db/schema.rb
|
645
|
+
- spec/dummy/log/test.log
|
635
646
|
- spec/dummy/public/404.html
|
636
647
|
- spec/dummy/public/422.html
|
637
648
|
- spec/dummy/public/500.html
|