vyapari 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 +49 -0
- data/Rakefile +37 -0
- data/app/assets/config/vyapari_manifest.js +2 -0
- data/app/assets/javascripts/vyapari/application.js +13 -0
- data/app/assets/stylesheets/vyapari/application.css +15 -0
- data/app/controllers/vyapari/admin/base_controller.rb +17 -0
- data/app/controllers/vyapari/admin/countries_controller.rb +64 -0
- data/app/controllers/vyapari/admin/dashboard_controller.rb +26 -0
- data/app/controllers/vyapari/admin/exchange_rates_controller.rb +70 -0
- data/app/controllers/vyapari/admin/regions_controller.rb +67 -0
- data/app/controllers/vyapari/admin/resource_controller.rb +15 -0
- data/app/controllers/vyapari/admin/users_controller.rb +130 -0
- data/app/controllers/vyapari/application_controller.rb +13 -0
- data/app/helpers/vyapari/application_helper.rb +4 -0
- data/app/jobs/vyapari/application_job.rb +4 -0
- data/app/mailers/vyapari/application_mailer.rb +6 -0
- data/app/models/brand.rb +114 -0
- data/app/models/category.rb +116 -0
- data/app/models/country.rb +45 -0
- data/app/models/exchange_rate.rb +38 -0
- data/app/models/product.rb +139 -0
- data/app/models/region.rb +58 -0
- data/app/models/vyapari/application_record.rb +6 -0
- data/app/views/layouts/kuppayam/_footer.html.erb +25 -0
- data/app/views/layouts/kuppayam/_header.html.erb +43 -0
- data/app/views/layouts/kuppayam/_navbar.html.erb +55 -0
- data/app/views/layouts/kuppayam/_sidebar.html.erb +136 -0
- data/app/views/vyapari/admin/countries/_form.html.erb +24 -0
- data/app/views/vyapari/admin/countries/_index.html.erb +51 -0
- data/app/views/vyapari/admin/countries/_row.html.erb +26 -0
- data/app/views/vyapari/admin/countries/_show.html.erb +73 -0
- data/app/views/vyapari/admin/countries/index.html.erb +32 -0
- data/app/views/vyapari/admin/dashboard/index.html.erb +52 -0
- data/app/views/vyapari/admin/exchange_rates/_form.html.erb +28 -0
- data/app/views/vyapari/admin/exchange_rates/_index.html.erb +57 -0
- data/app/views/vyapari/admin/exchange_rates/_row.html.erb +30 -0
- data/app/views/vyapari/admin/exchange_rates/_show.html.erb +72 -0
- data/app/views/vyapari/admin/exchange_rates/index.html.erb +32 -0
- data/app/views/vyapari/admin/regions/_form.html.erb +28 -0
- data/app/views/vyapari/admin/regions/_index.html.erb +54 -0
- data/app/views/vyapari/admin/regions/_row.html.erb +28 -0
- data/app/views/vyapari/admin/regions/_show.html.erb +74 -0
- data/app/views/vyapari/admin/regions/index.html.erb +32 -0
- data/app/views/vyapari/admin/users/_form.html.erb +39 -0
- data/app/views/vyapari/admin/users/_index.html.erb +101 -0
- data/app/views/vyapari/admin/users/_row.html.erb +72 -0
- data/app/views/vyapari/admin/users/_show.html.erb +199 -0
- data/app/views/vyapari/admin/users/index.html.erb +64 -0
- data/config/routes.rb +28 -0
- data/db/migrate/20170000000200_create_exchange_rates.rb +16 -0
- data/db/migrate/20170000000201_create_countries.rb +12 -0
- data/db/migrate/20170000000202_create_regions.rb +16 -0
- data/lib/tasks/vyapari_tasks.rake +4 -0
- data/lib/vyapari/engine.rb +20 -0
- data/lib/vyapari/version.rb +3 -0
- data/lib/vyapari.rb +5 -0
- metadata +401 -0
@@ -0,0 +1,20 @@
|
|
1
|
+
module Vyapari
|
2
|
+
class Engine < ::Rails::Engine
|
3
|
+
require 'kaminari'
|
4
|
+
require 'kuppayam'
|
5
|
+
require 'usman'
|
6
|
+
|
7
|
+
isolate_namespace Vyapari
|
8
|
+
|
9
|
+
config.before_initialize do
|
10
|
+
config.i18n.load_path += Dir["#{config.root}/config/locales/**/*.yml"]
|
11
|
+
end
|
12
|
+
|
13
|
+
config.generators do |g|
|
14
|
+
g.test_framework :rspec, :fixture => false
|
15
|
+
g.fixture_replacement :factory_girl, :dir => 'spec/dummy/spec/factories'
|
16
|
+
g.assets false
|
17
|
+
g.helper false
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
data/lib/vyapari.rb
ADDED
metadata
ADDED
@@ -0,0 +1,401 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: vyapari
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- kpvarma
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2017-03-31 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.0'
|
20
|
+
- - ">="
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: 5.0.2
|
23
|
+
type: :runtime
|
24
|
+
prerelease: false
|
25
|
+
version_requirements: !ruby/object:Gem::Requirement
|
26
|
+
requirements:
|
27
|
+
- - "~>"
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '5.0'
|
30
|
+
- - ">="
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: 5.0.2
|
33
|
+
- !ruby/object:Gem::Dependency
|
34
|
+
name: jquery-rails
|
35
|
+
requirement: !ruby/object:Gem::Requirement
|
36
|
+
requirements:
|
37
|
+
- - "~>"
|
38
|
+
- !ruby/object:Gem::Version
|
39
|
+
version: '4.2'
|
40
|
+
- - ">="
|
41
|
+
- !ruby/object:Gem::Version
|
42
|
+
version: 4.2.2
|
43
|
+
type: :runtime
|
44
|
+
prerelease: false
|
45
|
+
version_requirements: !ruby/object:Gem::Requirement
|
46
|
+
requirements:
|
47
|
+
- - "~>"
|
48
|
+
- !ruby/object:Gem::Version
|
49
|
+
version: '4.2'
|
50
|
+
- - ">="
|
51
|
+
- !ruby/object:Gem::Version
|
52
|
+
version: 4.2.2
|
53
|
+
- !ruby/object:Gem::Dependency
|
54
|
+
name: kaminari
|
55
|
+
requirement: !ruby/object:Gem::Requirement
|
56
|
+
requirements:
|
57
|
+
- - "~>"
|
58
|
+
- !ruby/object:Gem::Version
|
59
|
+
version: '1.0'
|
60
|
+
- - ">="
|
61
|
+
- !ruby/object:Gem::Version
|
62
|
+
version: 1.0.1
|
63
|
+
type: :runtime
|
64
|
+
prerelease: false
|
65
|
+
version_requirements: !ruby/object:Gem::Requirement
|
66
|
+
requirements:
|
67
|
+
- - "~>"
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: '1.0'
|
70
|
+
- - ">="
|
71
|
+
- !ruby/object:Gem::Version
|
72
|
+
version: 1.0.1
|
73
|
+
- !ruby/object:Gem::Dependency
|
74
|
+
name: bootstrap-kaminari-views
|
75
|
+
requirement: !ruby/object:Gem::Requirement
|
76
|
+
requirements:
|
77
|
+
- - "~>"
|
78
|
+
- !ruby/object:Gem::Version
|
79
|
+
version: 0.0.5
|
80
|
+
type: :runtime
|
81
|
+
prerelease: false
|
82
|
+
version_requirements: !ruby/object:Gem::Requirement
|
83
|
+
requirements:
|
84
|
+
- - "~>"
|
85
|
+
- !ruby/object:Gem::Version
|
86
|
+
version: 0.0.5
|
87
|
+
- !ruby/object:Gem::Dependency
|
88
|
+
name: kuppayam
|
89
|
+
requirement: !ruby/object:Gem::Requirement
|
90
|
+
requirements:
|
91
|
+
- - "~>"
|
92
|
+
- !ruby/object:Gem::Version
|
93
|
+
version: 0.1.1
|
94
|
+
type: :runtime
|
95
|
+
prerelease: false
|
96
|
+
version_requirements: !ruby/object:Gem::Requirement
|
97
|
+
requirements:
|
98
|
+
- - "~>"
|
99
|
+
- !ruby/object:Gem::Version
|
100
|
+
version: 0.1.1
|
101
|
+
- !ruby/object:Gem::Dependency
|
102
|
+
name: usman
|
103
|
+
requirement: !ruby/object:Gem::Requirement
|
104
|
+
requirements:
|
105
|
+
- - "~>"
|
106
|
+
- !ruby/object:Gem::Version
|
107
|
+
version: 0.1.1
|
108
|
+
type: :runtime
|
109
|
+
prerelease: false
|
110
|
+
version_requirements: !ruby/object:Gem::Requirement
|
111
|
+
requirements:
|
112
|
+
- - "~>"
|
113
|
+
- !ruby/object:Gem::Version
|
114
|
+
version: 0.1.1
|
115
|
+
- !ruby/object:Gem::Dependency
|
116
|
+
name: bcrypt
|
117
|
+
requirement: !ruby/object:Gem::Requirement
|
118
|
+
requirements:
|
119
|
+
- - ">="
|
120
|
+
- !ruby/object:Gem::Version
|
121
|
+
version: '0'
|
122
|
+
type: :runtime
|
123
|
+
prerelease: false
|
124
|
+
version_requirements: !ruby/object:Gem::Requirement
|
125
|
+
requirements:
|
126
|
+
- - ">="
|
127
|
+
- !ruby/object:Gem::Version
|
128
|
+
version: '0'
|
129
|
+
- !ruby/object:Gem::Dependency
|
130
|
+
name: pry
|
131
|
+
requirement: !ruby/object:Gem::Requirement
|
132
|
+
requirements:
|
133
|
+
- - "~>"
|
134
|
+
- !ruby/object:Gem::Version
|
135
|
+
version: 0.10.1
|
136
|
+
- - ">="
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: 0.10.0
|
139
|
+
type: :development
|
140
|
+
prerelease: false
|
141
|
+
version_requirements: !ruby/object:Gem::Requirement
|
142
|
+
requirements:
|
143
|
+
- - "~>"
|
144
|
+
- !ruby/object:Gem::Version
|
145
|
+
version: 0.10.1
|
146
|
+
- - ">="
|
147
|
+
- !ruby/object:Gem::Version
|
148
|
+
version: 0.10.0
|
149
|
+
- !ruby/object:Gem::Dependency
|
150
|
+
name: mysql2
|
151
|
+
requirement: !ruby/object:Gem::Requirement
|
152
|
+
requirements:
|
153
|
+
- - "~>"
|
154
|
+
- !ruby/object:Gem::Version
|
155
|
+
version: 0.4.4
|
156
|
+
type: :development
|
157
|
+
prerelease: false
|
158
|
+
version_requirements: !ruby/object:Gem::Requirement
|
159
|
+
requirements:
|
160
|
+
- - "~>"
|
161
|
+
- !ruby/object:Gem::Version
|
162
|
+
version: 0.4.4
|
163
|
+
- !ruby/object:Gem::Dependency
|
164
|
+
name: sqlite3
|
165
|
+
requirement: !ruby/object:Gem::Requirement
|
166
|
+
requirements:
|
167
|
+
- - "~>"
|
168
|
+
- !ruby/object:Gem::Version
|
169
|
+
version: 1.3.10
|
170
|
+
- - ">="
|
171
|
+
- !ruby/object:Gem::Version
|
172
|
+
version: 1.3.9
|
173
|
+
type: :development
|
174
|
+
prerelease: false
|
175
|
+
version_requirements: !ruby/object:Gem::Requirement
|
176
|
+
requirements:
|
177
|
+
- - "~>"
|
178
|
+
- !ruby/object:Gem::Version
|
179
|
+
version: 1.3.10
|
180
|
+
- - ">="
|
181
|
+
- !ruby/object:Gem::Version
|
182
|
+
version: 1.3.9
|
183
|
+
- !ruby/object:Gem::Dependency
|
184
|
+
name: carrierwave
|
185
|
+
requirement: !ruby/object:Gem::Requirement
|
186
|
+
requirements:
|
187
|
+
- - "~>"
|
188
|
+
- !ruby/object:Gem::Version
|
189
|
+
version: 0.10.0
|
190
|
+
- - ">="
|
191
|
+
- !ruby/object:Gem::Version
|
192
|
+
version: 0.9.0
|
193
|
+
type: :development
|
194
|
+
prerelease: false
|
195
|
+
version_requirements: !ruby/object:Gem::Requirement
|
196
|
+
requirements:
|
197
|
+
- - "~>"
|
198
|
+
- !ruby/object:Gem::Version
|
199
|
+
version: 0.10.0
|
200
|
+
- - ">="
|
201
|
+
- !ruby/object:Gem::Version
|
202
|
+
version: 0.9.0
|
203
|
+
- !ruby/object:Gem::Dependency
|
204
|
+
name: rmagick
|
205
|
+
requirement: !ruby/object:Gem::Requirement
|
206
|
+
requirements:
|
207
|
+
- - "~>"
|
208
|
+
- !ruby/object:Gem::Version
|
209
|
+
version: 2.13.3
|
210
|
+
- - ">="
|
211
|
+
- !ruby/object:Gem::Version
|
212
|
+
version: 2.13.2
|
213
|
+
type: :development
|
214
|
+
prerelease: false
|
215
|
+
version_requirements: !ruby/object:Gem::Requirement
|
216
|
+
requirements:
|
217
|
+
- - "~>"
|
218
|
+
- !ruby/object:Gem::Version
|
219
|
+
version: 2.13.3
|
220
|
+
- - ">="
|
221
|
+
- !ruby/object:Gem::Version
|
222
|
+
version: 2.13.2
|
223
|
+
- !ruby/object:Gem::Dependency
|
224
|
+
name: rspec-rails
|
225
|
+
requirement: !ruby/object:Gem::Requirement
|
226
|
+
requirements:
|
227
|
+
- - "~>"
|
228
|
+
- !ruby/object:Gem::Version
|
229
|
+
version: '3.5'
|
230
|
+
type: :development
|
231
|
+
prerelease: false
|
232
|
+
version_requirements: !ruby/object:Gem::Requirement
|
233
|
+
requirements:
|
234
|
+
- - "~>"
|
235
|
+
- !ruby/object:Gem::Version
|
236
|
+
version: '3.5'
|
237
|
+
- !ruby/object:Gem::Dependency
|
238
|
+
name: capybara
|
239
|
+
requirement: !ruby/object:Gem::Requirement
|
240
|
+
requirements:
|
241
|
+
- - "~>"
|
242
|
+
- !ruby/object:Gem::Version
|
243
|
+
version: 2.4.4
|
244
|
+
- - ">="
|
245
|
+
- !ruby/object:Gem::Version
|
246
|
+
version: 2.4.3
|
247
|
+
type: :development
|
248
|
+
prerelease: false
|
249
|
+
version_requirements: !ruby/object:Gem::Requirement
|
250
|
+
requirements:
|
251
|
+
- - "~>"
|
252
|
+
- !ruby/object:Gem::Version
|
253
|
+
version: 2.4.4
|
254
|
+
- - ">="
|
255
|
+
- !ruby/object:Gem::Version
|
256
|
+
version: 2.4.3
|
257
|
+
- !ruby/object:Gem::Dependency
|
258
|
+
name: factory_girl_rails
|
259
|
+
requirement: !ruby/object:Gem::Requirement
|
260
|
+
requirements:
|
261
|
+
- - "~>"
|
262
|
+
- !ruby/object:Gem::Version
|
263
|
+
version: 4.8.0
|
264
|
+
- - ">="
|
265
|
+
- !ruby/object:Gem::Version
|
266
|
+
version: 4.4.0
|
267
|
+
type: :development
|
268
|
+
prerelease: false
|
269
|
+
version_requirements: !ruby/object:Gem::Requirement
|
270
|
+
requirements:
|
271
|
+
- - "~>"
|
272
|
+
- !ruby/object:Gem::Version
|
273
|
+
version: 4.8.0
|
274
|
+
- - ">="
|
275
|
+
- !ruby/object:Gem::Version
|
276
|
+
version: 4.4.0
|
277
|
+
- !ruby/object:Gem::Dependency
|
278
|
+
name: database_cleaner
|
279
|
+
requirement: !ruby/object:Gem::Requirement
|
280
|
+
requirements:
|
281
|
+
- - "~>"
|
282
|
+
- !ruby/object:Gem::Version
|
283
|
+
version: 1.4.0
|
284
|
+
- - ">="
|
285
|
+
- !ruby/object:Gem::Version
|
286
|
+
version: 1.3.0
|
287
|
+
type: :development
|
288
|
+
prerelease: false
|
289
|
+
version_requirements: !ruby/object:Gem::Requirement
|
290
|
+
requirements:
|
291
|
+
- - "~>"
|
292
|
+
- !ruby/object:Gem::Version
|
293
|
+
version: 1.4.0
|
294
|
+
- - ">="
|
295
|
+
- !ruby/object:Gem::Version
|
296
|
+
version: 1.3.0
|
297
|
+
- !ruby/object:Gem::Dependency
|
298
|
+
name: shoulda-matchers
|
299
|
+
requirement: !ruby/object:Gem::Requirement
|
300
|
+
requirements:
|
301
|
+
- - "~>"
|
302
|
+
- !ruby/object:Gem::Version
|
303
|
+
version: '3.1'
|
304
|
+
type: :development
|
305
|
+
prerelease: false
|
306
|
+
version_requirements: !ruby/object:Gem::Requirement
|
307
|
+
requirements:
|
308
|
+
- - "~>"
|
309
|
+
- !ruby/object:Gem::Version
|
310
|
+
version: '3.1'
|
311
|
+
description: Comes with an admin interface to configure brands, multilevel categories
|
312
|
+
& products
|
313
|
+
email:
|
314
|
+
- krshnaprsad@gmail.com
|
315
|
+
executables: []
|
316
|
+
extensions: []
|
317
|
+
extra_rdoc_files: []
|
318
|
+
files:
|
319
|
+
- MIT-LICENSE
|
320
|
+
- README.md
|
321
|
+
- Rakefile
|
322
|
+
- app/assets/config/vyapari_manifest.js
|
323
|
+
- app/assets/javascripts/vyapari/application.js
|
324
|
+
- app/assets/stylesheets/vyapari/application.css
|
325
|
+
- app/controllers/vyapari/admin/base_controller.rb
|
326
|
+
- app/controllers/vyapari/admin/countries_controller.rb
|
327
|
+
- app/controllers/vyapari/admin/dashboard_controller.rb
|
328
|
+
- app/controllers/vyapari/admin/exchange_rates_controller.rb
|
329
|
+
- app/controllers/vyapari/admin/regions_controller.rb
|
330
|
+
- app/controllers/vyapari/admin/resource_controller.rb
|
331
|
+
- app/controllers/vyapari/admin/users_controller.rb
|
332
|
+
- app/controllers/vyapari/application_controller.rb
|
333
|
+
- app/helpers/vyapari/application_helper.rb
|
334
|
+
- app/jobs/vyapari/application_job.rb
|
335
|
+
- app/mailers/vyapari/application_mailer.rb
|
336
|
+
- app/models/brand.rb
|
337
|
+
- app/models/category.rb
|
338
|
+
- app/models/country.rb
|
339
|
+
- app/models/exchange_rate.rb
|
340
|
+
- app/models/product.rb
|
341
|
+
- app/models/region.rb
|
342
|
+
- app/models/vyapari/application_record.rb
|
343
|
+
- app/views/layouts/kuppayam/_footer.html.erb
|
344
|
+
- app/views/layouts/kuppayam/_header.html.erb
|
345
|
+
- app/views/layouts/kuppayam/_navbar.html.erb
|
346
|
+
- app/views/layouts/kuppayam/_sidebar.html.erb
|
347
|
+
- app/views/vyapari/admin/countries/_form.html.erb
|
348
|
+
- app/views/vyapari/admin/countries/_index.html.erb
|
349
|
+
- app/views/vyapari/admin/countries/_row.html.erb
|
350
|
+
- app/views/vyapari/admin/countries/_show.html.erb
|
351
|
+
- app/views/vyapari/admin/countries/index.html.erb
|
352
|
+
- app/views/vyapari/admin/dashboard/index.html.erb
|
353
|
+
- app/views/vyapari/admin/exchange_rates/_form.html.erb
|
354
|
+
- app/views/vyapari/admin/exchange_rates/_index.html.erb
|
355
|
+
- app/views/vyapari/admin/exchange_rates/_row.html.erb
|
356
|
+
- app/views/vyapari/admin/exchange_rates/_show.html.erb
|
357
|
+
- app/views/vyapari/admin/exchange_rates/index.html.erb
|
358
|
+
- app/views/vyapari/admin/regions/_form.html.erb
|
359
|
+
- app/views/vyapari/admin/regions/_index.html.erb
|
360
|
+
- app/views/vyapari/admin/regions/_row.html.erb
|
361
|
+
- app/views/vyapari/admin/regions/_show.html.erb
|
362
|
+
- app/views/vyapari/admin/regions/index.html.erb
|
363
|
+
- app/views/vyapari/admin/users/_form.html.erb
|
364
|
+
- app/views/vyapari/admin/users/_index.html.erb
|
365
|
+
- app/views/vyapari/admin/users/_row.html.erb
|
366
|
+
- app/views/vyapari/admin/users/_show.html.erb
|
367
|
+
- app/views/vyapari/admin/users/index.html.erb
|
368
|
+
- config/routes.rb
|
369
|
+
- db/migrate/20170000000200_create_exchange_rates.rb
|
370
|
+
- db/migrate/20170000000201_create_countries.rb
|
371
|
+
- db/migrate/20170000000202_create_regions.rb
|
372
|
+
- lib/tasks/vyapari_tasks.rake
|
373
|
+
- lib/vyapari.rb
|
374
|
+
- lib/vyapari/engine.rb
|
375
|
+
- lib/vyapari/version.rb
|
376
|
+
homepage: https://github.com/right-solutions/vyapari
|
377
|
+
licenses:
|
378
|
+
- MIT
|
379
|
+
metadata: {}
|
380
|
+
post_install_message:
|
381
|
+
rdoc_options: []
|
382
|
+
require_paths:
|
383
|
+
- lib
|
384
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
385
|
+
requirements:
|
386
|
+
- - ">="
|
387
|
+
- !ruby/object:Gem::Version
|
388
|
+
version: '0'
|
389
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
390
|
+
requirements:
|
391
|
+
- - ">="
|
392
|
+
- !ruby/object:Gem::Version
|
393
|
+
version: '0'
|
394
|
+
requirements: []
|
395
|
+
rubyforge_project:
|
396
|
+
rubygems_version: 2.5.1
|
397
|
+
signing_key:
|
398
|
+
specification_version: 4
|
399
|
+
summary: An online product catelog for general traders
|
400
|
+
test_files: []
|
401
|
+
has_rdoc:
|