piggybak 0.5.5 → 0.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (47) hide show
  1. data/README.md +32 -25
  2. data/VERSION +1 -1
  3. data/app/assets/javascripts/piggybak.js +11 -1
  4. data/app/assets/javascripts/piggybak.states.js +6 -5
  5. data/app/controllers/piggybak/orders_controller.rb +14 -22
  6. data/app/models/piggybak/address.rb +4 -1
  7. data/app/models/piggybak/adjustment.rb +1 -25
  8. data/app/models/piggybak/cart.rb +18 -17
  9. data/app/models/piggybak/line_item.rb +106 -19
  10. data/app/models/piggybak/order.rb +94 -108
  11. data/app/models/piggybak/payment.rb +25 -27
  12. data/app/models/piggybak/payment_method.rb +3 -1
  13. data/app/models/piggybak/payment_method_value.rb +3 -1
  14. data/app/models/piggybak/{variant.rb → sellable.rb} +6 -4
  15. data/app/models/piggybak/shipment.rb +4 -10
  16. data/app/models/piggybak/shipping_calculator/flat_rate.rb +4 -0
  17. data/app/models/piggybak/shipping_calculator/free.rb +4 -0
  18. data/app/models/piggybak/shipping_calculator/range.rb +4 -0
  19. data/app/models/piggybak/shipping_method.rb +1 -1
  20. data/app/models/piggybak/tax_method.rb +1 -1
  21. data/app/views/piggybak/cart/_form.html.erb +7 -7
  22. data/app/views/piggybak/cart/_items.html.erb +14 -5
  23. data/app/views/piggybak/notifier/order_notification.text.erb +10 -2
  24. data/app/views/piggybak/orders/_details.html.erb +14 -5
  25. data/app/views/piggybak/orders/_google_analytics.html.erb +3 -3
  26. data/app/views/piggybak/orders/download.text.erb +6 -6
  27. data/app/views/piggybak/orders/submit.html.erb +55 -49
  28. data/app/views/rails_admin/main/_location_select.html.haml +3 -3
  29. data/app/views/rails_admin/main/_order_details.html.erb +12 -24
  30. data/app/views/rails_admin/main/_polymorphic_nested.html.haml +29 -0
  31. data/bin/piggybak +12 -0
  32. data/config/routes.rb +0 -2
  33. data/db/migrate/20121008160425_rename_variants_to_sellables.rb +11 -0
  34. data/db/migrate/20121008175144_line_item_rearchitecture.rb +96 -0
  35. data/lib/acts_as_sellable.rb +21 -0
  36. data/lib/formatted_changes.rb +2 -2
  37. data/lib/piggybak.rb +80 -126
  38. data/lib/piggybak/cli.rb +81 -0
  39. data/lib/piggybak/config.rb +21 -0
  40. data/piggybak.gemspec +10 -7
  41. data/spec/dummy_app/app/models/image.rb +1 -1
  42. data/spec/factories.rb +1 -1
  43. metadata +52 -49
  44. data/app/controllers/piggybak/payments_controller.rb +0 -14
  45. data/app/views/rails_admin/main/_order_notes.html.erb +0 -1
  46. data/app/views/rails_admin/main/_payment_refund.html.haml +0 -6
  47. data/lib/acts_as_variant.rb +0 -15
@@ -0,0 +1,81 @@
1
+ require 'thor'
2
+
3
+ module Piggybak
4
+ class CLI < Thor
5
+ include Thor::Actions
6
+
7
+ desc "install", "install and configure piggybak"
8
+ def install
9
+ inject_devise
10
+ inject_rails_admin
11
+ run('bundle install')
12
+ run('rake piggybak_engine:install:migrations')
13
+ run('rake db:migrate')
14
+ run('rails generate devise:install')
15
+ run('rails generate devise User')
16
+ run('rake db:migrate')
17
+ run('rails g rails_admin:install')
18
+ run('rake db:migrate')
19
+ mount_piggybak_route
20
+ add_javascript_include_tag
21
+ config_assets_precompile
22
+ welcome
23
+ end
24
+
25
+ desc "inject_devise", "add devise"
26
+ def inject_devise
27
+ puts 'add reference to devise in GEMFILE'
28
+ insert_into_file "GEMFILE", "gem 'devise'\n", :after => "source 'https://rubygems.org'\n"
29
+ end
30
+
31
+
32
+ desc "inject_rails_admin", "add rails_admin"
33
+ def inject_rails_admin
34
+ puts 'add reference to rails_admin in GEMFILE'
35
+ insert_into_file "GEMFILE", "gem 'rails_admin'\n", :after => "gem 'devise'\n"
36
+ end
37
+
38
+ desc "mount_piggybak_route", "mount piggbak route"
39
+ def mount_piggybak_route
40
+ insert_into_file "config/routes.rb", "\n mount Piggybak::Engine => '/checkout', :as => 'piggybak'\n", :after => "Village::Application.routes.draw do\n"
41
+ end
42
+
43
+ desc "add_javascript_include_tag", "add javascript include tag to application layout"
44
+ def add_javascript_include_tag
45
+ jit_code_block = <<-eos
46
+ \n <% if "\#{params[:controller]}#\#\{params[:action]\}" == "piggybak/orders#submit" -%>
47
+ <%= javascript_include_tag "piggybak-application" %>\n <% end -%>
48
+ eos
49
+
50
+ insert_into_file 'app/views/layouts/application.html.erb', jit_code_block, :after => "<%= javascript_include_tag \"application\" %>"
51
+
52
+ end
53
+
54
+ desc "create user class", "Create a user class"
55
+ def create_user_class
56
+ run('rails generate model User')
57
+ end
58
+
59
+ desc "config_assets-precompile", "amust add this to your production configuration, in order for this asset to be precompiled"
60
+ def config_assets_precompile
61
+ insert_into_file 'config/environments/production.rb', "\n config.assets.precompile += %w( piggybak-application.js )", :after => 'Village::Application.configure do'
62
+ end
63
+
64
+ desc "welcome", "invite to piggybak"
65
+ def welcome
66
+ say ""
67
+ say ""
68
+ say ""
69
+ say "******************************************************************"
70
+ say "******************************************************************"
71
+ say "Piggybak Successfully Installed!"
72
+ say "******************************************************************"
73
+ say ""
74
+ say "Add acts_as_sellable to any model that will be a sellable item."
75
+ say ""
76
+ say "class Product < ActiveRecord::Base"
77
+ say " acts_as_sellable"
78
+ say "end"
79
+ end
80
+ end
81
+ end
@@ -11,6 +11,7 @@ module Piggybak
11
11
  attr_accessor :logging
12
12
  attr_accessor :logging_file
13
13
  attr_accessor :whois_url
14
+ attr_accessor :line_item_types
14
15
 
15
16
  def reset
16
17
  @email_sender = "support@piggybak.org"
@@ -23,6 +24,26 @@ module Piggybak
23
24
  "::Piggybak::ShippingCalculator::Range"]
24
25
  @tax_calculators = ["::Piggybak::TaxCalculator::Percent"]
25
26
 
27
+ @line_item_types = { :sellable => { :visible => true,
28
+ :fields => ["sellable_id", "quantity"],
29
+ :allow_destroy => true },
30
+ :payment => { :visible => true,
31
+ :nested_attrs => true,
32
+ :fields => ["payment"],
33
+ :allow_destroy => false,
34
+ :class_name => "::Piggybak::Payment" },
35
+ :shipment => { :visible => true,
36
+ :nested_attrs => true,
37
+ :fields => ["shipment"],
38
+ :allow_destroy => true,
39
+ :class_name => "::Piggybak::Shipment" },
40
+ :adjustment => { :visible => true,
41
+ :fields => ["description", "price"],
42
+ :allow_destroy => true },
43
+ :tax => { :visible => false,
44
+ :allow_destroy => false }
45
+ }
46
+
26
47
  @default_country = "US"
27
48
 
28
49
  @activemerchant_mode = :production
data/piggybak.gemspec CHANGED
@@ -5,13 +5,14 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "piggybak"
8
- s.version = "0.5.5"
8
+ s.version = "0.6.0"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Steph Skardal", "Brian Buchalter"]
12
- s.date = "2012-09-24"
12
+ s.date = "2012-10-17"
13
13
  s.description = "Mountable ecommerce"
14
14
  s.email = "steph@endpoint.com"
15
+ s.executables = ["piggybak"]
15
16
  s.extra_rdoc_files = [
16
17
  "LICENSE",
17
18
  "README.md"
@@ -31,7 +32,6 @@ Gem::Specification.new do |s|
31
32
  "app/assets/javascripts/piggybak.states.js",
32
33
  "app/controllers/piggybak/cart_controller.rb",
33
34
  "app/controllers/piggybak/orders_controller.rb",
34
- "app/controllers/piggybak/payments_controller.rb",
35
35
  "app/helpers/piggybak_helper.rb",
36
36
  "app/mailers/piggybak/notifier.rb",
37
37
  "app/models/piggybak/address.rb",
@@ -46,6 +46,7 @@ Gem::Specification.new do |s|
46
46
  "app/models/piggybak/payment_calculator/fake.rb",
47
47
  "app/models/piggybak/payment_method.rb",
48
48
  "app/models/piggybak/payment_method_value.rb",
49
+ "app/models/piggybak/sellable.rb",
49
50
  "app/models/piggybak/shipment.rb",
50
51
  "app/models/piggybak/shipping_calculator/flat_rate.rb",
51
52
  "app/models/piggybak/shipping_calculator/free.rb",
@@ -56,7 +57,6 @@ Gem::Specification.new do |s|
56
57
  "app/models/piggybak/tax_calculator/percent.rb",
57
58
  "app/models/piggybak/tax_method.rb",
58
59
  "app/models/piggybak/tax_method_value.rb",
59
- "app/models/piggybak/variant.rb",
60
60
  "app/views/piggybak/cart/_form.html.erb",
61
61
  "app/views/piggybak/cart/_items.html.erb",
62
62
  "app/views/piggybak/cart/show.html.erb",
@@ -72,9 +72,9 @@ Gem::Specification.new do |s|
72
72
  "app/views/rails_admin/main/_ip_address.html.erb",
73
73
  "app/views/rails_admin/main/_location_select.html.haml",
74
74
  "app/views/rails_admin/main/_order_details.html.erb",
75
- "app/views/rails_admin/main/_order_notes.html.erb",
76
- "app/views/rails_admin/main/_payment_refund.html.haml",
75
+ "app/views/rails_admin/main/_polymorphic_nested.html.haml",
77
76
  "app/views/rails_admin/main/_recorded_changer.html.erb",
77
+ "bin/piggybak",
78
78
  "config/routes.rb",
79
79
  "db/migrate/20111227150106_create_orders.rb",
80
80
  "db/migrate/20111227150322_create_addresses.rb",
@@ -101,13 +101,16 @@ Gem::Specification.new do |s|
101
101
  "db/migrate/20120717022155_create_order_notes.rb",
102
102
  "db/migrate/20120718142841_modify_credits.rb",
103
103
  "db/migrate/20120815205207_add_to_be_cancelled_to_orders.rb",
104
+ "db/migrate/20121008160425_rename_variants_to_sellables.rb",
105
+ "db/migrate/20121008175144_line_item_rearchitecture.rb",
104
106
  "lib/acts_as_changer.rb",
105
107
  "lib/acts_as_orderer.rb",
106
- "lib/acts_as_variant.rb",
108
+ "lib/acts_as_sellable.rb",
107
109
  "lib/currency.rb",
108
110
  "lib/formatted_changes.rb",
109
111
  "lib/mask_submissions.rb",
110
112
  "lib/piggybak.rb",
113
+ "lib/piggybak/cli.rb",
111
114
  "lib/piggybak/config.rb",
112
115
  "piggybak.gemspec",
113
116
  "spec/TODO",
@@ -1,3 +1,3 @@
1
1
  class Image < ActiveRecord::Base
2
- acts_as_variant
2
+ acts_as_sellable
3
3
  end
data/spec/factories.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  FactoryGirl.define do
2
- factory :variant do
2
+ factory :sellable do
3
3
  end
4
4
 
5
5
  factory :order do
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.5.5
4
+ version: 0.6.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,11 +10,11 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2012-09-24 00:00:00.000000000 Z
13
+ date: 2012-10-17 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: countries
17
- requirement: &22848720 !ruby/object:Gem::Requirement
17
+ requirement: &16989400 !ruby/object:Gem::Requirement
18
18
  none: false
19
19
  requirements:
20
20
  - - ! '>='
@@ -22,10 +22,10 @@ dependencies:
22
22
  version: '0'
23
23
  type: :runtime
24
24
  prerelease: false
25
- version_requirements: *22848720
25
+ version_requirements: *16989400
26
26
  - !ruby/object:Gem::Dependency
27
27
  name: bundler
28
- requirement: &22847040 !ruby/object:Gem::Requirement
28
+ requirement: &16985400 !ruby/object:Gem::Requirement
29
29
  none: false
30
30
  requirements:
31
31
  - - ~>
@@ -33,10 +33,10 @@ dependencies:
33
33
  version: 1.0.0
34
34
  type: :development
35
35
  prerelease: false
36
- version_requirements: *22847040
36
+ version_requirements: *16985400
37
37
  - !ruby/object:Gem::Dependency
38
38
  name: jeweler
39
- requirement: &22843440 !ruby/object:Gem::Requirement
39
+ requirement: &16983820 !ruby/object:Gem::Requirement
40
40
  none: false
41
41
  requirements:
42
42
  - - ~>
@@ -44,10 +44,10 @@ dependencies:
44
44
  version: 1.6.4
45
45
  type: :development
46
46
  prerelease: false
47
- version_requirements: *22843440
47
+ version_requirements: *16983820
48
48
  - !ruby/object:Gem::Dependency
49
49
  name: rspec
50
- requirement: &22874480 !ruby/object:Gem::Requirement
50
+ requirement: &17012080 !ruby/object:Gem::Requirement
51
51
  none: false
52
52
  requirements:
53
53
  - - ! '>='
@@ -55,10 +55,10 @@ dependencies:
55
55
  version: '0'
56
56
  type: :development
57
57
  prerelease: false
58
- version_requirements: *22874480
58
+ version_requirements: *17012080
59
59
  - !ruby/object:Gem::Dependency
60
60
  name: rspec-rails
61
- requirement: &22873000 !ruby/object:Gem::Requirement
61
+ requirement: &17011100 !ruby/object:Gem::Requirement
62
62
  none: false
63
63
  requirements:
64
64
  - - ~>
@@ -66,10 +66,10 @@ dependencies:
66
66
  version: 2.7.0
67
67
  type: :development
68
68
  prerelease: false
69
- version_requirements: *22873000
69
+ version_requirements: *17011100
70
70
  - !ruby/object:Gem::Dependency
71
71
  name: factory_girl
72
- requirement: &22870320 !ruby/object:Gem::Requirement
72
+ requirement: &17009980 !ruby/object:Gem::Requirement
73
73
  none: false
74
74
  requirements:
75
75
  - - ! '>='
@@ -77,10 +77,10 @@ dependencies:
77
77
  version: '0'
78
78
  type: :development
79
79
  prerelease: false
80
- version_requirements: *22870320
80
+ version_requirements: *17009980
81
81
  - !ruby/object:Gem::Dependency
82
82
  name: diff-lcs
83
- requirement: &22868020 !ruby/object:Gem::Requirement
83
+ requirement: &17008880 !ruby/object:Gem::Requirement
84
84
  none: false
85
85
  requirements:
86
86
  - - ! '>='
@@ -88,10 +88,10 @@ dependencies:
88
88
  version: '0'
89
89
  type: :development
90
90
  prerelease: false
91
- version_requirements: *22868020
91
+ version_requirements: *17008880
92
92
  - !ruby/object:Gem::Dependency
93
93
  name: shoulda
94
- requirement: &21836400 !ruby/object:Gem::Requirement
94
+ requirement: &17008080 !ruby/object:Gem::Requirement
95
95
  none: false
96
96
  requirements:
97
97
  - - ! '>='
@@ -99,10 +99,10 @@ dependencies:
99
99
  version: '0'
100
100
  type: :development
101
101
  prerelease: false
102
- version_requirements: *21836400
102
+ version_requirements: *17008080
103
103
  - !ruby/object:Gem::Dependency
104
104
  name: simplecov
105
- requirement: &21834120 !ruby/object:Gem::Requirement
105
+ requirement: &17007260 !ruby/object:Gem::Requirement
106
106
  none: false
107
107
  requirements:
108
108
  - - ! '>='
@@ -110,10 +110,10 @@ dependencies:
110
110
  version: '0'
111
111
  type: :development
112
112
  prerelease: false
113
- version_requirements: *21834120
113
+ version_requirements: *17007260
114
114
  - !ruby/object:Gem::Dependency
115
115
  name: tzinfo
116
- requirement: &21833320 !ruby/object:Gem::Requirement
116
+ requirement: &17006000 !ruby/object:Gem::Requirement
117
117
  none: false
118
118
  requirements:
119
119
  - - ! '>='
@@ -121,10 +121,10 @@ dependencies:
121
121
  version: '0'
122
122
  type: :development
123
123
  prerelease: false
124
- version_requirements: *21833320
124
+ version_requirements: *17006000
125
125
  - !ruby/object:Gem::Dependency
126
126
  name: devise
127
- requirement: &21832520 !ruby/object:Gem::Requirement
127
+ requirement: &17021900 !ruby/object:Gem::Requirement
128
128
  none: false
129
129
  requirements:
130
130
  - - ! '>='
@@ -132,10 +132,10 @@ dependencies:
132
132
  version: '0'
133
133
  type: :development
134
134
  prerelease: false
135
- version_requirements: *21832520
135
+ version_requirements: *17021900
136
136
  - !ruby/object:Gem::Dependency
137
137
  name: rails_admin
138
- requirement: &22906840 !ruby/object:Gem::Requirement
138
+ requirement: &17020920 !ruby/object:Gem::Requirement
139
139
  none: false
140
140
  requirements:
141
141
  - - ! '>='
@@ -143,10 +143,10 @@ dependencies:
143
143
  version: '0'
144
144
  type: :runtime
145
145
  prerelease: false
146
- version_requirements: *22906840
146
+ version_requirements: *17020920
147
147
  - !ruby/object:Gem::Dependency
148
148
  name: devise
149
- requirement: &22905220 !ruby/object:Gem::Requirement
149
+ requirement: &17020000 !ruby/object:Gem::Requirement
150
150
  none: false
151
151
  requirements:
152
152
  - - ! '>='
@@ -154,10 +154,10 @@ dependencies:
154
154
  version: '0'
155
155
  type: :runtime
156
156
  prerelease: false
157
- version_requirements: *22905220
157
+ version_requirements: *17020000
158
158
  - !ruby/object:Gem::Dependency
159
159
  name: activemerchant
160
- requirement: &22904240 !ruby/object:Gem::Requirement
160
+ requirement: &17018320 !ruby/object:Gem::Requirement
161
161
  none: false
162
162
  requirements:
163
163
  - - ! '>='
@@ -165,10 +165,10 @@ dependencies:
165
165
  version: '0'
166
166
  type: :runtime
167
167
  prerelease: false
168
- version_requirements: *22904240
168
+ version_requirements: *17018320
169
169
  - !ruby/object:Gem::Dependency
170
170
  name: countries
171
- requirement: &22903260 !ruby/object:Gem::Requirement
171
+ requirement: &17016360 !ruby/object:Gem::Requirement
172
172
  none: false
173
173
  requirements:
174
174
  - - ! '>='
@@ -176,10 +176,10 @@ dependencies:
176
176
  version: '0'
177
177
  type: :runtime
178
178
  prerelease: false
179
- version_requirements: *22903260
179
+ version_requirements: *17016360
180
180
  - !ruby/object:Gem::Dependency
181
181
  name: rspec
182
- requirement: &22902000 !ruby/object:Gem::Requirement
182
+ requirement: &17015320 !ruby/object:Gem::Requirement
183
183
  none: false
184
184
  requirements:
185
185
  - - ! '>='
@@ -187,10 +187,10 @@ dependencies:
187
187
  version: '0'
188
188
  type: :development
189
189
  prerelease: false
190
- version_requirements: *22902000
190
+ version_requirements: *17015320
191
191
  - !ruby/object:Gem::Dependency
192
192
  name: rspec-rails
193
- requirement: &22901200 !ruby/object:Gem::Requirement
193
+ requirement: &17052160 !ruby/object:Gem::Requirement
194
194
  none: false
195
195
  requirements:
196
196
  - - ! '>='
@@ -198,10 +198,10 @@ dependencies:
198
198
  version: '0'
199
199
  type: :development
200
200
  prerelease: false
201
- version_requirements: *22901200
201
+ version_requirements: *17052160
202
202
  - !ruby/object:Gem::Dependency
203
203
  name: diff-lcs
204
- requirement: &22899380 !ruby/object:Gem::Requirement
204
+ requirement: &17051260 !ruby/object:Gem::Requirement
205
205
  none: false
206
206
  requirements:
207
207
  - - ! '>='
@@ -209,10 +209,10 @@ dependencies:
209
209
  version: '0'
210
210
  type: :development
211
211
  prerelease: false
212
- version_requirements: *22899380
212
+ version_requirements: *17051260
213
213
  - !ruby/object:Gem::Dependency
214
214
  name: factory_girl
215
- requirement: &22914620 !ruby/object:Gem::Requirement
215
+ requirement: &17049820 !ruby/object:Gem::Requirement
216
216
  none: false
217
217
  requirements:
218
218
  - - ! '>='
@@ -220,10 +220,10 @@ dependencies:
220
220
  version: '0'
221
221
  type: :development
222
222
  prerelease: false
223
- version_requirements: *22914620
223
+ version_requirements: *17049820
224
224
  - !ruby/object:Gem::Dependency
225
225
  name: shoulda
226
- requirement: &22913260 !ruby/object:Gem::Requirement
226
+ requirement: &17048160 !ruby/object:Gem::Requirement
227
227
  none: false
228
228
  requirements:
229
229
  - - ! '>='
@@ -231,10 +231,11 @@ dependencies:
231
231
  version: '0'
232
232
  type: :development
233
233
  prerelease: false
234
- version_requirements: *22913260
234
+ version_requirements: *17048160
235
235
  description: Mountable ecommerce
236
236
  email: steph@endpoint.com
237
- executables: []
237
+ executables:
238
+ - piggybak
238
239
  extensions: []
239
240
  extra_rdoc_files:
240
241
  - LICENSE
@@ -254,7 +255,6 @@ files:
254
255
  - app/assets/javascripts/piggybak.states.js
255
256
  - app/controllers/piggybak/cart_controller.rb
256
257
  - app/controllers/piggybak/orders_controller.rb
257
- - app/controllers/piggybak/payments_controller.rb
258
258
  - app/helpers/piggybak_helper.rb
259
259
  - app/mailers/piggybak/notifier.rb
260
260
  - app/models/piggybak/address.rb
@@ -269,6 +269,7 @@ files:
269
269
  - app/models/piggybak/payment_calculator/fake.rb
270
270
  - app/models/piggybak/payment_method.rb
271
271
  - app/models/piggybak/payment_method_value.rb
272
+ - app/models/piggybak/sellable.rb
272
273
  - app/models/piggybak/shipment.rb
273
274
  - app/models/piggybak/shipping_calculator/flat_rate.rb
274
275
  - app/models/piggybak/shipping_calculator/free.rb
@@ -279,7 +280,6 @@ files:
279
280
  - app/models/piggybak/tax_calculator/percent.rb
280
281
  - app/models/piggybak/tax_method.rb
281
282
  - app/models/piggybak/tax_method_value.rb
282
- - app/models/piggybak/variant.rb
283
283
  - app/views/piggybak/cart/_form.html.erb
284
284
  - app/views/piggybak/cart/_items.html.erb
285
285
  - app/views/piggybak/cart/show.html.erb
@@ -295,9 +295,9 @@ files:
295
295
  - app/views/rails_admin/main/_ip_address.html.erb
296
296
  - app/views/rails_admin/main/_location_select.html.haml
297
297
  - app/views/rails_admin/main/_order_details.html.erb
298
- - app/views/rails_admin/main/_order_notes.html.erb
299
- - app/views/rails_admin/main/_payment_refund.html.haml
298
+ - app/views/rails_admin/main/_polymorphic_nested.html.haml
300
299
  - app/views/rails_admin/main/_recorded_changer.html.erb
300
+ - bin/piggybak
301
301
  - config/routes.rb
302
302
  - db/migrate/20111227150106_create_orders.rb
303
303
  - db/migrate/20111227150322_create_addresses.rb
@@ -324,13 +324,16 @@ files:
324
324
  - db/migrate/20120717022155_create_order_notes.rb
325
325
  - db/migrate/20120718142841_modify_credits.rb
326
326
  - db/migrate/20120815205207_add_to_be_cancelled_to_orders.rb
327
+ - db/migrate/20121008160425_rename_variants_to_sellables.rb
328
+ - db/migrate/20121008175144_line_item_rearchitecture.rb
327
329
  - lib/acts_as_changer.rb
328
330
  - lib/acts_as_orderer.rb
329
- - lib/acts_as_variant.rb
331
+ - lib/acts_as_sellable.rb
330
332
  - lib/currency.rb
331
333
  - lib/formatted_changes.rb
332
334
  - lib/mask_submissions.rb
333
335
  - lib/piggybak.rb
336
+ - lib/piggybak/cli.rb
334
337
  - lib/piggybak/config.rb
335
338
  - piggybak.gemspec
336
339
  - spec/TODO
@@ -404,7 +407,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
404
407
  version: '0'
405
408
  segments:
406
409
  - 0
407
- hash: -1452363847125677664
410
+ hash: -370625241458672304
408
411
  required_rubygems_version: !ruby/object:Gem::Requirement
409
412
  none: false
410
413
  requirements: