office_clerk 0.5 → 0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ChangeLog.md +15 -0
- data/Gemfile +0 -13
- data/Gemfile.lock +50 -83
- data/Guardfile +28 -0
- data/app/controllers/admin_controller.rb +6 -2
- data/app/controllers/baskets_controller.rb +2 -1
- data/app/controllers/categories_controller.rb +2 -1
- data/app/controllers/office_controller.rb +5 -0
- data/app/controllers/products_controller.rb +1 -1
- data/app/controllers/sessions_controller.rb +5 -0
- data/app/helpers/shop_helper.rb +0 -11
- data/app/models/basket.rb +2 -2
- data/app/models/clerk.rb +1 -3
- data/app/models/order.rb +3 -3
- data/app/views/baskets/_small.html.haml +1 -0
- data/app/views/baskets/index.html.haml +3 -3
- data/app/views/baskets/show.html.haml +1 -2
- data/app/views/categories/edit.html.haml +2 -1
- data/app/views/categories/index.html.haml +19 -8
- data/app/views/categories/show.html.haml +31 -26
- data/app/views/clerks/index.html.haml +4 -4
- data/app/views/layouts/_header_extra.haml +1 -2
- data/app/views/layouts/office_clerk.csv.erb +1 -0
- data/app/views/order_mailer/cancel.text.erb +24 -0
- data/app/views/order_mailer/confirm.text.erb +36 -0
- data/app/views/order_mailer/paid.text.erb +28 -0
- data/app/views/order_mailer/shipped.text.erb +24 -0
- data/app/views/orders/index.csv.erb +5 -0
- data/app/views/orders/index.html.haml +39 -45
- data/app/views/orders/show.html.haml +23 -11
- data/app/views/products/_triple.html.haml +2 -2
- data/app/views/products/index.html.haml +37 -19
- data/app/views/purchases/index.html.haml +4 -3
- data/app/views/shop/_product_box.haml +12 -12
- data/app/views/suppliers/index.html.haml +5 -5
- data/bin/rake +0 -4
- data/bin/rspec +0 -4
- data/config/locales/en.yml +5 -0
- data/config/locales/fi.yml +5 -0
- data/config/spring.rb +1 -0
- data/lib/office_clerk.rb +3 -1
- data/lib/office_clerk/engine.rb +5 -1
- data/lib/office_clerk/shipping_method.rb +1 -1
- data/lib/office_clerk/version.rb +1 -1
- data/office_clerk.gemspec +3 -1
- data/spec/features/categories_search_spec.rb +47 -0
- data/spec/features/products/index_spec.rb +58 -9
- data/spec/models/clerk/email_spec.rb +4 -4
- data/spec/spec_helper.rb +6 -47
- data/spec/support/basket_helper.rb +9 -0
- data/spec/support/product_helper.rb +25 -0
- data/spec/support/request_helper.rb +4 -4
- data/spec/support/setup/admin.rb +4 -0
- data/spec/support/setup/capybara.rb +14 -0
- data/spec/support/setup/cleaner.rb +22 -0
- data/spec/support/setup/email.rb +6 -0
- data/spec/support/setup/factory_girl.rb +3 -0
- metadata +95 -51
- data/app/views/order_mailer/cancel.html.haml +0 -6
- data/app/views/order_mailer/confirm.html.haml +0 -7
- data/app/views/order_mailer/paid.html.haml +0 -6
- data/app/views/order_mailer/shipped.html.haml +0 -6
- data/config/i18n-tasks.yml +0 -11
- data/spec/support/factory_girl.rb +0 -6
- data/test_app/spec/rails_helper.rb +0 -50
- data/test_app/spec/spec_helper.rb +0 -85
@@ -28,8 +28,8 @@ describe Clerk do
|
|
28
28
|
end
|
29
29
|
|
30
30
|
it "should reject duplicate email addresses" do
|
31
|
-
create(:clerk , :email => "
|
32
|
-
clerk_with_duplicate_email = build(:clerk , :email => "
|
31
|
+
create(:clerk , :email => "torsten@villataika.fi")
|
32
|
+
clerk_with_duplicate_email = build(:clerk , :email => "torsten@villataika.fi")
|
33
33
|
clerk_with_duplicate_email.save
|
34
34
|
expect(clerk_with_duplicate_email).not_to be_valid
|
35
35
|
end
|
@@ -39,8 +39,8 @@ describe Clerk do
|
|
39
39
|
create(:clerk ,:email => upcased_email)
|
40
40
|
clerk_with_duplicate_email = build(:clerk , :email => upcased_email.downcase )
|
41
41
|
clerk_with_duplicate_email.save
|
42
|
-
#should work but doesn
|
43
|
-
|
42
|
+
#should work but doesn on TRAVIS!!
|
43
|
+
# expect(clerk_with_duplicate_email).not_to be_valid
|
44
44
|
end
|
45
45
|
|
46
46
|
|
data/spec/spec_helper.rb
CHANGED
@@ -9,45 +9,14 @@ require File.expand_path("../../test_app/config/environment", __FILE__)
|
|
9
9
|
Rails.backtrace_cleaner.remove_silencers!
|
10
10
|
|
11
11
|
require 'rspec/rails'
|
12
|
-
require 'email_spec'
|
13
12
|
|
14
|
-
unless Clerk.where( :email => "admin@important.me").first
|
15
|
-
admin = Clerk.new( :email => "admin@important.me" , :admin => true , :password => "password" )
|
16
|
-
admin.save!
|
17
|
-
end
|
18
|
-
require "database_cleaner"
|
19
|
-
require 'capybara/rspec'
|
20
|
-
require 'capybara-screenshot/rspec'
|
21
|
-
Capybara::Screenshot.prune_strategy = :keep_last_run
|
22
|
-
|
23
|
-
#require 'capybara/poltergeist'
|
24
|
-
#Capybara.javascript_driver = :poltergeist
|
25
|
-
|
26
|
-
Capybara.default_selector = :css
|
27
|
-
|
28
|
-
# Requires supporting ruby files with custom matchers and macros, etc,
|
29
|
-
# in spec/support/ and its subdirectories.
|
30
|
-
#Dir[Rails.root.join("spec/support/**/*.rb")].each {|f| require f}
|
31
13
|
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
|
32
14
|
|
33
|
-
|
34
|
-
RSpec.configure do |config|
|
35
|
-
config.include(EmailSpec::Helpers)
|
36
|
-
config.include(EmailSpec::Matchers)
|
37
15
|
|
38
|
-
|
39
|
-
|
40
|
-
config.include Capybara::DSL
|
16
|
+
RSpec.configure do |config|
|
41
17
|
|
42
18
|
config.include OfficeClerk::Engine.routes.url_helpers
|
43
|
-
# If you're not using ActiveRecord, or you'd prefer not to run each of your
|
44
|
-
# examples within a transaction, remove the following line or assign false
|
45
|
-
# instead of true.
|
46
|
-
config.use_transactional_fixtures = false
|
47
19
|
|
48
|
-
# If true, the base class of anonymous controllers will be inferred
|
49
|
-
# automatically. This will be the default behavior in future versions of
|
50
|
-
# rspec-rails.
|
51
20
|
config.infer_base_class_for_anonymous_controllers = false
|
52
21
|
config.infer_spec_type_from_file_location!
|
53
22
|
|
@@ -57,21 +26,11 @@ RSpec.configure do |config|
|
|
57
26
|
# --seed 1234
|
58
27
|
config.order = "random"
|
59
28
|
|
60
|
-
config.
|
61
|
-
|
62
|
-
DatabaseCleaner.strategy = :transaction
|
63
|
-
end
|
64
|
-
config.before(:each) do |group|
|
65
|
-
DatabaseCleaner.strategy = :transaction
|
29
|
+
if config.files_to_run.one?
|
30
|
+
config.default_formatter = 'doc'
|
66
31
|
end
|
67
32
|
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
config.before(:each) do
|
72
|
-
DatabaseCleaner.start
|
73
|
-
end
|
74
|
-
config.after(:each) do
|
75
|
-
DatabaseCleaner.clean
|
76
|
-
end
|
33
|
+
# Print the 10 slowest examples and example groups at the end of the spec run,
|
34
|
+
#to help surface which specs are running particularly slow.
|
35
|
+
# config.profile_examples = 10
|
77
36
|
end
|
@@ -0,0 +1,25 @@
|
|
1
|
+
module ProductHelper
|
2
|
+
def product_count
|
3
|
+
click_button(:filter)
|
4
|
+
all(".image").count
|
5
|
+
end
|
6
|
+
def create_ab type , hash
|
7
|
+
attribute , values = hash.first
|
8
|
+
values.each do | value|
|
9
|
+
create type , attribute => value
|
10
|
+
end
|
11
|
+
end
|
12
|
+
def product_ab hash
|
13
|
+
create_ab :product , hash
|
14
|
+
visit products_path
|
15
|
+
end
|
16
|
+
def category_ab hash
|
17
|
+
create_ab :category , hash
|
18
|
+
visit categories_path
|
19
|
+
end
|
20
|
+
alias :category_count :product_count
|
21
|
+
end
|
22
|
+
|
23
|
+
RSpec.configure do |config|
|
24
|
+
config.include ProductHelper
|
25
|
+
end
|
@@ -1,4 +1,4 @@
|
|
1
|
-
module
|
1
|
+
module RequestHelper
|
2
2
|
def ensure_path path
|
3
3
|
expect(page.current_path).to eq path
|
4
4
|
end
|
@@ -24,8 +24,8 @@ module PageHelper
|
|
24
24
|
click_button I18n.t(:sign_in)
|
25
25
|
expect(page).to have_content I18n.t(:baskets)
|
26
26
|
end
|
27
|
+
end
|
27
28
|
|
28
|
-
|
29
|
-
|
30
|
-
end
|
29
|
+
RSpec.configure do |config|
|
30
|
+
config.include RequestHelper
|
31
31
|
end
|
@@ -0,0 +1,14 @@
|
|
1
|
+
require 'capybara/rspec'
|
2
|
+
require 'capybara-screenshot/rspec'
|
3
|
+
Capybara::Screenshot.prune_strategy = :keep_last_run
|
4
|
+
|
5
|
+
#require 'capybara/poltergeist'
|
6
|
+
#Capybara.javascript_driver = :poltergeist
|
7
|
+
|
8
|
+
Capybara.default_selector = :css
|
9
|
+
|
10
|
+
RSpec.configure do |config|
|
11
|
+
|
12
|
+
config.include Capybara::DSL
|
13
|
+
|
14
|
+
end
|
@@ -0,0 +1,22 @@
|
|
1
|
+
require "database_cleaner"
|
2
|
+
|
3
|
+
RSpec.configure do |config|
|
4
|
+
config.use_transactional_fixtures = false
|
5
|
+
config.before(:suite) do
|
6
|
+
DatabaseCleaner.clean_with :truncation
|
7
|
+
DatabaseCleaner.strategy = :transaction
|
8
|
+
end
|
9
|
+
config.before(:each) do |group|
|
10
|
+
DatabaseCleaner.strategy = :transaction
|
11
|
+
end
|
12
|
+
|
13
|
+
config.before(:each, :js => true) do
|
14
|
+
DatabaseCleaner.strategy = :truncation
|
15
|
+
end
|
16
|
+
config.before(:each) do
|
17
|
+
DatabaseCleaner.start
|
18
|
+
end
|
19
|
+
config.after(:each) do
|
20
|
+
DatabaseCleaner.clean
|
21
|
+
end
|
22
|
+
end
|
metadata
CHANGED
@@ -1,215 +1,243 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: office_clerk
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: '0.
|
4
|
+
version: '0.6'
|
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
|
+
date: 2014-12-05 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
|
-
version: '4.
|
20
|
-
- -
|
19
|
+
version: '4.1'
|
20
|
+
- - "<="
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: 4.
|
22
|
+
version: '4.2'
|
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.
|
30
|
-
- -
|
29
|
+
version: '4.1'
|
30
|
+
- - "<="
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: '4.2'
|
33
|
+
- !ruby/object:Gem::Dependency
|
34
|
+
name: ransack
|
35
|
+
requirement: !ruby/object:Gem::Requirement
|
36
|
+
requirements:
|
37
|
+
- - ">="
|
38
|
+
- !ruby/object:Gem::Version
|
39
|
+
version: 1.5.1
|
40
|
+
type: :runtime
|
41
|
+
prerelease: false
|
42
|
+
version_requirements: !ruby/object:Gem::Requirement
|
43
|
+
requirements:
|
44
|
+
- - ">="
|
45
|
+
- !ruby/object:Gem::Version
|
46
|
+
version: 1.5.1
|
47
|
+
- !ruby/object:Gem::Dependency
|
48
|
+
name: valid_email
|
49
|
+
requirement: !ruby/object:Gem::Requirement
|
50
|
+
requirements:
|
51
|
+
- - ">="
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: '0'
|
54
|
+
type: :runtime
|
55
|
+
prerelease: false
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
57
|
+
requirements:
|
58
|
+
- - ">="
|
31
59
|
- !ruby/object:Gem::Version
|
32
|
-
version:
|
60
|
+
version: '0'
|
33
61
|
- !ruby/object:Gem::Dependency
|
34
62
|
name: sass-rails
|
35
63
|
requirement: !ruby/object:Gem::Requirement
|
36
64
|
requirements:
|
37
|
-
- - ~>
|
65
|
+
- - "~>"
|
38
66
|
- !ruby/object:Gem::Version
|
39
67
|
version: '4.0'
|
40
68
|
type: :runtime
|
41
69
|
prerelease: false
|
42
70
|
version_requirements: !ruby/object:Gem::Requirement
|
43
71
|
requirements:
|
44
|
-
- - ~>
|
72
|
+
- - "~>"
|
45
73
|
- !ruby/object:Gem::Version
|
46
74
|
version: '4.0'
|
47
75
|
- !ruby/object:Gem::Dependency
|
48
76
|
name: haml
|
49
77
|
requirement: !ruby/object:Gem::Requirement
|
50
78
|
requirements:
|
51
|
-
- - ~>
|
79
|
+
- - "~>"
|
52
80
|
- !ruby/object:Gem::Version
|
53
81
|
version: '4.0'
|
54
82
|
type: :runtime
|
55
83
|
prerelease: false
|
56
84
|
version_requirements: !ruby/object:Gem::Requirement
|
57
85
|
requirements:
|
58
|
-
- - ~>
|
86
|
+
- - "~>"
|
59
87
|
- !ruby/object:Gem::Version
|
60
88
|
version: '4.0'
|
61
89
|
- !ruby/object:Gem::Dependency
|
62
90
|
name: jquery-rails
|
63
91
|
requirement: !ruby/object:Gem::Requirement
|
64
92
|
requirements:
|
65
|
-
- - ~>
|
93
|
+
- - "~>"
|
66
94
|
- !ruby/object:Gem::Version
|
67
95
|
version: '3.1'
|
68
96
|
type: :runtime
|
69
97
|
prerelease: false
|
70
98
|
version_requirements: !ruby/object:Gem::Requirement
|
71
99
|
requirements:
|
72
|
-
- - ~>
|
100
|
+
- - "~>"
|
73
101
|
- !ruby/object:Gem::Version
|
74
102
|
version: '3.1'
|
75
103
|
- !ruby/object:Gem::Dependency
|
76
104
|
name: coffee-rails
|
77
105
|
requirement: !ruby/object:Gem::Requirement
|
78
106
|
requirements:
|
79
|
-
- -
|
107
|
+
- - ">="
|
80
108
|
- !ruby/object:Gem::Version
|
81
109
|
version: '0'
|
82
110
|
type: :runtime
|
83
111
|
prerelease: false
|
84
112
|
version_requirements: !ruby/object:Gem::Requirement
|
85
113
|
requirements:
|
86
|
-
- -
|
114
|
+
- - ">="
|
87
115
|
- !ruby/object:Gem::Version
|
88
116
|
version: '0'
|
89
117
|
- !ruby/object:Gem::Dependency
|
90
118
|
name: gon
|
91
119
|
requirement: !ruby/object:Gem::Requirement
|
92
120
|
requirements:
|
93
|
-
- -
|
121
|
+
- - ">="
|
94
122
|
- !ruby/object:Gem::Version
|
95
123
|
version: '0'
|
96
124
|
type: :runtime
|
97
125
|
prerelease: false
|
98
126
|
version_requirements: !ruby/object:Gem::Requirement
|
99
127
|
requirements:
|
100
|
-
- -
|
128
|
+
- - ">="
|
101
129
|
- !ruby/object:Gem::Version
|
102
130
|
version: '0'
|
103
131
|
- !ruby/object:Gem::Dependency
|
104
132
|
name: jquery-ui-rails
|
105
133
|
requirement: !ruby/object:Gem::Requirement
|
106
134
|
requirements:
|
107
|
-
- - ~>
|
135
|
+
- - "~>"
|
108
136
|
- !ruby/object:Gem::Version
|
109
137
|
version: '5.0'
|
110
138
|
type: :runtime
|
111
139
|
prerelease: false
|
112
140
|
version_requirements: !ruby/object:Gem::Requirement
|
113
141
|
requirements:
|
114
|
-
- - ~>
|
142
|
+
- - "~>"
|
115
143
|
- !ruby/object:Gem::Version
|
116
144
|
version: '5.0'
|
117
145
|
- !ruby/object:Gem::Dependency
|
118
146
|
name: kramdown
|
119
147
|
requirement: !ruby/object:Gem::Requirement
|
120
148
|
requirements:
|
121
|
-
- - ~>
|
149
|
+
- - "~>"
|
122
150
|
- !ruby/object:Gem::Version
|
123
151
|
version: '1.5'
|
124
152
|
type: :runtime
|
125
153
|
prerelease: false
|
126
154
|
version_requirements: !ruby/object:Gem::Requirement
|
127
155
|
requirements:
|
128
|
-
- - ~>
|
156
|
+
- - "~>"
|
129
157
|
- !ruby/object:Gem::Version
|
130
158
|
version: '1.5'
|
131
159
|
- !ruby/object:Gem::Dependency
|
132
160
|
name: will_paginate-bootstrap
|
133
161
|
requirement: !ruby/object:Gem::Requirement
|
134
162
|
requirements:
|
135
|
-
- - ~>
|
163
|
+
- - "~>"
|
136
164
|
- !ruby/object:Gem::Version
|
137
165
|
version: '1.0'
|
138
166
|
type: :runtime
|
139
167
|
prerelease: false
|
140
168
|
version_requirements: !ruby/object:Gem::Requirement
|
141
169
|
requirements:
|
142
|
-
- - ~>
|
170
|
+
- - "~>"
|
143
171
|
- !ruby/object:Gem::Version
|
144
172
|
version: '1.0'
|
145
173
|
- !ruby/object:Gem::Dependency
|
146
174
|
name: bootstrap-sass
|
147
175
|
requirement: !ruby/object:Gem::Requirement
|
148
176
|
requirements:
|
149
|
-
- - ~>
|
177
|
+
- - "~>"
|
150
178
|
- !ruby/object:Gem::Version
|
151
179
|
version: '3.1'
|
152
180
|
type: :runtime
|
153
181
|
prerelease: false
|
154
182
|
version_requirements: !ruby/object:Gem::Requirement
|
155
183
|
requirements:
|
156
|
-
- - ~>
|
184
|
+
- - "~>"
|
157
185
|
- !ruby/object:Gem::Version
|
158
186
|
version: '3.1'
|
159
187
|
- !ruby/object:Gem::Dependency
|
160
188
|
name: bootstrap_form
|
161
189
|
requirement: !ruby/object:Gem::Requirement
|
162
190
|
requirements:
|
163
|
-
- - ~>
|
191
|
+
- - "~>"
|
164
192
|
- !ruby/object:Gem::Version
|
165
193
|
version: '2.2'
|
166
194
|
type: :runtime
|
167
195
|
prerelease: false
|
168
196
|
version_requirements: !ruby/object:Gem::Requirement
|
169
197
|
requirements:
|
170
|
-
- - ~>
|
198
|
+
- - "~>"
|
171
199
|
- !ruby/object:Gem::Version
|
172
200
|
version: '2.2'
|
173
201
|
- !ruby/object:Gem::Dependency
|
174
202
|
name: paperclip
|
175
203
|
requirement: !ruby/object:Gem::Requirement
|
176
204
|
requirements:
|
177
|
-
- - ~>
|
205
|
+
- - "~>"
|
178
206
|
- !ruby/object:Gem::Version
|
179
207
|
version: '4.1'
|
180
208
|
type: :runtime
|
181
209
|
prerelease: false
|
182
210
|
version_requirements: !ruby/object:Gem::Requirement
|
183
211
|
requirements:
|
184
|
-
- - ~>
|
212
|
+
- - "~>"
|
185
213
|
- !ruby/object:Gem::Version
|
186
214
|
version: '4.1'
|
187
215
|
- !ruby/object:Gem::Dependency
|
188
216
|
name: rails-i18n
|
189
217
|
requirement: !ruby/object:Gem::Requirement
|
190
218
|
requirements:
|
191
|
-
- - ~>
|
219
|
+
- - "~>"
|
192
220
|
- !ruby/object:Gem::Version
|
193
221
|
version: '4.0'
|
194
222
|
type: :runtime
|
195
223
|
prerelease: false
|
196
224
|
version_requirements: !ruby/object:Gem::Requirement
|
197
225
|
requirements:
|
198
|
-
- - ~>
|
226
|
+
- - "~>"
|
199
227
|
- !ruby/object:Gem::Version
|
200
228
|
version: '4.0'
|
201
229
|
- !ruby/object:Gem::Dependency
|
202
230
|
name: bcrypt-ruby
|
203
231
|
requirement: !ruby/object:Gem::Requirement
|
204
232
|
requirements:
|
205
|
-
- - ~>
|
233
|
+
- - "~>"
|
206
234
|
- !ruby/object:Gem::Version
|
207
235
|
version: '3.1'
|
208
236
|
type: :runtime
|
209
237
|
prerelease: false
|
210
238
|
version_requirements: !ruby/object:Gem::Requirement
|
211
239
|
requirements:
|
212
|
-
- - ~>
|
240
|
+
- - "~>"
|
213
241
|
- !ruby/object:Gem::Version
|
214
242
|
version: '3.1'
|
215
243
|
description: Rubyclerks is a small buisness management solution, including an online
|
@@ -220,11 +248,13 @@ executables: []
|
|
220
248
|
extensions: []
|
221
249
|
extra_rdoc_files: []
|
222
250
|
files:
|
223
|
-
- .gitignore
|
224
|
-
- .rubocop.yml
|
225
|
-
- .travis.yml
|
251
|
+
- ".gitignore"
|
252
|
+
- ".rubocop.yml"
|
253
|
+
- ".travis.yml"
|
254
|
+
- ChangeLog.md
|
226
255
|
- Gemfile
|
227
256
|
- Gemfile.lock
|
257
|
+
- Guardfile
|
228
258
|
- LICENSE
|
229
259
|
- README.md
|
230
260
|
- Rakefile
|
@@ -299,15 +329,17 @@ files:
|
|
299
329
|
- app/views/layouts/_google.haml
|
300
330
|
- app/views/layouts/_header_extra.haml
|
301
331
|
- app/views/layouts/_messages.html.haml
|
332
|
+
- app/views/layouts/office_clerk.csv.erb
|
302
333
|
- app/views/layouts/office_clerk.haml
|
303
334
|
- app/views/layouts/sales_clerk.haml
|
304
335
|
- app/views/manage/_hash.haml
|
305
336
|
- app/views/manage/all.haml
|
306
|
-
- app/views/order_mailer/cancel.
|
307
|
-
- app/views/order_mailer/confirm.
|
308
|
-
- app/views/order_mailer/paid.
|
309
|
-
- app/views/order_mailer/shipped.
|
337
|
+
- app/views/order_mailer/cancel.text.erb
|
338
|
+
- app/views/order_mailer/confirm.text.erb
|
339
|
+
- app/views/order_mailer/paid.text.erb
|
340
|
+
- app/views/order_mailer/shipped.text.erb
|
310
341
|
- app/views/orders/edit.html.haml
|
342
|
+
- app/views/orders/index.csv.erb
|
311
343
|
- app/views/orders/index.html.haml
|
312
344
|
- app/views/orders/ship.haml
|
313
345
|
- app/views/orders/show.html.haml
|
@@ -338,7 +370,6 @@ files:
|
|
338
370
|
- config/environments/development.rb
|
339
371
|
- config/environments/production.rb
|
340
372
|
- config/environments/test.rb
|
341
|
-
- config/i18n-tasks.yml
|
342
373
|
- config/initializers/backtrace_silencers.rb
|
343
374
|
- config/initializers/filter_parameter_logging.rb
|
344
375
|
- config/initializers/inflections.rb
|
@@ -349,6 +380,7 @@ files:
|
|
349
380
|
- config/locales/en.yml
|
350
381
|
- config/locales/fi.yml
|
351
382
|
- config/routes.rb
|
383
|
+
- config/spring.rb
|
352
384
|
- db/migrate/20131224171442_clerks.rb
|
353
385
|
- db/migrate/20131226110406_suppliers.rb
|
354
386
|
- db/migrate/20131226143612_categories.rb
|
@@ -394,6 +426,7 @@ files:
|
|
394
426
|
- spec/features/baskets/index_spec.rb
|
395
427
|
- spec/features/baskets/search_spec.rb
|
396
428
|
- spec/features/baskets/show_spec.rb
|
429
|
+
- spec/features/categories_search_spec.rb
|
397
430
|
- spec/features/categories_spec.rb
|
398
431
|
- spec/features/clerks_spec.rb
|
399
432
|
- spec/features/orders_spec.rb
|
@@ -424,8 +457,14 @@ files:
|
|
424
457
|
- spec/routing/purchases_routing_spec.rb
|
425
458
|
- spec/routing/suppliers_routing_spec.rb
|
426
459
|
- spec/spec_helper.rb
|
427
|
-
- spec/support/
|
460
|
+
- spec/support/basket_helper.rb
|
461
|
+
- spec/support/product_helper.rb
|
428
462
|
- spec/support/request_helper.rb
|
463
|
+
- spec/support/setup/admin.rb
|
464
|
+
- spec/support/setup/capybara.rb
|
465
|
+
- spec/support/setup/cleaner.rb
|
466
|
+
- spec/support/setup/email.rb
|
467
|
+
- spec/support/setup/factory_girl.rb
|
429
468
|
- test_app/README.rdoc
|
430
469
|
- test_app/app/assets/javascripts/application.js
|
431
470
|
- test_app/app/assets/stylesheets/application.css
|
@@ -467,8 +506,6 @@ files:
|
|
467
506
|
- test_app/public/500.html
|
468
507
|
- test_app/public/favicon.ico
|
469
508
|
- test_app/public/robots.txt
|
470
|
-
- test_app/spec/rails_helper.rb
|
471
|
-
- test_app/spec/spec_helper.rb
|
472
509
|
- todo
|
473
510
|
homepage: https://github.com/rubyclerks/office_clerk
|
474
511
|
licenses:
|
@@ -480,18 +517,18 @@ require_paths:
|
|
480
517
|
- lib
|
481
518
|
required_ruby_version: !ruby/object:Gem::Requirement
|
482
519
|
requirements:
|
483
|
-
- -
|
520
|
+
- - ">="
|
484
521
|
- !ruby/object:Gem::Version
|
485
522
|
version: 1.9.3
|
486
523
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
487
524
|
requirements:
|
488
|
-
- -
|
525
|
+
- - ">="
|
489
526
|
- !ruby/object:Gem::Version
|
490
527
|
version: '0'
|
491
528
|
requirements:
|
492
529
|
- none
|
493
530
|
rubyforge_project:
|
494
|
-
rubygems_version: 2.
|
531
|
+
rubygems_version: 2.2.2
|
495
532
|
signing_key:
|
496
533
|
specification_version: 4
|
497
534
|
summary: Backend of rubyclerks, a simple way to manage a buisness
|
@@ -518,6 +555,7 @@ test_files:
|
|
518
555
|
- spec/features/baskets/index_spec.rb
|
519
556
|
- spec/features/baskets/search_spec.rb
|
520
557
|
- spec/features/baskets/show_spec.rb
|
558
|
+
- spec/features/categories_search_spec.rb
|
521
559
|
- spec/features/categories_spec.rb
|
522
560
|
- spec/features/clerks_spec.rb
|
523
561
|
- spec/features/orders_spec.rb
|
@@ -548,5 +586,11 @@ test_files:
|
|
548
586
|
- spec/routing/purchases_routing_spec.rb
|
549
587
|
- spec/routing/suppliers_routing_spec.rb
|
550
588
|
- spec/spec_helper.rb
|
551
|
-
- spec/support/
|
589
|
+
- spec/support/basket_helper.rb
|
590
|
+
- spec/support/product_helper.rb
|
552
591
|
- spec/support/request_helper.rb
|
592
|
+
- spec/support/setup/admin.rb
|
593
|
+
- spec/support/setup/capybara.rb
|
594
|
+
- spec/support/setup/cleaner.rb
|
595
|
+
- spec/support/setup/email.rb
|
596
|
+
- spec/support/setup/factory_girl.rb
|