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.
Files changed (29) hide show
  1. checksums.yaml +4 -4
  2. data/app/models/ability.rb +1 -0
  3. data/app/models/category.rb +6 -0
  4. data/app/models/news.rb +1 -0
  5. data/config/initializers/rails_admin.rb +1 -1
  6. data/config/initializers/rails_admin/news_admin.rb +1 -0
  7. data/config/locales/attributes.en.yml +6 -0
  8. data/config/locales/attributes.fr.yml +6 -0
  9. data/config/locales/models.en.yml +3 -0
  10. data/config/locales/models.fr.yml +3 -0
  11. data/db/migrate/20131009081122_create_categories.rb +10 -0
  12. data/db/migrate/20131009081315_add_category_to_news.rb +5 -0
  13. data/lib/beerify/version.rb +1 -1
  14. data/spec/beerify/models/category_spec.rb +5 -0
  15. data/spec/dummy/db/migrate/{20130904085929_create_users.beerify.rb → 20131009094348_create_users.beerify.rb} +0 -0
  16. data/spec/dummy/db/migrate/{20130904085930_add_devise_to_users.beerify.rb → 20131009094349_add_devise_to_users.beerify.rb} +0 -0
  17. data/spec/dummy/db/migrate/{20130904085931_create_catalogs.beerify.rb → 20131009094350_create_catalogs.beerify.rb} +0 -0
  18. data/spec/dummy/db/migrate/{20130904085932_create_photos.beerify.rb → 20131009094351_create_photos.beerify.rb} +0 -0
  19. data/spec/dummy/db/migrate/{20130904085933_create_products.beerify.rb → 20131009094352_create_products.beerify.rb} +0 -0
  20. data/spec/dummy/db/migrate/{20130904085934_add_photos_to_product.beerify.rb → 20131009094353_add_photos_to_product.beerify.rb} +0 -0
  21. data/spec/dummy/db/migrate/{20130904085935_create_contacts.beerify.rb → 20131009094354_create_contacts.beerify.rb} +0 -0
  22. data/spec/dummy/db/migrate/{20130906090417_create_news.beerify.rb → 20131009094355_create_news.beerify.rb} +0 -0
  23. data/spec/dummy/db/migrate/{20130906090418_create_ckeditor_assets.beerify.rb → 20131009094356_create_ckeditor_assets.beerify.rb} +0 -0
  24. data/spec/dummy/db/migrate/{20130918132952_add_highlight_to_products.beerify.rb → 20131009094357_add_highlight_to_products.beerify.rb} +0 -0
  25. data/spec/dummy/db/migrate/20131009094358_create_categories.beerify.rb +11 -0
  26. data/spec/dummy/db/migrate/20131009094359_add_category_to_news.beerify.rb +6 -0
  27. data/spec/dummy/db/schema.rb +10 -1
  28. data/spec/dummy/log/test.log +176 -0
  29. metadata +33 -22
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
- metadata.gz: bf20742c2a166f2fbcbbeed6cadff1f30f7192b5
4
- data.tar.gz: 1ae434257299e2e55433e05562c516855e6c3182
3
+ metadata.gz: effe188e853f7e2ca50942708d7912dcceb1dc1d
4
+ data.tar.gz: 1113396b5c4e44a38b4a7f4c087cdfaafa91d5d5
5
5
  !binary "U0hBNTEy":
6
- metadata.gz: d142a8c1326f58e43a22264767cb3aa5c7a59e2722ddbe00e939bce4c5a279239fd33469e90c9b7546b9431bcf97257163e05c6e36b5f4357bd1a77b992bff44
7
- data.tar.gz: 116e096e993ebe418b6b76cbe4d24751922a0b8a4b301f0b55c50d4acfa3ed1036d3d008c07b7965f4eaae987dacc51d3b56d5bff205a8772798b6ba48ed7869
6
+ metadata.gz: 2ebe843c9c9c2091df019cf105e0ebdeba905d350f3d4ef958866ed83f4719809b9c54bf7d8ab9362c7ed4232579300023580cb252b3807946a4fcd67e5f6d07
7
+ data.tar.gz: f666f589f34b46c924560d1148478a88755e1500981b1b5a8e27c5c2bb0d902d8c043bf3be0edf6e68fd99c6b3773bc9155d042cd14f4a03d8f7b219d42d503a
@@ -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
@@ -0,0 +1,6 @@
1
+ class Category < ActiveRecord::Base
2
+ has_one :news
3
+
4
+ validates :title,
5
+ presence: true
6
+ end
data/app/models/news.rb CHANGED
@@ -4,6 +4,7 @@ class News < ActiveRecord::Base
4
4
 
5
5
  mount_uploader :photo, PhotoUploader
6
6
 
7
+ belongs_to :category
7
8
  belongs_to :user, class_name: 'Users::Admin'
8
9
 
9
10
  validates :title,
@@ -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
@@ -2,6 +2,7 @@ RailsAdmin.config do |config|
2
2
  config.model News do
3
3
  edit do
4
4
  field :title
5
+ field :category
5
6
  field :photo
6
7
  field :content, :ck_editor
7
8
  field :published_on do
@@ -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'
@@ -4,6 +4,9 @@ en:
4
4
  catalog:
5
5
  one: 'Catalog'
6
6
  other: 'Catalogs'
7
+ category:
8
+ one: 'Category'
9
+ other: 'Categories'
7
10
  contact:
8
11
  one: 'Contact'
9
12
  other: 'Contacts'
@@ -4,6 +4,9 @@ fr:
4
4
  catalog:
5
5
  one: 'Catalogue'
6
6
  other: 'Catalogues'
7
+ category:
8
+ one: 'Categorie'
9
+ other: 'Categories'
7
10
  contact:
8
11
  one: 'Contact'
9
12
  other: 'Contacts'
@@ -0,0 +1,10 @@
1
+ class CreateCategories < ActiveRecord::Migration
2
+ def change
3
+ create_table :categories do |t|
4
+ t.string :title
5
+ t.text :description
6
+
7
+ t.timestamps
8
+ end
9
+ end
10
+ end
@@ -0,0 +1,5 @@
1
+ class AddCategoryToNews < ActiveRecord::Migration
2
+ def change
3
+ add_reference :news, :category, index: true
4
+ end
5
+ end
@@ -1,3 +1,3 @@
1
1
  module Beerify
2
- VERSION = '0.1.1'
2
+ VERSION = '0.1.2'
3
3
  end
@@ -0,0 +1,5 @@
1
+ require 'spec_helper'
2
+
3
+ describe Category do
4
+ it { should validate_presence_of(:title) }
5
+ end
@@ -0,0 +1,11 @@
1
+ # This migration comes from beerify (originally 20131009081122)
2
+ class CreateCategories < ActiveRecord::Migration
3
+ def change
4
+ create_table :categories do |t|
5
+ t.string :title
6
+ t.text :description
7
+
8
+ t.timestamps
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,6 @@
1
+ # This migration comes from beerify (originally 20131009081315)
2
+ class AddCategoryToNews < ActiveRecord::Migration
3
+ def change
4
+ add_reference :news, :category, index: true
5
+ end
6
+ end
@@ -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: 20130918132952) do
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
+  (68.5ms) CREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB
2
+  (174.9ms) CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)
3
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT `schema_migrations`.* FROM `schema_migrations`
4
+ Migrating to CreateUsers (20131009094348)
5
+  (99.6ms) 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
+  (0.2ms) BEGIN
7
+ SQL (0.3ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20131009094348')
8
+  (0.4ms) COMMIT
9
+ Migrating to AddDeviseToUsers (20131009094349)
10
+  (147.4ms) ALTER TABLE `users` ADD `email` varchar(255) DEFAULT '' NOT NULL
11
+  (99.8ms) ALTER TABLE `users` ADD `encrypted_password` varchar(255) DEFAULT '' NOT NULL
12
+  (121.2ms) ALTER TABLE `users` ADD `reset_password_token` varchar(255)
13
+  (122.7ms) ALTER TABLE `users` ADD `reset_password_sent_at` datetime
14
+  (100.7ms) ALTER TABLE `users` ADD `remember_created_at` datetime
15
+  (145.6ms) ALTER TABLE `users` ADD `sign_in_count` int(11) DEFAULT 0
16
+  (121.6ms) ALTER TABLE `users` ADD `current_sign_in_at` datetime
17
+  (99.6ms) ALTER TABLE `users` ADD `last_sign_in_at` datetime
18
+  (132.7ms) ALTER TABLE `users` ADD `current_sign_in_ip` varchar(255)
19
+  (126.6ms) ALTER TABLE `users` ADD `last_sign_in_ip` varchar(255)
20
+  (110.1ms) ALTER TABLE `users` ADD `authentication_token` varchar(255)
21
+  (112.0ms) CREATE UNIQUE INDEX `index_users_on_email` ON `users` (`email`) 
22
+  (93.2ms) CREATE UNIQUE INDEX `index_users_on_reset_password_token` ON `users` (`reset_password_token`)
23
+  (89.9ms) CREATE UNIQUE INDEX `index_users_on_authentication_token` ON `users` (`authentication_token`) 
24
+  (0.2ms) BEGIN
25
+ SQL (0.5ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20131009094349')
26
+  (0.7ms) COMMIT
27
+ Migrating to CreateCatalogs (20131009094350)
28
+  (94.5ms) CREATE 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
29
+  (100.6ms) CREATE INDEX `index_catalogs_on_catalog_id` ON `catalogs` (`catalog_id`)
30
+  (74.3ms) CREATE UNIQUE INDEX `index_catalogs_on_slug` ON `catalogs` (`slug`) 
31
+  (0.2ms) BEGIN
32
+ SQL (0.4ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20131009094350')
33
+  (0.6ms) COMMIT
34
+ Migrating to CreatePhotos (20131009094351)
35
+  (94.9ms) CREATE 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
36
+  (0.3ms) BEGIN
37
+ SQL (0.4ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20131009094351')
38
+  (0.6ms) COMMIT
39
+ Migrating to CreateProducts (20131009094352)
40
+  (95.4ms) CREATE 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
41
+  (81.4ms) CREATE INDEX `index_products_on_catalog_id` ON `products` (`catalog_id`)
42
+  (93.3ms) CREATE UNIQUE INDEX `index_products_on_slug` ON `products` (`slug`) 
43
+  (0.2ms) BEGIN
44
+ SQL (0.4ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20131009094352')
45
+  (0.6ms) COMMIT
46
+ Migrating to AddPhotosToProduct (20131009094353)
47
+  (109.3ms) ALTER TABLE `photos` ADD `product_id` int(11)
48
+  (120.6ms) CREATE INDEX `index_photos_on_product_id` ON `photos` (`product_id`)
49
+  (0.2ms) BEGIN
50
+ SQL (0.3ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20131009094353')
51
+  (0.4ms) COMMIT
52
+ Migrating to CreateContacts (20131009094354)
53
+  (105.1ms) 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
+  (0.3ms) BEGIN
55
+ SQL (0.4ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20131009094354')
56
+  (0.5ms) COMMIT
57
+ Migrating to CreateNews (20131009094355)
58
+  (94.8ms) 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
+  (83.7ms) CREATE INDEX `index_news_on_user_id` ON `news` (`user_id`) 
60
+  (83.7ms) CREATE UNIQUE INDEX `index_news_on_slug` ON `news` (`slug`)
61
+  (0.2ms) BEGIN
62
+ SQL (0.4ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20131009094355')
63
+  (0.6ms) COMMIT
64
+ Migrating to CreateCkeditorAssets (20131009094356)
65
+  (94.9ms) 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
+  (100.1ms) CREATE INDEX `idx_ckeditor_assetable_type` ON `ckeditor_assets` (`assetable_type`, `type`, `assetable_id`) 
67
+  (83.4ms) CREATE INDEX `idx_ckeditor_assetable` ON `ckeditor_assets` (`assetable_type`, `assetable_id`)
68
+  (0.4ms) BEGIN
69
+ SQL (0.4ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20131009094356')
70
+  (0.6ms) COMMIT
71
+ Migrating to AddHighlightToProducts (20131009094357)
72
+  (100.9ms) ALTER TABLE `products` ADD `highlight` tinyint(1)
73
+  (0.2ms) BEGIN
74
+ SQL (0.3ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20131009094357')
75
+  (0.5ms) COMMIT
76
+ Migrating to CreateCategories (20131009094358)
77
+  (90.4ms) 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
+  (0.3ms) BEGIN
79
+ SQL (0.4ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20131009094358')
80
+  (0.7ms) COMMIT
81
+ Migrating to AddCategoryToNews (20131009094359)
82
+  (96.1ms) ALTER TABLE `news` ADD `category_id` int(11)
83
+  (84.1ms) CREATE INDEX `index_news_on_category_id` ON `news` (`category_id`) 
84
+  (0.4ms) BEGIN
85
+ SQL (0.6ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20131009094359')
86
+  (0.8ms) COMMIT
87
+ ActiveRecord::SchemaMigration Load (0.6ms) SELECT `schema_migrations`.* FROM `schema_migrations`
88
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT `schema_migrations`.* FROM `schema_migrations`
89
+  (0.2ms) BEGIN
90
+  (0.1ms) ROLLBACK
91
+  (0.1ms) BEGIN
92
+  (0.2ms) ROLLBACK
93
+  (0.1ms) BEGIN
94
+  (0.1ms) ROLLBACK
95
+  (0.1ms) BEGIN
96
+  (0.4ms) ROLLBACK
97
+  (0.1ms) BEGIN
98
+  (0.4ms) ROLLBACK
99
+  (0.2ms) BEGIN
100
+  (0.2ms) ROLLBACK
101
+  (0.1ms) BEGIN
102
+  (0.2ms) ROLLBACK
103
+  (0.1ms) BEGIN
104
+  (0.2ms) ROLLBACK
105
+  (0.1ms) BEGIN
106
+  (0.1ms) ROLLBACK
107
+  (0.1ms) BEGIN
108
+  (0.2ms) ROLLBACK
109
+  (0.1ms) BEGIN
110
+  (0.1ms) ROLLBACK
111
+  (0.2ms) BEGIN
112
+  (0.2ms) ROLLBACK
113
+  (0.1ms) BEGIN
114
+  (0.1ms) ROLLBACK
115
+  (0.1ms) BEGIN
116
+  (0.4ms) ROLLBACK
117
+  (0.3ms) BEGIN
118
+  (0.2ms) ROLLBACK
119
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT `schema_migrations`.* FROM `schema_migrations`
120
+  (0.4ms) BEGIN
121
+  (0.3ms) ROLLBACK
122
+  (0.5ms) BEGIN
123
+  (0.3ms) ROLLBACK
124
+  (0.3ms) BEGIN
125
+  (0.3ms) ROLLBACK
126
+  (0.2ms) BEGIN
127
+  (0.3ms) ROLLBACK
128
+  (0.1ms) BEGIN
129
+  (0.4ms) ROLLBACK
130
+  (0.1ms) BEGIN
131
+  (0.3ms) ROLLBACK
132
+  (0.1ms) BEGIN
133
+  (0.1ms) ROLLBACK
134
+  (0.1ms) BEGIN
135
+  (0.4ms) ROLLBACK
136
+  (0.4ms) BEGIN
137
+  (0.2ms) ROLLBACK
138
+  (0.2ms) BEGIN
139
+  (0.3ms) ROLLBACK
140
+  (0.2ms) BEGIN
141
+  (0.4ms) ROLLBACK
142
+  (0.1ms) BEGIN
143
+  (0.3ms) ROLLBACK
144
+  (0.3ms) BEGIN
145
+  (0.2ms) ROLLBACK
146
+  (0.2ms) BEGIN
147
+  (0.1ms) ROLLBACK
148
+  (0.1ms) BEGIN
149
+  (0.2ms) ROLLBACK
150
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT `schema_migrations`.* FROM `schema_migrations`
151
+  (0.4ms) BEGIN
152
+  (0.1ms) ROLLBACK
153
+  (0.1ms) BEGIN
154
+  (0.3ms) ROLLBACK
155
+  (0.1ms) BEGIN
156
+  (0.1ms) ROLLBACK
157
+  (0.2ms) BEGIN
158
+  (0.4ms) ROLLBACK
159
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT `schema_migrations`.* FROM `schema_migrations`
160
+  (0.4ms) BEGIN
161
+  (0.4ms) ROLLBACK
162
+  (0.4ms) BEGIN
163
+  (0.4ms) ROLLBACK
164
+  (0.4ms) BEGIN
165
+  (0.1ms) ROLLBACK
166
+  (0.2ms) BEGIN
167
+  (0.2ms) ROLLBACK
168
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT `schema_migrations`.* FROM `schema_migrations`
169
+  (0.4ms) BEGIN
170
+  (0.3ms) ROLLBACK
171
+  (0.3ms) BEGIN
172
+  (0.2ms) ROLLBACK
173
+  (0.2ms) BEGIN
174
+  (0.3ms) ROLLBACK
175
+  (0.2ms) BEGIN
176
+  (0.1ms) ROLLBACK
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.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-09-30 00:00:00.000000000 Z
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/20130904085929_create_users.beerify.rb
549
- - spec/dummy/db/migrate/20130904085930_add_devise_to_users.beerify.rb
550
- - spec/dummy/db/migrate/20130904085931_create_catalogs.beerify.rb
551
- - spec/dummy/db/migrate/20130904085932_create_photos.beerify.rb
552
- - spec/dummy/db/migrate/20130904085933_create_products.beerify.rb
553
- - spec/dummy/db/migrate/20130904085934_add_photos_to_product.beerify.rb
554
- - spec/dummy/db/migrate/20130904085935_create_contacts.beerify.rb
555
- - spec/dummy/db/migrate/20130906090417_create_news.beerify.rb
556
- - spec/dummy/db/migrate/20130906090418_create_ckeditor_assets.beerify.rb
557
- - spec/dummy/db/migrate/20130918132952_add_highlight_to_products.beerify.rb
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/20130904085929_create_users.beerify.rb
625
- - spec/dummy/db/migrate/20130904085930_add_devise_to_users.beerify.rb
626
- - spec/dummy/db/migrate/20130904085931_create_catalogs.beerify.rb
627
- - spec/dummy/db/migrate/20130904085932_create_photos.beerify.rb
628
- - spec/dummy/db/migrate/20130904085933_create_products.beerify.rb
629
- - spec/dummy/db/migrate/20130904085934_add_photos_to_product.beerify.rb
630
- - spec/dummy/db/migrate/20130904085935_create_contacts.beerify.rb
631
- - spec/dummy/db/migrate/20130906090417_create_news.beerify.rb
632
- - spec/dummy/db/migrate/20130906090418_create_ckeditor_assets.beerify.rb
633
- - spec/dummy/db/migrate/20130918132952_add_highlight_to_products.beerify.rb
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