office_clerk 0.8 → 0.9

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 (120) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +6 -2
  3. data/Gemfile.lock +159 -100
  4. data/Guardfile +3 -0
  5. data/README.md +7 -2
  6. data/Rakefile +9 -0
  7. data/app/assets/images/missing_list.png +0 -0
  8. data/app/assets/images/missing_product.png +0 -0
  9. data/app/assets/images/missing_thumb.png +0 -0
  10. data/app/assets/javascripts/office_clerk.js +7 -5
  11. data/app/assets/stylesheets/office_clerk.css.scss +89 -14
  12. data/app/controllers/baskets_controller.rb +37 -26
  13. data/app/controllers/orders_controller.rb +44 -29
  14. data/app/controllers/products_controller.rb +6 -6
  15. data/app/controllers/purchases_controller.rb +18 -8
  16. data/app/helpers/admin_helper.rb +16 -21
  17. data/app/helpers/baskets_helper.rb +31 -0
  18. data/app/helpers/categories_helper.rb +3 -0
  19. data/app/helpers/office_helper.rb +34 -7
  20. data/app/helpers/orders_helper.rb +2 -3
  21. data/app/models/basket.rb +46 -20
  22. data/app/models/clerk.rb +6 -1
  23. data/app/models/item.rb +7 -0
  24. data/app/models/order.rb +18 -6
  25. data/app/models/product.rb +23 -8
  26. data/app/views/addresses/show.html.haml +2 -2
  27. data/app/views/baskets/_small.html.haml +2 -2
  28. data/app/views/baskets/edit.html.haml +19 -16
  29. data/app/views/baskets/index.html.haml +13 -5
  30. data/app/views/baskets/show.html.haml +3 -3
  31. data/app/views/categories/_treeview.html.haml +1 -2
  32. data/app/views/categories/edit.html.haml +4 -5
  33. data/app/views/categories/index.html.haml +7 -7
  34. data/app/views/categories/show.html.haml +3 -4
  35. data/app/views/clerks/edit.html.haml +4 -3
  36. data/app/views/clerks/index.html.haml +6 -6
  37. data/app/views/clerks/show.html.haml +3 -3
  38. data/app/views/layouts/_admin_menu.html.haml +8 -8
  39. data/app/views/layouts/_messages.html.haml +2 -2
  40. data/app/views/layouts/office_clerk.haml +10 -27
  41. data/app/views/order_mailer/confirm.text.erb +1 -2
  42. data/app/views/order_mailer/shipped.text.erb +2 -1
  43. data/app/views/orders/index.csv.erb +6 -6
  44. data/app/views/orders/index.html.haml +25 -20
  45. data/app/views/orders/shipment.haml +57 -0
  46. data/app/views/orders/show.html.haml +106 -39
  47. data/app/views/products/_head.haml +1 -2
  48. data/app/views/products/_line.html.haml +1 -1
  49. data/app/views/products/_preview_box.haml +14 -10
  50. data/app/views/products/_triple.html.haml +1 -1
  51. data/app/views/products/edit.html.haml +4 -4
  52. data/app/views/products/index.html.haml +24 -13
  53. data/app/views/products/show.html.haml +15 -12
  54. data/app/views/purchases/index.html.haml +11 -7
  55. data/app/views/purchases/show.html.haml +42 -25
  56. data/app/views/sessions/sign_up.haml +10 -10
  57. data/app/views/suppliers/edit.html.haml +2 -2
  58. data/app/views/suppliers/index.html.haml +6 -7
  59. data/app/views/suppliers/show.html.haml +2 -3
  60. data/config/i18n-tasks.yml +97 -0
  61. data/config/initializers/migrate.rb +11 -1
  62. data/config/initializers/paperclip.rb +17 -0
  63. data/config/locales/config.yml +0 -1
  64. data/config/locales/en.yml +99 -116
  65. data/config/locales/fi.yml +101 -117
  66. data/config/routes.rb +18 -15
  67. data/db/migrate/20131226143612_categories.rb +2 -2
  68. data/db/migrate/20131226151332_products.rb +3 -3
  69. data/lib/office_clerk/engine.rb +5 -8
  70. data/lib/office_clerk/shipping_method.rb +12 -1
  71. data/lib/office_clerk/version.rb +1 -1
  72. data/office_clerk.gemspec +5 -5
  73. data/spec/controllers/baskets_controller_spec.rb +2 -2
  74. data/spec/controllers/orders_controller_spec.rb +0 -29
  75. data/spec/controllers/products_controller_spec.rb +4 -3
  76. data/spec/controllers/purchases_controller_spec.rb +3 -4
  77. data/spec/factories/orders.rb +6 -1
  78. data/spec/factories/products.rb +3 -0
  79. data/spec/features/baskets/edit_spec.rb +6 -1
  80. data/spec/features/baskets/index_spec.rb +1 -0
  81. data/spec/features/baskets/search_spec.rb +1 -1
  82. data/spec/features/orders/filter_spec.rb +19 -0
  83. data/spec/features/orders/inventory_spec.rb +19 -0
  84. data/spec/features/orders/ordering_spec.rb +84 -0
  85. data/spec/features/paginate_spec.rb +11 -0
  86. data/spec/features/sessions_spec.rb +2 -1
  87. data/spec/{models/locale_spec.rb → i18n_spec.rb} +19 -1
  88. data/spec/mailers/order_mailer_spec.rb +2 -1
  89. data/spec/models/baskets/inventory_spec.rb +9 -2
  90. data/spec/models/baskets/items_spec.rb +6 -1
  91. data/spec/models/order_spec.rb +20 -1
  92. data/spec/routing/baskets_routing_spec.rb +5 -1
  93. data/spec/routing/orders_routing_spec.rb +0 -12
  94. data/spec/spec_helper.rb +16 -3
  95. data/test_app/bin/setup +29 -0
  96. data/test_app/config/application.rb +3 -0
  97. data/test_app/config/boot.rb +1 -2
  98. data/test_app/config/environment.rb +1 -1
  99. data/test_app/config/environments/development.rb +1 -1
  100. data/test_app/config/environments/production.rb +20 -21
  101. data/test_app/config/environments/test.rb +7 -4
  102. data/test_app/config/initializers/assets.rb +11 -0
  103. data/test_app/config/initializers/cookies_serializer.rb +3 -0
  104. data/test_app/config/initializers/mime_types.rb +0 -1
  105. data/test_app/config/initializers/session_store.rb +1 -1
  106. data/test_app/config/routes.rb +1 -2
  107. data/test_app/config/secrets.yml +22 -0
  108. data/test_app/db/migrate/20141114205526_suppliers.office.rb +1 -1
  109. data/test_app/db/migrate/20141114205527_categories.office.rb +3 -3
  110. data/test_app/db/migrate/20141114205528_items.office.rb +1 -1
  111. data/test_app/db/migrate/20141114205529_orders.office.rb +1 -1
  112. data/test_app/db/migrate/20141114205530_baskets.office.rb +1 -1
  113. data/test_app/db/migrate/20141114205531_purchases.office.rb +1 -1
  114. data/test_app/db/migrate/20141114205532_products.office.rb +4 -4
  115. data/test_app/db/schema.rb +26 -26
  116. metadata +35 -28
  117. data/app/views/orders/edit.html.haml +0 -25
  118. data/app/views/orders/ship.haml +0 -91
  119. data/app/views/purchases/edit.html.haml +0 -9
  120. data/spec/features/orders_spec.rb +0 -37
@@ -1,4 +1,4 @@
1
- TestApp::Application.configure do
1
+ Rails.application.configure do
2
2
  # Settings specified here will take precedence over those in config/application.rb.
3
3
 
4
4
  # The test environment is used exclusively to run your application's
@@ -12,9 +12,9 @@ TestApp::Application.configure do
12
12
  # preloads Rails for running tests, you may have to set it to true.
13
13
  config.eager_load = false
14
14
 
15
- # Configure static asset server for tests with Cache-Control for performance.
16
- config.serve_static_assets = true
17
- config.static_cache_control = "public, max-age=3600"
15
+ # Configure static file server for tests with Cache-Control for performance.
16
+ config.serve_static_files = true
17
+ config.static_cache_control = 'public, max-age=3600'
18
18
 
19
19
  # Show full error reports and disable caching.
20
20
  config.consider_all_requests_local = true
@@ -31,6 +31,9 @@ TestApp::Application.configure do
31
31
  # ActionMailer::Base.deliveries array.
32
32
  config.action_mailer.delivery_method = :test
33
33
 
34
+ # Randomize the order test cases are executed.
35
+ config.active_support.test_order = :random
36
+
34
37
  # Print deprecation notices to the stderr.
35
38
  config.active_support.deprecation = :stderr
36
39
 
@@ -0,0 +1,11 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Version of your assets, change this if you want to expire all your assets.
4
+ Rails.application.config.assets.version = '1.0'
5
+
6
+ # Add additional assets to the asset load path
7
+ # Rails.application.config.assets.paths << Emoji.images_path
8
+
9
+ # Precompile additional assets.
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 )
@@ -0,0 +1,3 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ Rails.application.config.action_dispatch.cookies_serializer = :marshal
@@ -2,4 +2,3 @@
2
2
 
3
3
  # Add new mime types for use in respond_to blocks:
4
4
  # Mime::Type.register "text/richtext", :rtf
5
- # Mime::Type.register_alias "text/html", :iphone
@@ -1,3 +1,3 @@
1
1
  # Be sure to restart your server when you modify this file.
2
2
 
3
- TestApp::Application.config.session_store :cookie_store, key: '_test_app_session'
3
+ Rails.application.config.session_store :cookie_store, key: '_test_app_session'
@@ -1,6 +1,5 @@
1
- TestApp::Application.routes.draw do
1
+ Rails.application.routes.draw do
2
2
 
3
- get '/group/:link' , :to => 'office#group', :as => :shop_group
4
3
  mount OfficeClerk::Engine => "/"
5
4
  root :to => 'sessions#sign_in' , :as => :root
6
5
 
@@ -0,0 +1,22 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Your secret key is used for verifying the integrity of signed cookies.
4
+ # If you change this key, all old signed cookies will become invalid!
5
+
6
+ # Make sure the secret is at least 30 characters and all random,
7
+ # no regular words or you'll be exposed to dictionary attacks.
8
+ # You can use `rake secret` to generate a secure secret key.
9
+
10
+ # Make sure the secrets in this file are kept private
11
+ # if you're sharing your code publicly.
12
+
13
+ development:
14
+ secret_key_base: cf8e25bbf17be7ac7443f71c414c569fe5d7f0a7e82374e32c4a900060d7793482956f338716291edbb506587aa2b9a8e66d2ef22715a2a63011d12e5f593617
15
+
16
+ test:
17
+ secret_key_base: 5eabcb9e778e345cc6670fce0ba34fc445b4742e4afecb9567cd68416d85de1d6e24beb1d68dc44ed12441e34bdef5e2ee27275e8809018f81a1fab64d291b41
18
+
19
+ # Do not keep production secrets in the repository,
20
+ # instead read values from the environment.
21
+ production:
22
+ secret_key_base: <%= ENV["SECRET_KEY_BASE"] %>
@@ -4,7 +4,7 @@ class Suppliers < ActiveRecord::Migration
4
4
  create_table :suppliers do |t|
5
5
  t.string :supplier_name
6
6
  t.string :address
7
- t.timestamps
7
+ t.timestamps null: false
8
8
  end
9
9
  end
10
10
  end
@@ -4,14 +4,14 @@ class Categories < ActiveRecord::Migration
4
4
  t.references :category
5
5
  t.boolean :online, :default => false
6
6
  t.string :name
7
- t.text :description , :default => ""
8
- t.text :summary , :default => ""
7
+ t.text :description
8
+ t.text :summary
9
9
  t.integer :position , :default => 1
10
10
  t.string :link
11
11
  t.attachment :main_picture
12
12
  t.attachment :extra_picture
13
13
 
14
- t.timestamps
14
+ t.timestamps null: false
15
15
  end
16
16
  add_index :categories, :link, :unique => true
17
17
 
@@ -9,7 +9,7 @@ class Items < ActiveRecord::Migration
9
9
  t.references :product
10
10
  t.references :basket
11
11
 
12
- t.timestamps
12
+ t.timestamps null: false
13
13
  end
14
14
  end
15
15
  end
@@ -17,7 +17,7 @@ class Orders < ActiveRecord::Migration
17
17
  t.float :shipment_tax , :default => 0
18
18
  t.string :address
19
19
 
20
- t.timestamps
20
+ t.timestamps null: false
21
21
  end
22
22
  end
23
23
  end
@@ -7,7 +7,7 @@ class Baskets < ActiveRecord::Migration
7
7
  t.decimal :total_price , :default => 0.0
8
8
  t.decimal :total_tax , :default => 0.0
9
9
  t.date :locked
10
- t.timestamps
10
+ t.timestamps null: false
11
11
  end
12
12
  end
13
13
  end
@@ -6,7 +6,7 @@ class Purchases < ActiveRecord::Migration
6
6
  t.date :ordered_on
7
7
  t.date :received_on
8
8
 
9
- t.timestamps
9
+ t.timestamps null: false
10
10
  end
11
11
  end
12
12
  end
@@ -3,9 +3,9 @@ class Products < ActiveRecord::Migration
3
3
  create_table :products do |t|
4
4
  t.float :price , :null => false
5
5
  t.string :name , :null => false
6
- t.string :link
7
- t.text :description , :default => ""
8
- t.text :summary , :default => ""
6
+ t.string :link
7
+ t.text :description
8
+ t.text :summary
9
9
  t.attachment :main_picture
10
10
  t.attachment :extra_picture
11
11
  t.boolean :online , :default => false
@@ -21,7 +21,7 @@ class Products < ActiveRecord::Migration
21
21
  t.references :product, index: true
22
22
  t.references :category, index: true
23
23
  t.references :supplier, index: true
24
- t.timestamps
24
+ t.timestamps :null => false
25
25
  end
26
26
  add_index :products, :link
27
27
  end
@@ -13,22 +13,22 @@
13
13
 
14
14
  ActiveRecord::Schema.define(version: 20141114205532) do
15
15
 
16
- create_table "baskets", force: true do |t|
16
+ create_table "baskets", force: :cascade do |t|
17
17
  t.integer "kori_id"
18
18
  t.string "kori_type"
19
19
  t.decimal "total_price", default: 0.0
20
20
  t.decimal "total_tax", default: 0.0
21
21
  t.date "locked"
22
- t.datetime "created_at"
23
- t.datetime "updated_at"
22
+ t.datetime "created_at", null: false
23
+ t.datetime "updated_at", null: false
24
24
  end
25
25
 
26
- create_table "categories", force: true do |t|
26
+ create_table "categories", force: :cascade do |t|
27
27
  t.integer "category_id"
28
28
  t.boolean "online", default: false
29
29
  t.string "name"
30
- t.text "description", default: ""
31
- t.text "summary", default: ""
30
+ t.text "description"
31
+ t.text "summary"
32
32
  t.integer "position", default: 1
33
33
  t.string "link"
34
34
  t.string "main_picture_file_name"
@@ -39,13 +39,13 @@ ActiveRecord::Schema.define(version: 20141114205532) do
39
39
  t.string "extra_picture_content_type"
40
40
  t.integer "extra_picture_file_size"
41
41
  t.datetime "extra_picture_updated_at"
42
- t.datetime "created_at"
43
- t.datetime "updated_at"
42
+ t.datetime "created_at", null: false
43
+ t.datetime "updated_at", null: false
44
44
  end
45
45
 
46
46
  add_index "categories", ["link"], name: "index_categories_on_link", unique: true
47
47
 
48
- create_table "clerks", force: true do |t|
48
+ create_table "clerks", force: :cascade do |t|
49
49
  t.string "email", default: "", null: false
50
50
  t.boolean "admin", default: false
51
51
  t.string "encrypted_password"
@@ -57,18 +57,18 @@ ActiveRecord::Schema.define(version: 20141114205532) do
57
57
 
58
58
  add_index "clerks", ["email"], name: "index_clerks_on_email", unique: true
59
59
 
60
- create_table "items", force: true do |t|
60
+ create_table "items", force: :cascade do |t|
61
61
  t.integer "quantity", default: 1
62
62
  t.float "price", default: 0.0
63
63
  t.float "tax", default: 0.0
64
64
  t.string "name"
65
65
  t.integer "product_id"
66
66
  t.integer "basket_id"
67
- t.datetime "created_at"
68
- t.datetime "updated_at"
67
+ t.datetime "created_at", null: false
68
+ t.datetime "updated_at", null: false
69
69
  end
70
70
 
71
- create_table "orders", force: true do |t|
71
+ create_table "orders", force: :cascade do |t|
72
72
  t.string "number"
73
73
  t.string "note", default: ""
74
74
  t.string "email"
@@ -83,16 +83,16 @@ ActiveRecord::Schema.define(version: 20141114205532) do
83
83
  t.float "shipment_price", default: 0.0
84
84
  t.float "shipment_tax", default: 0.0
85
85
  t.string "address"
86
- t.datetime "created_at"
87
- t.datetime "updated_at"
86
+ t.datetime "created_at", null: false
87
+ t.datetime "updated_at", null: false
88
88
  end
89
89
 
90
- create_table "products", force: true do |t|
90
+ create_table "products", force: :cascade do |t|
91
91
  t.float "price", null: false
92
92
  t.string "name", null: false
93
93
  t.string "link"
94
- t.text "description", default: ""
95
- t.text "summary", default: ""
94
+ t.text "description"
95
+ t.text "summary"
96
96
  t.string "main_picture_file_name"
97
97
  t.string "main_picture_content_type"
98
98
  t.integer "main_picture_file_size"
@@ -114,8 +114,8 @@ ActiveRecord::Schema.define(version: 20141114205532) do
114
114
  t.integer "product_id"
115
115
  t.integer "category_id"
116
116
  t.integer "supplier_id"
117
- t.datetime "created_at"
118
- t.datetime "updated_at"
117
+ t.datetime "created_at", null: false
118
+ t.datetime "updated_at", null: false
119
119
  end
120
120
 
121
121
  add_index "products", ["category_id"], name: "index_products_on_category_id"
@@ -123,19 +123,19 @@ ActiveRecord::Schema.define(version: 20141114205532) do
123
123
  add_index "products", ["product_id"], name: "index_products_on_product_id"
124
124
  add_index "products", ["supplier_id"], name: "index_products_on_supplier_id"
125
125
 
126
- create_table "purchases", force: true do |t|
126
+ create_table "purchases", force: :cascade do |t|
127
127
  t.string "name"
128
128
  t.date "ordered_on"
129
129
  t.date "received_on"
130
- t.datetime "created_at"
131
- t.datetime "updated_at"
130
+ t.datetime "created_at", null: false
131
+ t.datetime "updated_at", null: false
132
132
  end
133
133
 
134
- create_table "suppliers", force: true do |t|
134
+ create_table "suppliers", force: :cascade do |t|
135
135
  t.string "supplier_name"
136
136
  t.string "address"
137
- t.datetime "created_at"
138
- t.datetime "updated_at"
137
+ t.datetime "created_at", null: false
138
+ t.datetime "updated_at", null: false
139
139
  end
140
140
 
141
141
  end
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.8'
4
+ version: '0.9'
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: 2014-12-20 00:00:00.000000000 Z
11
+ date: 2015-12-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -16,40 +16,34 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '4.1'
19
+ version: '4.2'
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
- version: '4.2'
22
+ version: '5.0'
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
26
26
  requirements:
27
27
  - - "~>"
28
28
  - !ruby/object:Gem::Version
29
- version: '4.1'
29
+ version: '4.2'
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
- version: '4.2'
32
+ version: '5.0'
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: ransack
35
35
  requirement: !ruby/object:Gem::Requirement
36
36
  requirements:
37
37
  - - "~>"
38
38
  - !ruby/object:Gem::Version
39
- version: '1.5'
40
- - - ">="
41
- - !ruby/object:Gem::Version
42
- version: 1.5.1
39
+ version: '1.7'
43
40
  type: :runtime
44
41
  prerelease: false
45
42
  version_requirements: !ruby/object:Gem::Requirement
46
43
  requirements:
47
44
  - - "~>"
48
45
  - !ruby/object:Gem::Version
49
- version: '1.5'
50
- - - ">="
51
- - !ruby/object:Gem::Version
52
- version: 1.5.1
46
+ version: '1.7'
53
47
  - !ruby/object:Gem::Dependency
54
48
  name: valid_email
55
49
  requirement: !ruby/object:Gem::Requirement
@@ -76,14 +70,14 @@ dependencies:
76
70
  requirements:
77
71
  - - "~>"
78
72
  - !ruby/object:Gem::Version
79
- version: '4.0'
73
+ version: '5.0'
80
74
  type: :runtime
81
75
  prerelease: false
82
76
  version_requirements: !ruby/object:Gem::Requirement
83
77
  requirements:
84
78
  - - "~>"
85
79
  - !ruby/object:Gem::Version
86
- version: '4.0'
80
+ version: '5.0'
87
81
  - !ruby/object:Gem::Dependency
88
82
  name: haml
89
83
  requirement: !ruby/object:Gem::Requirement
@@ -174,14 +168,14 @@ dependencies:
174
168
  requirements:
175
169
  - - "~>"
176
170
  - !ruby/object:Gem::Version
177
- version: '0'
171
+ version: '3.0'
178
172
  type: :runtime
179
173
  prerelease: false
180
174
  version_requirements: !ruby/object:Gem::Requirement
181
175
  requirements:
182
176
  - - "~>"
183
177
  - !ruby/object:Gem::Version
184
- version: '0'
178
+ version: '3.0'
185
179
  - !ruby/object:Gem::Dependency
186
180
  name: will_paginate-bootstrap
187
181
  requirement: !ruby/object:Gem::Requirement
@@ -230,14 +224,14 @@ dependencies:
230
224
  requirements:
231
225
  - - "~>"
232
226
  - !ruby/object:Gem::Version
233
- version: '4.1'
227
+ version: '4.0'
234
228
  type: :runtime
235
229
  prerelease: false
236
230
  version_requirements: !ruby/object:Gem::Requirement
237
231
  requirements:
238
232
  - - "~>"
239
233
  - !ruby/object:Gem::Version
240
- version: '4.1'
234
+ version: '4.0'
241
235
  - !ruby/object:Gem::Dependency
242
236
  name: rails-i18n
243
237
  requirement: !ruby/object:Gem::Requirement
@@ -288,6 +282,9 @@ files:
288
282
  - app/assets/images/down-icon.png
289
283
  - app/assets/images/hue.png
290
284
  - app/assets/images/missing.png
285
+ - app/assets/images/missing_list.png
286
+ - app/assets/images/missing_product.png
287
+ - app/assets/images/missing_thumb.png
291
288
  - app/assets/images/office_clerk/baskets-2.jpg
292
289
  - app/assets/images/office_clerk/baskets.jpg
293
290
  - app/assets/images/office_clerk/categories-2.jpg
@@ -361,10 +358,9 @@ files:
361
358
  - app/views/order_mailer/confirm.text.erb
362
359
  - app/views/order_mailer/paid.text.erb
363
360
  - app/views/order_mailer/shipped.text.erb
364
- - app/views/orders/edit.html.haml
365
361
  - app/views/orders/index.csv.erb
366
362
  - app/views/orders/index.html.haml
367
- - app/views/orders/ship.haml
363
+ - app/views/orders/shipment.haml
368
364
  - app/views/orders/show.html.haml
369
365
  - app/views/products/_head.haml
370
366
  - app/views/products/_line.html.haml
@@ -374,7 +370,6 @@ files:
374
370
  - app/views/products/edit.html.haml
375
371
  - app/views/products/index.html.haml
376
372
  - app/views/products/show.html.haml
377
- - app/views/purchases/edit.html.haml
378
373
  - app/views/purchases/index.html.haml
379
374
  - app/views/purchases/show.html.haml
380
375
  - app/views/sessions/sign_in.haml
@@ -393,11 +388,13 @@ files:
393
388
  - config/environments/development.rb
394
389
  - config/environments/production.rb
395
390
  - config/environments/test.rb
391
+ - config/i18n-tasks.yml
396
392
  - config/initializers/backtrace_silencers.rb
397
393
  - config/initializers/filter_parameter_logging.rb
398
394
  - config/initializers/inflections.rb
399
395
  - config/initializers/migrate.rb
400
396
  - config/initializers/mime_types.rb
397
+ - config/initializers/paperclip.rb
401
398
  - config/initializers/session_store.rb
402
399
  - config/initializers/wrap_parameters.rb
403
400
  - config/locales/config.yml
@@ -453,13 +450,17 @@ files:
453
450
  - spec/features/categories_search_spec.rb
454
451
  - spec/features/categories_spec.rb
455
452
  - spec/features/clerks_spec.rb
456
- - spec/features/orders_spec.rb
453
+ - spec/features/orders/filter_spec.rb
454
+ - spec/features/orders/inventory_spec.rb
455
+ - spec/features/orders/ordering_spec.rb
456
+ - spec/features/paginate_spec.rb
457
457
  - spec/features/products/edit_spec.rb
458
458
  - spec/features/products/header_spec.rb
459
459
  - spec/features/products/index_spec.rb
460
460
  - spec/features/purchases_spec.rb
461
461
  - spec/features/sessions_spec.rb
462
462
  - spec/features/suppliers_spec.rb
463
+ - spec/i18n_spec.rb
463
464
  - spec/mailers/order_mailer_spec.rb
464
465
  - spec/models/baskets/inventory_spec.rb
465
466
  - spec/models/baskets/items_spec.rb
@@ -470,7 +471,6 @@ files:
470
471
  - spec/models/clerk/misc_spec.rb
471
472
  - spec/models/clerk/password_spec.rb
472
473
  - spec/models/item_spec.rb
473
- - spec/models/locale_spec.rb
474
474
  - spec/models/order_spec.rb
475
475
  - spec/models/product_spec.rb
476
476
  - spec/models/purchase_spec.rb
@@ -500,6 +500,7 @@ files:
500
500
  - test_app/bin/bundle
501
501
  - test_app/bin/rails
502
502
  - test_app/bin/rake
503
+ - test_app/bin/setup
503
504
  - test_app/config.ru
504
505
  - test_app/config/application.rb
505
506
  - test_app/config/boot.rb
@@ -508,7 +509,9 @@ files:
508
509
  - test_app/config/environments/development.rb
509
510
  - test_app/config/environments/production.rb
510
511
  - test_app/config/environments/test.rb
512
+ - test_app/config/initializers/assets.rb
511
513
  - test_app/config/initializers/backtrace_silencers.rb
514
+ - test_app/config/initializers/cookies_serializer.rb
512
515
  - test_app/config/initializers/filter_parameter_logging.rb
513
516
  - test_app/config/initializers/inflections.rb
514
517
  - test_app/config/initializers/mime_types.rb
@@ -518,6 +521,7 @@ files:
518
521
  - test_app/config/locales/config.yml
519
522
  - test_app/config/locales/en.yml
520
523
  - test_app/config/routes.rb
524
+ - test_app/config/secrets.yml
521
525
  - test_app/db/migrate/20141114205525_clerks.office.rb
522
526
  - test_app/db/migrate/20141114205526_suppliers.office.rb
523
527
  - test_app/db/migrate/20141114205527_categories.office.rb
@@ -555,7 +559,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
555
559
  requirements:
556
560
  - none
557
561
  rubyforge_project:
558
- rubygems_version: 2.2.2
562
+ rubygems_version: 2.4.5.1
559
563
  signing_key:
560
564
  specification_version: 4
561
565
  summary: Backend of rubyclerks, a simple way to manage a buisness
@@ -585,13 +589,17 @@ test_files:
585
589
  - spec/features/categories_search_spec.rb
586
590
  - spec/features/categories_spec.rb
587
591
  - spec/features/clerks_spec.rb
588
- - spec/features/orders_spec.rb
592
+ - spec/features/orders/filter_spec.rb
593
+ - spec/features/orders/inventory_spec.rb
594
+ - spec/features/orders/ordering_spec.rb
595
+ - spec/features/paginate_spec.rb
589
596
  - spec/features/products/edit_spec.rb
590
597
  - spec/features/products/header_spec.rb
591
598
  - spec/features/products/index_spec.rb
592
599
  - spec/features/purchases_spec.rb
593
600
  - spec/features/sessions_spec.rb
594
601
  - spec/features/suppliers_spec.rb
602
+ - spec/i18n_spec.rb
595
603
  - spec/mailers/order_mailer_spec.rb
596
604
  - spec/models/baskets/inventory_spec.rb
597
605
  - spec/models/baskets/items_spec.rb
@@ -602,7 +610,6 @@ test_files:
602
610
  - spec/models/clerk/misc_spec.rb
603
611
  - spec/models/clerk/password_spec.rb
604
612
  - spec/models/item_spec.rb
605
- - spec/models/locale_spec.rb
606
613
  - spec/models/order_spec.rb
607
614
  - spec/models/product_spec.rb
608
615
  - spec/models/purchase_spec.rb