spree_shipping_matrix 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +14 -0
- data/.rspec +3 -0
- data/.tailor +29 -0
- data/.travis.yml +20 -0
- data/Gemfile +7 -0
- data/LICENSE +22 -0
- data/README.md +56 -0
- data/Rakefile +28 -0
- data/Versionfile +1 -0
- data/app/assets/javascripts/spree/backend/spree_shipping_matrix.js +42 -0
- data/app/assets/javascripts/spree/frontend/spree_shipping_matrix.js +2 -0
- data/app/assets/stylesheets/spree/backend/spree_shipping_matrix.css +3 -0
- data/app/assets/stylesheets/spree/frontend/spree_shipping_matrix.css +4 -0
- data/app/controllers/spree/admin/shipping_matrices_controller.rb +13 -0
- data/app/helpers/spree/admin/base_helper_decorator.rb +9 -0
- data/app/helpers/spree/admin/form_builder_decorator.rb +9 -0
- data/app/models/spree/shipping_matrix.rb +18 -0
- data/app/models/spree/shipping_matrix_calculator.rb +40 -0
- data/app/models/spree/shipping_matrix_rule.rb +39 -0
- data/app/overrides/spree/admin/shared/_configuration_menu/add_shipping_matrix_link.html.erb.deface +2 -0
- data/app/views/spree/admin/shipping_matrices/_form.html.erb +18 -0
- data/app/views/spree/admin/shipping_matrices/edit.html.erb +25 -0
- data/app/views/spree/admin/shipping_matrices/index.html.erb +63 -0
- data/app/views/spree/admin/shipping_matrices/new.html.erb +11 -0
- data/app/views/spree/admin/shipping_matrices/new.js.erb +6 -0
- data/app/views/spree/admin/shipping_matrix_rules/_form.html.erb +33 -0
- data/bin/rails +7 -0
- data/config/locales/en.yml +13 -0
- data/config/routes.rb +5 -0
- data/db/migrate/20140826110342_create_spree_shipping_matrices.rb +8 -0
- data/db/migrate/20140826112807_create_spree_shipping_matrix_rules.rb +10 -0
- data/lib/generators/spree_shipping_matrix/install/install_generator.rb +27 -0
- data/lib/spree_shipping_matrix/engine.rb +25 -0
- data/lib/spree_shipping_matrix/version.rb +3 -0
- data/lib/spree_shipping_matrix.rb +2 -0
- data/spec/factories/shipping_matrix_factory.rb +17 -0
- data/spec/factories/shipping_matrix_rule_factory.rb +8 -0
- data/spec/features/shipping_matrix_calculator_spec.rb +34 -0
- data/spec/features/shipping_matrix_checkout_spec.rb +92 -0
- data/spec/features/shipping_matrix_spec.rb +86 -0
- data/spec/spec_helper.rb +91 -0
- data/spec/support/user_steps.rb +22 -0
- data/spec/unit/models/shipping_matrix_calculator_spec.rb +81 -0
- data/spec/unit/models/shipping_matrix_rule_spec.rb +35 -0
- data/spec/unit/models/shipping_matrix_spec.rb +39 -0
- data/spree_shipping_matrix.gemspec +42 -0
- metadata +298 -0
metadata
ADDED
@@ -0,0 +1,298 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: spree_shipping_matrix
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
prerelease:
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- Luke Morton
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2014-08-28 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: spree_core
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
18
|
+
requirements:
|
19
|
+
- - '='
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: 2.4.0.beta
|
22
|
+
type: :runtime
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - '='
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: 2.4.0.beta
|
30
|
+
- !ruby/object:Gem::Dependency
|
31
|
+
name: capybara
|
32
|
+
requirement: !ruby/object:Gem::Requirement
|
33
|
+
none: false
|
34
|
+
requirements:
|
35
|
+
- - ~>
|
36
|
+
- !ruby/object:Gem::Version
|
37
|
+
version: '2.1'
|
38
|
+
type: :development
|
39
|
+
prerelease: false
|
40
|
+
version_requirements: !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
42
|
+
requirements:
|
43
|
+
- - ~>
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: '2.1'
|
46
|
+
- !ruby/object:Gem::Dependency
|
47
|
+
name: coffee-rails
|
48
|
+
requirement: !ruby/object:Gem::Requirement
|
49
|
+
none: false
|
50
|
+
requirements:
|
51
|
+
- - ! '>='
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: '0'
|
54
|
+
type: :development
|
55
|
+
prerelease: false
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
57
|
+
none: false
|
58
|
+
requirements:
|
59
|
+
- - ! '>='
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
- !ruby/object:Gem::Dependency
|
63
|
+
name: database_cleaner
|
64
|
+
requirement: !ruby/object:Gem::Requirement
|
65
|
+
none: false
|
66
|
+
requirements:
|
67
|
+
- - ! '>='
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: '0'
|
70
|
+
type: :development
|
71
|
+
prerelease: false
|
72
|
+
version_requirements: !ruby/object:Gem::Requirement
|
73
|
+
none: false
|
74
|
+
requirements:
|
75
|
+
- - ! '>='
|
76
|
+
- !ruby/object:Gem::Version
|
77
|
+
version: '0'
|
78
|
+
- !ruby/object:Gem::Dependency
|
79
|
+
name: factory_girl
|
80
|
+
requirement: !ruby/object:Gem::Requirement
|
81
|
+
none: false
|
82
|
+
requirements:
|
83
|
+
- - ~>
|
84
|
+
- !ruby/object:Gem::Version
|
85
|
+
version: '4.4'
|
86
|
+
type: :development
|
87
|
+
prerelease: false
|
88
|
+
version_requirements: !ruby/object:Gem::Requirement
|
89
|
+
none: false
|
90
|
+
requirements:
|
91
|
+
- - ~>
|
92
|
+
- !ruby/object:Gem::Version
|
93
|
+
version: '4.4'
|
94
|
+
- !ruby/object:Gem::Dependency
|
95
|
+
name: ffaker
|
96
|
+
requirement: !ruby/object:Gem::Requirement
|
97
|
+
none: false
|
98
|
+
requirements:
|
99
|
+
- - ! '>='
|
100
|
+
- !ruby/object:Gem::Version
|
101
|
+
version: '0'
|
102
|
+
type: :development
|
103
|
+
prerelease: false
|
104
|
+
version_requirements: !ruby/object:Gem::Requirement
|
105
|
+
none: false
|
106
|
+
requirements:
|
107
|
+
- - ! '>='
|
108
|
+
- !ruby/object:Gem::Version
|
109
|
+
version: '0'
|
110
|
+
- !ruby/object:Gem::Dependency
|
111
|
+
name: rspec-rails
|
112
|
+
requirement: !ruby/object:Gem::Requirement
|
113
|
+
none: false
|
114
|
+
requirements:
|
115
|
+
- - ~>
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '2.13'
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
none: false
|
122
|
+
requirements:
|
123
|
+
- - ~>
|
124
|
+
- !ruby/object:Gem::Version
|
125
|
+
version: '2.13'
|
126
|
+
- !ruby/object:Gem::Dependency
|
127
|
+
name: sass-rails
|
128
|
+
requirement: !ruby/object:Gem::Requirement
|
129
|
+
none: false
|
130
|
+
requirements:
|
131
|
+
- - ~>
|
132
|
+
- !ruby/object:Gem::Version
|
133
|
+
version: 4.0.2
|
134
|
+
type: :development
|
135
|
+
prerelease: false
|
136
|
+
version_requirements: !ruby/object:Gem::Requirement
|
137
|
+
none: false
|
138
|
+
requirements:
|
139
|
+
- - ~>
|
140
|
+
- !ruby/object:Gem::Version
|
141
|
+
version: 4.0.2
|
142
|
+
- !ruby/object:Gem::Dependency
|
143
|
+
name: poltergeist
|
144
|
+
requirement: !ruby/object:Gem::Requirement
|
145
|
+
none: false
|
146
|
+
requirements:
|
147
|
+
- - ! '>='
|
148
|
+
- !ruby/object:Gem::Version
|
149
|
+
version: '0'
|
150
|
+
type: :development
|
151
|
+
prerelease: false
|
152
|
+
version_requirements: !ruby/object:Gem::Requirement
|
153
|
+
none: false
|
154
|
+
requirements:
|
155
|
+
- - ! '>='
|
156
|
+
- !ruby/object:Gem::Version
|
157
|
+
version: '0'
|
158
|
+
- !ruby/object:Gem::Dependency
|
159
|
+
name: sqlite3
|
160
|
+
requirement: !ruby/object:Gem::Requirement
|
161
|
+
none: false
|
162
|
+
requirements:
|
163
|
+
- - ! '>='
|
164
|
+
- !ruby/object:Gem::Version
|
165
|
+
version: '0'
|
166
|
+
type: :development
|
167
|
+
prerelease: false
|
168
|
+
version_requirements: !ruby/object:Gem::Requirement
|
169
|
+
none: false
|
170
|
+
requirements:
|
171
|
+
- - ! '>='
|
172
|
+
- !ruby/object:Gem::Version
|
173
|
+
version: '0'
|
174
|
+
- !ruby/object:Gem::Dependency
|
175
|
+
name: tailor
|
176
|
+
requirement: !ruby/object:Gem::Requirement
|
177
|
+
none: false
|
178
|
+
requirements:
|
179
|
+
- - ! '>='
|
180
|
+
- !ruby/object:Gem::Version
|
181
|
+
version: '0'
|
182
|
+
type: :development
|
183
|
+
prerelease: false
|
184
|
+
version_requirements: !ruby/object:Gem::Requirement
|
185
|
+
none: false
|
186
|
+
requirements:
|
187
|
+
- - ! '>='
|
188
|
+
- !ruby/object:Gem::Version
|
189
|
+
version: '0'
|
190
|
+
- !ruby/object:Gem::Dependency
|
191
|
+
name: codeclimate-test-reporter
|
192
|
+
requirement: !ruby/object:Gem::Requirement
|
193
|
+
none: false
|
194
|
+
requirements:
|
195
|
+
- - ! '>='
|
196
|
+
- !ruby/object:Gem::Version
|
197
|
+
version: '0'
|
198
|
+
type: :development
|
199
|
+
prerelease: false
|
200
|
+
version_requirements: !ruby/object:Gem::Requirement
|
201
|
+
none: false
|
202
|
+
requirements:
|
203
|
+
- - ! '>='
|
204
|
+
- !ruby/object:Gem::Version
|
205
|
+
version: '0'
|
206
|
+
description: ''
|
207
|
+
email:
|
208
|
+
- luke@madebymade.co.uk
|
209
|
+
executables: []
|
210
|
+
extensions: []
|
211
|
+
extra_rdoc_files: []
|
212
|
+
files:
|
213
|
+
- .gitignore
|
214
|
+
- .rspec
|
215
|
+
- .tailor
|
216
|
+
- .travis.yml
|
217
|
+
- Gemfile
|
218
|
+
- LICENSE
|
219
|
+
- README.md
|
220
|
+
- Rakefile
|
221
|
+
- Versionfile
|
222
|
+
- app/assets/javascripts/spree/backend/spree_shipping_matrix.js
|
223
|
+
- app/assets/javascripts/spree/frontend/spree_shipping_matrix.js
|
224
|
+
- app/assets/stylesheets/spree/backend/spree_shipping_matrix.css
|
225
|
+
- app/assets/stylesheets/spree/frontend/spree_shipping_matrix.css
|
226
|
+
- app/controllers/spree/admin/shipping_matrices_controller.rb
|
227
|
+
- app/helpers/spree/admin/base_helper_decorator.rb
|
228
|
+
- app/helpers/spree/admin/form_builder_decorator.rb
|
229
|
+
- app/models/spree/shipping_matrix.rb
|
230
|
+
- app/models/spree/shipping_matrix_calculator.rb
|
231
|
+
- app/models/spree/shipping_matrix_rule.rb
|
232
|
+
- app/overrides/spree/admin/shared/_configuration_menu/add_shipping_matrix_link.html.erb.deface
|
233
|
+
- app/views/spree/admin/shipping_matrices/_form.html.erb
|
234
|
+
- app/views/spree/admin/shipping_matrices/edit.html.erb
|
235
|
+
- app/views/spree/admin/shipping_matrices/index.html.erb
|
236
|
+
- app/views/spree/admin/shipping_matrices/new.html.erb
|
237
|
+
- app/views/spree/admin/shipping_matrices/new.js.erb
|
238
|
+
- app/views/spree/admin/shipping_matrix_rules/_form.html.erb
|
239
|
+
- bin/rails
|
240
|
+
- config/locales/en.yml
|
241
|
+
- config/routes.rb
|
242
|
+
- db/migrate/20140826110342_create_spree_shipping_matrices.rb
|
243
|
+
- db/migrate/20140826112807_create_spree_shipping_matrix_rules.rb
|
244
|
+
- lib/generators/spree_shipping_matrix/install/install_generator.rb
|
245
|
+
- lib/spree_shipping_matrix.rb
|
246
|
+
- lib/spree_shipping_matrix/engine.rb
|
247
|
+
- lib/spree_shipping_matrix/version.rb
|
248
|
+
- spec/factories/shipping_matrix_factory.rb
|
249
|
+
- spec/factories/shipping_matrix_rule_factory.rb
|
250
|
+
- spec/features/shipping_matrix_calculator_spec.rb
|
251
|
+
- spec/features/shipping_matrix_checkout_spec.rb
|
252
|
+
- spec/features/shipping_matrix_spec.rb
|
253
|
+
- spec/spec_helper.rb
|
254
|
+
- spec/support/user_steps.rb
|
255
|
+
- spec/unit/models/shipping_matrix_calculator_spec.rb
|
256
|
+
- spec/unit/models/shipping_matrix_rule_spec.rb
|
257
|
+
- spec/unit/models/shipping_matrix_spec.rb
|
258
|
+
- spree_shipping_matrix.gemspec
|
259
|
+
homepage: https://github.com/madebymade/spree_shipping_matrix
|
260
|
+
licenses:
|
261
|
+
- MIT
|
262
|
+
post_install_message:
|
263
|
+
rdoc_options: []
|
264
|
+
require_paths:
|
265
|
+
- lib
|
266
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
267
|
+
none: false
|
268
|
+
requirements:
|
269
|
+
- - ! '>='
|
270
|
+
- !ruby/object:Gem::Version
|
271
|
+
version: 1.9.3
|
272
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
273
|
+
none: false
|
274
|
+
requirements:
|
275
|
+
- - ! '>='
|
276
|
+
- !ruby/object:Gem::Version
|
277
|
+
version: '0'
|
278
|
+
segments:
|
279
|
+
- 0
|
280
|
+
hash: -729713437542143338
|
281
|
+
requirements:
|
282
|
+
- none
|
283
|
+
rubyforge_project:
|
284
|
+
rubygems_version: 1.8.23
|
285
|
+
signing_key:
|
286
|
+
specification_version: 3
|
287
|
+
summary: Advanced shipping calculator based on rules matrix for Spree
|
288
|
+
test_files:
|
289
|
+
- spec/factories/shipping_matrix_factory.rb
|
290
|
+
- spec/factories/shipping_matrix_rule_factory.rb
|
291
|
+
- spec/features/shipping_matrix_calculator_spec.rb
|
292
|
+
- spec/features/shipping_matrix_checkout_spec.rb
|
293
|
+
- spec/features/shipping_matrix_spec.rb
|
294
|
+
- spec/spec_helper.rb
|
295
|
+
- spec/support/user_steps.rb
|
296
|
+
- spec/unit/models/shipping_matrix_calculator_spec.rb
|
297
|
+
- spec/unit/models/shipping_matrix_rule_spec.rb
|
298
|
+
- spec/unit/models/shipping_matrix_spec.rb
|