piggybak 0.6.29 → 0.6.30

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- piggybak (0.6.28)
4
+ piggybak (0.6.30)
5
5
  activemerchant
6
6
  countries
7
7
  devise
@@ -90,5 +90,9 @@ module Piggybak
90
90
  self.extra_data[k.to_sym] = v if ![:controller, :action].include?(k)
91
91
  end
92
92
  end
93
+
94
+ def empty?
95
+ self.sellables.inject(0) { |nitems, item| nitems + item[:quantity] } == 0
96
+ end
93
97
  end
94
98
  end
@@ -1,3 +1,3 @@
1
1
  module Piggybak
2
- VERSION = "0.6.29"
2
+ VERSION = "0.6.30"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: piggybak
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.29
4
+ version: 0.6.30
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2013-04-16 00:00:00.000000000 Z
14
+ date: 2013-04-23 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: rails
@@ -117,105 +117,105 @@ executables:
117
117
  extensions: []
118
118
  extra_rdoc_files: []
119
119
  files:
120
- - app/assets/images/ajax-loader.gif
121
- - app/assets/javascripts/piggybak/jquery.ajaxq.js
122
- - app/assets/javascripts/piggybak/jquery.validate.js
123
- - app/assets/javascripts/piggybak/piggybak-application.js
120
+ - app/controllers/piggybak/orders_controller.rb
121
+ - app/controllers/piggybak/cart_controller.rb
124
122
  - app/assets/javascripts/piggybak/piggybak.js
125
123
  - app/assets/javascripts/piggybak/piggybak.states.js
126
- - app/controllers/piggybak/cart_controller.rb
127
- - app/controllers/piggybak/orders_controller.rb
128
- - app/helpers/piggybak_helper.rb
129
- - app/mailers/piggybak/notifier.rb
130
- - app/models/piggybak/address.rb
131
- - app/models/piggybak/adjustment.rb
132
- - app/models/piggybak/cart.rb
133
- - app/models/piggybak/country.rb
134
- - app/models/piggybak/line_item.rb
135
- - app/models/piggybak/order.rb
136
- - app/models/piggybak/order_note.rb
137
- - app/models/piggybak/payment.rb
138
- - app/models/piggybak/payment_calculator/authorize_net.rb
124
+ - app/assets/javascripts/piggybak/piggybak-application.js
125
+ - app/assets/javascripts/piggybak/jquery.validate.js
126
+ - app/assets/javascripts/piggybak/jquery.ajaxq.js
127
+ - app/assets/images/ajax-loader.gif
139
128
  - app/models/piggybak/payment_calculator/fake.rb
140
- - app/models/piggybak/payment_method.rb
141
- - app/models/piggybak/payment_method_value.rb
129
+ - app/models/piggybak/payment_calculator/authorize_net.rb
130
+ - app/models/piggybak/address.rb
142
131
  - app/models/piggybak/sellable.rb
132
+ - app/models/piggybak/line_item.rb
143
133
  - app/models/piggybak/shipment.rb
134
+ - app/models/piggybak/tax_method.rb
135
+ - app/models/piggybak/payment_method_value.rb
136
+ - app/models/piggybak/shipping_method_value.rb
137
+ - app/models/piggybak/country.rb
138
+ - app/models/piggybak/cart.rb
139
+ - app/models/piggybak/shipping_method.rb
140
+ - app/models/piggybak/tax_method_value.rb
141
+ - app/models/piggybak/tax_calculator/percent.rb
144
142
  - app/models/piggybak/shipping_calculator/flat_rate.rb
145
143
  - app/models/piggybak/shipping_calculator/free.rb
146
144
  - app/models/piggybak/shipping_calculator/range.rb
147
- - app/models/piggybak/shipping_method.rb
148
- - app/models/piggybak/shipping_method_value.rb
145
+ - app/models/piggybak/order.rb
146
+ - app/models/piggybak/payment_method.rb
147
+ - app/models/piggybak/adjustment.rb
148
+ - app/models/piggybak/order_note.rb
149
+ - app/models/piggybak/payment.rb
149
150
  - app/models/piggybak/state.rb
150
- - app/models/piggybak/tax_calculator/percent.rb
151
- - app/models/piggybak/tax_method.rb
152
- - app/models/piggybak/tax_method_value.rb
153
- - app/views/piggybak/cart/_form.html.erb
154
- - app/views/piggybak/cart/_items.html.erb
155
- - app/views/piggybak/cart/show.html.erb
151
+ - app/helpers/piggybak_helper.rb
152
+ - app/views/rails_admin/main/_recorded_changer.html.erb
153
+ - app/views/rails_admin/main/_polymorphic_nested.html.haml
154
+ - app/views/rails_admin/main/_copy_from_billing.html.haml
155
+ - app/views/rails_admin/main/_location_select.html.haml
156
+ - app/views/rails_admin/main/_order_details.html.erb
157
+ - app/views/rails_admin/main/_ip_address.html.erb
156
158
  - app/views/piggybak/notifier/order_notification.text.erb
157
- - app/views/piggybak/orders/_address_form.html.erb
159
+ - app/views/piggybak/orders/list.html.erb
160
+ - app/views/piggybak/orders/submit.html.erb
161
+ - app/views/piggybak/orders/no_access.text.erb
158
162
  - app/views/piggybak/orders/_billing_address.html.erb
163
+ - app/views/piggybak/orders/receipt.html.erb
164
+ - app/views/piggybak/orders/_user_details.html.erb
159
165
  - app/views/piggybak/orders/_details.html.erb
160
- - app/views/piggybak/orders/_google_analytics.html.erb
161
166
  - app/views/piggybak/orders/_payment.html.erb
162
- - app/views/piggybak/orders/_shipping.html.erb
167
+ - app/views/piggybak/orders/_address_form.html.erb
163
168
  - app/views/piggybak/orders/_shipping_address.html.erb
164
- - app/views/piggybak/orders/_user_details.html.erb
165
169
  - app/views/piggybak/orders/download.text.erb
166
- - app/views/piggybak/orders/list.html.erb
167
- - app/views/piggybak/orders/no_access.text.erb
168
- - app/views/piggybak/orders/receipt.html.erb
169
- - app/views/piggybak/orders/submit.html.erb
170
- - app/views/rails_admin/main/_copy_from_billing.html.haml
171
- - app/views/rails_admin/main/_ip_address.html.erb
172
- - app/views/rails_admin/main/_location_select.html.haml
173
- - app/views/rails_admin/main/_order_details.html.erb
174
- - app/views/rails_admin/main/_polymorphic_nested.html.haml
175
- - app/views/rails_admin/main/_recorded_changer.html.erb
170
+ - app/views/piggybak/orders/_shipping.html.erb
171
+ - app/views/piggybak/orders/_google_analytics.html.erb
172
+ - app/views/piggybak/cart/_items.html.erb
173
+ - app/views/piggybak/cart/_form.html.erb
174
+ - app/views/piggybak/cart/show.html.erb
175
+ - app/mailers/piggybak/notifier.rb
176
176
  - bin/piggybak
177
177
  - config/routes.rb
178
- - db/migrate/20111227150106_create_orders.rb
179
- - db/migrate/20111227150322_create_addresses.rb
180
- - db/migrate/20111227150432_create_line_items.rb
181
- - db/migrate/20111227213558_create_variants.rb
182
- - db/migrate/20111228231756_create_shipping_methods.rb
183
- - db/migrate/20111228231806_create_payment_methods.rb
184
- - db/migrate/20111228231829_create_payments.rb
185
- - db/migrate/20111228231838_create_shipments.rb
186
- - db/migrate/20111228235852_create_shipping_method_values.rb
178
+ - db/migrate/20121022161614_fix_sellable_price_scale.rb
179
+ - db/migrate/20120107135459_add_active_to_countries.rb
187
180
  - db/migrate/20111228235853_create_payment_method_values.rb
188
- - db/migrate/20120102154050_create_tax_methods.rb
189
- - db/migrate/20120102162414_create_countries.rb
190
- - db/migrate/20120102162415_create_states.rb
191
- - db/migrate/20120102162703_create_tax_method_values.rb
192
- - db/migrate/20120104020930_populate_countries_and_states.rb
181
+ - db/migrate/20111228231756_create_shipping_methods.rb
193
182
  - db/migrate/20120106010412_create_credits.rb
194
- - db/migrate/20120107135459_add_active_to_countries.rb
195
- - db/migrate/20120111195534_drop_cc_fields.rb
183
+ - db/migrate/20121008175144_line_item_rearchitecture.rb
184
+ - db/migrate/20111227150322_create_addresses.rb
196
185
  - db/migrate/20120627144001_add_price_to_line_item.rb
197
186
  - db/migrate/20120627173754_add_description_to_line_item.rb
187
+ - db/migrate/20120102154050_create_tax_methods.rb
188
+ - db/migrate/20120102162703_create_tax_method_values.rb
198
189
  - db/migrate/20120716191225_add_masked_credit_card_numbers.rb
199
- - db/migrate/20120716195806_order_debugging.rb
200
- - db/migrate/20120717022155_create_order_notes.rb
201
- - db/migrate/20120718142841_modify_credits.rb
202
- - db/migrate/20120815205207_add_to_be_cancelled_to_orders.rb
203
- - db/migrate/20121008160425_rename_variants_to_sellables.rb
204
- - db/migrate/20121008175144_line_item_rearchitecture.rb
190
+ - db/migrate/20111227150106_create_orders.rb
191
+ - db/migrate/20111228231806_create_payment_methods.rb
205
192
  - db/migrate/20121018213421_drop_sort_from_line_items.rb
206
- - db/migrate/20121022161614_fix_sellable_price_scale.rb
207
193
  - db/migrate/20121022164235_convert_all_decimal_fields.rb
208
194
  - db/migrate/20121210211600_change_user_agent_type.rb
195
+ - db/migrate/20111228231838_create_shipments.rb
196
+ - db/migrate/20120104020930_populate_countries_and_states.rb
197
+ - db/migrate/20111227213558_create_variants.rb
198
+ - db/migrate/20120716195806_order_debugging.rb
199
+ - db/migrate/20120102162414_create_countries.rb
200
+ - db/migrate/20120718142841_modify_credits.rb
201
+ - db/migrate/20111227150432_create_line_items.rb
202
+ - db/migrate/20121008160425_rename_variants_to_sellables.rb
203
+ - db/migrate/20111228235852_create_shipping_method_values.rb
204
+ - db/migrate/20111228231829_create_payments.rb
205
+ - db/migrate/20120815205207_add_to_be_cancelled_to_orders.rb
206
+ - db/migrate/20120102162415_create_states.rb
207
+ - db/migrate/20120717022155_create_order_notes.rb
208
+ - db/migrate/20120111195534_drop_cc_fields.rb
209
209
  - lib/acts_as_changer.rb
210
+ - lib/currency.rb
210
211
  - lib/acts_as_orderer.rb
211
212
  - lib/acts_as_sellable.rb
212
- - lib/currency.rb
213
- - lib/formatted_changes.rb
214
213
  - lib/mask_submissions.rb
214
+ - lib/piggybak/version.rb
215
215
  - lib/piggybak/cli.rb
216
216
  - lib/piggybak/config.rb
217
- - lib/piggybak/version.rb
218
217
  - lib/piggybak.rb
218
+ - lib/formatted_changes.rb
219
219
  - LICENSE
220
220
  - Rakefile
221
221
  - README.md
@@ -233,15 +233,21 @@ required_ruby_version: !ruby/object:Gem::Requirement
233
233
  - - ! '>='
234
234
  - !ruby/object:Gem::Version
235
235
  version: '0'
236
+ segments:
237
+ - 0
238
+ hash: -3262820851229346981
236
239
  required_rubygems_version: !ruby/object:Gem::Requirement
237
240
  none: false
238
241
  requirements:
239
242
  - - ! '>='
240
243
  - !ruby/object:Gem::Version
241
244
  version: '0'
245
+ segments:
246
+ - 0
247
+ hash: -3262820851229346981
242
248
  requirements: []
243
249
  rubyforge_project:
244
- rubygems_version: 1.8.24
250
+ rubygems_version: 1.8.23
245
251
  signing_key:
246
252
  specification_version: 3
247
253
  summary: Mountable Ruby on Rails Ecommerce.