office_clerk 0.9 → 1.0.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 (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
@@ -1,7 +0,0 @@
1
- # Be sure to restart your server when you modify this file.
2
-
3
- # You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces.
4
- # Rails.backtrace_cleaner.add_silencer { |line| line =~ /my_noisy_library/ }
5
-
6
- # You can also remove all the silencers if you're trying to debug a problem that might stem from framework code.
7
- # Rails.backtrace_cleaner.remove_silencers!
@@ -1,4 +0,0 @@
1
- # Be sure to restart your server when you modify this file.
2
-
3
- # Configure sensitive parameters which will be filtered from the log file.
4
- Rails.application.config.filter_parameters += [:password]
@@ -1,16 +0,0 @@
1
- # Be sure to restart your server when you modify this file.
2
-
3
- # Add new inflection rules using the following format. Inflections
4
- # are locale specific, and you may define rules for as many different
5
- # locales as you wish. All of these examples are active by default:
6
- # ActiveSupport::Inflector.inflections(:en) do |inflect|
7
- # inflect.plural /^(ox)$/i, '\1en'
8
- # inflect.singular /^(ox)en/i, '\1'
9
- # inflect.irregular 'person', 'people'
10
- # inflect.uncountable %w( fish sheep )
11
- # end
12
-
13
- # These inflection rules are supported but not enabled by default:
14
- # ActiveSupport::Inflector.inflections(:en) do |inflect|
15
- # inflect.acronym 'RESTful'
16
- # end
@@ -1,18 +0,0 @@
1
- # coding: utf-8
2
- # poor mans migration.
3
- # Trying to keep the schema clean until version 1
4
-
5
- if ActiveRecord::Base.connection.table_exists? :orders
6
- #order paid_amount
7
- # order all times to datetime
8
- #product position
9
- unless Order.columns_hash["note"]
10
- ActiveRecord::Base.connection.add_column :orders, :note, :string , :default => ""
11
- end
12
- end
13
- if ActiveRecord::Base.connection.table_exists? :purchases
14
- #purchase should have email
15
- Purchase.where(:name => nil).each do |p|
16
- p.update_attribute(:name , "Sisäänosto #{I18n.l(p.created_at.to_date)}")
17
- end
18
- end
@@ -1,6 +0,0 @@
1
- #Mime::Type.register_alias "application/pdf", :pdf
2
- # Be sure to restart your server when you modify this file.
3
-
4
- # Add new mime types for use in respond_to blocks:
5
- # Mime::Type.register "text/richtext", :rtf
6
- # Mime::Type.register_alias "text/html", :iphone
@@ -1,3 +0,0 @@
1
- # Be sure to restart your server when you modify this file.
2
-
3
- #OfficeClerk::Application.config.session_store :cookie_store, key: '_office_clerk_session'
@@ -1,14 +0,0 @@
1
- # Be sure to restart your server when you modify this file.
2
-
3
- # This file contains settings for ActionController::ParamsWrapper which
4
- # is enabled by default.
5
-
6
- # Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array.
7
- ActiveSupport.on_load(:action_controller) do
8
- wrap_parameters format: [:json] if respond_to?(:wrap_parameters)
9
- end
10
-
11
- # To enable root element in JSON for ActiveRecord objects.
12
- # ActiveSupport.on_load(:active_record) do
13
- # self.include_root_in_json = true
14
- # end