piggybak 0.6.18 → 0.6.19

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.18)
4
+ piggybak (0.6.19)
5
5
  activemerchant
6
6
  countries
7
7
  devise
@@ -13,7 +13,7 @@ class Piggybak::Sellable < ActiveRecord::Base
13
13
  has_many :line_items, :as => :reference, :inverse_of => :reference
14
14
 
15
15
  def admin_label
16
- "Sellable: #{self.description}"
16
+ self.description
17
17
  end
18
18
 
19
19
  def update_inventory(purchased)
@@ -106,9 +106,10 @@ module Piggybak
106
106
  RailsAdmin::Config.reset_model(Piggybak::LineItem)
107
107
 
108
108
  RailsAdmin.config do |config|
109
+ config.label_methods << :admin_label
110
+
109
111
  config.model Piggybak::LineItem do
110
112
  label "Line Item"
111
- object_label_method :admin_label
112
113
  visible false
113
114
 
114
115
  edit do
@@ -136,7 +137,6 @@ module Piggybak
136
137
 
137
138
  config.model Piggybak::Sellable do
138
139
  label "Sellable"
139
- object_label_method :admin_label
140
140
  visible false
141
141
  edit do
142
142
  field :sku
@@ -254,7 +254,6 @@ module Piggybak
254
254
  end
255
255
 
256
256
  config.model Piggybak::OrderNote do
257
- object_label_method :admin_label
258
257
  visible false
259
258
  list do
260
259
  field :user if defined?(User)
@@ -287,7 +286,6 @@ module Piggybak
287
286
 
288
287
  config.model Piggybak::Address do
289
288
  label "Address"
290
- object_label_method :admin_label
291
289
  visible false
292
290
 
293
291
  edit do
@@ -381,7 +379,6 @@ module Piggybak
381
379
  config.model Piggybak::PaymentMethod do
382
380
  navigation_label "Configuration"
383
381
  weight 2
384
- object_label_method :admin_label
385
382
  list do
386
383
  field :description
387
384
  field :active
@@ -401,7 +398,6 @@ module Piggybak
401
398
  end
402
399
 
403
400
  config.model Piggybak::PaymentMethodValue do
404
- object_label_method :admin_label
405
401
  visible false
406
402
  edit do
407
403
  include_all_fields
@@ -413,7 +409,6 @@ module Piggybak
413
409
 
414
410
  config.model Piggybak::ShippingMethod do
415
411
  navigation_label "Configuration"
416
- object_label_method :admin_label
417
412
  edit do
418
413
  field :description do
419
414
  help "This is the label the user sees."
@@ -433,7 +428,6 @@ module Piggybak
433
428
  end
434
429
 
435
430
  config.model Piggybak::ShippingMethodValue do
436
- object_label_method :admin_label
437
431
  visible false
438
432
  edit do
439
433
  include_all_fields
@@ -445,7 +439,6 @@ module Piggybak
445
439
 
446
440
  config.model Piggybak::TaxMethod do
447
441
  navigation_label "Configuration"
448
- object_label_method :admin_label
449
442
  edit do
450
443
  field :description
451
444
  field :klass do
@@ -463,7 +456,6 @@ module Piggybak
463
456
  end
464
457
 
465
458
  config.model Piggybak::TaxMethodValue do
466
- object_label_method :admin_label
467
459
  visible false
468
460
  edit do
469
461
  include_all_fields
@@ -21,7 +21,7 @@ module Piggybak
21
21
  run('rake db:migrate')
22
22
  mount_piggybak_route
23
23
  add_javascript_include_tag
24
- say_welcome
24
+ welcome
25
25
  end
26
26
  end
27
27
 
@@ -1,3 +1,3 @@
1
1
  module Piggybak
2
- VERSION = "0.6.18"
2
+ VERSION = "0.6.19"
3
3
  end
metadata CHANGED
@@ -1,188 +1,215 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: piggybak
3
- version: !ruby/object:Gem::Version
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.6.19
4
5
  prerelease:
5
- version: 0.6.18
6
6
  platform: ruby
7
- authors:
7
+ authors:
8
8
  - Steph Skardal
9
9
  - Tim Case
10
10
  - Brian Buchalter
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
-
15
- date: 2012-11-07 00:00:00 Z
16
- dependencies:
17
- - !ruby/object:Gem::Dependency
14
+ date: 2012-11-14 00:00:00.000000000 Z
15
+ dependencies:
16
+ - !ruby/object:Gem::Dependency
18
17
  name: rails
19
- requirement: &id001 !ruby/object:Gem::Requirement
18
+ requirement: !ruby/object:Gem::Requirement
20
19
  none: false
21
- requirements:
20
+ requirements:
22
21
  - - ~>
23
- - !ruby/object:Gem::Version
22
+ - !ruby/object:Gem::Version
24
23
  version: 3.2.8
25
24
  type: :runtime
26
25
  prerelease: false
27
- version_requirements: *id001
28
- - !ruby/object:Gem::Dependency
26
+ version_requirements: !ruby/object:Gem::Requirement
27
+ none: false
28
+ requirements:
29
+ - - ~>
30
+ - !ruby/object:Gem::Version
31
+ version: 3.2.8
32
+ - !ruby/object:Gem::Dependency
29
33
  name: countries
30
- requirement: &id002 !ruby/object:Gem::Requirement
34
+ requirement: !ruby/object:Gem::Requirement
31
35
  none: false
32
- requirements:
33
- - - ">="
34
- - !ruby/object:Gem::Version
35
- version: "0"
36
+ requirements:
37
+ - - ! '>='
38
+ - !ruby/object:Gem::Version
39
+ version: '0'
36
40
  type: :runtime
37
41
  prerelease: false
38
- version_requirements: *id002
39
- - !ruby/object:Gem::Dependency
42
+ version_requirements: !ruby/object:Gem::Requirement
43
+ none: false
44
+ requirements:
45
+ - - ! '>='
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ - !ruby/object:Gem::Dependency
40
49
  name: activemerchant
41
- requirement: &id003 !ruby/object:Gem::Requirement
50
+ requirement: !ruby/object:Gem::Requirement
42
51
  none: false
43
- requirements:
44
- - - ">="
45
- - !ruby/object:Gem::Version
46
- version: "0"
52
+ requirements:
53
+ - - ! '>='
54
+ - !ruby/object:Gem::Version
55
+ version: '0'
47
56
  type: :runtime
48
57
  prerelease: false
49
- version_requirements: *id003
50
- - !ruby/object:Gem::Dependency
58
+ version_requirements: !ruby/object:Gem::Requirement
59
+ none: false
60
+ requirements:
61
+ - - ! '>='
62
+ - !ruby/object:Gem::Version
63
+ version: '0'
64
+ - !ruby/object:Gem::Dependency
51
65
  name: devise
52
- requirement: &id004 !ruby/object:Gem::Requirement
66
+ requirement: !ruby/object:Gem::Requirement
53
67
  none: false
54
- requirements:
55
- - - ">="
56
- - !ruby/object:Gem::Version
57
- version: "0"
68
+ requirements:
69
+ - - ! '>='
70
+ - !ruby/object:Gem::Version
71
+ version: '0'
58
72
  type: :runtime
59
73
  prerelease: false
60
- version_requirements: *id004
61
- - !ruby/object:Gem::Dependency
74
+ version_requirements: !ruby/object:Gem::Requirement
75
+ none: false
76
+ requirements:
77
+ - - ! '>='
78
+ - !ruby/object:Gem::Version
79
+ version: '0'
80
+ - !ruby/object:Gem::Dependency
62
81
  name: rails_admin
63
- requirement: &id005 !ruby/object:Gem::Requirement
82
+ requirement: !ruby/object:Gem::Requirement
64
83
  none: false
65
- requirements:
66
- - - ">="
67
- - !ruby/object:Gem::Version
68
- version: "0"
84
+ requirements:
85
+ - - ! '>='
86
+ - !ruby/object:Gem::Version
87
+ version: '0'
69
88
  type: :runtime
70
89
  prerelease: false
71
- version_requirements: *id005
72
- - !ruby/object:Gem::Dependency
90
+ version_requirements: !ruby/object:Gem::Requirement
91
+ none: false
92
+ requirements:
93
+ - - ! '>='
94
+ - !ruby/object:Gem::Version
95
+ version: '0'
96
+ - !ruby/object:Gem::Dependency
73
97
  name: rack-ssl-enforcer
74
- requirement: &id006 !ruby/object:Gem::Requirement
98
+ requirement: !ruby/object:Gem::Requirement
75
99
  none: false
76
- requirements:
77
- - - ">="
78
- - !ruby/object:Gem::Version
79
- version: "0"
100
+ requirements:
101
+ - - ! '>='
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
80
104
  type: :runtime
81
105
  prerelease: false
82
- version_requirements: *id006
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ none: false
108
+ requirements:
109
+ - - ! '>='
110
+ - !ruby/object:Gem::Version
111
+ version: '0'
83
112
  description: Mountable Ruby on Rails Ecommerce.
84
- email:
113
+ email:
85
114
  - piggybak@endpoint.com
86
- executables:
115
+ executables:
87
116
  - piggybak
88
117
  extensions: []
89
-
90
118
  extra_rdoc_files: []
91
-
92
- files:
93
- - app/helpers/piggybak_helper.rb
94
- - app/models/piggybak/line_item.rb
95
- - app/models/piggybak/order.rb
96
- - app/models/piggybak/tax_method_value.rb
97
- - app/models/piggybak/tax_calculator/percent.rb
119
+ files:
120
+ - app/controllers/piggybak/orders_controller.rb
121
+ - app/controllers/piggybak/cart_controller.rb
122
+ - app/assets/javascripts/piggybak/piggybak.js
123
+ - app/assets/javascripts/piggybak/piggybak.states.js
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
128
+ - app/models/piggybak/payment_calculator/fake.rb
129
+ - app/models/piggybak/payment_calculator/authorize_net.rb
98
130
  - app/models/piggybak/address.rb
99
- - app/models/piggybak/order_note.rb
100
- - app/models/piggybak/adjustment.rb
101
131
  - app/models/piggybak/sellable.rb
102
- - app/models/piggybak/state.rb
103
- - app/models/piggybak/country.rb
132
+ - app/models/piggybak/line_item.rb
133
+ - app/models/piggybak/shipment.rb
104
134
  - app/models/piggybak/tax_method.rb
105
- - app/models/piggybak/cart.rb
106
- - app/models/piggybak/payment.rb
107
135
  - app/models/piggybak/payment_method_value.rb
108
- - app/models/piggybak/payment_calculator/authorize_net.rb
109
- - app/models/piggybak/payment_calculator/fake.rb
110
- - app/models/piggybak/shipment.rb
136
+ - app/models/piggybak/shipping_method_value.rb
137
+ - app/models/piggybak/country.rb
138
+ - app/models/piggybak/cart.rb
111
139
  - app/models/piggybak/shipping_method.rb
112
- - app/models/piggybak/payment_method.rb
140
+ - app/models/piggybak/tax_method_value.rb
141
+ - app/models/piggybak/tax_calculator/percent.rb
113
142
  - app/models/piggybak/shipping_calculator/flat_rate.rb
114
143
  - app/models/piggybak/shipping_calculator/free.rb
115
144
  - app/models/piggybak/shipping_calculator/range.rb
116
- - app/models/piggybak/shipping_method_value.rb
117
- - app/assets/javascripts/piggybak/piggybak.states.js
118
- - app/assets/javascripts/piggybak/piggybak-application.js
119
- - app/assets/javascripts/piggybak/jquery.validate.js
120
- - app/assets/javascripts/piggybak/jquery.ajaxq.js
121
- - app/assets/javascripts/piggybak/piggybak.js
122
- - app/assets/images/ajax-loader.gif
123
- - app/controllers/piggybak/orders_controller.rb
124
- - app/controllers/piggybak/cart_controller.rb
125
- - app/mailers/piggybak/notifier.rb
126
- - app/views/rails_admin/main/_order_details.html.erb
127
- - app/views/rails_admin/main/_location_select.html.haml
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
150
+ - app/models/piggybak/state.rb
151
+ - app/helpers/piggybak_helper.rb
128
152
  - app/views/rails_admin/main/_recorded_changer.html.erb
129
153
  - app/views/rails_admin/main/_polymorphic_nested.html.haml
130
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
131
157
  - app/views/rails_admin/main/_ip_address.html.erb
132
- - app/views/piggybak/cart/_items.html.erb
133
- - app/views/piggybak/cart/_form.html.erb
134
- - app/views/piggybak/cart/show.html.erb
158
+ - app/views/piggybak/notifier/order_notification.text.erb
135
159
  - app/views/piggybak/orders/list.html.erb
136
160
  - app/views/piggybak/orders/submit.html.erb
161
+ - app/views/piggybak/orders/no_access.text.erb
162
+ - app/views/piggybak/orders/receipt.html.erb
137
163
  - app/views/piggybak/orders/_details.html.erb
138
164
  - app/views/piggybak/orders/_address_form.html.erb
139
165
  - app/views/piggybak/orders/download.text.erb
140
- - app/views/piggybak/orders/no_access.text.erb
141
- - app/views/piggybak/orders/receipt.html.erb
142
166
  - app/views/piggybak/orders/_google_analytics.html.erb
143
- - app/views/piggybak/notifier/order_notification.text.erb
167
+ - app/views/piggybak/cart/_items.html.erb
168
+ - app/views/piggybak/cart/_form.html.erb
169
+ - app/views/piggybak/cart/show.html.erb
170
+ - app/mailers/piggybak/notifier.rb
144
171
  - bin/piggybak
145
172
  - config/routes.rb
146
173
  - db/migrate/20121022161614_fix_sellable_price_scale.rb
147
- - db/migrate/20121022164235_convert_all_decimal_fields.rb
148
- - db/migrate/20111227213558_create_variants.rb
149
- - db/migrate/20120104020930_populate_countries_and_states.rb
150
- - db/migrate/20120102162703_create_tax_method_values.rb
174
+ - db/migrate/20120107135459_add_active_to_countries.rb
175
+ - db/migrate/20111228235853_create_payment_method_values.rb
151
176
  - db/migrate/20111228231756_create_shipping_methods.rb
177
+ - db/migrate/20120106010412_create_credits.rb
178
+ - db/migrate/20121008175144_line_item_rearchitecture.rb
179
+ - db/migrate/20111227150322_create_addresses.rb
152
180
  - db/migrate/20120627144001_add_price_to_line_item.rb
181
+ - db/migrate/20120627173754_add_description_to_line_item.rb
182
+ - db/migrate/20120102154050_create_tax_methods.rb
183
+ - db/migrate/20120102162703_create_tax_method_values.rb
184
+ - db/migrate/20120716191225_add_masked_credit_card_numbers.rb
153
185
  - db/migrate/20111227150106_create_orders.rb
154
- - db/migrate/20111228235853_create_payment_method_values.rb
155
- - db/migrate/20111228231838_create_shipments.rb
156
- - db/migrate/20120815205207_add_to_be_cancelled_to_orders.rb
186
+ - db/migrate/20111228231806_create_payment_methods.rb
157
187
  - db/migrate/20121018213421_drop_sort_from_line_items.rb
158
- - db/migrate/20120102162414_create_countries.rb
159
- - db/migrate/20120627173754_add_description_to_line_item.rb
188
+ - db/migrate/20121022164235_convert_all_decimal_fields.rb
189
+ - db/migrate/20111228231838_create_shipments.rb
190
+ - db/migrate/20120104020930_populate_countries_and_states.rb
191
+ - db/migrate/20111227213558_create_variants.rb
160
192
  - db/migrate/20120716195806_order_debugging.rb
161
- - db/migrate/20120102154050_create_tax_methods.rb
193
+ - db/migrate/20120102162414_create_countries.rb
194
+ - db/migrate/20120718142841_modify_credits.rb
195
+ - db/migrate/20111227150432_create_line_items.rb
162
196
  - db/migrate/20121008160425_rename_variants_to_sellables.rb
163
- - db/migrate/20111227150322_create_addresses.rb
164
- - db/migrate/20111228231806_create_payment_methods.rb
165
- - db/migrate/20120111195534_drop_cc_fields.rb
197
+ - db/migrate/20111228235852_create_shipping_method_values.rb
166
198
  - db/migrate/20111228231829_create_payments.rb
167
- - db/migrate/20121008175144_line_item_rearchitecture.rb
199
+ - db/migrate/20120815205207_add_to_be_cancelled_to_orders.rb
168
200
  - db/migrate/20120102162415_create_states.rb
169
- - db/migrate/20111227150432_create_line_items.rb
170
- - db/migrate/20120106010412_create_credits.rb
171
- - db/migrate/20111228235852_create_shipping_method_values.rb
172
- - db/migrate/20120716191225_add_masked_credit_card_numbers.rb
173
201
  - db/migrate/20120717022155_create_order_notes.rb
174
- - db/migrate/20120718142841_modify_credits.rb
175
- - db/migrate/20120107135459_add_active_to_countries.rb
176
- - lib/piggybak.rb
177
- - lib/currency.rb
202
+ - db/migrate/20120111195534_drop_cc_fields.rb
178
203
  - lib/acts_as_changer.rb
179
- - lib/mask_submissions.rb
180
- - lib/acts_as_sellable.rb
181
- - lib/formatted_changes.rb
204
+ - lib/currency.rb
182
205
  - lib/acts_as_orderer.rb
206
+ - lib/acts_as_sellable.rb
207
+ - lib/mask_submissions.rb
183
208
  - lib/piggybak/version.rb
184
209
  - lib/piggybak/cli.rb
185
210
  - lib/piggybak/config.rb
211
+ - lib/piggybak.rb
212
+ - lib/formatted_changes.rb
186
213
  - LICENSE
187
214
  - Rakefile
188
215
  - README.md
@@ -190,36 +217,32 @@ files:
190
217
  - Gemfile.lock
191
218
  homepage: http://www.piggybak.org/
192
219
  licenses: []
193
-
194
220
  post_install_message:
195
221
  rdoc_options: []
196
-
197
- require_paths:
222
+ require_paths:
198
223
  - lib
199
- required_ruby_version: !ruby/object:Gem::Requirement
224
+ required_ruby_version: !ruby/object:Gem::Requirement
200
225
  none: false
201
- requirements:
202
- - - ">="
203
- - !ruby/object:Gem::Version
204
- hash: -559600283690064897
205
- segments:
226
+ requirements:
227
+ - - ! '>='
228
+ - !ruby/object:Gem::Version
229
+ version: '0'
230
+ segments:
206
231
  - 0
207
- version: "0"
208
- required_rubygems_version: !ruby/object:Gem::Requirement
232
+ hash: -3807440579532118395
233
+ required_rubygems_version: !ruby/object:Gem::Requirement
209
234
  none: false
210
- requirements:
211
- - - ">="
212
- - !ruby/object:Gem::Version
213
- hash: -559600283690064897
214
- segments:
235
+ requirements:
236
+ - - ! '>='
237
+ - !ruby/object:Gem::Version
238
+ version: '0'
239
+ segments:
215
240
  - 0
216
- version: "0"
241
+ hash: -3807440579532118395
217
242
  requirements: []
218
-
219
243
  rubyforge_project:
220
244
  rubygems_version: 1.8.23
221
245
  signing_key:
222
246
  specification_version: 3
223
247
  summary: Mountable Ruby on Rails Ecommerce.
224
248
  test_files: []
225
-