office_clerk 0.9 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (60) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +2 -0
  3. data/Gemfile.lock +11 -11
  4. data/README.md +26 -8
  5. data/Rakefile +2 -2
  6. data/app/controllers/admin_controller.rb +2 -6
  7. data/app/controllers/baskets_controller.rb +2 -2
  8. data/app/controllers/office_controller.rb +1 -0
  9. data/app/controllers/orders_controller.rb +1 -1
  10. data/app/controllers/sessions_controller.rb +5 -5
  11. data/app/helpers/office_helper.rb +0 -19
  12. data/app/views/addresses/show.html.haml +2 -2
  13. data/app/views/baskets/_small.html.haml +1 -1
  14. data/app/views/baskets/edit.html.haml +18 -17
  15. data/app/views/baskets/index.html.haml +19 -17
  16. data/app/views/baskets/show.html.haml +3 -3
  17. data/app/views/categories/_treeview.html.haml +1 -1
  18. data/app/views/categories/edit.html.haml +5 -5
  19. data/app/views/categories/index.html.haml +8 -7
  20. data/app/views/categories/show.html.haml +5 -4
  21. data/app/views/clerks/edit.html.haml +4 -4
  22. data/app/views/clerks/index.html.haml +7 -6
  23. data/app/views/clerks/show.html.haml +4 -3
  24. data/app/views/layouts/_admin_menu.html.haml +8 -8
  25. data/app/views/layouts/office_clerk.haml +3 -3
  26. data/app/views/manage/all.haml +2 -2
  27. data/app/views/orders/_payment.html.haml +11 -0
  28. data/app/views/orders/_shipment.html.haml +10 -0
  29. data/app/views/orders/index.html.haml +9 -8
  30. data/app/views/orders/shipment.haml +3 -1
  31. data/app/views/orders/show.html.haml +29 -47
  32. data/app/views/products/_head.haml +1 -1
  33. data/app/views/products/_line.html.haml +1 -1
  34. data/app/views/products/_triple.html.haml +1 -1
  35. data/app/views/products/edit.html.haml +6 -4
  36. data/app/views/products/index.html.haml +24 -22
  37. data/app/views/products/show.html.haml +15 -13
  38. data/app/views/purchases/index.html.haml +7 -6
  39. data/app/views/purchases/show.html.haml +8 -7
  40. data/app/views/suppliers/edit.html.haml +4 -3
  41. data/app/views/suppliers/index.html.haml +7 -6
  42. data/app/views/suppliers/show.html.haml +4 -3
  43. data/bin/rails +11 -3
  44. data/config/locales/en.yml +1 -1
  45. data/config/locales/fi.yml +1 -1
  46. data/db/migrate/20131226144316_baskets.rb +2 -2
  47. data/db/schema.rb +2 -2
  48. data/lib/office_clerk/engine.rb +3 -3
  49. data/lib/office_clerk/version.rb +1 -1
  50. data/test_app/app/controllers/application_controller.rb +1 -1
  51. data/test_app/config/application.rb +3 -0
  52. data/test_app/config/initializers/assets.rb +3 -1
  53. metadata +4 -9
  54. data/config/initializers/backtrace_silencers.rb +0 -7
  55. data/config/initializers/filter_parameter_logging.rb +0 -4
  56. data/config/initializers/inflections.rb +0 -16
  57. data/config/initializers/migrate.rb +0 -18
  58. data/config/initializers/mime_types.rb +0 -6
  59. data/config/initializers/session_store.rb +0 -3
  60. data/config/initializers/wrap_parameters.rb +0 -14
@@ -8,5 +8,5 @@
8
8
  -next unless product
9
9
  %td= image_tag product.main_picture.url(:thumb)
10
10
  %td
11
- = link_to office.product_path(product), :title => t(:show) , :class => product.online && "online" do
11
+ = link_to product_path(product), :title => t(:show) , :class => product.online && "online" do
12
12
  = product.full_name
@@ -1,6 +1,7 @@
1
+ .product_edit_start
1
2
  = render "head"
2
- - url = @product.persisted? ? office.product_path(@product) : office.products_path
3
- = bootstrap_form_for(@product, :html => { :multipart => true , :role=>"form"} , :url => url) do |f|
3
+ - url = @product.persisted? ? product_path(@product) : products_path
4
+ = bootstrap_form_for(@product, :html => { :multipart => true , :role=>"form"} ) do |f|
4
5
  = f.hidden_field( :product_id) if @product.product_id
5
6
  .row
6
7
  .col-md-8
@@ -42,6 +43,7 @@
42
43
  .col-md-8
43
44
  = f.submit :class => "btn btn-success"
44
45
  -if @product.product_id
45
- = link_to t(:cancel), office.product_path(@product.product), :class => "btn btn-warning"
46
+ = link_to t(:cancel), product_path(@product.product), :class => "btn btn-warning"
46
47
  -else
47
- = link_to t(:cancel), office.products_path, :class => "btn btn-warning"
48
+ = link_to t(:cancel), products_path, :class => "btn btn-warning"
49
+ .product_edit_end
@@ -1,4 +1,4 @@
1
- .row
1
+ .row.product_index_start
2
2
  .col-md-9.products
3
3
  .row
4
4
  .col-md-10
@@ -12,7 +12,7 @@
12
12
  = t(:products)
13
13
  = paginate @products
14
14
  .col-md-2
15
- = link_to t(:new) + ' ' + t(:product) , office.new_product_path , :class => "btn btn-primary"
15
+ = link_to t(:new) + ' ' + t(:product) , new_product_path , :class => "btn btn-primary"
16
16
  .col-md-3
17
17
  = image_tag "office_clerk/products.jpg" , :class => "img-responsive"
18
18
 
@@ -37,27 +37,28 @@
37
37
  = @product_scope.length.to_s + " " + t(:products)
38
38
  %tbody
39
39
  - @products.each do |product|
40
- -next if params[:basket] and product.line?
41
- %tr{:class => "line-#{cycle("1","2")}"}
42
- %td.image= image_tag product.main_picture.url(:thumb)
43
- %td.ean= product.line? ? "#{product.products.length} #{t(:items)}" : product.ean
44
- %td.name
45
- = link_to office.product_path(product), :title => t(:show) , :class => product.online && "online" do
46
- =product.full_name
47
- %td.price.text-right=euros(product.price)
48
- %td.price.text-right=euros(product.cost)
49
- %td.supplier
50
- =product.supplier.supplier_name if product.supplier
51
- %br
52
- =product.category.name if product.category
53
- %td.inventory=product.inventory
54
- -if params[:basket]
55
- %td= link_to t(:add_to_basket) , office.edit_basket_path(:id => params[:basket] , :add => product.id)
56
- -else
57
- %td= link_to t(:edit) ,office.edit_product_path(product), :title => t(:edit)
40
+ -next if params[:basket] and product.line?
41
+ - cache(product.cache_key + ":" + params[:basket].to_s) do
42
+ %tr{:class => "line-#{cycle("1","2")}"}
43
+ %td.image= image_tag product.main_picture.url(:thumb)
44
+ %td.ean= product.line? ? "#{product.products.length} #{t(:items)}" : product.ean
45
+ %td.name
46
+ = link_to product_path(product), :title => t(:show) , :class => product.online && "online" do
47
+ =product.full_name
48
+ %td.price.text-right=euros(product.price)
49
+ %td.price.text-right=euros(product.cost)
50
+ %td.supplier
51
+ =product.supplier.supplier_name if product.supplier
52
+ %br
53
+ =product.category.name if product.category
54
+ %td.inventory=product.inventory
55
+ -if params[:basket]
56
+ %td= link_to t(:add_to_basket) , edit_basket_path(:id => params[:basket] , :add => product.id)
57
+ -else
58
+ %td= link_to t(:edit) ,edit_product_path(product), :title => t(:edit)
58
59
  = paginate @products
59
60
  .col-md-3
60
- = search_form_for @q, :url => office.search_products_path, :html => { :class => "form-horizontal" }, :method => :get do |f|
61
+ = search_form_for @q, :html => { :class => "form-horizontal" }, :method => :get do |f|
61
62
  .form-group
62
63
  .input-group
63
64
  - if params[:basket]
@@ -115,4 +116,5 @@
115
116
  .col-md-8
116
117
  = f.collection_select :category_id_eq, Category.all, :id, :name, {:include_blank => true}, :class=>"form-control"
117
118
  = f.submit t(:filter), :class => "btn btn-success" , :id => :filter
118
- = link_to t(:cancel), office.products_path, :class => "btn btn-warning"
119
+ = link_to t(:cancel), products_path, :class => "btn btn-warning"
120
+ .product_index_end
@@ -1,3 +1,4 @@
1
+ .product_show_start
1
2
  = render "head"
2
3
 
3
4
  -if @product.line?
@@ -21,55 +22,56 @@
21
22
  .col-md-6
22
23
  %p
23
24
  %b= t(:price) + " : "
24
- = in_place @product , :price , :display_with => :best_euros , :url => office.product_path(@product)
25
+ = in_place @product , :price , :display_with => :best_euros
25
26
  %p
26
27
  %b= t(:cost) + " : "
27
- = in_place @product , :cost , :display_with => :best_euros , :url => office.product_path(@product)
28
+ = in_place @product , :cost , :display_with => :best_euros
28
29
  %p
29
30
  %b= t(:category) + " : "
30
- = link_to @product.category.name , office.category_path(@product.category) if @product.category
31
+ = link_to @product.category.name , category_path(@product.category) if @product.category
31
32
  %p
32
33
  %b= t(:link) + " : "
33
34
  = @product.link
34
35
  %p
35
36
  %b= t(:ean) + " : "
36
- = in_place @product , :ean , :url => office.product_path(@product)
37
+ = in_place @product , :ean
37
38
  .col-md-6
38
39
  %p
39
40
  %b= t(:weight) + " : "
40
- = in_place @product , :weight , :url => office.product_path(@product)
41
+ = in_place @product , :weight
41
42
  %p
42
43
  %b= t(:inventory) + " : "
43
44
  = @product.inventory
44
45
  %p
45
46
  %b= t(:stock_level) + " : "
46
- = in_place @product , :stock_level , :url => office.product_path(@product)
47
+ = in_place @product , :stock_level
47
48
  %p
48
49
  %b= t(:supplier) + " : "
49
50
  = link_to @product.supplier.supplier_name ,supplier_path(@product.supplier) if @product.supplier
50
51
  %p
51
52
  %b= t(:scode) + " : "
52
- = in_place @product , :scode , :url => office.product_path(@product)
53
+ = in_place @product , :scode
53
54
  %p
54
55
  %b= t(:tax_percent) + " : "
55
- = in_place @product , :tax , :url => office.product_path(@product)
56
+ = in_place @product , :tax
56
57
  .col-md-4
57
58
  %p
58
59
  %b= t(:summary) + " : "
59
- = in_place @product , :summary , :url => office.product_path(@product)
60
+ = in_place @product , :summary
60
61
  %p
61
62
  %b= t(:description) + " : "
62
- = in_place @product , :description , :as => :textarea , :url => office.product_path(@product)
63
+ = in_place @product , :description , :as => :textarea
63
64
  .col-md-4
64
65
  =render :partial => "products/preview_box" , :locals => {:product => @product}
65
66
  = markdown @product.description
66
67
  %br
67
68
  .row.product_show_row_buttons
68
69
  .col-md-2
69
- = link_to t(:edit), office.edit_product_path(@product), :class => "btn btn-success"
70
+ = link_to t(:edit), edit_product_path(@product), :class => "btn btn-success"
70
71
  .col-md-2
71
- = link_to t(:delete) , office.product_path(@product), :method => :delete , :class => "btn btn-danger", :data => { :confirm => t(:are_you_sure )}
72
+ = link_to t(:delete) , product_path(@product), :method => :delete , :class => "btn btn-danger", :data => { :confirm => t(:are_you_sure )}
72
73
  -unless @product.product_item?
73
74
  .col-md-2
74
- = link_to t(:new_item) , office.new_product_path( :parent_id => @product.id), :class => "btn btn-primary"
75
+ = link_to t(:new_item) , new_product_path( :parent_id => @product.id), :class => "btn btn-primary"
75
76
  .col-md-6.product_show_row_end
77
+ .product_show_end
@@ -1,11 +1,11 @@
1
- .row
1
+ .row.purchase_index_start
2
2
  .col-md-9.purchases
3
3
  .row
4
4
  .col-md-10
5
5
  %h2= t(:purchases)
6
6
  = paginate @purchases
7
7
  .col-md-2
8
- = link_to t(:new) + ' ' + t(:purchase) , office.new_purchase_path , :class => "btn btn-primary new_purchase"
8
+ = link_to t(:new) + ' ' + t(:purchase) , new_purchase_path , :class => "btn btn-primary new_purchase"
9
9
  .col-md-3
10
10
  = image_tag "office_clerk/purchases.jpg" , :class => "img-responsive"
11
11
  .row
@@ -27,13 +27,13 @@
27
27
  %td= date(purchase.ordered_on)
28
28
  %td= date(purchase.received_on)
29
29
  %td= purchase.basket.items.length
30
- %td= link_to euros(purchase.basket.total_price) , office.basket_path(purchase.basket)
31
- %td= link_to t(:show) , office.purchase_path(purchase), :title => t(:show)
30
+ %td= link_to euros(purchase.basket.total_price) , basket_path(purchase.basket)
31
+ %td= link_to t(:show) , purchase_path(purchase), :title => t(:show)
32
32
  .btn-toolbar
33
33
  .btn-group
34
34
  = paginate @purchases
35
35
  .col-md-3
36
- = search_form_for @q, :url => office.search_purchases_path, :html => { :class => "form-horizontal" }, :method => :get do |f|
36
+ = search_form_for @q, :html => { :class => "form-horizontal" }, :method => :get do |f|
37
37
  .form-group
38
38
  = f.text_field :name_cont , :class => "form-control" , :placeholder => t(:name)
39
39
  .row
@@ -54,4 +54,5 @@
54
54
  = f.text_field :received_on_lt , :class => "form-control datepicker"
55
55
  %br
56
56
  = f.submit t(:filter), :id => :filter , :class => "btn btn-success"
57
- = link_to t(:cancel), office.purchases_path, :class => "btn btn-warning"
57
+ = link_to t(:cancel), purchases_path, :class => "btn btn-warning"
58
+ .purchase_index_end
@@ -1,9 +1,9 @@
1
- .row
1
+ .row.purchase_show_start
2
2
  %h2
3
3
  = t(:purchase)
4
4
  %p
5
5
  %b= t(:name)
6
- = in_place @purchase , :name , :url => office.purchases_path(@purchase)
6
+ = in_place @purchase , :name
7
7
  .row
8
8
  .col-md-3
9
9
  %p
@@ -12,7 +12,7 @@
12
12
  -if @purchase.ordered_on
13
13
  = date(@purchase.ordered_on)
14
14
  -else
15
- = link_to t(:order) , office.order_purchase_path(@purchase) , :class => "btn btn-primary order_link"
15
+ = link_to t(:order) , order_purchase_path(@purchase) , :class => "btn btn-primary order_link"
16
16
  .col-md-3
17
17
  %p
18
18
  %b
@@ -20,7 +20,7 @@
20
20
  -if @purchase.received_on
21
21
  = date(@purchase.received_on)
22
22
  -else
23
- = link_to t(:receive) , office.receive_purchase_path(@purchase) , :class => "btn btn-primary receive_link"
23
+ = link_to t(:receive) , receive_purchase_path(@purchase) , :class => "btn btn-primary receive_link"
24
24
  .col-md-6
25
25
  %p
26
26
  %b
@@ -33,17 +33,18 @@
33
33
  .col-md-5
34
34
  %b= t(:order_actions)
35
35
  %br
36
- = link_to t(:edit), office.edit_basket_path(@purchase.basket), :class => "btn btn-info edit_basket" unless @purchase.basket.locked?
36
+ = link_to t(:edit), edit_basket_path(@purchase.basket), :class => "btn btn-info edit_basket" unless @purchase.basket.locked?
37
37
 
38
- = link_to t(:back), office.purchases_path, :class => "btn btn-warning"
38
+ = link_to t(:back), purchases_path, :class => "btn btn-warning"
39
39
 
40
40
  -unless @purchase.received_on
41
41
  %h3{"style" => "color:red"}
42
42
  = t(:inventory)
43
43
  %br
44
- = link_to t(:inventory) , office.inventory_purchase_path(@purchase) , :class => "btn btn-primary btn-danger inventory_link", :data => { :confirm => t(:are_you_sure) }
44
+ = link_to t(:inventory) , inventory_purchase_path(@purchase) , :class => "btn btn-primary btn-danger inventory_link", :data => { :confirm => t(:are_you_sure) }
45
45
 
46
46
  .row
47
47
  %br
48
48
  .col-md-12
49
49
  .purchase_show_last
50
+ .purchase_show_end
@@ -1,10 +1,11 @@
1
- %h2
1
+ %h2.suppliers_edit_start
2
2
  = t params["action"]
3
3
  = t(:supplier)
4
- = bootstrap_form_for(@supplier, :url => office.suppliers_path) do |f|
4
+ = bootstrap_form_for(@supplier) do |f|
5
5
  .row
6
6
  = f.text_field :supplier_name
7
7
  = render "addresses/form_fields" ,:f => f
8
8
  .form-actions
9
9
  = f.submit :class => "btn btn-success"
10
- = link_to t(:back), office.suppliers_path, :class => "btn btn-warning"
10
+ = link_to t(:back), suppliers_path, :class => "btn btn-warning"
11
+ .suppliers_edit_end
@@ -1,11 +1,11 @@
1
- .row
1
+ .row.suppliers_index_start
2
2
  .col-md-9.suppliers
3
3
  .row
4
4
  .col-md-10
5
5
  %h2= t(:suppliers)
6
6
  = paginate @suppliers
7
7
  .col-md-2
8
- = link_to t(:new) + ' ' + t(:supplier) , office.new_supplier_path , :class => "btn btn-primary"
8
+ = link_to t(:new) + ' ' + t(:supplier) , new_supplier_path , :class => "btn btn-primary"
9
9
  .col-md-3
10
10
  = image_tag "office_clerk/suppliers.jpg" , :class => "img-responsive"
11
11
  .row
@@ -26,14 +26,15 @@
26
26
  %td.name=supplier.supplier_name
27
27
  %td=supplier.products.count
28
28
  %td=supplier.whole_address
29
- %td= link_to t(:show) , office.supplier_path(supplier), :title => t(:show)
30
- %td= link_to t(:edit) , office.edit_supplier_path(supplier), :title => t(:edit)
29
+ %td= link_to t(:show) , supplier_path(supplier), :title => t(:show)
30
+ %td= link_to t(:edit) , edit_supplier_path(supplier), :title => t(:edit)
31
31
  = paginate @suppliers
32
32
  .col-md-3
33
- = search_form_for @q, :url => office.search_suppliers_path, :html => { :class => "form-horizontal" }, :method => :get do |f|
33
+ = search_form_for @q, :html => { :class => "form-horizontal" }, :method => :get do |f|
34
34
  .form-group
35
35
  = f.text_field :supplier_name_cont , :class => "form-control", :placeholder => t(:name)
36
36
  .form-group
37
37
  = f.text_field :address_cont , :class => "form-control", :placeholder => t(:address)
38
38
  = f.submit t(:filter), :id => :filter , :class => "btn btn-success"
39
- = link_to t(:cancel), office.suppliers_path, :class => "btn btn-warning"
39
+ = link_to t(:cancel), suppliers_path, :class => "btn btn-warning"
40
+ .suppliers_index_end
@@ -1,4 +1,4 @@
1
- %h2
1
+ %h2.suppliers_show_start
2
2
  = t(:supplier) + " : " + @supplier.supplier_name
3
3
 
4
4
  .col-md-6
@@ -20,7 +20,8 @@
20
20
  %b
21
21
  = t(:country) + " : " + @supplier.country.to_s
22
22
 
23
- = link_to t(:edit), office.edit_supplier_path(@supplier), :class => "btn btn-success"
24
- = link_to t(:back), office.suppliers_path, :class => "btn btn-warning"
23
+ = link_to t(:edit), edit_supplier_path(@supplier), :class => "btn btn-success"
24
+ = link_to t(:back), suppliers_path, :class => "btn btn-warning"
25
25
 
26
26
  =render "products/triple" , :products => @supplier.products.no_items
27
+ .suppliers_show_end
data/bin/rails CHANGED
@@ -1,4 +1,12 @@
1
1
  #!/usr/bin/env ruby
2
- APP_PATH = File.expand_path('../test_app/config/application', __FILE__)
3
- require_relative '../test_app/config/boot'
4
- require 'rails/commands'
2
+ # This command will automatically be run when you run "rails" with Rails 4 gems installed from the root of your application.
3
+
4
+ ENGINE_ROOT = File.expand_path('../..', __FILE__)
5
+ ENGINE_PATH = File.expand_path('../../lib/office_clerk/engine', __FILE__)
6
+
7
+ # Set up gems listed in the Gemfile.
8
+ ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__)
9
+ require 'bundler/setup' if File.exist?(ENV['BUNDLE_GEMFILE'])
10
+
11
+ require 'rails/all'
12
+ require 'rails/engine/commands'
@@ -149,7 +149,7 @@ en:
149
149
  ordered: Ordered
150
150
  ordered_on: Ordered On
151
151
  orders: Orders
152
- paid: Paid
152
+ pay: Pay
153
153
  paid_on: Paid on
154
154
  password: Password
155
155
  payment_info: Payment info
@@ -149,7 +149,7 @@ fi:
149
149
  ordered: Tilattu
150
150
  ordered_on: Tilauspäivä
151
151
  orders: Tilaukset
152
- paid: Maksa
152
+ pay: Maksa
153
153
  paid_on: Maksettu
154
154
  password: Salasana
155
155
  payment_info: Maksukoodi
@@ -3,8 +3,8 @@ class Baskets < ActiveRecord::Migration
3
3
  create_table :baskets do |t|
4
4
  t.integer :kori_id
5
5
  t.string :kori_type
6
- t.decimal :total_price , :default => 0.0
7
- t.decimal :total_tax , :default => 0.0
6
+ t.decimal :total_price , :default => 0.0, precision: 10, scale: 4
7
+ t.decimal :total_tax , :default => 0.0, precision: 10, scale: 4
8
8
  t.date :locked
9
9
  t.timestamps
10
10
  end
@@ -16,8 +16,8 @@ ActiveRecord::Schema.define(version: 20131226151332) do
16
16
  create_table "baskets", force: true do |t|
17
17
  t.integer "kori_id"
18
18
  t.string "kori_type"
19
- t.decimal "total_price", default: 0.0
20
- t.decimal "total_tax", default: 0.0
19
+ t.decimal "total_price", default: 0.0, precision: 10, scale: 4
20
+ t.decimal "total_tax", default: 0.0, precision: 10, scale: 4
21
21
  t.date "locked"
22
22
  t.datetime "created_at"
23
23
  t.datetime "updated_at"
@@ -7,9 +7,6 @@ module OfficeClerk
7
7
  config.autoload_paths += %W(#{config.root}/lib)
8
8
  # config.assets.paths +=
9
9
  config.exceptions_app = self.routes
10
- initializer "office_clerk.assets.precompile" do |app|
11
- app.config.assets.precompile += %w(office_clerk.css office_clerk.js)
12
- end
13
10
 
14
11
  config.i18n.enforce_available_locales = false
15
12
  config.i18n.available_locales = [:fi , :en , :config]
@@ -18,6 +15,9 @@ module OfficeClerk
18
15
  initializer "model_core.factories", :after => "factory_girl.set_factory_paths" do
19
16
  FactoryGirl.definition_file_paths << File.expand_path('../../../spec/factories', __FILE__) if defined?(FactoryGirl)
20
17
  end
18
+ config.assets.precompile += %w( office_clerk.css office_clerk.js )
19
+ config.assets.precompile += %w( office_clerk/*.jpg up-icon.png down-icon.png )
20
+ config.assets.precompile += ["missing_thumb.png", "missing.png", "missing_list.png", "missing_product.png"]
21
21
 
22
22
  # have to init the BestInPlace first to be able to include helpers
23
23
  config.railties_order = [BestInPlace::Railtie , OfficeClerk::Engine , :all ]
@@ -1,3 +1,3 @@
1
1
  module OfficeClerk
2
- VERSION = "0.9"
2
+ VERSION = "1.0.0"
3
3
  end
@@ -1,5 +1,5 @@
1
1
  class ApplicationController < ActionController::Base
2
2
  # Prevent CSRF attacks by raising an exception.
3
3
  # For APIs, you may want to use :null_session instead.
4
- protect_from_forgery with: :exception
4
+ protect_from_forgery with: :reset_session
5
5
  end
@@ -27,5 +27,8 @@ module TestApp
27
27
 
28
28
  # Do not swallow errors in after_commit/after_rollback callbacks.
29
29
  config.active_record.raise_in_transactional_callbacks = true
30
+
31
+ # apperently disk just keeps growing, this clears out :-)
32
+ config.cache_store = :memory_store
30
33
  end
31
34
  end
@@ -8,4 +8,6 @@ Rails.application.config.assets.version = '1.0'
8
8
 
9
9
  # Precompile additional assets.
10
10
  # application.js, application.css, and all non-JS/CSS in app/assets folder are already added.
11
- # Rails.application.config.assets.precompile += %w( search.js )
11
+ Rails.application.config.assets.precompile += %w( office_clerk.css office_clerk.js )
12
+ Rails.application.config.assets.precompile += %w( office_clerk/*.jpg up-icon.png down-icon.png )
13
+ Rails.application.config.assets.precompile += ["missing_thumb.png", "missing.png", "missing_list.png", "missing_product.png"]
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: office_clerk
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.9'
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Torsten Rüger
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-12-16 00:00:00.000000000 Z
11
+ date: 2016-01-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -358,6 +358,8 @@ files:
358
358
  - app/views/order_mailer/confirm.text.erb
359
359
  - app/views/order_mailer/paid.text.erb
360
360
  - app/views/order_mailer/shipped.text.erb
361
+ - app/views/orders/_payment.html.haml
362
+ - app/views/orders/_shipment.html.haml
361
363
  - app/views/orders/index.csv.erb
362
364
  - app/views/orders/index.html.haml
363
365
  - app/views/orders/shipment.haml
@@ -389,14 +391,7 @@ files:
389
391
  - config/environments/production.rb
390
392
  - config/environments/test.rb
391
393
  - config/i18n-tasks.yml
392
- - config/initializers/backtrace_silencers.rb
393
- - config/initializers/filter_parameter_logging.rb
394
- - config/initializers/inflections.rb
395
- - config/initializers/migrate.rb
396
- - config/initializers/mime_types.rb
397
394
  - config/initializers/paperclip.rb
398
- - config/initializers/session_store.rb
399
- - config/initializers/wrap_parameters.rb
400
395
  - config/locales/config.yml
401
396
  - config/locales/en.yml
402
397
  - config/locales/fi.yml