office_clerk 0.4 → 0.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (63) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +11 -36
  3. data/LICENSE +22 -0
  4. data/app/assets/javascripts/office_clerk.js +0 -7
  5. data/app/assets/stylesheets/{office_clerk.scss → office_clerk.css.scss} +0 -0
  6. data/app/controllers/orders_controller.rb +10 -1
  7. data/app/controllers/products_controller.rb +2 -32
  8. data/app/controllers/shop_controller.rb +1 -0
  9. data/app/helpers/orders_helper.rb +6 -5
  10. data/app/helpers/shop_helper.rb +8 -7
  11. data/app/mailers/order_mailer.rb +19 -0
  12. data/app/views/addresses/_form_fields.html.haml +4 -4
  13. data/app/views/baskets/edit.html.haml +1 -1
  14. data/app/views/categories/edit.html.haml +22 -18
  15. data/app/views/clerks/edit.html.haml +6 -9
  16. data/app/views/layouts/office_clerk.haml +1 -0
  17. data/app/views/layouts/sales_clerk.haml +10 -0
  18. data/app/views/order_mailer/cancel.html.haml +6 -0
  19. data/app/views/order_mailer/confirm.html.haml +7 -0
  20. data/app/views/order_mailer/paid.html.haml +6 -0
  21. data/app/views/order_mailer/shipped.html.haml +6 -0
  22. data/app/views/orders/edit.html.haml +1 -1
  23. data/app/views/orders/show.html.haml +48 -44
  24. data/app/views/products/_head.haml +4 -2
  25. data/app/views/products/edit.html.haml +35 -24
  26. data/app/views/products/show.html.haml +32 -41
  27. data/app/views/purchases/edit.html.haml +4 -4
  28. data/app/views/sessions/sign_up.haml +1 -1
  29. data/app/views/shop/_product_box.haml +13 -0
  30. data/app/views/suppliers/edit.html.haml +2 -2
  31. data/bin/rails +3 -15
  32. data/config/environments/production.rb +2 -77
  33. data/config/locales/config.yml +1 -1
  34. data/config/locales/en.yml +75 -45
  35. data/config/locales/fi.yml +60 -67
  36. data/config/routes.rb +1 -1
  37. data/db/migrate/20131226143612_categories.rb +2 -1
  38. data/db/migrate/20131226151332_products.rb +2 -1
  39. data/lib/office_clerk.rb +2 -7
  40. data/lib/office_clerk/version.rb +1 -1
  41. data/lib/templates/haml/scaffold/_form.html.haml +1 -1
  42. data/office_clerk.gemspec +6 -12
  43. data/spec/features/products/edit_spec.rb +0 -4
  44. data/spec/mailers/order_mailer_spec.rb +24 -0
  45. data/spec/models/baskets/items_spec.rb +3 -3
  46. data/spec/models/locale_spec.rb +4 -0
  47. data/test_app/db/migrate/20141114205527_categories.office.rb +2 -2
  48. data/test_app/db/migrate/20141114205532_products.office.rb +2 -2
  49. data/test_app/db/schema.rb +4 -2
  50. data/todo +0 -4
  51. metadata +68 -111
  52. data/config/initializers/migrate.rb +0 -6
  53. data/config/initializers/simple_form.rb +0 -149
  54. data/config/initializers/simple_form_bootstrap.rb +0 -48
  55. data/db/seeds.rb +0 -4
  56. data/test/fixtures/baskets.yml +0 -41993
  57. data/test/fixtures/categories.yml +0 -638
  58. data/test/fixtures/clerks.yml +0 -694
  59. data/test/fixtures/items.yml +0 -83651
  60. data/test/fixtures/orders.yml +0 -58918
  61. data/test/fixtures/products.yml +0 -110904
  62. data/test/fixtures/purchases.yml +0 -1755
  63. data/test/fixtures/suppliers.yml +0 -341
@@ -1,3 +1,3 @@
1
1
  module OfficeClerk
2
- VERSION = "0.4"
2
+ VERSION = "0.5"
3
3
  end
@@ -1,4 +1,4 @@
1
- <%= simple_form_for(@<%= singular_table_name %>) do |f| %>
1
+ <%= bootstrap_form_for(@<%= singular_table_name %>) do |f| %>
2
2
  <%= f.error_notification %>
3
3
  .form-inputs
4
4
  - attributes.each do |attribute|
@@ -7,13 +7,13 @@ Gem::Specification.new do |s|
7
7
  s.platform = Gem::Platform::RUBY
8
8
  s.name = 'office_clerk'
9
9
  s.version = OfficeClerk::VERSION
10
- s.summary = 'Backend of rubyclerks'
11
- s.description = s.summary
10
+ s.summary = 'Backend of rubyclerks, a simple way to manage a buisness'
11
+ s.description = "Rubyclerks is a small buisness management solution, including an online presence (shop), but also POS, inventory and more."
12
12
  s.required_ruby_version = '>= 1.9.3'
13
13
 
14
14
  s.authors = ['Torsten Rüger']
15
15
  s.email = ['torsten@villataika.fi']
16
- s.homepage = 'https://github.com/ruby_clerks/office_clerk'
16
+ s.homepage = 'https://github.com/rubyclerks/office_clerk'
17
17
  s.license = 'MIT'
18
18
 
19
19
  s.files = `git ls-files`.split("\n")
@@ -26,13 +26,12 @@ Gem::Specification.new do |s|
26
26
  s.add_runtime_dependency 'rails', '~> 4.0', '>= 4.0.1'
27
27
  s.add_runtime_dependency 'sass-rails' , '~> 4.0'
28
28
  s.add_runtime_dependency "haml" , '~> 4.0'
29
- s.add_runtime_dependency "opal-rails" , '~> 0.6'
30
- s.add_runtime_dependency 'opal-jquery' , '~> 0.2'
31
-
29
+ s.add_runtime_dependency "jquery-rails" , '~> 3.1'
30
+ s.add_runtime_dependency 'coffee-rails'
31
+ s.add_runtime_dependency 'gon'
32
32
  s.add_runtime_dependency 'jquery-ui-rails' , '~> 5.0'
33
33
  s.add_runtime_dependency "kramdown" , '~> 1.5'
34
34
 
35
- s.add_runtime_dependency 'simple_form' , '~> 3.0'
36
35
  s.add_runtime_dependency 'will_paginate-bootstrap' , '~> 1.0'
37
36
  s.add_runtime_dependency 'bootstrap-sass', '~> 3.1'
38
37
  s.add_runtime_dependency 'bootstrap_form' , '~> 2.2'
@@ -41,9 +40,4 @@ Gem::Specification.new do |s|
41
40
 
42
41
  s.add_runtime_dependency "bcrypt-ruby" , '~> 3.1'
43
42
 
44
- #these will stil have to go to accountant
45
- s.add_runtime_dependency "barby"
46
- s.add_runtime_dependency "chunky_png"
47
- s.add_runtime_dependency "prawn"
48
-
49
43
  end
@@ -25,8 +25,4 @@ feature "new product" do
25
25
  click_button( I18n.t(:product))
26
26
  ensure_path product_path(product)
27
27
  end
28
- it "renders product barcode" do
29
- product = create :product
30
- visit_path barcode_product_path(product)
31
- end
32
28
  end
@@ -0,0 +1,24 @@
1
+ require "spec_helper"
2
+
3
+ RSpec.describe OrderMailer, :type => :mailer do
4
+ describe 'confirm' do
5
+ let(:order) { create :order }
6
+ let(:mail) { OrderMailer.confirm(order) }
7
+
8
+ it 'renders the subject' do
9
+ expect(mail.subject.to_s).to include('Order')
10
+ end
11
+
12
+ it 'renders the receiver email' do
13
+ expect(mail.to).to eql([order.email])
14
+ end
15
+
16
+ it 'renders the sender email' do
17
+ expect(mail.from).to eql(["me@here.now"])
18
+ end
19
+
20
+ it "includes the total price" do
21
+ expect(mail.body).to include(order.total_price.to_s)
22
+ end
23
+ end
24
+ end
@@ -9,7 +9,7 @@ describe "Basket totals" do
9
9
  basket = create :basket_2_items
10
10
  expect(basket.items.length).to be 2
11
11
  taxes = basket.taxes
12
- expect(taxes.values.first.round(2)).to eq basket.total_tax.round(2)
12
+ expect(taxes.values.first.round(2)).to eq basket.total_tax.to_f.round(2)
13
13
  end
14
14
  it "updates total on add" do
15
15
  basket = create :basket_2_items
@@ -17,7 +17,7 @@ describe "Basket totals" do
17
17
  total = items.first.price * items.first.quantity + items.last.price * items.last.quantity
18
18
  expect(basket.total_price).to eq total
19
19
  # assume the same tax (as per factory)
20
- expect(basket.total_tax).to eq total * items.first.tax / 100
20
+ expect(basket.total_tax.to_f).to eq total * items.first.tax / 100
21
21
  end
22
22
  it "updates total on destroy" do
23
23
  basket = create :basket_2_items
@@ -26,7 +26,7 @@ describe "Basket totals" do
26
26
  basket.items.delete basket.items.last
27
27
  basket.save!
28
28
  expect(basket.total_price).to eq total
29
- expect(basket.total_tax).to eq tax.to_f
29
+ expect(basket.total_tax.to_f).to eq tax.to_f
30
30
  end
31
31
  it "destroys" do
32
32
  basket = create :basket_2_items
@@ -4,6 +4,7 @@ RSpec.describe 'locale:' do
4
4
 
5
5
  Dir.glob('config/locales/*.yml') do |locale_file|
6
6
  next if locale_file == "config/locales/config.yml"
7
+ next if locale_file.include? "extra"
7
8
  context locale_file do
8
9
  it { is_expected.to be_parseable }
9
10
  it { is_expected.to have_valid_pluralization_keys }
@@ -14,4 +15,7 @@ RSpec.describe 'locale:' do
14
15
  it { is_expected.to be_a_complete_translation_of 'config/locales/en.yml' }
15
16
  end
16
17
  end
18
+ context 'config/locales/en.yml' do
19
+ it { is_expected.to be_a_complete_translation_of 'config/locales/fi.yml' }
20
+ end
17
21
  end
@@ -1,11 +1,11 @@
1
- # This migration comes from office (originally 20131226143612)
2
1
  class Categories < ActiveRecord::Migration
3
2
  def change
4
3
  create_table :categories do |t|
5
4
  t.references :category
6
5
  t.boolean :online, :default => false
7
6
  t.string :name
8
- t.string :description
7
+ t.text :description , :default => ""
8
+ t.text :summary , :default => ""
9
9
  t.integer :position , :default => 1
10
10
  t.string :link
11
11
  t.attachment :main_picture
@@ -1,11 +1,11 @@
1
- # This migration comes from office (originally 20131226151332)
2
1
  class Products < ActiveRecord::Migration
3
2
  def change
4
3
  create_table :products do |t|
5
4
  t.float :price , :null => false
6
5
  t.string :name , :null => false
7
6
  t.string :link
8
- t.text :description
7
+ t.text :description , :default => ""
8
+ t.text :summary , :default => ""
9
9
  t.attachment :main_picture
10
10
  t.attachment :extra_picture
11
11
  t.boolean :online , :default => false
@@ -27,7 +27,8 @@ ActiveRecord::Schema.define(version: 20141114205532) do
27
27
  t.integer "category_id"
28
28
  t.boolean "online", default: false
29
29
  t.string "name"
30
- t.string "description"
30
+ t.text "description", default: ""
31
+ t.text "summary", default: ""
31
32
  t.integer "position", default: 1
32
33
  t.string "link"
33
34
  t.string "main_picture_file_name"
@@ -89,7 +90,8 @@ ActiveRecord::Schema.define(version: 20141114205532) do
89
90
  t.float "price", null: false
90
91
  t.string "name", null: false
91
92
  t.string "link"
92
- t.text "description"
93
+ t.text "description", default: ""
94
+ t.text "summary", default: ""
93
95
  t.string "main_picture_file_name"
94
96
  t.string "main_picture_content_type"
95
97
  t.integer "main_picture_file_size"
data/todo CHANGED
@@ -2,7 +2,3 @@ old order prices are without alv
2
2
  sorting links dont work
3
3
  product search by supplier + category
4
4
  remove properties after import
5
- product "full_name" in views
6
- order vat
7
- remove vat from basket
8
- delete / add (ero värit)
metadata CHANGED
@@ -1,271 +1,231 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: office_clerk
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.4'
4
+ version: '0.5'
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-11-19 00:00:00.000000000 Z
11
+ date: 2014-11-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ~>
18
18
  - !ruby/object:Gem::Version
19
19
  version: '4.0'
20
- - - ">="
20
+ - - '>='
21
21
  - !ruby/object:Gem::Version
22
22
  version: 4.0.1
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
29
  version: '4.0'
30
- - - ">="
30
+ - - '>='
31
31
  - !ruby/object:Gem::Version
32
32
  version: 4.0.1
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: sass-rails
35
35
  requirement: !ruby/object:Gem::Requirement
36
36
  requirements:
37
- - - "~>"
37
+ - - ~>
38
38
  - !ruby/object:Gem::Version
39
39
  version: '4.0'
40
40
  type: :runtime
41
41
  prerelease: false
42
42
  version_requirements: !ruby/object:Gem::Requirement
43
43
  requirements:
44
- - - "~>"
44
+ - - ~>
45
45
  - !ruby/object:Gem::Version
46
46
  version: '4.0'
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: haml
49
49
  requirement: !ruby/object:Gem::Requirement
50
50
  requirements:
51
- - - "~>"
51
+ - - ~>
52
52
  - !ruby/object:Gem::Version
53
53
  version: '4.0'
54
54
  type: :runtime
55
55
  prerelease: false
56
56
  version_requirements: !ruby/object:Gem::Requirement
57
57
  requirements:
58
- - - "~>"
58
+ - - ~>
59
59
  - !ruby/object:Gem::Version
60
60
  version: '4.0'
61
61
  - !ruby/object:Gem::Dependency
62
- name: opal-rails
62
+ name: jquery-rails
63
63
  requirement: !ruby/object:Gem::Requirement
64
64
  requirements:
65
- - - "~>"
65
+ - - ~>
66
66
  - !ruby/object:Gem::Version
67
- version: '0.6'
67
+ version: '3.1'
68
68
  type: :runtime
69
69
  prerelease: false
70
70
  version_requirements: !ruby/object:Gem::Requirement
71
71
  requirements:
72
- - - "~>"
72
+ - - ~>
73
73
  - !ruby/object:Gem::Version
74
- version: '0.6'
74
+ version: '3.1'
75
75
  - !ruby/object:Gem::Dependency
76
- name: opal-jquery
76
+ name: coffee-rails
77
77
  requirement: !ruby/object:Gem::Requirement
78
78
  requirements:
79
- - - "~>"
79
+ - - '>='
80
80
  - !ruby/object:Gem::Version
81
- version: '0.2'
81
+ version: '0'
82
82
  type: :runtime
83
83
  prerelease: false
84
84
  version_requirements: !ruby/object:Gem::Requirement
85
85
  requirements:
86
- - - "~>"
86
+ - - '>='
87
87
  - !ruby/object:Gem::Version
88
- version: '0.2'
88
+ version: '0'
89
89
  - !ruby/object:Gem::Dependency
90
- name: jquery-ui-rails
90
+ name: gon
91
91
  requirement: !ruby/object:Gem::Requirement
92
92
  requirements:
93
- - - "~>"
93
+ - - '>='
94
94
  - !ruby/object:Gem::Version
95
- version: '5.0'
95
+ version: '0'
96
96
  type: :runtime
97
97
  prerelease: false
98
98
  version_requirements: !ruby/object:Gem::Requirement
99
99
  requirements:
100
- - - "~>"
100
+ - - '>='
101
101
  - !ruby/object:Gem::Version
102
- version: '5.0'
102
+ version: '0'
103
103
  - !ruby/object:Gem::Dependency
104
- name: kramdown
104
+ name: jquery-ui-rails
105
105
  requirement: !ruby/object:Gem::Requirement
106
106
  requirements:
107
- - - "~>"
107
+ - - ~>
108
108
  - !ruby/object:Gem::Version
109
- version: '1.5'
109
+ version: '5.0'
110
110
  type: :runtime
111
111
  prerelease: false
112
112
  version_requirements: !ruby/object:Gem::Requirement
113
113
  requirements:
114
- - - "~>"
114
+ - - ~>
115
115
  - !ruby/object:Gem::Version
116
- version: '1.5'
116
+ version: '5.0'
117
117
  - !ruby/object:Gem::Dependency
118
- name: simple_form
118
+ name: kramdown
119
119
  requirement: !ruby/object:Gem::Requirement
120
120
  requirements:
121
- - - "~>"
121
+ - - ~>
122
122
  - !ruby/object:Gem::Version
123
- version: '3.0'
123
+ version: '1.5'
124
124
  type: :runtime
125
125
  prerelease: false
126
126
  version_requirements: !ruby/object:Gem::Requirement
127
127
  requirements:
128
- - - "~>"
128
+ - - ~>
129
129
  - !ruby/object:Gem::Version
130
- version: '3.0'
130
+ version: '1.5'
131
131
  - !ruby/object:Gem::Dependency
132
132
  name: will_paginate-bootstrap
133
133
  requirement: !ruby/object:Gem::Requirement
134
134
  requirements:
135
- - - "~>"
135
+ - - ~>
136
136
  - !ruby/object:Gem::Version
137
137
  version: '1.0'
138
138
  type: :runtime
139
139
  prerelease: false
140
140
  version_requirements: !ruby/object:Gem::Requirement
141
141
  requirements:
142
- - - "~>"
142
+ - - ~>
143
143
  - !ruby/object:Gem::Version
144
144
  version: '1.0'
145
145
  - !ruby/object:Gem::Dependency
146
146
  name: bootstrap-sass
147
147
  requirement: !ruby/object:Gem::Requirement
148
148
  requirements:
149
- - - "~>"
149
+ - - ~>
150
150
  - !ruby/object:Gem::Version
151
151
  version: '3.1'
152
152
  type: :runtime
153
153
  prerelease: false
154
154
  version_requirements: !ruby/object:Gem::Requirement
155
155
  requirements:
156
- - - "~>"
156
+ - - ~>
157
157
  - !ruby/object:Gem::Version
158
158
  version: '3.1'
159
159
  - !ruby/object:Gem::Dependency
160
160
  name: bootstrap_form
161
161
  requirement: !ruby/object:Gem::Requirement
162
162
  requirements:
163
- - - "~>"
163
+ - - ~>
164
164
  - !ruby/object:Gem::Version
165
165
  version: '2.2'
166
166
  type: :runtime
167
167
  prerelease: false
168
168
  version_requirements: !ruby/object:Gem::Requirement
169
169
  requirements:
170
- - - "~>"
170
+ - - ~>
171
171
  - !ruby/object:Gem::Version
172
172
  version: '2.2'
173
173
  - !ruby/object:Gem::Dependency
174
174
  name: paperclip
175
175
  requirement: !ruby/object:Gem::Requirement
176
176
  requirements:
177
- - - "~>"
177
+ - - ~>
178
178
  - !ruby/object:Gem::Version
179
179
  version: '4.1'
180
180
  type: :runtime
181
181
  prerelease: false
182
182
  version_requirements: !ruby/object:Gem::Requirement
183
183
  requirements:
184
- - - "~>"
184
+ - - ~>
185
185
  - !ruby/object:Gem::Version
186
186
  version: '4.1'
187
187
  - !ruby/object:Gem::Dependency
188
188
  name: rails-i18n
189
189
  requirement: !ruby/object:Gem::Requirement
190
190
  requirements:
191
- - - "~>"
191
+ - - ~>
192
192
  - !ruby/object:Gem::Version
193
193
  version: '4.0'
194
194
  type: :runtime
195
195
  prerelease: false
196
196
  version_requirements: !ruby/object:Gem::Requirement
197
197
  requirements:
198
- - - "~>"
198
+ - - ~>
199
199
  - !ruby/object:Gem::Version
200
200
  version: '4.0'
201
201
  - !ruby/object:Gem::Dependency
202
202
  name: bcrypt-ruby
203
203
  requirement: !ruby/object:Gem::Requirement
204
204
  requirements:
205
- - - "~>"
205
+ - - ~>
206
206
  - !ruby/object:Gem::Version
207
207
  version: '3.1'
208
208
  type: :runtime
209
209
  prerelease: false
210
210
  version_requirements: !ruby/object:Gem::Requirement
211
211
  requirements:
212
- - - "~>"
212
+ - - ~>
213
213
  - !ruby/object:Gem::Version
214
214
  version: '3.1'
215
- - !ruby/object:Gem::Dependency
216
- name: barby
217
- requirement: !ruby/object:Gem::Requirement
218
- requirements:
219
- - - ">="
220
- - !ruby/object:Gem::Version
221
- version: '0'
222
- type: :runtime
223
- prerelease: false
224
- version_requirements: !ruby/object:Gem::Requirement
225
- requirements:
226
- - - ">="
227
- - !ruby/object:Gem::Version
228
- version: '0'
229
- - !ruby/object:Gem::Dependency
230
- name: chunky_png
231
- requirement: !ruby/object:Gem::Requirement
232
- requirements:
233
- - - ">="
234
- - !ruby/object:Gem::Version
235
- version: '0'
236
- type: :runtime
237
- prerelease: false
238
- version_requirements: !ruby/object:Gem::Requirement
239
- requirements:
240
- - - ">="
241
- - !ruby/object:Gem::Version
242
- version: '0'
243
- - !ruby/object:Gem::Dependency
244
- name: prawn
245
- requirement: !ruby/object:Gem::Requirement
246
- requirements:
247
- - - ">="
248
- - !ruby/object:Gem::Version
249
- version: '0'
250
- type: :runtime
251
- prerelease: false
252
- version_requirements: !ruby/object:Gem::Requirement
253
- requirements:
254
- - - ">="
255
- - !ruby/object:Gem::Version
256
- version: '0'
257
- description: Backend of rubyclerks
215
+ description: Rubyclerks is a small buisness management solution, including an online
216
+ presence (shop), but also POS, inventory and more.
258
217
  email:
259
218
  - torsten@villataika.fi
260
219
  executables: []
261
220
  extensions: []
262
221
  extra_rdoc_files: []
263
222
  files:
264
- - ".gitignore"
265
- - ".rubocop.yml"
266
- - ".travis.yml"
223
+ - .gitignore
224
+ - .rubocop.yml
225
+ - .travis.yml
267
226
  - Gemfile
268
227
  - Gemfile.lock
228
+ - LICENSE
269
229
  - README.md
270
230
  - Rakefile
271
231
  - app/assets/images/alpha.png
@@ -290,7 +250,7 @@ files:
290
250
  - app/assets/images/ui-anim_basic_16x16.gif
291
251
  - app/assets/images/up-icon.png
292
252
  - app/assets/javascripts/office_clerk.js
293
- - app/assets/stylesheets/office_clerk.scss
253
+ - app/assets/stylesheets/office_clerk.css.scss
294
254
  - app/controllers/admin_controller.rb
295
255
  - app/controllers/baskets_controller.rb
296
256
  - app/controllers/categories_controller.rb
@@ -312,6 +272,7 @@ files:
312
272
  - app/helpers/purchases_helper.rb
313
273
  - app/helpers/shop_helper.rb
314
274
  - app/helpers/suppliers_helper.rb
275
+ - app/mailers/order_mailer.rb
315
276
  - app/models/basket.rb
316
277
  - app/models/category.rb
317
278
  - app/models/clerk.rb
@@ -339,8 +300,13 @@ files:
339
300
  - app/views/layouts/_header_extra.haml
340
301
  - app/views/layouts/_messages.html.haml
341
302
  - app/views/layouts/office_clerk.haml
303
+ - app/views/layouts/sales_clerk.haml
342
304
  - app/views/manage/_hash.haml
343
305
  - app/views/manage/all.haml
306
+ - app/views/order_mailer/cancel.html.haml
307
+ - app/views/order_mailer/confirm.html.haml
308
+ - app/views/order_mailer/paid.html.haml
309
+ - app/views/order_mailer/shipped.html.haml
344
310
  - app/views/orders/edit.html.haml
345
311
  - app/views/orders/index.html.haml
346
312
  - app/views/orders/ship.haml
@@ -357,6 +323,7 @@ files:
357
323
  - app/views/purchases/show.html.haml
358
324
  - app/views/sessions/sign_in.haml
359
325
  - app/views/sessions/sign_up.haml
326
+ - app/views/shop/_product_box.haml
360
327
  - app/views/suppliers/edit.html.haml
361
328
  - app/views/suppliers/index.html.haml
362
329
  - app/views/suppliers/show.html.haml
@@ -375,11 +342,8 @@ files:
375
342
  - config/initializers/backtrace_silencers.rb
376
343
  - config/initializers/filter_parameter_logging.rb
377
344
  - config/initializers/inflections.rb
378
- - config/initializers/migrate.rb
379
345
  - config/initializers/mime_types.rb
380
346
  - config/initializers/session_store.rb
381
- - config/initializers/simple_form.rb
382
- - config/initializers/simple_form_bootstrap.rb
383
347
  - config/initializers/wrap_parameters.rb
384
348
  - config/locales/config.yml
385
349
  - config/locales/en.yml
@@ -394,7 +358,6 @@ files:
394
358
  - db/migrate/20131226151151_purchases.rb
395
359
  - db/migrate/20131226151332_products.rb
396
360
  - db/schema.rb
397
- - db/seeds.rb
398
361
  - lib/office_clerk.rb
399
362
  - lib/office_clerk/engine.rb
400
363
  - lib/office_clerk/shipping_method.rb
@@ -440,6 +403,7 @@ files:
440
403
  - spec/features/purchases_spec.rb
441
404
  - spec/features/sessions_spec.rb
442
405
  - spec/features/suppliers_spec.rb
406
+ - spec/mailers/order_mailer_spec.rb
443
407
  - spec/models/baskets/inventory_spec.rb
444
408
  - spec/models/baskets/items_spec.rb
445
409
  - spec/models/baskets/products_spec.rb
@@ -462,14 +426,6 @@ files:
462
426
  - spec/spec_helper.rb
463
427
  - spec/support/factory_girl.rb
464
428
  - spec/support/request_helper.rb
465
- - test/fixtures/baskets.yml
466
- - test/fixtures/categories.yml
467
- - test/fixtures/clerks.yml
468
- - test/fixtures/items.yml
469
- - test/fixtures/orders.yml
470
- - test/fixtures/products.yml
471
- - test/fixtures/purchases.yml
472
- - test/fixtures/suppliers.yml
473
429
  - test_app/README.rdoc
474
430
  - test_app/app/assets/javascripts/application.js
475
431
  - test_app/app/assets/stylesheets/application.css
@@ -514,7 +470,7 @@ files:
514
470
  - test_app/spec/rails_helper.rb
515
471
  - test_app/spec/spec_helper.rb
516
472
  - todo
517
- homepage: https://github.com/ruby_clerks/office_clerk
473
+ homepage: https://github.com/rubyclerks/office_clerk
518
474
  licenses:
519
475
  - MIT
520
476
  metadata: {}
@@ -524,21 +480,21 @@ require_paths:
524
480
  - lib
525
481
  required_ruby_version: !ruby/object:Gem::Requirement
526
482
  requirements:
527
- - - ">="
483
+ - - '>='
528
484
  - !ruby/object:Gem::Version
529
485
  version: 1.9.3
530
486
  required_rubygems_version: !ruby/object:Gem::Requirement
531
487
  requirements:
532
- - - ">="
488
+ - - '>='
533
489
  - !ruby/object:Gem::Version
534
490
  version: '0'
535
491
  requirements:
536
492
  - none
537
493
  rubyforge_project:
538
- rubygems_version: 2.2.2
494
+ rubygems_version: 2.0.14
539
495
  signing_key:
540
496
  specification_version: 4
541
- summary: Backend of rubyclerks
497
+ summary: Backend of rubyclerks, a simple way to manage a buisness
542
498
  test_files:
543
499
  - spec/controllers/baskets_controller_spec.rb
544
500
  - spec/controllers/categories_controller_spec.rb
@@ -571,6 +527,7 @@ test_files:
571
527
  - spec/features/purchases_spec.rb
572
528
  - spec/features/sessions_spec.rb
573
529
  - spec/features/suppliers_spec.rb
530
+ - spec/mailers/order_mailer_spec.rb
574
531
  - spec/models/baskets/inventory_spec.rb
575
532
  - spec/models/baskets/items_spec.rb
576
533
  - spec/models/baskets/products_spec.rb