piggybak 0.6.15 → 0.6.16

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- piggybak (0.6.15)
4
+ piggybak (0.6.16)
5
5
  activemerchant
6
6
  countries
7
7
  devise
data/lib/piggybak.rb CHANGED
@@ -27,11 +27,15 @@ module Piggybak
27
27
  class Engine < Rails::Engine
28
28
  initializer "piggybak.ssl_enforcer" do |app|
29
29
  # Note: If your main application also uses rack-ssl-enforcer,
30
- # set secure_checkout to false, and copy this and integrate
31
- # additional pages that need SSL into your config/application.rb
30
+ # append to Piggyak.config.extra_secure_paths
31
+ # inside a before_initialize block
32
32
  if Piggybak.config.secure_checkout
33
+ paths = [/^#{Piggybak.config.secure_prefix}\/checkout/]
34
+ Piggybak.config.extra_secure_paths.each do |extra_path|
35
+ paths << [/^#{Piggybak.config.secure_prefix}#{extra_path}/]
36
+ end
33
37
  app.config.middleware.use Rack::SslEnforcer,
34
- :only => [/\/checkout\/$/, '/checkout/orders/tax', '/checkout/orders/shipping', '/checkout/orders/geodata'],
38
+ :only => paths,
35
39
  :strict => true
36
40
  end
37
41
  end
@@ -13,6 +13,8 @@ module Piggybak
13
13
  attr_accessor :whois_url
14
14
  attr_accessor :line_item_types
15
15
  attr_accessor :secure_checkout
16
+ attr_accessor :secure_prefix
17
+ attr_accessor :extra_secure_paths
16
18
 
17
19
  def reset
18
20
  @email_sender = "support@piggybak.org"
@@ -60,6 +62,8 @@ module Piggybak
60
62
  @whois_url = nil
61
63
 
62
64
  @secure_checkout = false
65
+ @secure_prefix = ''
66
+ @extra_secure_paths = []
63
67
  end
64
68
  end
65
69
 
@@ -1,3 +1,3 @@
1
1
  module Piggybak
2
- VERSION = "0.6.15"
2
+ VERSION = "0.6.16"
3
3
  end
metadata CHANGED
@@ -1,215 +1,188 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: piggybak
3
- version: !ruby/object:Gem::Version
4
- version: 0.6.15
3
+ version: !ruby/object:Gem::Version
5
4
  prerelease:
5
+ version: 0.6.16
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
- date: 2012-11-07 00:00:00.000000000 Z
15
- dependencies:
16
- - !ruby/object:Gem::Dependency
14
+
15
+ date: 2012-11-07 00:00:00 Z
16
+ dependencies:
17
+ - !ruby/object:Gem::Dependency
17
18
  name: rails
18
- requirement: !ruby/object:Gem::Requirement
19
+ requirement: &id001 !ruby/object:Gem::Requirement
19
20
  none: false
20
- requirements:
21
+ requirements:
21
22
  - - ~>
22
- - !ruby/object:Gem::Version
23
+ - !ruby/object:Gem::Version
23
24
  version: 3.2.8
24
25
  type: :runtime
25
26
  prerelease: false
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
27
+ version_requirements: *id001
28
+ - !ruby/object:Gem::Dependency
33
29
  name: countries
34
- requirement: !ruby/object:Gem::Requirement
30
+ requirement: &id002 !ruby/object:Gem::Requirement
35
31
  none: false
36
- requirements:
37
- - - ! '>='
38
- - !ruby/object:Gem::Version
39
- version: '0'
32
+ requirements:
33
+ - - ">="
34
+ - !ruby/object:Gem::Version
35
+ version: "0"
40
36
  type: :runtime
41
37
  prerelease: false
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
38
+ version_requirements: *id002
39
+ - !ruby/object:Gem::Dependency
49
40
  name: activemerchant
50
- requirement: !ruby/object:Gem::Requirement
41
+ requirement: &id003 !ruby/object:Gem::Requirement
51
42
  none: false
52
- requirements:
53
- - - ! '>='
54
- - !ruby/object:Gem::Version
55
- version: '0'
43
+ requirements:
44
+ - - ">="
45
+ - !ruby/object:Gem::Version
46
+ version: "0"
56
47
  type: :runtime
57
48
  prerelease: false
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
49
+ version_requirements: *id003
50
+ - !ruby/object:Gem::Dependency
65
51
  name: devise
66
- requirement: !ruby/object:Gem::Requirement
52
+ requirement: &id004 !ruby/object:Gem::Requirement
67
53
  none: false
68
- requirements:
69
- - - ! '>='
70
- - !ruby/object:Gem::Version
71
- version: '0'
54
+ requirements:
55
+ - - ">="
56
+ - !ruby/object:Gem::Version
57
+ version: "0"
72
58
  type: :runtime
73
59
  prerelease: false
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
60
+ version_requirements: *id004
61
+ - !ruby/object:Gem::Dependency
81
62
  name: rails_admin
82
- requirement: !ruby/object:Gem::Requirement
63
+ requirement: &id005 !ruby/object:Gem::Requirement
83
64
  none: false
84
- requirements:
85
- - - ! '>='
86
- - !ruby/object:Gem::Version
87
- version: '0'
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: "0"
88
69
  type: :runtime
89
70
  prerelease: false
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
71
+ version_requirements: *id005
72
+ - !ruby/object:Gem::Dependency
97
73
  name: rack-ssl-enforcer
98
- requirement: !ruby/object:Gem::Requirement
74
+ requirement: &id006 !ruby/object:Gem::Requirement
99
75
  none: false
100
- requirements:
101
- - - ! '>='
102
- - !ruby/object:Gem::Version
103
- version: '0'
76
+ requirements:
77
+ - - ">="
78
+ - !ruby/object:Gem::Version
79
+ version: "0"
104
80
  type: :runtime
105
81
  prerelease: false
106
- version_requirements: !ruby/object:Gem::Requirement
107
- none: false
108
- requirements:
109
- - - ! '>='
110
- - !ruby/object:Gem::Version
111
- version: '0'
82
+ version_requirements: *id006
112
83
  description: Mountable Ruby on Rails Ecommerce.
113
- email:
84
+ email:
114
85
  - piggybak@endpoint.com
115
- executables:
86
+ executables:
116
87
  - piggybak
117
88
  extensions: []
89
+
118
90
  extra_rdoc_files: []
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
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
130
98
  - app/models/piggybak/address.rb
99
+ - app/models/piggybak/order_note.rb
100
+ - app/models/piggybak/adjustment.rb
131
101
  - app/models/piggybak/sellable.rb
132
- - app/models/piggybak/line_item.rb
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
102
+ - app/models/piggybak/state.rb
137
103
  - app/models/piggybak/country.rb
104
+ - app/models/piggybak/tax_method.rb
138
105
  - app/models/piggybak/cart.rb
106
+ - app/models/piggybak/payment.rb
107
+ - 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
139
111
  - app/models/piggybak/shipping_method.rb
140
- - app/models/piggybak/tax_method_value.rb
141
- - app/models/piggybak/tax_calculator/percent.rb
112
+ - app/models/piggybak/payment_method.rb
142
113
  - app/models/piggybak/shipping_calculator/flat_rate.rb
143
114
  - app/models/piggybak/shipping_calculator/free.rb
144
115
  - app/models/piggybak/shipping_calculator/range.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
150
- - app/models/piggybak/state.rb
151
- - app/helpers/piggybak_helper.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
152
128
  - app/views/rails_admin/main/_recorded_changer.html.erb
153
129
  - app/views/rails_admin/main/_polymorphic_nested.html.haml
154
130
  - 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
131
  - app/views/rails_admin/main/_ip_address.html.erb
158
- - app/views/piggybak/notifier/order_notification.text.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
159
135
  - app/views/piggybak/orders/list.html.erb
160
136
  - app/views/piggybak/orders/submit.html.erb
161
- - app/views/piggybak/orders/no_access.text.erb
162
- - app/views/piggybak/orders/receipt.html.erb
163
137
  - app/views/piggybak/orders/_details.html.erb
164
138
  - app/views/piggybak/orders/_address_form.html.erb
165
139
  - app/views/piggybak/orders/download.text.erb
140
+ - app/views/piggybak/orders/no_access.text.erb
141
+ - app/views/piggybak/orders/receipt.html.erb
166
142
  - app/views/piggybak/orders/_google_analytics.html.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
143
+ - app/views/piggybak/notifier/order_notification.text.erb
171
144
  - bin/piggybak
172
145
  - config/routes.rb
173
146
  - db/migrate/20121022161614_fix_sellable_price_scale.rb
174
- - db/migrate/20120107135459_add_active_to_countries.rb
175
- - db/migrate/20111228235853_create_payment_method_values.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
176
151
  - 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
180
152
  - 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
185
153
  - db/migrate/20111227150106_create_orders.rb
186
- - db/migrate/20111228231806_create_payment_methods.rb
187
- - db/migrate/20121018213421_drop_sort_from_line_items.rb
188
- - db/migrate/20121022164235_convert_all_decimal_fields.rb
154
+ - db/migrate/20111228235853_create_payment_method_values.rb
189
155
  - db/migrate/20111228231838_create_shipments.rb
190
- - db/migrate/20120104020930_populate_countries_and_states.rb
191
- - db/migrate/20111227213558_create_variants.rb
192
- - db/migrate/20120716195806_order_debugging.rb
156
+ - db/migrate/20120815205207_add_to_be_cancelled_to_orders.rb
157
+ - db/migrate/20121018213421_drop_sort_from_line_items.rb
193
158
  - db/migrate/20120102162414_create_countries.rb
194
- - db/migrate/20120718142841_modify_credits.rb
195
- - db/migrate/20111227150432_create_line_items.rb
159
+ - db/migrate/20120627173754_add_description_to_line_item.rb
160
+ - db/migrate/20120716195806_order_debugging.rb
161
+ - db/migrate/20120102154050_create_tax_methods.rb
196
162
  - db/migrate/20121008160425_rename_variants_to_sellables.rb
197
- - db/migrate/20111228235852_create_shipping_method_values.rb
163
+ - db/migrate/20111227150322_create_addresses.rb
164
+ - db/migrate/20111228231806_create_payment_methods.rb
165
+ - db/migrate/20120111195534_drop_cc_fields.rb
198
166
  - db/migrate/20111228231829_create_payments.rb
199
- - db/migrate/20120815205207_add_to_be_cancelled_to_orders.rb
167
+ - db/migrate/20121008175144_line_item_rearchitecture.rb
200
168
  - 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
201
173
  - db/migrate/20120717022155_create_order_notes.rb
202
- - db/migrate/20120111195534_drop_cc_fields.rb
203
- - lib/acts_as_changer.rb
174
+ - db/migrate/20120718142841_modify_credits.rb
175
+ - db/migrate/20120107135459_add_active_to_countries.rb
176
+ - lib/piggybak.rb
204
177
  - lib/currency.rb
205
- - lib/acts_as_orderer.rb
206
- - lib/acts_as_sellable.rb
178
+ - lib/acts_as_changer.rb
207
179
  - lib/mask_submissions.rb
180
+ - lib/acts_as_sellable.rb
181
+ - lib/formatted_changes.rb
182
+ - lib/acts_as_orderer.rb
208
183
  - lib/piggybak/version.rb
209
184
  - lib/piggybak/cli.rb
210
185
  - lib/piggybak/config.rb
211
- - lib/piggybak.rb
212
- - lib/formatted_changes.rb
213
186
  - LICENSE
214
187
  - Rakefile
215
188
  - README.md
@@ -217,32 +190,36 @@ files:
217
190
  - Gemfile.lock
218
191
  homepage: http://www.piggybak.org/
219
192
  licenses: []
193
+
220
194
  post_install_message:
221
195
  rdoc_options: []
222
- require_paths:
196
+
197
+ require_paths:
223
198
  - lib
224
- required_ruby_version: !ruby/object:Gem::Requirement
199
+ required_ruby_version: !ruby/object:Gem::Requirement
225
200
  none: false
226
- requirements:
227
- - - ! '>='
228
- - !ruby/object:Gem::Version
229
- version: '0'
230
- segments:
201
+ requirements:
202
+ - - ">="
203
+ - !ruby/object:Gem::Version
204
+ hash: -3481352722498269327
205
+ segments:
231
206
  - 0
232
- hash: 3431245891548905163
233
- required_rubygems_version: !ruby/object:Gem::Requirement
207
+ version: "0"
208
+ required_rubygems_version: !ruby/object:Gem::Requirement
234
209
  none: false
235
- requirements:
236
- - - ! '>='
237
- - !ruby/object:Gem::Version
238
- version: '0'
239
- segments:
210
+ requirements:
211
+ - - ">="
212
+ - !ruby/object:Gem::Version
213
+ hash: -3481352722498269327
214
+ segments:
240
215
  - 0
241
- hash: 3431245891548905163
216
+ version: "0"
242
217
  requirements: []
218
+
243
219
  rubyforge_project:
244
220
  rubygems_version: 1.8.23
245
221
  signing_key:
246
222
  specification_version: 3
247
223
  summary: Mountable Ruby on Rails Ecommerce.
248
224
  test_files: []
225
+