shopping_mall 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (56) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +27 -0
  3. data/.rspec +1 -0
  4. data/.travis.yml +7 -0
  5. data/Gemfile +6 -0
  6. data/LICENSE.txt +22 -0
  7. data/README.md +94 -0
  8. data/Rakefile +16 -0
  9. data/app/models/spree/option_type_decorator.rb +7 -0
  10. data/app/models/spree/option_types_prototype.rb +6 -0
  11. data/app/models/spree/option_value_decorator.rb +6 -0
  12. data/app/models/spree/option_values_variant.rb +6 -0
  13. data/app/models/spree/order_decorator.rb +6 -0
  14. data/app/models/spree/orders_promotion.rb +6 -0
  15. data/app/models/spree/product_decorator.rb +6 -0
  16. data/app/models/spree/products_promotion_rule.rb +6 -0
  17. data/app/models/spree/promotion_decorator.rb +4 -0
  18. data/app/models/spree/promotion_rule_decorator.rb +6 -0
  19. data/app/models/spree/properties_prototype.rb +6 -0
  20. data/app/models/spree/property_decorator.rb +16 -0
  21. data/app/models/spree/prototype_decorator.rb +10 -0
  22. data/app/models/spree/role_decorator.rb +4 -0
  23. data/app/models/spree/roles_user.rb +6 -0
  24. data/app/models/spree/shipping_method_decorator.rb +4 -0
  25. data/app/models/spree/shipping_methods_zone.rb +6 -0
  26. data/app/models/spree/user_decorator.rb +4 -0
  27. data/app/models/spree/variant_decorator.rb +6 -0
  28. data/app/models/spree/zone_decorator.rb +32 -0
  29. data/app/models/spree/zone_member_decorator.rb +16 -0
  30. data/config/initializers/shopping_mall_initializer.rb +3 -0
  31. data/db/migrate/20140611225105_hatbm_to_hmt.rb +17 -0
  32. data/lib/generators/shopping_mall/install_generator.rb +41 -0
  33. data/lib/generators/templates/shopping_mall.rb +20 -0
  34. data/lib/shopping_mall/engine.rb +18 -0
  35. data/lib/shopping_mall/escalator.rb +20 -0
  36. data/lib/shopping_mall/version.rb +3 -0
  37. data/lib/shopping_mall.rb +50 -0
  38. data/lib/tasks/db.rake +41 -0
  39. data/shopping_mall.gemspec +40 -0
  40. data/spec/features/tenancy_spec.rb +13 -0
  41. data/spec/models/spree/option_type_decorator_spec.rb +12 -0
  42. data/spec/models/spree/option_value_decorator_spec.rb +12 -0
  43. data/spec/models/spree/order_decorator_spec.rb +13 -0
  44. data/spec/models/spree/product_decorator_spec.rb +12 -0
  45. data/spec/models/spree/promotion_decorator_spec.rb +12 -0
  46. data/spec/models/spree/property_decorator_spec.rb +21 -0
  47. data/spec/models/spree/prototype_decorator_spec.rb +19 -0
  48. data/spec/models/spree/role_decorator_spec.rb +14 -0
  49. data/spec/models/spree/shipping_method_decorator_spec.rb +12 -0
  50. data/spec/models/spree/user_decorator_spec.rb +16 -0
  51. data/spec/models/spree/variant_decorator_spec.rb +13 -0
  52. data/spec/models/spree/zone_decorator_spec.rb +78 -0
  53. data/spec/shopping_mall/config_spec.rb +37 -0
  54. data/spec/shopping_mall/escalator_spec.rb +31 -0
  55. data/spec/spec_helper.rb +49 -0
  56. metadata +353 -0
metadata ADDED
@@ -0,0 +1,353 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: shopping_mall
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Vincent Franco
8
+ - David Freerksen
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2014-07-28 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: spree_core
16
+ requirement: !ruby/object:Gem::Requirement
17
+ requirements:
18
+ - - "~>"
19
+ - !ruby/object:Gem::Version
20
+ version: 2.3.0.beta
21
+ type: :runtime
22
+ prerelease: false
23
+ version_requirements: !ruby/object:Gem::Requirement
24
+ requirements:
25
+ - - "~>"
26
+ - !ruby/object:Gem::Version
27
+ version: 2.3.0.beta
28
+ - !ruby/object:Gem::Dependency
29
+ name: apartment
30
+ requirement: !ruby/object:Gem::Requirement
31
+ requirements:
32
+ - - "~>"
33
+ - !ruby/object:Gem::Version
34
+ version: '0.24'
35
+ type: :runtime
36
+ prerelease: false
37
+ version_requirements: !ruby/object:Gem::Requirement
38
+ requirements:
39
+ - - "~>"
40
+ - !ruby/object:Gem::Version
41
+ version: '0.24'
42
+ - !ruby/object:Gem::Dependency
43
+ name: ffaker
44
+ requirement: !ruby/object:Gem::Requirement
45
+ requirements:
46
+ - - "~>"
47
+ - !ruby/object:Gem::Version
48
+ version: '1.16'
49
+ type: :development
50
+ prerelease: false
51
+ version_requirements: !ruby/object:Gem::Requirement
52
+ requirements:
53
+ - - "~>"
54
+ - !ruby/object:Gem::Version
55
+ version: '1.16'
56
+ - !ruby/object:Gem::Dependency
57
+ name: capybara
58
+ requirement: !ruby/object:Gem::Requirement
59
+ requirements:
60
+ - - "~>"
61
+ - !ruby/object:Gem::Version
62
+ version: '2.2'
63
+ type: :development
64
+ prerelease: false
65
+ version_requirements: !ruby/object:Gem::Requirement
66
+ requirements:
67
+ - - "~>"
68
+ - !ruby/object:Gem::Version
69
+ version: '2.2'
70
+ - !ruby/object:Gem::Dependency
71
+ name: database_cleaner
72
+ requirement: !ruby/object:Gem::Requirement
73
+ requirements:
74
+ - - '='
75
+ - !ruby/object:Gem::Version
76
+ version: '1.2'
77
+ type: :development
78
+ prerelease: false
79
+ version_requirements: !ruby/object:Gem::Requirement
80
+ requirements:
81
+ - - '='
82
+ - !ruby/object:Gem::Version
83
+ version: '1.2'
84
+ - !ruby/object:Gem::Dependency
85
+ name: poltergeist
86
+ requirement: !ruby/object:Gem::Requirement
87
+ requirements:
88
+ - - '='
89
+ - !ruby/object:Gem::Version
90
+ version: '1.5'
91
+ type: :development
92
+ prerelease: false
93
+ version_requirements: !ruby/object:Gem::Requirement
94
+ requirements:
95
+ - - '='
96
+ - !ruby/object:Gem::Version
97
+ version: '1.5'
98
+ - !ruby/object:Gem::Dependency
99
+ name: rspec-rails
100
+ requirement: !ruby/object:Gem::Requirement
101
+ requirements:
102
+ - - "~>"
103
+ - !ruby/object:Gem::Version
104
+ version: '2.14'
105
+ type: :development
106
+ prerelease: false
107
+ version_requirements: !ruby/object:Gem::Requirement
108
+ requirements:
109
+ - - "~>"
110
+ - !ruby/object:Gem::Version
111
+ version: '2.14'
112
+ - !ruby/object:Gem::Dependency
113
+ name: factory_girl
114
+ requirement: !ruby/object:Gem::Requirement
115
+ requirements:
116
+ - - "~>"
117
+ - !ruby/object:Gem::Version
118
+ version: '4.4'
119
+ type: :development
120
+ prerelease: false
121
+ version_requirements: !ruby/object:Gem::Requirement
122
+ requirements:
123
+ - - "~>"
124
+ - !ruby/object:Gem::Version
125
+ version: '4.4'
126
+ - !ruby/object:Gem::Dependency
127
+ name: sqlite3
128
+ requirement: !ruby/object:Gem::Requirement
129
+ requirements:
130
+ - - "~>"
131
+ - !ruby/object:Gem::Version
132
+ version: '1.3'
133
+ type: :development
134
+ prerelease: false
135
+ version_requirements: !ruby/object:Gem::Requirement
136
+ requirements:
137
+ - - "~>"
138
+ - !ruby/object:Gem::Version
139
+ version: '1.3'
140
+ - !ruby/object:Gem::Dependency
141
+ name: simplecov
142
+ requirement: !ruby/object:Gem::Requirement
143
+ requirements:
144
+ - - "~>"
145
+ - !ruby/object:Gem::Version
146
+ version: '0.7'
147
+ type: :development
148
+ prerelease: false
149
+ version_requirements: !ruby/object:Gem::Requirement
150
+ requirements:
151
+ - - "~>"
152
+ - !ruby/object:Gem::Version
153
+ version: '0.7'
154
+ - !ruby/object:Gem::Dependency
155
+ name: coffee-rails
156
+ requirement: !ruby/object:Gem::Requirement
157
+ requirements:
158
+ - - "~>"
159
+ - !ruby/object:Gem::Version
160
+ version: '4.0'
161
+ type: :development
162
+ prerelease: false
163
+ version_requirements: !ruby/object:Gem::Requirement
164
+ requirements:
165
+ - - "~>"
166
+ - !ruby/object:Gem::Version
167
+ version: '4.0'
168
+ - !ruby/object:Gem::Dependency
169
+ name: sass-rails
170
+ requirement: !ruby/object:Gem::Requirement
171
+ requirements:
172
+ - - "~>"
173
+ - !ruby/object:Gem::Version
174
+ version: '4.0'
175
+ type: :development
176
+ prerelease: false
177
+ version_requirements: !ruby/object:Gem::Requirement
178
+ requirements:
179
+ - - "~>"
180
+ - !ruby/object:Gem::Version
181
+ version: '4.0'
182
+ - !ruby/object:Gem::Dependency
183
+ name: guard-rspec
184
+ requirement: !ruby/object:Gem::Requirement
185
+ requirements:
186
+ - - "~>"
187
+ - !ruby/object:Gem::Version
188
+ version: '4.2'
189
+ type: :development
190
+ prerelease: false
191
+ version_requirements: !ruby/object:Gem::Requirement
192
+ requirements:
193
+ - - "~>"
194
+ - !ruby/object:Gem::Version
195
+ version: '4.2'
196
+ - !ruby/object:Gem::Dependency
197
+ name: pry
198
+ requirement: !ruby/object:Gem::Requirement
199
+ requirements:
200
+ - - "~>"
201
+ - !ruby/object:Gem::Version
202
+ version: '0.9'
203
+ type: :development
204
+ prerelease: false
205
+ version_requirements: !ruby/object:Gem::Requirement
206
+ requirements:
207
+ - - "~>"
208
+ - !ruby/object:Gem::Version
209
+ version: '0.9'
210
+ - !ruby/object:Gem::Dependency
211
+ name: pg
212
+ requirement: !ruby/object:Gem::Requirement
213
+ requirements:
214
+ - - "~>"
215
+ - !ruby/object:Gem::Version
216
+ version: '0.11'
217
+ type: :development
218
+ prerelease: false
219
+ version_requirements: !ruby/object:Gem::Requirement
220
+ requirements:
221
+ - - "~>"
222
+ - !ruby/object:Gem::Version
223
+ version: '0.11'
224
+ - !ruby/object:Gem::Dependency
225
+ name: debugger
226
+ requirement: !ruby/object:Gem::Requirement
227
+ requirements:
228
+ - - "~>"
229
+ - !ruby/object:Gem::Version
230
+ version: '1.6'
231
+ type: :development
232
+ prerelease: false
233
+ version_requirements: !ruby/object:Gem::Requirement
234
+ requirements:
235
+ - - "~>"
236
+ - !ruby/object:Gem::Version
237
+ version: '1.6'
238
+ - !ruby/object:Gem::Dependency
239
+ name: shoulda-matchers
240
+ requirement: !ruby/object:Gem::Requirement
241
+ requirements:
242
+ - - "~>"
243
+ - !ruby/object:Gem::Version
244
+ version: '2.5'
245
+ type: :development
246
+ prerelease: false
247
+ version_requirements: !ruby/object:Gem::Requirement
248
+ requirements:
249
+ - - "~>"
250
+ - !ruby/object:Gem::Version
251
+ version: '2.5'
252
+ description: Multi-tenancy for Spree >= 2.3
253
+ email:
254
+ executables: []
255
+ extensions: []
256
+ extra_rdoc_files: []
257
+ files:
258
+ - ".gitignore"
259
+ - ".rspec"
260
+ - ".travis.yml"
261
+ - Gemfile
262
+ - LICENSE.txt
263
+ - README.md
264
+ - Rakefile
265
+ - app/models/spree/option_type_decorator.rb
266
+ - app/models/spree/option_types_prototype.rb
267
+ - app/models/spree/option_value_decorator.rb
268
+ - app/models/spree/option_values_variant.rb
269
+ - app/models/spree/order_decorator.rb
270
+ - app/models/spree/orders_promotion.rb
271
+ - app/models/spree/product_decorator.rb
272
+ - app/models/spree/products_promotion_rule.rb
273
+ - app/models/spree/promotion_decorator.rb
274
+ - app/models/spree/promotion_rule_decorator.rb
275
+ - app/models/spree/properties_prototype.rb
276
+ - app/models/spree/property_decorator.rb
277
+ - app/models/spree/prototype_decorator.rb
278
+ - app/models/spree/role_decorator.rb
279
+ - app/models/spree/roles_user.rb
280
+ - app/models/spree/shipping_method_decorator.rb
281
+ - app/models/spree/shipping_methods_zone.rb
282
+ - app/models/spree/user_decorator.rb
283
+ - app/models/spree/variant_decorator.rb
284
+ - app/models/spree/zone_decorator.rb
285
+ - app/models/spree/zone_member_decorator.rb
286
+ - config/initializers/shopping_mall_initializer.rb
287
+ - db/migrate/20140611225105_hatbm_to_hmt.rb
288
+ - lib/generators/shopping_mall/install_generator.rb
289
+ - lib/generators/templates/shopping_mall.rb
290
+ - lib/shopping_mall.rb
291
+ - lib/shopping_mall/engine.rb
292
+ - lib/shopping_mall/escalator.rb
293
+ - lib/shopping_mall/version.rb
294
+ - lib/tasks/db.rake
295
+ - shopping_mall.gemspec
296
+ - spec/features/tenancy_spec.rb
297
+ - spec/models/spree/option_type_decorator_spec.rb
298
+ - spec/models/spree/option_value_decorator_spec.rb
299
+ - spec/models/spree/order_decorator_spec.rb
300
+ - spec/models/spree/product_decorator_spec.rb
301
+ - spec/models/spree/promotion_decorator_spec.rb
302
+ - spec/models/spree/property_decorator_spec.rb
303
+ - spec/models/spree/prototype_decorator_spec.rb
304
+ - spec/models/spree/role_decorator_spec.rb
305
+ - spec/models/spree/shipping_method_decorator_spec.rb
306
+ - spec/models/spree/user_decorator_spec.rb
307
+ - spec/models/spree/variant_decorator_spec.rb
308
+ - spec/models/spree/zone_decorator_spec.rb
309
+ - spec/shopping_mall/config_spec.rb
310
+ - spec/shopping_mall/escalator_spec.rb
311
+ - spec/spec_helper.rb
312
+ homepage: http://github.com/groundctrl/shopping_mall
313
+ licenses:
314
+ - MIT
315
+ metadata: {}
316
+ post_install_message:
317
+ rdoc_options: []
318
+ require_paths:
319
+ - lib
320
+ required_ruby_version: !ruby/object:Gem::Requirement
321
+ requirements:
322
+ - - ">="
323
+ - !ruby/object:Gem::Version
324
+ version: 1.9.3
325
+ required_rubygems_version: !ruby/object:Gem::Requirement
326
+ requirements:
327
+ - - ">="
328
+ - !ruby/object:Gem::Version
329
+ version: '0'
330
+ requirements:
331
+ - none
332
+ rubyforge_project:
333
+ rubygems_version: 2.2.0
334
+ signing_key:
335
+ specification_version: 4
336
+ summary: Multi-tenancy for Spree >= 2.3
337
+ test_files:
338
+ - spec/features/tenancy_spec.rb
339
+ - spec/models/spree/option_type_decorator_spec.rb
340
+ - spec/models/spree/option_value_decorator_spec.rb
341
+ - spec/models/spree/order_decorator_spec.rb
342
+ - spec/models/spree/product_decorator_spec.rb
343
+ - spec/models/spree/promotion_decorator_spec.rb
344
+ - spec/models/spree/property_decorator_spec.rb
345
+ - spec/models/spree/prototype_decorator_spec.rb
346
+ - spec/models/spree/role_decorator_spec.rb
347
+ - spec/models/spree/shipping_method_decorator_spec.rb
348
+ - spec/models/spree/user_decorator_spec.rb
349
+ - spec/models/spree/variant_decorator_spec.rb
350
+ - spec/models/spree/zone_decorator_spec.rb
351
+ - spec/shopping_mall/config_spec.rb
352
+ - spec/shopping_mall/escalator_spec.rb
353
+ - spec/spec_helper.rb