beerify 0.1.3 → 0.2.0

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 (42) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +9 -1
  3. data/app/assets/stylesheets/beerify/application.css +2 -1
  4. data/app/assets/stylesheets/beerify/bootstrap-sass.css.sass +1 -0
  5. data/app/assets/stylesheets/beerify/main_css_classes/main.css.sass +299 -0
  6. data/app/models/settings.rb +1 -7
  7. data/app/models/user.rb +0 -1
  8. data/app/views/devise/confirmations/new.html.slim +9 -0
  9. data/app/views/devise/mailer/confirmation_instructions.html.slim +3 -0
  10. data/app/views/devise/mailer/reset_password_instructions.html.slim +5 -0
  11. data/app/views/devise/mailer/unlock_instructions.html.slim +4 -0
  12. data/app/views/devise/passwords/edit.html.slim +11 -0
  13. data/app/views/devise/passwords/new.html.slim +9 -0
  14. data/app/views/devise/registrations/edit.html.slim +13 -0
  15. data/app/views/devise/registrations/new.html.slim +11 -0
  16. data/app/views/devise/sessions/new.html.slim +11 -0
  17. data/app/views/devise/shared/_links.html.slim +14 -0
  18. data/app/views/devise/unlocks/new.html.slim +9 -0
  19. data/config/initializers/rails_admin.rb +4 -1
  20. data/config/locales/attributes.en.yml +2 -1
  21. data/config/locales/attributes.fr.yml +2 -1
  22. data/config/locales/devise.views.fr.yml +10 -2
  23. data/config/routes.rb +1 -1
  24. data/lib/beerify/engine.rb +7 -2
  25. data/lib/beerify/version.rb +1 -1
  26. metadata +101 -35
  27. data/app/assets/stylesheets/beerify/bootstrap.css +0 -5909
  28. data/app/views/devise/confirmations/new.html.erb +0 -14
  29. data/app/views/devise/mailer/confirmation_instructions.html.erb +0 -3
  30. data/app/views/devise/mailer/reset_password_instructions.html.erb +0 -5
  31. data/app/views/devise/mailer/unlock_instructions.html.erb +0 -4
  32. data/app/views/devise/passwords/edit.html.erb +0 -16
  33. data/app/views/devise/passwords/new.html.erb +0 -14
  34. data/app/views/devise/registrations/edit.html.erb +0 -20
  35. data/app/views/devise/registrations/new.html.erb +0 -16
  36. data/app/views/devise/sessions/new.html.erb +0 -14
  37. data/app/views/devise/shared/_links.erb +0 -25
  38. data/app/views/devise/unlocks/new.html.erb +0 -14
  39. data/config/settings/beerify/development.yml +0 -2
  40. data/config/settings/beerify/production.yml +0 -2
  41. data/config/settings/beerify/settings.yml +0 -1
  42. data/spec/dummy/log/test.log +0 -176
@@ -1,14 +0,0 @@
1
- <h2><%= t('.resend_confirmation_instructions') %></h2>
2
-
3
- <%= simple_form_for(resource, as: resource_name, url: confirmation_path(resource_name), html: { method: :post }) do |f| %>
4
- <%= devise_error_messages! %>
5
-
6
- <div class="form-inputs">
7
- <%= f.input :email %>
8
- </div>
9
- <div class="form-actions">
10
- <%= f.submit t('.resend_confirmation_instructions'), class: 'btn btn-success' %>
11
- </div>
12
- <% end %>
13
-
14
- <%= render 'devise/shared/links' %>
@@ -1,3 +0,0 @@
1
- <p><%= t('.greeting', recipient: @resource.email) %></p>
2
- <p><%= t('.instruction') %></p>
3
- <p><%= link_to t('.action'), confirmation_url(@resource, confirmation_token: @resource.confirmation_token), class: 'btn btn-success' %></p>
@@ -1,5 +0,0 @@
1
- <p><%= t('.greeting', recipient: @resource.email) %></p>
2
- <p><%= t('.instruction') %></p>
3
- <p><%= link_to t('.action'), edit_password_url(@resource, reset_password_token: @resource.reset_password_token), class: 'btn' %></p>
4
- <p><%= t('.instruction_2') %></p>
5
- <p><%= t('.instruction_3') %></p>
@@ -1,4 +0,0 @@
1
- <p><%= t('.greeting', recipient: @resource.email, default: "Hello #{@resource.email}!") %></p>
2
- <p><%= t('.message') %></p>
3
- <p><%= t('.instruction') %></p>
4
- <p><%= link_to t('.action'), unlock_url(@resource, unlock_token: @resource.unlock_token), class: 'btn btn-success' %></p>
@@ -1,16 +0,0 @@
1
- <h2><%= t('.change_your_password') %></h2>
2
-
3
- <%= simple_form_for(resource, as: resource_name, url: password_path(resource_name), html: { method: :put }) do |f| %>
4
- <%= devise_error_messages! %>
5
- <%= f.hidden_field :reset_password_token %>
6
-
7
- <div class="form-inputs">
8
- <%= f.input :password, required: true, autofocus: true %>
9
- <%= f.input :password_confirmation, t('.confirm_new_password'), :required => true %>
10
- </div>
11
- <div class="form-actions">
12
- <%= f.submit t('.change_my_password'), class: 'btn btn-success' %>
13
- </div>
14
- <% end %>
15
-
16
- <%= render 'devise/shared/links' %>
@@ -1,14 +0,0 @@
1
- <h2><%= t('.forgot_your_password') %></h2>
2
-
3
- <%= simple_form_for(resource, as: resource_name, url: password_path(resource_name), html: { method: :post }) do |f| %>
4
- <%= devise_error_messages! %>
5
-
6
- <div class="form-inputs">
7
- <%= f.input :email %>
8
- </div>
9
- <div class="form-actions">
10
- <%= f.submit t('.send_me_reset_password_instructions'), class: 'btn btn-success' %>
11
- </div>
12
- <% end %>
13
-
14
- <%= render 'devise/shared/links' %>
@@ -1,20 +0,0 @@
1
- <h2><%= t('.title', :resource : resource_class.model_name.human) %></h2>
2
-
3
- <%= simple_form_for(resource, as: resource_name, url: registration_path(resource_name), html: { method: :put }) do |f| %>
4
- <%= devise_error_messages! %>
5
-
6
- <div class="form-inputs">
7
- <%= f.input :email, required: true, autofocus: true %>
8
- <%= f.input :password, autocomplete: "off", hint: t('.leave_blank_if_you_don_t_want_to_change_it'), required: false %>
9
- <%= f.input :password_confirmation, :required => false %>
10
- <%= f.input :current_password, hint: t('.we_need_your_current_password_to_confirm_your_changes'), required: true %>
11
- </div>
12
- <div class="form-actions">
13
- <%= f.submit t('.update'), class: 'btn btn-success' %>
14
- </div>
15
- <% end %>
16
-
17
- <h3><%= t('.cancel_my_account') %></h3>
18
- <p><%= t('.unhappy') %>? <%= link_to t('.cancel_my_account'), registration_path(resource_name), data: { confirm: t('.are_you_sure') }, method: :delete, class: 'btn btn-danger' %>.</p>
19
-
20
- <%= link_to t('.back'), :back, class: 'btn' %>
@@ -1,16 +0,0 @@
1
- <h2><%= t('.sign_up') %></h2>
2
-
3
- <%= simple_form_for(resource, as: resource_name, url: registration_path(resource_name)) do |f| %>
4
- <%= devise_error_messages! %>
5
-
6
- <div class="form-inputs">
7
- <%= f.input :email, required: true, autofocus: true %>
8
- <%= f.input :password, required: true %>
9
- <%= f.input :password_confirmation %>
10
- </div>
11
- <div class="form-actions">
12
- <%= f.submit t('.sign_up'), class: 'btn btn-success' %>
13
- </div>
14
- <% end %>
15
-
16
- <%= render 'devise/shared/links' %>
@@ -1,14 +0,0 @@
1
- <h2><%= t('.sign_in') %></h2>
2
-
3
- <%= simple_form_for(resource, as: resource_name, url: session_path(resource_name)) do |f| %>
4
- <div class="form-inputs">
5
- <%= f.input :email %>
6
- <%= f.input :password %>
7
- <%= f.input :remember_me, as: :boolean if devise_mapping.rememberable? %>
8
- </div>
9
- <div class="form-actions">
10
- <%= f.submit t('.sign_in'), class: 'btn btn-success' %>
11
- </div>
12
- <% end -%>
13
-
14
- <%= render 'devise/shared/links' %>
@@ -1,25 +0,0 @@
1
- <% if controller_name != 'sessions' %>
2
- <%= link_to t(".sign_in"), new_session_path(resource_name), class: 'btn btn-success' %><br />
3
- <% end %>
4
-
5
- <% if devise_mapping.registerable? && controller_name != 'registrations' %>
6
- <%= link_to t(".sign_up"), new_registration_path(resource_name), class: 'btn btn-success' %><br />
7
- <% end %>
8
-
9
- <% if devise_mapping.recoverable? && controller_name != 'passwords' %>
10
- <%= link_to t(".forgot_your_password"), new_password_path(resource_name), class: 'btn btn-warning' %><br />
11
- <% end %>
12
-
13
- <% if devise_mapping.confirmable? && controller_name != 'confirmations' %>
14
- <%= link_to t('.didn_t_receive_confirmation_instructions'), new_confirmation_path(resource_name), class: 'btn btn-info' %><br />
15
- <% end %>
16
-
17
- <% if devise_mapping.lockable? && resource_class.unlock_strategy_enabled?(:email) && controller_name != 'unlocks' %>
18
- <%= link_to t('.didn_t_receive_unlock_instructions'), new_unlock_path(resource_name), class: 'btn btn-info' %><br />
19
- <% end %>
20
-
21
- <% if devise_mapping.omniauthable? %>
22
- <% resource_class.omniauth_providers.each do |provider| %>
23
- <%= link_to t('.sign_in_with_provider', provider: provider.to_s.titleize), omniauth_authorize_path(resource_name, provider), class: 'btn btn-success' %><br />
24
- <% end %>
25
- <% end %>
@@ -1,14 +0,0 @@
1
- <h2><%= t('.resend_unlock_instructions') %></h2>
2
-
3
- <%= simple_form_for(resource, as: resource_name, url: unlock_path(resource_name), html: { method: :post }) do |f| %>
4
- <%= devise_error_messages! %>
5
-
6
- <div class="form-inputs">
7
- <%= f.input :email, required: true, autofocus: true %>
8
- </div>
9
- <div class="form-actions">
10
- <%= f.submit t('.resend_unlock_instructions'), class: 'btn btn-success' %>
11
- </div>
12
- <% end %>
13
-
14
- <%= render 'devise/shared/links' %>
@@ -1,2 +0,0 @@
1
- development:
2
- <<: *defaults
@@ -1,2 +0,0 @@
1
- production:
2
- <<: *defaults
@@ -1 +0,0 @@
1
- defaults: &defaults
@@ -1,176 +0,0 @@
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