kkt_shoppe 1.1.2 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (212) hide show
  1. checksums.yaml +4 -4
  2. data/MIT-LICENSE +0 -0
  3. data/README.md +1 -0
  4. data/Rakefile +0 -0
  5. data/app/assets/images/kkt_shoppe/icons/edit.svg +0 -0
  6. data/app/assets/images/kkt_shoppe/kkt_shoppe.svg +0 -0
  7. data/app/assets/images/kkt_shoppe/logo.svg +0 -0
  8. data/app/assets/images/kkt_shoppe/square.svg +0 -0
  9. data/app/assets/images/kkt_shoppe/statuses/accepted.svg +0 -0
  10. data/app/assets/images/kkt_shoppe/statuses/paid.svg +0 -0
  11. data/app/assets/images/kkt_shoppe/statuses/received.svg +0 -0
  12. data/app/assets/images/kkt_shoppe/statuses/rejected.svg +0 -0
  13. data/app/assets/images/kkt_shoppe/statuses/shipped.svg +0 -0
  14. data/app/assets/images/kkt_shoppe/table-tear-off.png +0 -0
  15. data/app/assets/javascripts/kkt_shoppe/application.coffee +0 -5
  16. data/app/assets/javascripts/kkt_shoppe/mousetrap.js +0 -0
  17. data/app/assets/javascripts/kkt_shoppe/order_form.coffee +0 -0
  18. data/app/assets/stylesheets/kkt_shoppe/application.scss +1 -12
  19. data/app/assets/stylesheets/kkt_shoppe/dialog.scss +0 -0
  20. data/app/assets/stylesheets/kkt_shoppe/elements.scss +0 -0
  21. data/app/assets/stylesheets/kkt_shoppe/printable.scss +1 -1
  22. data/app/assets/stylesheets/kkt_shoppe/reset.scss +0 -0
  23. data/app/assets/stylesheets/kkt_shoppe/sub.scss +1 -1
  24. data/app/assets/stylesheets/kkt_shoppe/variables.scss +0 -0
  25. data/app/controllers/kkt_shoppe/addresses_controller.rb +1 -1
  26. data/app/controllers/kkt_shoppe/application_controller.rb +0 -0
  27. data/app/controllers/kkt_shoppe/attachments_controller.rb +1 -1
  28. data/app/controllers/kkt_shoppe/countries_controller.rb +0 -0
  29. data/app/controllers/kkt_shoppe/customers_controller.rb +1 -1
  30. data/app/controllers/kkt_shoppe/dashboard_controller.rb +0 -0
  31. data/app/controllers/kkt_shoppe/delivery_service_prices_controller.rb +0 -0
  32. data/app/controllers/kkt_shoppe/delivery_services_controller.rb +0 -0
  33. data/app/controllers/kkt_shoppe/orders_controller.rb +0 -0
  34. data/app/controllers/kkt_shoppe/payments_controller.rb +0 -0
  35. data/app/controllers/kkt_shoppe/product_categories_controller.rb +0 -0
  36. data/app/controllers/kkt_shoppe/product_category_localisations_controller.rb +0 -0
  37. data/app/controllers/kkt_shoppe/product_localisations_controller.rb +0 -0
  38. data/app/controllers/kkt_shoppe/products_controller.rb +2 -3
  39. data/app/controllers/kkt_shoppe/sessions_controller.rb +0 -0
  40. data/app/controllers/kkt_shoppe/settings_controller.rb +0 -0
  41. data/app/controllers/kkt_shoppe/stock_level_adjustments_controller.rb +0 -0
  42. data/app/controllers/kkt_shoppe/tax_rates_controller.rb +0 -0
  43. data/app/controllers/kkt_shoppe/users_controller.rb +0 -0
  44. data/app/controllers/kkt_shoppe/variants_controller.rb +0 -0
  45. data/app/helpers/kkt_shoppe/application_helper.rb +4 -4
  46. data/app/helpers/kkt_shoppe/product_category_helper.rb +1 -1
  47. data/app/mailers/kkt_shoppe/order_mailer.rb +0 -0
  48. data/app/mailers/kkt_shoppe/user_mailer.rb +0 -0
  49. data/app/models/kkt_shoppe/address.rb +0 -0
  50. data/app/models/kkt_shoppe/country.rb +0 -0
  51. data/app/models/kkt_shoppe/customer.rb +1 -1
  52. data/app/models/kkt_shoppe/delivery_service.rb +0 -0
  53. data/app/models/kkt_shoppe/delivery_service_price.rb +0 -0
  54. data/app/models/kkt_shoppe/order/actions.rb +2 -2
  55. data/app/models/kkt_shoppe/order/billing.rb +0 -0
  56. data/app/models/kkt_shoppe/order/delivery.rb +1 -1
  57. data/app/models/kkt_shoppe/order/states.rb +0 -0
  58. data/app/models/kkt_shoppe/order.rb +0 -0
  59. data/app/models/kkt_shoppe/order_item.rb +0 -0
  60. data/app/models/kkt_shoppe/payment.rb +0 -0
  61. data/app/models/kkt_shoppe/product/product_attributes.rb +0 -0
  62. data/app/models/kkt_shoppe/product/variants.rb +0 -0
  63. data/app/models/kkt_shoppe/product.rb +3 -23
  64. data/app/models/kkt_shoppe/product_attribute.rb +0 -0
  65. data/app/models/kkt_shoppe/product_categorization.rb +0 -0
  66. data/app/models/kkt_shoppe/product_category.rb +2 -9
  67. data/app/models/kkt_shoppe/setting.rb +0 -0
  68. data/app/models/kkt_shoppe/stock_level_adjustment.rb +0 -0
  69. data/app/models/kkt_shoppe/tax_rate.rb +0 -0
  70. data/app/models/kkt_shoppe/user.rb +0 -0
  71. data/app/validators/permalink_validator.rb +0 -0
  72. data/app/views/kkt_shoppe/addresses/_form.html.haml +0 -0
  73. data/app/views/kkt_shoppe/addresses/edit.html.haml +0 -0
  74. data/app/views/kkt_shoppe/addresses/new.html.haml +0 -0
  75. data/app/views/kkt_shoppe/countries/_form.html.haml +0 -0
  76. data/app/views/kkt_shoppe/countries/edit.html.haml +0 -0
  77. data/app/views/kkt_shoppe/countries/index.html.haml +0 -0
  78. data/app/views/kkt_shoppe/countries/new.html.haml +0 -0
  79. data/app/views/kkt_shoppe/customers/_addresses.html.haml +0 -0
  80. data/app/views/kkt_shoppe/customers/_form.html.haml +0 -0
  81. data/app/views/kkt_shoppe/customers/_search_form.html.haml +0 -0
  82. data/app/views/kkt_shoppe/customers/edit.html.haml +0 -0
  83. data/app/views/kkt_shoppe/customers/index.html.haml +0 -0
  84. data/app/views/kkt_shoppe/customers/new.html.haml +0 -0
  85. data/app/views/kkt_shoppe/customers/show.html.haml +1 -1
  86. data/app/views/kkt_shoppe/delivery_service_prices/_form.html.haml +0 -0
  87. data/app/views/kkt_shoppe/delivery_service_prices/edit.html.haml +0 -0
  88. data/app/views/kkt_shoppe/delivery_service_prices/index.html.haml +0 -0
  89. data/app/views/kkt_shoppe/delivery_service_prices/new.html.haml +0 -0
  90. data/app/views/kkt_shoppe/delivery_services/_form.html.haml +0 -0
  91. data/app/views/kkt_shoppe/delivery_services/edit.html.haml +0 -0
  92. data/app/views/kkt_shoppe/delivery_services/index.html.haml +0 -0
  93. data/app/views/kkt_shoppe/delivery_services/new.html.haml +0 -0
  94. data/app/views/kkt_shoppe/order_mailer/accepted.text.erb +0 -0
  95. data/app/views/kkt_shoppe/order_mailer/received.text.erb +5 -2
  96. data/app/views/kkt_shoppe/order_mailer/rejected.text.erb +0 -0
  97. data/app/views/kkt_shoppe/order_mailer/shipped.text.erb +0 -0
  98. data/app/views/kkt_shoppe/orders/_form.html.haml +0 -0
  99. data/app/views/kkt_shoppe/orders/_order_details.html.haml +0 -0
  100. data/app/views/kkt_shoppe/orders/_order_items.html.haml +0 -0
  101. data/app/views/kkt_shoppe/orders/_order_items_form.html.haml +0 -0
  102. data/app/views/kkt_shoppe/orders/_payments_form.html.haml +0 -0
  103. data/app/views/kkt_shoppe/orders/_payments_table.html.haml +0 -0
  104. data/app/views/kkt_shoppe/orders/_search_form.html.haml +0 -0
  105. data/app/views/kkt_shoppe/orders/_status_bar.html.haml +0 -0
  106. data/app/views/kkt_shoppe/orders/despatch_note.html.haml +0 -0
  107. data/app/views/kkt_shoppe/orders/edit.html.haml +0 -0
  108. data/app/views/kkt_shoppe/orders/index.html.haml +0 -0
  109. data/app/views/kkt_shoppe/orders/new.html.haml +0 -0
  110. data/app/views/kkt_shoppe/orders/show.html.haml +0 -0
  111. data/app/views/kkt_shoppe/payments/refund.html.haml +0 -0
  112. data/app/views/kkt_shoppe/product_categories/_form.html.haml +1 -1
  113. data/app/views/kkt_shoppe/product_categories/edit.html.haml +0 -0
  114. data/app/views/kkt_shoppe/product_categories/index.html.haml +0 -0
  115. data/app/views/kkt_shoppe/product_categories/new.html.haml +0 -0
  116. data/app/views/kkt_shoppe/product_category_localisations/form.html.haml +0 -0
  117. data/app/views/kkt_shoppe/product_category_localisations/index.html.haml +0 -0
  118. data/app/views/kkt_shoppe/product_localisations/form.html.haml +1 -1
  119. data/app/views/kkt_shoppe/product_localisations/index.html.haml +0 -0
  120. data/app/views/kkt_shoppe/products/_form.html.haml +4 -24
  121. data/app/views/kkt_shoppe/products/_table.html.haml +0 -0
  122. data/app/views/kkt_shoppe/products/edit.html.haml +0 -0
  123. data/app/views/kkt_shoppe/products/import.html.haml +0 -0
  124. data/app/views/kkt_shoppe/products/index.html.haml +0 -0
  125. data/app/views/kkt_shoppe/products/new.html.haml +0 -0
  126. data/app/views/kkt_shoppe/sessions/new.html.haml +0 -0
  127. data/app/views/kkt_shoppe/sessions/reset.html.haml +0 -0
  128. data/app/views/kkt_shoppe/settings/edit.html.haml +0 -0
  129. data/app/views/kkt_shoppe/shared/error.html.haml +0 -0
  130. data/app/views/kkt_shoppe/stock_level_adjustments/index.html.haml +0 -0
  131. data/app/views/kkt_shoppe/tax_rates/form.html.haml +0 -0
  132. data/app/views/kkt_shoppe/tax_rates/index.html.haml +0 -0
  133. data/app/views/kkt_shoppe/user_mailer/new_password.text.erb +0 -0
  134. data/app/views/kkt_shoppe/users/_form.html.haml +0 -0
  135. data/app/views/kkt_shoppe/users/edit.html.haml +0 -0
  136. data/app/views/kkt_shoppe/users/index.html.haml +0 -0
  137. data/app/views/kkt_shoppe/users/new.html.haml +0 -0
  138. data/app/views/kkt_shoppe/variants/form.html.haml +0 -0
  139. data/app/views/kkt_shoppe/variants/index.html.haml +0 -0
  140. data/app/views/layouts/kkt_shoppe/application.html.haml +0 -0
  141. data/app/views/layouts/kkt_shoppe/printable.html.haml +1 -1
  142. data/app/views/layouts/kkt_shoppe/sub.html.haml +0 -0
  143. data/config/locales/de.yml +0 -3
  144. data/config/locales/en.yml +0 -1
  145. data/config/locales/es.yml +0 -1
  146. data/config/locales/pl.yml +0 -1
  147. data/config/locales/pt-BR.yml +1 -2
  148. data/config/routes.rb +0 -0
  149. data/db/countries.txt +0 -0
  150. data/db/migrate/20130926094549_create_kkt_shoppe_initial_schema.rb +0 -0
  151. data/db/migrate/20131024201501_add_address_type_to_kkt_shoppe_tax_rates.rb +1 -1
  152. data/db/migrate/20131024204815_create_kkt_shoppe_payments.rb +1 -1
  153. data/db/migrate/20131102143930_remove_default_on_order_item_weight.rb +1 -1
  154. data/db/migrate/20141013192427_create_kkt_shoppe_customers.rb +0 -0
  155. data/db/migrate/20141026175622_add_indexes_to_kkt_shoppe_order_items.rb +0 -0
  156. data/db/migrate/20141026175943_add_indexes_to_kkt_shoppe_orders.rb +0 -0
  157. data/db/migrate/20141026180333_add_indexes_to_kkt_shoppe_payments.rb +0 -0
  158. data/db/migrate/20141026180835_add_indexes_to_kkt_shoppe_product_attributes.rb +0 -0
  159. data/db/migrate/20141026180952_add_indexes_to_kkt_shoppe_product_categories.rb +0 -0
  160. data/db/migrate/20141026181040_add_indexes_to_kkt_shoppe_products.rb +0 -0
  161. data/db/migrate/20141026181312_add_indexes_to_kkt_shoppe_settings.rb +0 -0
  162. data/db/migrate/20141026181354_add_indexes_to_kkt_shoppe_stock_level_adjustments.rb +0 -0
  163. data/db/migrate/20141026181559_add_indexes_to_kkt_shoppe_users.rb +0 -0
  164. data/db/migrate/20141026181716_add_indexes_to_kkt_shoppe_delivery_services.rb +0 -0
  165. data/db/migrate/20141026181717_allow_multiple_kkt_shoppe_products_per_kkt_shoppe_product_category.rb +0 -0
  166. data/db/migrate/20141026181718_add_nested_to_product_categories.rb +0 -0
  167. data/db/migrate/20141027215005_create_kkt_shoppe_addresses.rb +0 -0
  168. data/db/migrate/20150315215633_add_customer_to_kkt_shoppe_orders.rb +1 -1
  169. data/db/migrate/20150513171350_create_kkt_shoppe_product_category_translation_table.rb +0 -0
  170. data/db/migrate/20150519173350_create_kkt_shoppe_product_translation_table.rb +0 -0
  171. data/db/schema.rb +42 -56
  172. data/db/seeds.rb +0 -0
  173. data/db/seeds_data/poe400.jpg +0 -0
  174. data/db/seeds_data/snom-870-blk.jpg +0 -0
  175. data/db/seeds_data/snom-870-grey.jpg +0 -0
  176. data/db/seeds_data/snom-mm2.jpg +0 -0
  177. data/db/seeds_data/spa303.jpg +0 -0
  178. data/db/seeds_data/t18p.jpg +0 -0
  179. data/db/seeds_data/t20p.jpg +0 -0
  180. data/db/seeds_data/t22p.jpg +0 -0
  181. data/db/seeds_data/t26p.jpg +0 -0
  182. data/db/seeds_data/t41pn.jpg +0 -0
  183. data/db/seeds_data/t46gn.jpg +0 -0
  184. data/db/seeds_data/w52p.jpg +0 -0
  185. data/db/seeds_data/yhs32.jpg +0 -0
  186. data/lib/kkt_shoppe/associated_countries.rb +1 -1
  187. data/lib/kkt_shoppe/country_importer.rb +0 -0
  188. data/lib/kkt_shoppe/default_navigation.rb +0 -0
  189. data/lib/kkt_shoppe/engine.rb +11 -15
  190. data/lib/kkt_shoppe/error.rb +0 -0
  191. data/lib/kkt_shoppe/errors/inappropriate_delivery_service.rb +1 -1
  192. data/lib/kkt_shoppe/errors/insufficient_stock_to_fulfil.rb +1 -1
  193. data/lib/kkt_shoppe/errors/invalid_configuration.rb +1 -1
  194. data/lib/kkt_shoppe/errors/not_enough_stock.rb +1 -1
  195. data/lib/kkt_shoppe/errors/payment_declined.rb +1 -1
  196. data/lib/kkt_shoppe/errors/refund_failed.rb +1 -1
  197. data/lib/kkt_shoppe/errors/unorderable_item.rb +1 -1
  198. data/lib/kkt_shoppe/navigation_manager.rb +0 -0
  199. data/lib/kkt_shoppe/orderable_item.rb +0 -0
  200. data/lib/kkt_shoppe/settings.rb +0 -0
  201. data/lib/kkt_shoppe/settings_loader.rb +0 -0
  202. data/lib/kkt_shoppe/setup_generator.rb +0 -0
  203. data/lib/kkt_shoppe/version.rb +1 -1
  204. data/lib/kkt_shoppe/view_helpers.rb +0 -0
  205. data/lib/kkt_shoppe.rb +1 -1
  206. data/lib/tasks/{kylekthompson_shoppe.rake → kkt_shoppe.rake} +1 -1
  207. metadata +4 -9
  208. data/app/models/shoppe/attachment.rb +0 -48
  209. data/app/uploaders/shoppe/attachment_uploader.rb +0 -29
  210. data/db/migrate/20150315223628_create_kkt_shoppe_attachments.rb +0 -16
  211. data/lib/kkt_shoppe/model_extension.rb +0 -44
  212. data/lib/shoppe/model_extension.rb +0 -44
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
@@ -8,4 +8,4 @@
8
8
  %body
9
9
  #content
10
10
  = yield
11
-
11
+
File without changes
@@ -387,7 +387,6 @@ de:
387
387
  attachments: Anhänge
388
388
  back_to_categories: Zurück zu den Kategorien
389
389
  category_details: Kategoriedetails
390
- choose_product_category: Produktkategorie auswählen
391
390
  create_notice: Kategorie wurde erfolgreich erstellt
392
391
  delete_confirmation: Möchten Sie diese Kategorie wirklich löschen?
393
392
  description: Beschreibung
@@ -401,7 +400,6 @@ de:
401
400
  update_notice: Kategorie wurde erfolgreich aktualisiert
402
401
 
403
402
  products:
404
- add_attachments: Anhänge betrachten/hinzufügen
405
403
  add_attribute: Attribut hinzufügen
406
404
  attachments: Anhänge
407
405
  attributes: Attribute
@@ -603,7 +601,6 @@ de:
603
601
  users: Benutzer
604
602
  countries: Länder
605
603
  settings: Einstellungen
606
- customers: Kunden
607
604
 
608
605
  settings:
609
606
 
@@ -472,7 +472,6 @@ en:
472
472
  hierarchy: Hierarchy
473
473
 
474
474
  products:
475
- add_attachments: View/add attachments
476
475
  add_attribute: Add attribute
477
476
  attachments: Attachments
478
477
  attributes: Attributes
@@ -400,7 +400,6 @@ es:
400
400
  update_notice: Categoría actualizada satisfactoriamente
401
401
 
402
402
  products:
403
- add_attachments: Ver/agregar adjuntos
404
403
  add_attribute: Agregar atributo
405
404
  attachments: Adjuntos
406
405
  attributes: Atributos
@@ -415,7 +415,6 @@ pl:
415
415
  hierarchy: Hierarchy
416
416
 
417
417
  products:
418
- add_attachments: Zobacz/dodaj załączniki
419
418
  add_attribute: Dodaj atrybut
420
419
  attachments: Załączniki
421
420
  attributes: Atrybuty
@@ -288,7 +288,7 @@ pt-BR:
288
288
  id: ID
289
289
  in_progress_warning: Este pedido ainda está sendo construído pelo cliente na sua loja. No momento você pode apenas ver os itens que estão no pedido.
290
290
  invoice_number: Número da fatura
291
- insufficient_stock_order: "Estoque insuficiente para pedido de %{out_of_stock_items }. As quantidades foram atualizadas para o total máximo de estoque dispon��vel."
291
+ insufficient_stock_order: "Estoque insuficiente para pedido de %{out_of_stock_items }. As quantidades foram atualizadas para o total máximo de estoque disponível."
292
292
  item: Item
293
293
  last_name: Último nome
294
294
  mark_as_shipped: Marcar como enviado
@@ -402,7 +402,6 @@ pt-BR:
402
402
  hierarchy: Hierarchy
403
403
 
404
404
  products:
405
- add_attachments: Visualizar/adicionar anexos
406
405
  add_attribute: Adicionar atributo
407
406
  attachments: Anexos
408
407
  attributes: Atributos
data/config/routes.rb CHANGED
File without changes
data/db/countries.txt CHANGED
File without changes
@@ -2,4 +2,4 @@ class AddAddressTypeToKktShoppeTaxRates < ActiveRecord::Migration
2
2
  def change
3
3
  add_column :kkt_shoppe_tax_rates, :address_type, :string
4
4
  end
5
- end
5
+ end
@@ -29,4 +29,4 @@ class CreateKktShoppePayments < ActiveRecord::Migration
29
29
  remove_column :kkt_shoppe_orders, :exported
30
30
  remove_column :kkt_shoppe_orders, :invoice_number
31
31
  end
32
- end
32
+ end
@@ -6,4 +6,4 @@ class RemoveDefaultOnOrderItemWeight < ActiveRecord::Migration
6
6
  def down
7
7
  change_column_default :kkt_shoppe_order_items, :weight, 0.0
8
8
  end
9
- end
9
+ end
@@ -2,4 +2,4 @@ class AddCustomerToKktShoppeOrders < ActiveRecord::Migration
2
2
  def change
3
3
  add_column :kkt_shoppe_orders, :customer_id, :integer
4
4
  end
5
- end
5
+ end
data/db/schema.rb CHANGED
@@ -11,7 +11,20 @@
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: 20150519173350) do
14
+ ActiveRecord::Schema.define(version: 20150315223628) do
15
+
16
+ create_table "nifty_attachments", force: true do |t|
17
+ t.integer "parent_id"
18
+ t.string "parent_type"
19
+ t.string "token"
20
+ t.string "digest"
21
+ t.string "role"
22
+ t.string "file_name"
23
+ t.string "file_type"
24
+ t.binary "data", limit: 16777215
25
+ t.datetime "created_at"
26
+ t.datetime "updated_at"
27
+ end
15
28
 
16
29
  create_table "nifty_key_value_store", force: true do |t|
17
30
  t.integer "parent_id"
@@ -35,7 +48,7 @@ ActiveRecord::Schema.define(version: 20150519173350) do
35
48
  t.datetime "updated_at"
36
49
  end
37
50
 
38
- add_index "kkt_shoppe_addresses", ["customer_id"], name: "index_kkt_shoppe_addresses_on_customer_id"
51
+ add_index "kkt_shoppe_addresses", ["customer_id"], name: "index_kkt_shoppe_addresses_on_customer_id", using: :btree
39
52
 
40
53
  create_table "kkt_shoppe_attachments", force: true do |t|
41
54
  t.integer "parent_id", null: false
@@ -84,10 +97,10 @@ ActiveRecord::Schema.define(version: 20150519173350) do
84
97
  t.text "country_ids"
85
98
  end
86
99
 
87
- add_index "kkt_shoppe_delivery_service_prices", ["delivery_service_id"], name: "index_kkt_shoppe_delivery_service_prices_on_delivery_service_id"
88
- add_index "kkt_shoppe_delivery_service_prices", ["max_weight"], name: "index_kkt_shoppe_delivery_service_prices_on_max_weight"
89
- add_index "kkt_shoppe_delivery_service_prices", ["min_weight"], name: "index_kkt_shoppe_delivery_service_prices_on_min_weight"
90
- add_index "kkt_shoppe_delivery_service_prices", ["price"], name: "index_kkt_shoppe_delivery_service_prices_on_price"
100
+ add_index "kkt_shoppe_delivery_service_prices", ["delivery_service_id"], name: "index_kkt_shoppe_delivery_service_prices_on_delivery_service_id", using: :btree
101
+ add_index "kkt_shoppe_delivery_service_prices", ["max_weight"], name: "index_kkt_shoppe_delivery_service_prices_on_max_weight", using: :btree
102
+ add_index "kkt_shoppe_delivery_service_prices", ["min_weight"], name: "index_kkt_shoppe_delivery_service_prices_on_min_weight", using: :btree
103
+ add_index "kkt_shoppe_delivery_service_prices", ["price"], name: "index_kkt_shoppe_delivery_service_prices_on_price", using: :btree
91
104
 
92
105
  create_table "kkt_shoppe_delivery_services", force: true do |t|
93
106
  t.string "name"
@@ -100,7 +113,7 @@ ActiveRecord::Schema.define(version: 20150519173350) do
100
113
  t.string "tracking_url"
101
114
  end
102
115
 
103
- add_index "kkt_shoppe_delivery_services", ["active"], name: "index_kkt_shoppe_delivery_services_on_active"
116
+ add_index "kkt_shoppe_delivery_services", ["active"], name: "index_kkt_shoppe_delivery_services_on_active", using: :btree
104
117
 
105
118
  create_table "kkt_shoppe_order_items", force: true do |t|
106
119
  t.integer "order_id"
@@ -116,8 +129,8 @@ ActiveRecord::Schema.define(version: 20150519173350) do
116
129
  t.datetime "updated_at"
117
130
  end
118
131
 
119
- add_index "kkt_shoppe_order_items", ["order_id"], name: "index_kkt_shoppe_order_items_on_order_id"
120
- add_index "kkt_shoppe_order_items", ["ordered_item_id", "ordered_item_type"], name: "index_kkt_shoppe_order_items_ordered_item"
132
+ add_index "kkt_shoppe_order_items", ["order_id"], name: "index_kkt_shoppe_order_items_on_order_id", using: :btree
133
+ add_index "kkt_shoppe_order_items", ["ordered_item_id", "ordered_item_type"], name: "index_kkt_shoppe_order_items_ordered_item", using: :btree
121
134
 
122
135
  create_table "kkt_shoppe_orders", force: true do |t|
123
136
  t.string "token"
@@ -164,9 +177,9 @@ ActiveRecord::Schema.define(version: 20150519173350) do
164
177
  t.integer "customer_id"
165
178
  end
166
179
 
167
- add_index "kkt_shoppe_orders", ["delivery_service_id"], name: "index_kkt_shoppe_orders_on_delivery_service_id"
168
- add_index "kkt_shoppe_orders", ["received_at"], name: "index_kkt_shoppe_orders_on_received_at"
169
- add_index "kkt_shoppe_orders", ["token"], name: "index_kkt_shoppe_orders_on_token"
180
+ add_index "kkt_shoppe_orders", ["delivery_service_id"], name: "index_kkt_shoppe_orders_on_delivery_service_id", using: :btree
181
+ add_index "kkt_shoppe_orders", ["received_at"], name: "index_kkt_shoppe_orders_on_received_at", using: :btree
182
+ add_index "kkt_shoppe_orders", ["token"], name: "index_kkt_shoppe_orders_on_token", using: :btree
170
183
 
171
184
  create_table "kkt_shoppe_payments", force: true do |t|
172
185
  t.integer "order_id"
@@ -182,8 +195,8 @@ ActiveRecord::Schema.define(version: 20150519173350) do
182
195
  t.datetime "updated_at"
183
196
  end
184
197
 
185
- add_index "kkt_shoppe_payments", ["order_id"], name: "index_kkt_shoppe_payments_on_order_id"
186
- add_index "kkt_shoppe_payments", ["parent_payment_id"], name: "index_kkt_shoppe_payments_on_parent_payment_id"
198
+ add_index "kkt_shoppe_payments", ["order_id"], name: "index_kkt_shoppe_payments_on_order_id", using: :btree
199
+ add_index "kkt_shoppe_payments", ["parent_payment_id"], name: "index_kkt_shoppe_payments_on_parent_payment_id", using: :btree
187
200
 
188
201
  create_table "kkt_shoppe_product_attributes", force: true do |t|
189
202
  t.integer "product_id"
@@ -196,9 +209,9 @@ ActiveRecord::Schema.define(version: 20150519173350) do
196
209
  t.boolean "public", default: true
197
210
  end
198
211
 
199
- add_index "kkt_shoppe_product_attributes", ["key"], name: "index_kkt_shoppe_product_attributes_on_key"
200
- add_index "kkt_shoppe_product_attributes", ["position"], name: "index_kkt_shoppe_product_attributes_on_position"
201
- add_index "kkt_shoppe_product_attributes", ["product_id"], name: "index_kkt_shoppe_product_attributes_on_product_id"
212
+ add_index "kkt_shoppe_product_attributes", ["key"], name: "index_kkt_shoppe_product_attributes_on_key", using: :btree
213
+ add_index "kkt_shoppe_product_attributes", ["position"], name: "index_kkt_shoppe_product_attributes_on_position", using: :btree
214
+ add_index "kkt_shoppe_product_attributes", ["product_id"], name: "index_kkt_shoppe_product_attributes_on_product_id", using: :btree
202
215
 
203
216
  create_table "kkt_shoppe_product_categories", force: true do |t|
204
217
  t.string "name"
@@ -214,44 +227,17 @@ ActiveRecord::Schema.define(version: 20150519173350) do
214
227
  t.boolean "permalink_includes_ancestors", default: false
215
228
  end
216
229
 
217
- add_index "kkt_shoppe_product_categories", ["lft"], name: "index_kkt_shoppe_product_categories_on_lft"
218
- add_index "kkt_shoppe_product_categories", ["permalink"], name: "index_kkt_shoppe_product_categories_on_permalink"
219
- add_index "kkt_shoppe_product_categories", ["rgt"], name: "index_kkt_shoppe_product_categories_on_rgt"
230
+ add_index "kkt_shoppe_product_categories", ["lft"], name: "index_kkt_shoppe_product_categories_on_lft", using: :btree
231
+ add_index "kkt_shoppe_product_categories", ["permalink"], name: "index_kkt_shoppe_product_categories_on_permalink", using: :btree
232
+ add_index "kkt_shoppe_product_categories", ["rgt"], name: "index_kkt_shoppe_product_categories_on_rgt", using: :btree
220
233
 
221
234
  create_table "kkt_shoppe_product_categorizations", force: true do |t|
222
235
  t.integer "product_id", null: false
223
236
  t.integer "product_category_id", null: false
224
237
  end
225
238
 
226
- add_index "kkt_shoppe_product_categorizations", ["product_category_id"], name: "categorization_by_product_category_id"
227
- add_index "kkt_shoppe_product_categorizations", ["product_id"], name: "categorization_by_product_id"
228
-
229
- create_table "kkt_shoppe_product_category_translations", force: true do |t|
230
- t.integer "kkt_shoppe_product_category_id", null: false
231
- t.string "locale", null: false
232
- t.datetime "created_at"
233
- t.datetime "updated_at"
234
- t.string "name"
235
- t.string "permalink"
236
- t.text "description"
237
- end
238
-
239
- add_index "kkt_shoppe_product_category_translations", ["locale"], name: "index_kkt_shoppe_product_category_translations_on_locale"
240
- add_index "kkt_shoppe_product_category_translations", ["kkt_shoppe_product_category_id"], name: "index_75826cc72f93d014e54dc08b8202892841c670b4"
241
-
242
- create_table "kkt_shoppe_product_translations", force: true do |t|
243
- t.integer "kkt_shoppe_product_id", null: false
244
- t.string "locale", null: false
245
- t.datetime "created_at"
246
- t.datetime "updated_at"
247
- t.string "name"
248
- t.string "permalink"
249
- t.text "description"
250
- t.text "short_description"
251
- end
252
-
253
- add_index "kkt_shoppe_product_translations", ["locale"], name: "index_kkt_shoppe_product_translations_on_locale"
254
- add_index "kkt_shoppe_product_translations", ["kkt_shoppe_product_id"], name: "index_kkt_shoppe_product_translations_on_kkt_shoppe_product_id"
239
+ add_index "kkt_shoppe_product_categorizations", ["product_category_id"], name: "categorization_by_product_category_id", using: :btree
240
+ add_index "kkt_shoppe_product_categorizations", ["product_id"], name: "categorization_by_product_id", using: :btree
255
241
 
256
242
  create_table "kkt_shoppe_products", force: true do |t|
257
243
  t.integer "parent_id"
@@ -273,9 +259,9 @@ ActiveRecord::Schema.define(version: 20150519173350) do
273
259
  t.boolean "default", default: false
274
260
  end
275
261
 
276
- add_index "kkt_shoppe_products", ["parent_id"], name: "index_kkt_shoppe_products_on_parent_id"
277
- add_index "kkt_shoppe_products", ["permalink"], name: "index_kkt_shoppe_products_on_permalink"
278
- add_index "kkt_shoppe_products", ["sku"], name: "index_kkt_shoppe_products_on_sku"
262
+ add_index "kkt_shoppe_products", ["parent_id"], name: "index_kkt_shoppe_products_on_parent_id", using: :btree
263
+ add_index "kkt_shoppe_products", ["permalink"], name: "index_kkt_shoppe_products_on_permalink", using: :btree
264
+ add_index "kkt_shoppe_products", ["sku"], name: "index_kkt_shoppe_products_on_sku", using: :btree
279
265
 
280
266
  create_table "kkt_shoppe_settings", force: true do |t|
281
267
  t.string "key"
@@ -283,7 +269,7 @@ ActiveRecord::Schema.define(version: 20150519173350) do
283
269
  t.string "value_type"
284
270
  end
285
271
 
286
- add_index "kkt_shoppe_settings", ["key"], name: "index_kkt_shoppe_settings_on_key"
272
+ add_index "kkt_shoppe_settings", ["key"], name: "index_kkt_shoppe_settings_on_key", using: :btree
287
273
 
288
274
  create_table "kkt_shoppe_stock_level_adjustments", force: true do |t|
289
275
  t.integer "item_id"
@@ -296,8 +282,8 @@ ActiveRecord::Schema.define(version: 20150519173350) do
296
282
  t.datetime "updated_at"
297
283
  end
298
284
 
299
- add_index "kkt_shoppe_stock_level_adjustments", ["item_id", "item_type"], name: "index_kkt_shoppe_stock_level_adjustments_items"
300
- add_index "kkt_shoppe_stock_level_adjustments", ["parent_id", "parent_type"], name: "index_kkt_shoppe_stock_level_adjustments_parent"
285
+ add_index "kkt_shoppe_stock_level_adjustments", ["item_id", "item_type"], name: "index_kkt_shoppe_stock_level_adjustments_items", using: :btree
286
+ add_index "kkt_shoppe_stock_level_adjustments", ["parent_id", "parent_type"], name: "index_kkt_shoppe_stock_level_adjustments_parent", using: :btree
301
287
 
302
288
  create_table "kkt_shoppe_tax_rates", force: true do |t|
303
289
  t.string "name"
@@ -317,6 +303,6 @@ ActiveRecord::Schema.define(version: 20150519173350) do
317
303
  t.datetime "updated_at"
318
304
  end
319
305
 
320
- add_index "kkt_shoppe_users", ["email_address"], name: "index_kkt_shoppe_users_on_email_address"
306
+ add_index "kkt_shoppe_users", ["email_address"], name: "index_kkt_shoppe_users_on_email_address", using: :btree
321
307
 
322
308
  end
data/db/seeds.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
File without changes
File without changes
File without changes
File without changes
@@ -17,4 +17,4 @@ module KktShoppe
17
17
  end
18
18
 
19
19
  end
20
- end
20
+ end
File without changes
File without changes
@@ -1,12 +1,12 @@
1
1
  module KktShoppe
2
2
  class Engine < ::Rails::Engine
3
3
  isolate_namespace KktShoppe
4
-
4
+
5
5
  if KktShoppe.respond_to?(:root)
6
6
  config.autoload_paths << File.join(KktShoppe.root, 'lib')
7
7
  config.assets.precompile += ['kkt_shoppe/sub.css', 'kkt_shoppe/printable.css']
8
8
  end
9
-
9
+
10
10
  # We don't want any automatic generators in the engine.
11
11
  config.generators do |g|
12
12
  g.orm :active_record
@@ -21,39 +21,35 @@ module KktShoppe
21
21
  require_dependency(c)
22
22
  end
23
23
  end
24
-
24
+
25
25
  initializer 'kkt_shoppe.initialize' do |app|
26
26
  # Add the default settings
27
27
  KktShoppe.add_settings_group :system_settings, [:store_name, :email_address, :currency_unit, :tax_name, :demo_mode]
28
-
28
+
29
29
  # Add middleware
30
30
  app.config.middleware.use KktShoppe::SettingsLoader
31
-
31
+
32
32
  # Load our migrations into the application's db/migrate path
33
33
  unless app.root.to_s.match root.to_s
34
34
  config.paths["db/migrate"].expanded.each do |expanded_path|
35
35
  app.config.paths["db/migrate"] << expanded_path
36
36
  end
37
- end
38
-
37
+ end
38
+
39
39
  # Load view helpers for the base application
40
40
  ActiveSupport.on_load(:action_view) do
41
41
  require 'kkt_shoppe/view_helpers'
42
42
  ActionView::Base.send :include, KktShoppe::ViewHelpers
43
43
  end
44
-
45
- ActiveSupport.on_load(:active_record) do
46
- require 'kkt_shoppe/model_extension'
47
- ActiveRecord::Base.send :include, KktShoppe::ModelExtension
48
- end
49
-
44
+
50
45
  # Load default navigation
51
46
  require 'kkt_shoppe/default_navigation'
52
47
  end
53
-
48
+
54
49
  generators do
55
50
  require 'kkt_shoppe/setup_generator'
56
51
  end
57
-
52
+
58
53
  end
59
54
  end
55
+
File without changes
@@ -3,4 +3,4 @@ module KktShoppe
3
3
  class InappropriateDeliveryService < Error
4
4
  end
5
5
  end
6
- end
6
+ end
@@ -12,4 +12,4 @@ module KktShoppe
12
12
 
13
13
  end
14
14
  end
15
- end
15
+ end
@@ -3,4 +3,4 @@ module KktShoppe
3
3
  class InvalidConfiguration < Error
4
4
  end
5
5
  end
6
- end
6
+ end
@@ -12,4 +12,4 @@ module KktShoppe
12
12
 
13
13
  end
14
14
  end
15
- end
15
+ end
@@ -3,4 +3,4 @@ module KktShoppe
3
3
  class PaymentDeclined < KktShoppe::Error
4
4
  end
5
5
  end
6
- end
6
+ end
@@ -3,4 +3,4 @@ module KktShoppe
3
3
  class RefundFailed < Error
4
4
  end
5
5
  end
6
- end
6
+ end
@@ -3,4 +3,4 @@ module KktShoppe
3
3
  class UnorderableItem < Error
4
4
  end
5
5
  end
6
- end
6
+ end
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -1,3 +1,3 @@
1
1
  module KktShoppe
2
- VERSION = "1.1.2"
2
+ VERSION = "1.2.0"
3
3
  end
File without changes
data/lib/kkt_shoppe.rb CHANGED
@@ -10,8 +10,8 @@ require "globalize"
10
10
 
11
11
  require 'nifty/utils'
12
12
  require 'nifty/key_value_store'
13
+ require 'nifty/attachments'
13
14
  require 'nifty/dialog'
14
- require 'carrierwave'
15
15
 
16
16
  module KktShoppe
17
17
  class << self
@@ -26,4 +26,4 @@ namespace :kkt_shoppe do
26
26
  Rake::Task["kkt_shoppe:create_default_user"].invoke if KktShoppe::User.all.empty?
27
27
  end
28
28
 
29
- end
29
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kkt_shoppe
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.2
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kyle Thompson, Adam Cooke
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-07-01 00:00:00.000000000 Z
11
+ date: 2015-07-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -521,8 +521,6 @@ files:
521
521
  - app/models/kkt_shoppe/stock_level_adjustment.rb
522
522
  - app/models/kkt_shoppe/tax_rate.rb
523
523
  - app/models/kkt_shoppe/user.rb
524
- - app/models/shoppe/attachment.rb
525
- - app/uploaders/shoppe/attachment_uploader.rb
526
524
  - app/validators/permalink_validator.rb
527
525
  - app/views/kkt_shoppe/addresses/_form.html.haml
528
526
  - app/views/kkt_shoppe/addresses/edit.html.haml
@@ -621,7 +619,6 @@ files:
621
619
  - db/migrate/20141026181718_add_nested_to_product_categories.rb
622
620
  - db/migrate/20141027215005_create_kkt_shoppe_addresses.rb
623
621
  - db/migrate/20150315215633_add_customer_to_kkt_shoppe_orders.rb
624
- - db/migrate/20150315223628_create_kkt_shoppe_attachments.rb
625
622
  - db/migrate/20150513171350_create_kkt_shoppe_product_category_translation_table.rb
626
623
  - db/migrate/20150519173350_create_kkt_shoppe_product_translation_table.rb
627
624
  - db/schema.rb
@@ -652,7 +649,6 @@ files:
652
649
  - lib/kkt_shoppe/errors/payment_declined.rb
653
650
  - lib/kkt_shoppe/errors/refund_failed.rb
654
651
  - lib/kkt_shoppe/errors/unorderable_item.rb
655
- - lib/kkt_shoppe/model_extension.rb
656
652
  - lib/kkt_shoppe/navigation_manager.rb
657
653
  - lib/kkt_shoppe/orderable_item.rb
658
654
  - lib/kkt_shoppe/settings.rb
@@ -660,9 +656,8 @@ files:
660
656
  - lib/kkt_shoppe/setup_generator.rb
661
657
  - lib/kkt_shoppe/version.rb
662
658
  - lib/kkt_shoppe/view_helpers.rb
663
- - lib/shoppe/model_extension.rb
664
- - lib/tasks/kylekthompson_shoppe.rake
665
- homepage: http://tryshoppe.com
659
+ - lib/tasks/kkt_shoppe.rake
660
+ homepage: http://www.kylekthompson.com
666
661
  licenses:
667
662
  - MIT
668
663
  metadata: {}