cartify 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/MIT-LICENSE +20 -0
- data/README.md +69 -0
- data/Rakefile +32 -0
- data/app/assets/config/cartify_manifest.js +2 -0
- data/app/assets/javascripts/cartify/application.js +14 -0
- data/app/assets/javascripts/cartify/checkout.js +11 -0
- data/app/assets/javascripts/cartify/masks.js +10 -0
- data/app/assets/javascripts/cartify/orders.js +7 -0
- data/app/assets/stylesheets/cartify/application.css +15 -0
- data/app/concerns/cartify/authenticatable.rb +17 -0
- data/app/concerns/cartify/current_session.rb +52 -0
- data/app/concerns/cartify/showable.rb +41 -0
- data/app/concerns/cartify/updatable.rb +39 -0
- data/app/controllers/cartify/addresses_controller.rb +18 -0
- data/app/controllers/cartify/application_controller.rb +6 -0
- data/app/controllers/cartify/carts_controller.rb +20 -0
- data/app/controllers/cartify/checkout_controller.rb +29 -0
- data/app/controllers/cartify/order_items_controller.rb +35 -0
- data/app/controllers/cartify/orders_controller.rb +17 -0
- data/app/decorator/cartify/order_decorator.rb +39 -0
- data/app/forms/cartify/addresses_form.rb +71 -0
- data/app/helpers/cartify/application_helper.rb +18 -0
- data/app/helpers/cartify/carts_helper.rb +10 -0
- data/app/helpers/cartify/checkout_helper.rb +22 -0
- data/app/helpers/cartify/order_helper.rb +12 -0
- data/app/models/cartify/address.rb +23 -0
- data/app/models/cartify/application_record.rb +5 -0
- data/app/models/cartify/billing.rb +4 -0
- data/app/models/cartify/coupon.rb +10 -0
- data/app/models/cartify/credit_card.rb +25 -0
- data/app/models/cartify/delivery.rb +8 -0
- data/app/models/cartify/order.rb +64 -0
- data/app/models/cartify/order_item.rb +39 -0
- data/app/models/cartify/order_status.rb +18 -0
- data/app/models/cartify/shipping.rb +4 -0
- data/app/queries/cartify/orders_query.rb +17 -0
- data/app/views/cartify/addresses/index.haml +9 -0
- data/app/views/cartify/carts/_order_items.haml +17 -0
- data/app/views/cartify/carts/_order_summary.haml +15 -0
- data/app/views/cartify/carts/_quantity.haml +7 -0
- data/app/views/cartify/carts/_xs_order_items.haml +24 -0
- data/app/views/cartify/carts/show.html.haml +22 -0
- data/app/views/cartify/checkout/_order_summary.haml +4 -0
- data/app/views/cartify/checkout/_progress.haml +21 -0
- data/app/views/cartify/checkout/addresses.haml +35 -0
- data/app/views/cartify/checkout/complete.haml +19 -0
- data/app/views/cartify/checkout/confirm.haml +27 -0
- data/app/views/cartify/checkout/delivery.haml +11 -0
- data/app/views/cartify/checkout/login.haml +39 -0
- data/app/views/cartify/checkout/partials/_addresses_short.haml +12 -0
- data/app/views/cartify/checkout/partials/_delivery-lg.haml +22 -0
- data/app/views/cartify/checkout/partials/_delivery-xs.haml +22 -0
- data/app/views/cartify/checkout/partials/_list_of_items.haml +54 -0
- data/app/views/cartify/checkout/payment.haml +27 -0
- data/app/views/cartify/order_items/create.js.erb +5 -0
- data/app/views/cartify/order_items/destroy.js.erb +3 -0
- data/app/views/cartify/order_items/update.js.erb +3 -0
- data/app/views/cartify/orders/_filters.haml +16 -0
- data/app/views/cartify/orders/_orders-lg.haml +10 -0
- data/app/views/cartify/orders/_orders-xs.haml +23 -0
- data/app/views/cartify/orders/index.haml +21 -0
- data/app/views/cartify/orders/show.haml +28 -0
- data/app/views/cartify/shared/_address.haml +28 -0
- data/app/views/cartify/shared/_addresses_form.haml +31 -0
- data/app/views/cartify/shared/_checkout_summary_numbers.haml +15 -0
- data/app/views/cartify/shared/_order_summary_numbers.haml +15 -0
- data/config/locales/en.yml +135 -0
- data/config/routes.rb +9 -0
- data/db/migrate/20171005130857_create_cartify_coupons.rb +8 -0
- data/db/migrate/20171005131198_create_cartify_credit_cards.rb +12 -0
- data/db/migrate/20171005131199_create_cartify_deliveries.rb +9 -0
- data/db/migrate/20171005131200_create_cartify_order_statuses.rb +7 -0
- data/db/migrate/20171005131201_create_cartify_orders.rb +19 -0
- data/db/migrate/20171005131202_create_cartify_order_items.rb +14 -0
- data/db/migrate/20171006133037_create_cartify_addresses.rb +17 -0
- data/lib/cartify.rb +19 -0
- data/lib/cartify/engine.rb +30 -0
- data/lib/cartify/version.rb +5 -0
- data/lib/generators/initializer/USAGE +49 -0
- data/lib/generators/initializer/initializer_generator.rb +17 -0
- data/lib/generators/initializer/templates/initializer.rb +10 -0
- data/lib/tasks/cartify_tasks.rake +4 -0
- metadata +478 -0
@@ -0,0 +1,49 @@
|
|
1
|
+
Description:
|
2
|
+
It generate initialize file for Cartify gem
|
3
|
+
|
4
|
+
Usage:
|
5
|
+
rails generate initializer
|
6
|
+
|
7
|
+
This will create:
|
8
|
+
config/initializers/cartify.rb
|
9
|
+
and
|
10
|
+
//= require jquery
|
11
|
+
//= require cartify/application.js
|
12
|
+
to your app/assets/javaskript/application.js
|
13
|
+
|
14
|
+
Copy migrations to main app: (DON'T DO IT NOW!, initializer make it for you)
|
15
|
+
rake cartify:install:migrations
|
16
|
+
|
17
|
+
Define associations in your "User" model:
|
18
|
+
has_many :orders, class_name: 'Cartify::Order', foreign_key: :user_id
|
19
|
+
has_one :billing, class_name: 'Cartify::Billing', foreign_key: :user_id
|
20
|
+
has_one :shipping, class_name: 'Cartify::Shipping', foreign_key: :user_id
|
21
|
+
has_many :addresses, class_name: 'Cartify::Address', foreign_key: :user_id
|
22
|
+
|
23
|
+
Include helpers from engine: (DON'T DO IT NOW!, initializer make it for you)
|
24
|
+
# ../app/controllers/application_controller.rb
|
25
|
+
helper Cartify::Engine.helpers
|
26
|
+
|
27
|
+
add to cart:
|
28
|
+
Use helper:
|
29
|
+
add_to_cart(product, quantity, button_name)
|
30
|
+
# product - name of your selling product (required!)
|
31
|
+
# quantity - how many goods you with put into cart (default: 1)
|
32
|
+
# button_name - button name (default: Add to cart)
|
33
|
+
|
34
|
+
Or customize as you with:
|
35
|
+
helper link: cartify.order_items_path()
|
36
|
+
required params: order_item: {quantity: quantity, product_id: product.id}
|
37
|
+
use method: method: :post
|
38
|
+
asynchronously: remote: true
|
39
|
+
|
40
|
+
# Example:
|
41
|
+
link_to cartify.order_items_path(order_item: {quantity: quantity, product_id: product.id}), { method: :post, remote: true }
|
42
|
+
#Shop icon helper
|
43
|
+
shop_icon_quantity
|
44
|
+
|
45
|
+
# you need add jQuery and custom styles to app/assets/javaskript/application.js (DON'T DO IT NOW!, initializer make it for you)
|
46
|
+
//= require jquery
|
47
|
+
//= require cartify/application.js
|
48
|
+
if remote true not working try to add
|
49
|
+
//= require jquery_ujs
|
@@ -0,0 +1,17 @@
|
|
1
|
+
class InitializerGenerator < Rails::Generators::Base
|
2
|
+
source_root File.expand_path('../templates', __FILE__)
|
3
|
+
|
4
|
+
def copy_initializer_file
|
5
|
+
copy_file 'initializer.rb', 'config/initializers/cartify.rb'
|
6
|
+
end
|
7
|
+
|
8
|
+
def install_js
|
9
|
+
inject_into_file 'app/assets/javascripts/application.js',
|
10
|
+
before: "//= require_tree .\n" do
|
11
|
+
<<~'JS'
|
12
|
+
//= require jquery
|
13
|
+
//= require cartify/application.js
|
14
|
+
JS
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
@@ -0,0 +1,10 @@
|
|
1
|
+
Cartify.product_class = 'Book'
|
2
|
+
Cartify.user_class = 'User'
|
3
|
+
Cartify.empty_cart_path = 'catalog_path'
|
4
|
+
|
5
|
+
# user_class: is a owner model name, change it if you have other!
|
6
|
+
# product_class: is a product model name, change it if you have other!
|
7
|
+
# empty_cart_path: it's a route where you will be redirected if empty cart and user try go to checkout
|
8
|
+
|
9
|
+
# don't forget add:
|
10
|
+
# mount Cartify::Engine, at: '/' # into routes.rb file
|
metadata
ADDED
@@ -0,0 +1,478 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: cartify
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Eugene
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2017-10-11 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: rails
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '5.1'
|
20
|
+
- - ">="
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: 5.1.4
|
23
|
+
type: :runtime
|
24
|
+
prerelease: false
|
25
|
+
version_requirements: !ruby/object:Gem::Requirement
|
26
|
+
requirements:
|
27
|
+
- - "~>"
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '5.1'
|
30
|
+
- - ">="
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: 5.1.4
|
33
|
+
- !ruby/object:Gem::Dependency
|
34
|
+
name: virtus
|
35
|
+
requirement: !ruby/object:Gem::Requirement
|
36
|
+
requirements:
|
37
|
+
- - "~>"
|
38
|
+
- !ruby/object:Gem::Version
|
39
|
+
version: '1.0'
|
40
|
+
- - ">="
|
41
|
+
- !ruby/object:Gem::Version
|
42
|
+
version: 1.0.5
|
43
|
+
type: :runtime
|
44
|
+
prerelease: false
|
45
|
+
version_requirements: !ruby/object:Gem::Requirement
|
46
|
+
requirements:
|
47
|
+
- - "~>"
|
48
|
+
- !ruby/object:Gem::Version
|
49
|
+
version: '1.0'
|
50
|
+
- - ">="
|
51
|
+
- !ruby/object:Gem::Version
|
52
|
+
version: 1.0.5
|
53
|
+
- !ruby/object:Gem::Dependency
|
54
|
+
name: wicked
|
55
|
+
requirement: !ruby/object:Gem::Requirement
|
56
|
+
requirements:
|
57
|
+
- - "~>"
|
58
|
+
- !ruby/object:Gem::Version
|
59
|
+
version: '1.3'
|
60
|
+
- - ">="
|
61
|
+
- !ruby/object:Gem::Version
|
62
|
+
version: 1.3.2
|
63
|
+
type: :runtime
|
64
|
+
prerelease: false
|
65
|
+
version_requirements: !ruby/object:Gem::Requirement
|
66
|
+
requirements:
|
67
|
+
- - "~>"
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: '1.3'
|
70
|
+
- - ">="
|
71
|
+
- !ruby/object:Gem::Version
|
72
|
+
version: 1.3.2
|
73
|
+
- !ruby/object:Gem::Dependency
|
74
|
+
name: jquery-rails
|
75
|
+
requirement: !ruby/object:Gem::Requirement
|
76
|
+
requirements:
|
77
|
+
- - "~>"
|
78
|
+
- !ruby/object:Gem::Version
|
79
|
+
version: '4.3'
|
80
|
+
- - ">="
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: 4.3.1
|
83
|
+
type: :runtime
|
84
|
+
prerelease: false
|
85
|
+
version_requirements: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - "~>"
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '4.3'
|
90
|
+
- - ">="
|
91
|
+
- !ruby/object:Gem::Version
|
92
|
+
version: 4.3.1
|
93
|
+
- !ruby/object:Gem::Dependency
|
94
|
+
name: country_select
|
95
|
+
requirement: !ruby/object:Gem::Requirement
|
96
|
+
requirements:
|
97
|
+
- - "~>"
|
98
|
+
- !ruby/object:Gem::Version
|
99
|
+
version: '3.1'
|
100
|
+
type: :runtime
|
101
|
+
prerelease: false
|
102
|
+
version_requirements: !ruby/object:Gem::Requirement
|
103
|
+
requirements:
|
104
|
+
- - "~>"
|
105
|
+
- !ruby/object:Gem::Version
|
106
|
+
version: '3.1'
|
107
|
+
- !ruby/object:Gem::Dependency
|
108
|
+
name: draper
|
109
|
+
requirement: !ruby/object:Gem::Requirement
|
110
|
+
requirements:
|
111
|
+
- - "~>"
|
112
|
+
- !ruby/object:Gem::Version
|
113
|
+
version: '3.0'
|
114
|
+
type: :runtime
|
115
|
+
prerelease: false
|
116
|
+
version_requirements: !ruby/object:Gem::Requirement
|
117
|
+
requirements:
|
118
|
+
- - "~>"
|
119
|
+
- !ruby/object:Gem::Version
|
120
|
+
version: '3.0'
|
121
|
+
- !ruby/object:Gem::Dependency
|
122
|
+
name: jquery_mask_rails
|
123
|
+
requirement: !ruby/object:Gem::Requirement
|
124
|
+
requirements:
|
125
|
+
- - "~>"
|
126
|
+
- !ruby/object:Gem::Version
|
127
|
+
version: '0.1'
|
128
|
+
type: :runtime
|
129
|
+
prerelease: false
|
130
|
+
version_requirements: !ruby/object:Gem::Requirement
|
131
|
+
requirements:
|
132
|
+
- - "~>"
|
133
|
+
- !ruby/object:Gem::Version
|
134
|
+
version: '0.1'
|
135
|
+
- !ruby/object:Gem::Dependency
|
136
|
+
name: haml-rails
|
137
|
+
requirement: !ruby/object:Gem::Requirement
|
138
|
+
requirements:
|
139
|
+
- - "~>"
|
140
|
+
- !ruby/object:Gem::Version
|
141
|
+
version: '1.0'
|
142
|
+
type: :runtime
|
143
|
+
prerelease: false
|
144
|
+
version_requirements: !ruby/object:Gem::Requirement
|
145
|
+
requirements:
|
146
|
+
- - "~>"
|
147
|
+
- !ruby/object:Gem::Version
|
148
|
+
version: '1.0'
|
149
|
+
- !ruby/object:Gem::Dependency
|
150
|
+
name: devise
|
151
|
+
requirement: !ruby/object:Gem::Requirement
|
152
|
+
requirements:
|
153
|
+
- - "~>"
|
154
|
+
- !ruby/object:Gem::Version
|
155
|
+
version: '4.3'
|
156
|
+
type: :runtime
|
157
|
+
prerelease: false
|
158
|
+
version_requirements: !ruby/object:Gem::Requirement
|
159
|
+
requirements:
|
160
|
+
- - "~>"
|
161
|
+
- !ruby/object:Gem::Version
|
162
|
+
version: '4.3'
|
163
|
+
- !ruby/object:Gem::Dependency
|
164
|
+
name: sqlite3
|
165
|
+
requirement: !ruby/object:Gem::Requirement
|
166
|
+
requirements:
|
167
|
+
- - "~>"
|
168
|
+
- !ruby/object:Gem::Version
|
169
|
+
version: '0'
|
170
|
+
type: :development
|
171
|
+
prerelease: false
|
172
|
+
version_requirements: !ruby/object:Gem::Requirement
|
173
|
+
requirements:
|
174
|
+
- - "~>"
|
175
|
+
- !ruby/object:Gem::Version
|
176
|
+
version: '0'
|
177
|
+
- !ruby/object:Gem::Dependency
|
178
|
+
name: pry-byebug
|
179
|
+
requirement: !ruby/object:Gem::Requirement
|
180
|
+
requirements:
|
181
|
+
- - "~>"
|
182
|
+
- !ruby/object:Gem::Version
|
183
|
+
version: '3.5'
|
184
|
+
type: :development
|
185
|
+
prerelease: false
|
186
|
+
version_requirements: !ruby/object:Gem::Requirement
|
187
|
+
requirements:
|
188
|
+
- - "~>"
|
189
|
+
- !ruby/object:Gem::Version
|
190
|
+
version: '3.5'
|
191
|
+
- !ruby/object:Gem::Dependency
|
192
|
+
name: rubocop
|
193
|
+
requirement: !ruby/object:Gem::Requirement
|
194
|
+
requirements:
|
195
|
+
- - "~>"
|
196
|
+
- !ruby/object:Gem::Version
|
197
|
+
version: '0.50'
|
198
|
+
type: :development
|
199
|
+
prerelease: false
|
200
|
+
version_requirements: !ruby/object:Gem::Requirement
|
201
|
+
requirements:
|
202
|
+
- - "~>"
|
203
|
+
- !ruby/object:Gem::Version
|
204
|
+
version: '0.50'
|
205
|
+
- !ruby/object:Gem::Dependency
|
206
|
+
name: factory_girl_rails
|
207
|
+
requirement: !ruby/object:Gem::Requirement
|
208
|
+
requirements:
|
209
|
+
- - "~>"
|
210
|
+
- !ruby/object:Gem::Version
|
211
|
+
version: '4.8'
|
212
|
+
type: :development
|
213
|
+
prerelease: false
|
214
|
+
version_requirements: !ruby/object:Gem::Requirement
|
215
|
+
requirements:
|
216
|
+
- - "~>"
|
217
|
+
- !ruby/object:Gem::Version
|
218
|
+
version: '4.8'
|
219
|
+
- !ruby/object:Gem::Dependency
|
220
|
+
name: capybara
|
221
|
+
requirement: !ruby/object:Gem::Requirement
|
222
|
+
requirements:
|
223
|
+
- - "~>"
|
224
|
+
- !ruby/object:Gem::Version
|
225
|
+
version: '2.14'
|
226
|
+
- - ">="
|
227
|
+
- !ruby/object:Gem::Version
|
228
|
+
version: 2.14.4
|
229
|
+
type: :development
|
230
|
+
prerelease: false
|
231
|
+
version_requirements: !ruby/object:Gem::Requirement
|
232
|
+
requirements:
|
233
|
+
- - "~>"
|
234
|
+
- !ruby/object:Gem::Version
|
235
|
+
version: '2.14'
|
236
|
+
- - ">="
|
237
|
+
- !ruby/object:Gem::Version
|
238
|
+
version: 2.14.4
|
239
|
+
- !ruby/object:Gem::Dependency
|
240
|
+
name: capybara-webkit
|
241
|
+
requirement: !ruby/object:Gem::Requirement
|
242
|
+
requirements:
|
243
|
+
- - "~>"
|
244
|
+
- !ruby/object:Gem::Version
|
245
|
+
version: '1.1'
|
246
|
+
type: :development
|
247
|
+
prerelease: false
|
248
|
+
version_requirements: !ruby/object:Gem::Requirement
|
249
|
+
requirements:
|
250
|
+
- - "~>"
|
251
|
+
- !ruby/object:Gem::Version
|
252
|
+
version: '1.1'
|
253
|
+
- !ruby/object:Gem::Dependency
|
254
|
+
name: database_cleaner
|
255
|
+
requirement: !ruby/object:Gem::Requirement
|
256
|
+
requirements:
|
257
|
+
- - "~>"
|
258
|
+
- !ruby/object:Gem::Version
|
259
|
+
version: '1.6'
|
260
|
+
type: :development
|
261
|
+
prerelease: false
|
262
|
+
version_requirements: !ruby/object:Gem::Requirement
|
263
|
+
requirements:
|
264
|
+
- - "~>"
|
265
|
+
- !ruby/object:Gem::Version
|
266
|
+
version: '1.6'
|
267
|
+
- !ruby/object:Gem::Dependency
|
268
|
+
name: ffaker
|
269
|
+
requirement: !ruby/object:Gem::Requirement
|
270
|
+
requirements:
|
271
|
+
- - "~>"
|
272
|
+
- !ruby/object:Gem::Version
|
273
|
+
version: '2.6'
|
274
|
+
- - ">="
|
275
|
+
- !ruby/object:Gem::Version
|
276
|
+
version: 2.6.0
|
277
|
+
type: :development
|
278
|
+
prerelease: false
|
279
|
+
version_requirements: !ruby/object:Gem::Requirement
|
280
|
+
requirements:
|
281
|
+
- - "~>"
|
282
|
+
- !ruby/object:Gem::Version
|
283
|
+
version: '2.6'
|
284
|
+
- - ">="
|
285
|
+
- !ruby/object:Gem::Version
|
286
|
+
version: 2.6.0
|
287
|
+
- !ruby/object:Gem::Dependency
|
288
|
+
name: shoulda-callback-matchers
|
289
|
+
requirement: !ruby/object:Gem::Requirement
|
290
|
+
requirements:
|
291
|
+
- - "~>"
|
292
|
+
- !ruby/object:Gem::Version
|
293
|
+
version: '1.1'
|
294
|
+
- - ">="
|
295
|
+
- !ruby/object:Gem::Version
|
296
|
+
version: 1.1.4
|
297
|
+
type: :development
|
298
|
+
prerelease: false
|
299
|
+
version_requirements: !ruby/object:Gem::Requirement
|
300
|
+
requirements:
|
301
|
+
- - "~>"
|
302
|
+
- !ruby/object:Gem::Version
|
303
|
+
version: '1.1'
|
304
|
+
- - ">="
|
305
|
+
- !ruby/object:Gem::Version
|
306
|
+
version: 1.1.4
|
307
|
+
- !ruby/object:Gem::Dependency
|
308
|
+
name: shoulda-matchers
|
309
|
+
requirement: !ruby/object:Gem::Requirement
|
310
|
+
requirements:
|
311
|
+
- - "~>"
|
312
|
+
- !ruby/object:Gem::Version
|
313
|
+
version: '3.1'
|
314
|
+
type: :development
|
315
|
+
prerelease: false
|
316
|
+
version_requirements: !ruby/object:Gem::Requirement
|
317
|
+
requirements:
|
318
|
+
- - "~>"
|
319
|
+
- !ruby/object:Gem::Version
|
320
|
+
version: '3.1'
|
321
|
+
- !ruby/object:Gem::Dependency
|
322
|
+
name: transactional_capybara
|
323
|
+
requirement: !ruby/object:Gem::Requirement
|
324
|
+
requirements:
|
325
|
+
- - '='
|
326
|
+
- !ruby/object:Gem::Version
|
327
|
+
version: '0.2'
|
328
|
+
type: :development
|
329
|
+
prerelease: false
|
330
|
+
version_requirements: !ruby/object:Gem::Requirement
|
331
|
+
requirements:
|
332
|
+
- - '='
|
333
|
+
- !ruby/object:Gem::Version
|
334
|
+
version: '0.2'
|
335
|
+
- !ruby/object:Gem::Dependency
|
336
|
+
name: rspec-rails
|
337
|
+
requirement: !ruby/object:Gem::Requirement
|
338
|
+
requirements:
|
339
|
+
- - "~>"
|
340
|
+
- !ruby/object:Gem::Version
|
341
|
+
version: '3.6'
|
342
|
+
type: :development
|
343
|
+
prerelease: false
|
344
|
+
version_requirements: !ruby/object:Gem::Requirement
|
345
|
+
requirements:
|
346
|
+
- - "~>"
|
347
|
+
- !ruby/object:Gem::Version
|
348
|
+
version: '3.6'
|
349
|
+
- !ruby/object:Gem::Dependency
|
350
|
+
name: sass-rails
|
351
|
+
requirement: !ruby/object:Gem::Requirement
|
352
|
+
requirements:
|
353
|
+
- - "~>"
|
354
|
+
- !ruby/object:Gem::Version
|
355
|
+
version: '5.0'
|
356
|
+
type: :development
|
357
|
+
prerelease: false
|
358
|
+
version_requirements: !ruby/object:Gem::Requirement
|
359
|
+
requirements:
|
360
|
+
- - "~>"
|
361
|
+
- !ruby/object:Gem::Version
|
362
|
+
version: '5.0'
|
363
|
+
description: |-
|
364
|
+
Shopping cart with a multi-step checkout,
|
365
|
+
easily mounted into Rails application.
|
366
|
+
email:
|
367
|
+
- Re4port@ukr.net
|
368
|
+
executables: []
|
369
|
+
extensions: []
|
370
|
+
extra_rdoc_files: []
|
371
|
+
files:
|
372
|
+
- MIT-LICENSE
|
373
|
+
- README.md
|
374
|
+
- Rakefile
|
375
|
+
- app/assets/config/cartify_manifest.js
|
376
|
+
- app/assets/javascripts/cartify/application.js
|
377
|
+
- app/assets/javascripts/cartify/checkout.js
|
378
|
+
- app/assets/javascripts/cartify/masks.js
|
379
|
+
- app/assets/javascripts/cartify/orders.js
|
380
|
+
- app/assets/stylesheets/cartify/application.css
|
381
|
+
- app/concerns/cartify/authenticatable.rb
|
382
|
+
- app/concerns/cartify/current_session.rb
|
383
|
+
- app/concerns/cartify/showable.rb
|
384
|
+
- app/concerns/cartify/updatable.rb
|
385
|
+
- app/controllers/cartify/addresses_controller.rb
|
386
|
+
- app/controllers/cartify/application_controller.rb
|
387
|
+
- app/controllers/cartify/carts_controller.rb
|
388
|
+
- app/controllers/cartify/checkout_controller.rb
|
389
|
+
- app/controllers/cartify/order_items_controller.rb
|
390
|
+
- app/controllers/cartify/orders_controller.rb
|
391
|
+
- app/decorator/cartify/order_decorator.rb
|
392
|
+
- app/forms/cartify/addresses_form.rb
|
393
|
+
- app/helpers/cartify/application_helper.rb
|
394
|
+
- app/helpers/cartify/carts_helper.rb
|
395
|
+
- app/helpers/cartify/checkout_helper.rb
|
396
|
+
- app/helpers/cartify/order_helper.rb
|
397
|
+
- app/models/cartify/address.rb
|
398
|
+
- app/models/cartify/application_record.rb
|
399
|
+
- app/models/cartify/billing.rb
|
400
|
+
- app/models/cartify/coupon.rb
|
401
|
+
- app/models/cartify/credit_card.rb
|
402
|
+
- app/models/cartify/delivery.rb
|
403
|
+
- app/models/cartify/order.rb
|
404
|
+
- app/models/cartify/order_item.rb
|
405
|
+
- app/models/cartify/order_status.rb
|
406
|
+
- app/models/cartify/shipping.rb
|
407
|
+
- app/queries/cartify/orders_query.rb
|
408
|
+
- app/views/cartify/addresses/index.haml
|
409
|
+
- app/views/cartify/carts/_order_items.haml
|
410
|
+
- app/views/cartify/carts/_order_summary.haml
|
411
|
+
- app/views/cartify/carts/_quantity.haml
|
412
|
+
- app/views/cartify/carts/_xs_order_items.haml
|
413
|
+
- app/views/cartify/carts/show.html.haml
|
414
|
+
- app/views/cartify/checkout/_order_summary.haml
|
415
|
+
- app/views/cartify/checkout/_progress.haml
|
416
|
+
- app/views/cartify/checkout/addresses.haml
|
417
|
+
- app/views/cartify/checkout/complete.haml
|
418
|
+
- app/views/cartify/checkout/confirm.haml
|
419
|
+
- app/views/cartify/checkout/delivery.haml
|
420
|
+
- app/views/cartify/checkout/login.haml
|
421
|
+
- app/views/cartify/checkout/partials/_addresses_short.haml
|
422
|
+
- app/views/cartify/checkout/partials/_delivery-lg.haml
|
423
|
+
- app/views/cartify/checkout/partials/_delivery-xs.haml
|
424
|
+
- app/views/cartify/checkout/partials/_list_of_items.haml
|
425
|
+
- app/views/cartify/checkout/payment.haml
|
426
|
+
- app/views/cartify/order_items/create.js.erb
|
427
|
+
- app/views/cartify/order_items/destroy.js.erb
|
428
|
+
- app/views/cartify/order_items/update.js.erb
|
429
|
+
- app/views/cartify/orders/_filters.haml
|
430
|
+
- app/views/cartify/orders/_orders-lg.haml
|
431
|
+
- app/views/cartify/orders/_orders-xs.haml
|
432
|
+
- app/views/cartify/orders/index.haml
|
433
|
+
- app/views/cartify/orders/show.haml
|
434
|
+
- app/views/cartify/shared/_address.haml
|
435
|
+
- app/views/cartify/shared/_addresses_form.haml
|
436
|
+
- app/views/cartify/shared/_checkout_summary_numbers.haml
|
437
|
+
- app/views/cartify/shared/_order_summary_numbers.haml
|
438
|
+
- config/locales/en.yml
|
439
|
+
- config/routes.rb
|
440
|
+
- db/migrate/20171005130857_create_cartify_coupons.rb
|
441
|
+
- db/migrate/20171005131198_create_cartify_credit_cards.rb
|
442
|
+
- db/migrate/20171005131199_create_cartify_deliveries.rb
|
443
|
+
- db/migrate/20171005131200_create_cartify_order_statuses.rb
|
444
|
+
- db/migrate/20171005131201_create_cartify_orders.rb
|
445
|
+
- db/migrate/20171005131202_create_cartify_order_items.rb
|
446
|
+
- db/migrate/20171006133037_create_cartify_addresses.rb
|
447
|
+
- lib/cartify.rb
|
448
|
+
- lib/cartify/engine.rb
|
449
|
+
- lib/cartify/version.rb
|
450
|
+
- lib/generators/initializer/USAGE
|
451
|
+
- lib/generators/initializer/initializer_generator.rb
|
452
|
+
- lib/generators/initializer/templates/initializer.rb
|
453
|
+
- lib/tasks/cartify_tasks.rake
|
454
|
+
homepage: https://github.com/GalenkoNeon/cartify
|
455
|
+
licenses:
|
456
|
+
- MIT
|
457
|
+
metadata: {}
|
458
|
+
post_install_message:
|
459
|
+
rdoc_options: []
|
460
|
+
require_paths:
|
461
|
+
- lib
|
462
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
463
|
+
requirements:
|
464
|
+
- - ">="
|
465
|
+
- !ruby/object:Gem::Version
|
466
|
+
version: '0'
|
467
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
468
|
+
requirements:
|
469
|
+
- - ">="
|
470
|
+
- !ruby/object:Gem::Version
|
471
|
+
version: '0'
|
472
|
+
requirements: []
|
473
|
+
rubyforge_project:
|
474
|
+
rubygems_version: 2.6.12
|
475
|
+
signing_key:
|
476
|
+
specification_version: 4
|
477
|
+
summary: Simple shopping cart.
|
478
|
+
test_files: []
|