-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathCHANGELOG
executable file
·344 lines (273 loc) · 12.3 KB
/
CHANGELOG
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
Substruct Version Changelog and Update Notes
===============================================================================
Version 1.0 FINAL - 09/01/2008
---------------------------------------
Added:
1. Ability to sell digital goods, through the ProductDownload model.
* Customers can purchase a file uploaded by store owners, and a temporary
download link will be created which is served from the
'public' directory.
* The 'rake substruct:maintain' task will clean up any expired download
links.
2. Easy way to change currency from USD
http://code.google.com/p/substruct/issues/detail?id=81
Updated:
1. Upgrade to Rails 2.1.0
2. Full coverage of tests, unit and functional
Upgrade steps:
!!! NOTES - IMPORTANT TO READ
The application_helper function "make_product" has gone away, so if you've
customized the _product.rhtml partial you'll need to take a look
at the one now included with the base distro. See issue here:
http://code.google.com/p/substruct/issues/detail?id=117
***
The 'Cart' model has completely gone away. This could affect you
if you've extended it in any way. Please see the following for details:
http://code.google.com/p/substruct/issues/detail?id=114
***
A new layout called 'checkout' has been added and now is the default
renderer for all checkout actions in the store. This ensures that
a customer can't modify their cart while ordering, thus potentially throwing
off their order total they see on screen.
0. Back up your database just in case.
* mysql example: mysqldump -u USERNAME -p DATABASE_NAME > backup.sql
1. Install the ezcrypto gem. (gem install ezcrypto)
2. rake db:migrate:fix_engines_migrations
3. script/generate plugin_migration
4. rake db:migrate
...THIS MIGHT TAKE A LITTLE TIME FOR UPGRADES...
Let it do it's thing, it has to encrypt all stored CC #'s
5. rake rails:update
...This will update your JS, boot, and environment files to Rails 2.1.0
6. Manually update you environment.rb file to use RAILS_GEM_VERSIOn 2.1.0
Version 1.0a
---------------------------------------
*** Special thanks to Matthew Sewell for his contribution of the PayPal
IPN code.
*** HUGE thanks to Edmundo Valle Neto for all around patches and bringing
tests up to spec. Too many to list!
Added:
1. PayPal IPN integration.
2. All CC#'s now stored encryped in the db with ezcrypto
Upgrade steps:
0. Back up your database just in case.
* mysql example: mysqldump -u USERNAME -p DATABASE_NAME > backup.sql
1. Install the ezcrypto gem. (gem install ezcrypto)
2. script/generate plugin_migration
3. rake db:migrate
...THIS MIGHT TAKE A LITTLE TIME FOR UPGRADES...
Let it do it's thing, it has to encrypt all stored CC #'s
Version 0.97
---------------------------------------
*** Special thanks to Luke Ludwig for his contribution of this patch!
*** Visit his blog over @ http://lukeludwig.com/blog
Upgrade steps:
1. Make sure you have the mini_magick and mime-types gems installed.
a. sudo gem install mini_magick
b. sudo gem install mime-types
* Note: mime-types gem is only needed to upgrade, but is not
needed after the upgrade is complete.
2. Back up your database just in case.
* mysql example: mysqldump -u USERNAME -p DATABASE_NAME > backup.sql
3. script/generate plugin_migration
4. rake db:migrate
* All of your uploads and images will be copied to a new location.
Since it is a copy it is non-destructive, leaving the originals
in their place.
5. Merge changes from the new environment.rb file in the
vendor/plugins/substruct/config directory to the one inside config/.
Added:
1. Added nice installer rake task
2. Upgrade to Rails 2.0.2 / Engines v2
3. Images and uploads switched from using file_column and rmagick to
using attachment_fu and mini_magick.
Version 0.96
---------------------------------------
This is a step in the direction of making the app easier to install and config
for your average user. Some nice UI features have been added, with the major
one being the ability to set config params from the admin UI, and not in
config files!
Upgrade steps:
1. script/generate plugin_migration
2. rake db:migrate
3. Check out the new environment.rb file in the config_stubs directory.
Since preferences have been added there's new code that auto-sets
your mail server in there...diff / merge with your current
environment.rb file.
4. !!! SET YOUR PREFS IN THE ADMIN PANEL
Added:
- Admin UI now can view Customer accounts, and download a CSV
file that contains email addresses. Great for exporting to newsletter
software, etc.
- Preferences now set via the admin panel. Lots of stuff has changed.
Lots of preferences have moved from config files to the db:
-- Auth.net settings
-- Mail server settings
-- Store configuration (show confirmation page, use inventory control, etc)
Fixed:
- Billing / shipping address code refactoring effort.
-- Associations were a bit strange and hadn't been looked at for a while.
-- Removed model methods in favor of AR association code
Version 0.951
---------------------------------------
Tagging error with a few items on the 0.95 release...maintenance tag.
Version 0.95
---------------------------------------
MAJOR UPGRADE...lots of new features. Do some thorough testing before you
roll this out if you're upgrading.
Upgrade steps:
1. script/generate plugin_migration
2. rake db:migrate
3. You should diff your application.rb file with application.rb.example
in config_stubs. New before_filters have been added.
Added:
- Multiple images per product
-- You can also set a default product image via drag & drop
- Product variations
- Product view pages
- Product discontinuation & quantity checking
- Tag grouping for products
- Customer logins
- Order history
- Wishlist support
- Related product support
- Inventory control now actually works
-- Products with inventory <= 0 will not show on the public-facing site
-- Item quantities decremented after a successful order
- Live shipping rate calculation RIPPED out, replaced with shipping
rate table and new preferences UI.
-- FedEx is a bitch to set up for most people, and this can achieve the same
damn thing.
Changed:
- ActiveMerchant now supported instead of Payment gem
- ContentNodeTypes removed in favor of SingleTableInheritance
-- Blog, Page, and Snippet models added
- Cart now uses subModal instead of lame DIV at the bottom of the page
- User interface / design
-- Admin UI larger to work better on 1024x768 screens minimum
-- Tweaked graphics and fonts to look better x-platform
-- Public UI updated
- OrderUser now has a requirement that email addresses be unique
-- Added migration to clean up dupe OrderUsers, and set proper associations
on OrderAccount and OrderAddress
Version 0.9
---------------------------------------
Upgrade steps:
1. Update to Engines 1.2.0
-- This is done for you if you are using externals to load Substruct
2. Upgrade to Rails 1.2.3
-- This is done for you if you are using externals to load Substruct
3. Change all instances of engines_stylesheet to stylesheet_link_tag with :plugin => 'substruct'
-- <%= stylesheet_link_tag 'substruct', :plugin => 'substruct' %>
4. Change all instances of engines_javascript to javascript_include_tag with :plugin => 'substruct'
-- <%= javascript_include_tag 'substruct', :plugin => 'substruct' %>
5. If you have customized the configuration, change to use..
-- Substruct.my_custom_config = 'value'
6. MERGE the /vendor/plugins/substruct/config_stubs/environment.rb with your /config/environment.rb file
-- Some configuration changes have been made.
-- Merge the two and see if you need to make any updates.
Fixed:
- Now works with Engines 1.2
- Fixed all Rails 2.0 deprecation warnings
- Changed the way config settings work to no longer use module
Version 0.81
---------------------------------------
Upgrade steps:
0. rake db:migrate:engines:substruct
Added:
- Order confirmation page.
-- There are now 3 steps to order, but a more clear order summary and total
is shown before an order is placed.
- Ability to search orders by email address and notes field on the admin side.
- NEW ADMIN REPORT: Orders by country.
Fixed:
- Managing tags for products would throw error if you had no tags.
- Order addresses were messed up on the admin side.
-- It was impossible/buggy to create a separate shipping address after
an order had been created. Fixed...
- Updating order items from the admin side didn't properly save the product
cost for that order. Fixed order.rb by adding a before_save method.
Version 0.8
---------------------------------------
Fixed:
- Made sure questions require title.
-- This makes sure you can actually click on all questions from the UI (whoops!)
- DB setup was flawed, see migrations note.
Migrations Note
-----
Loading db from the schema.rb file was seriously fucked, causing problems with duplicate columns and other nonsense.
I've relabeled the migrations, adding the initial DB state as 001. Every other migration has been bumped up 1 version.
Upgraders might have to change your engine_schema_info table....just an alert.
Version 0.75
---------------------------------------
Added:
- Ability to download orders on admin side in XML and CSV for export
to other applications like QuickBooks
Upgrade steps:
0. gem install fastercsv
Updated:
- Updated to Rails 1.1.6
- Updated to Engines 1.1.4
Version 0.7
---------------------------------------
Added:
- Role Based Access Control
Updated:
- Updated to Rails 1.1.2 - now included in the vendor directory
- New authority data for FedEx, be sure to reload authority data!
Fixed:
- Content URLs now auto-clean before validation (Ticket #22)
- Estimation of international FedEx packages.
- Including the shipping gem as a library now.
- Bug on new product creation where tags weren't being saved properly.
- Bug where it was impossible to clear all tags from a product once assigned.
- Adding multiple items to the cart object. Before it was only adding 1 at a time.
Upgrade steps:
0. rake rails:update
1. rake db:migrate:engines:substruct
2. rake load_authority_data
!!! WARNING !!!
This could overwrite your admin user! All that's needed is to
update the shipping tables, so you could possibly extract those
records by themselves and insert by hand.
Yes, I know it should have probably been a migration...sorry.
3. Create an application specific application.rb file.
(your_rails_dir/app/controllers/application.rb)
It's contents should look like this:
class ApplicationController < ActionController::Base
include SubstructApplicationController
end
This makes sure that everything is loaded properly. Newer versions of
Rails were causing issues with loading the application controller from
the engines directory.
Version 0.61
---------------------------------------
Updated:
- New routes.rb file - you need to copy this into your config directory!
This supports the new store show_by_tags with multiple tags.
- Changed store/show_by_tags to display friendly URLs
(Tags are now passed in by name, not ID)
- Changed AJAX cart to display 1 physical item for each item / quantity in the cart.
(no more "x2", etc)
- Broke out some CSS into include files for the cart.
Upgrade steps:
0. Copy the new routes.rb to your config directory, or merge the changes.
Version 0.6
---------------------------------------
Added:
- Tagging for products
- Maintenance of product tags
- Automatic image thumbnail / small size creation via RMagick
Updated:
- Better shopping cart experience with AJAX cart
- Faceted navigation of product categories
- Fixed bug where product images would auto-delete when updating something else about a product.
Upgrade steps:
0. Update the source
tar -xzvf substruct.tar.gz my_rails_app/vendor/plugins/
1. Update the DB
rake engine_migrate
2. Add blank loading html file for modal. This page gets swapped into the modal dialog (as seen when editing tags) when it's not visible.
touch public/loading.html
3. Install RMagick
This is necessary for automatic image resizing of product images