spree 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of spree might be problematic. Click here for more details.

@@ -1,3 +1,9 @@
1
+ == 0.0.6 2008-02-36
2
+
3
+ * Now properly requires the mini_magick dependency
4
+ * Fixed a few minor rake task issues
5
+ * Other very minor bug fixes
6
+
1
7
  == 0.0.5 2008-02-36
2
8
 
3
9
  * Test release of the newly named gem (formerly known as railscart)
@@ -292,7 +292,7 @@ starter-app/vendor/plugins/spree/app/controllers/admin/users_controller.rb
292
292
  starter-app/vendor/plugins/spree/app/controllers/admin/variations_controller.rb
293
293
  starter-app/vendor/plugins/spree/app/controllers/cart_controller.rb
294
294
  starter-app/vendor/plugins/spree/app/controllers/checkout_controller.rb
295
- starter-app/vendor/plugins/spree/app/controllers/rails_cart/base_controller.rb
295
+ starter-app/vendor/plugins/spree/app/controllers/spree/base_controller.rb
296
296
  starter-app/vendor/plugins/spree/app/controllers/store_controller.rb
297
297
  starter-app/vendor/plugins/spree/app/helpers/account_helper.rb
298
298
  starter-app/vendor/plugins/spree/app/helpers/admin/base_helper.rb
@@ -305,8 +305,8 @@ starter-app/vendor/plugins/spree/app/helpers/admin/users_helper.rb
305
305
  starter-app/vendor/plugins/spree/app/helpers/admin/variations_helper.rb
306
306
  starter-app/vendor/plugins/spree/app/helpers/cart_helper.rb
307
307
  starter-app/vendor/plugins/spree/app/helpers/checkout_helper.rb
308
- starter-app/vendor/plugins/spree/app/helpers/rails_cart/base_helper.rb
309
308
  starter-app/vendor/plugins/spree/app/helpers/search_helper.rb
309
+ starter-app/vendor/plugins/spree/app/helpers/spree/base_helper.rb
310
310
  starter-app/vendor/plugins/spree/app/helpers/store_helper.rb
311
311
  starter-app/vendor/plugins/spree/app/models/address.rb
312
312
  starter-app/vendor/plugins/spree/app/models/cart.rb
data/README.txt CHANGED
@@ -1 +1,49 @@
1
- README
1
+ SUMMARY
2
+ =======
3
+
4
+ Spree is a complete open source commerce solution for Ruby on Rails. It was developed by Sean Schofield under the original name of Rails Cart before changing its name to Spree.
5
+
6
+ QUICK START
7
+ ===========
8
+
9
+ 1.) Install spree Gem
10
+
11
+ $ sudo gem install spree
12
+
13
+ 2.) Create Spree Application
14
+
15
+ $ spree app_name
16
+
17
+ 3.) Create MySQL Database
18
+
19
+ mysql> create database spree_dev;
20
+ mysql> grant all privileges on spree_dev.* to 'spree'@'localhost' identified by 'spree';
21
+ mysql> flush privileges;
22
+
23
+ 4.) Migrations
24
+
25
+ $ cd app_name
26
+ $ rake db:migrate
27
+
28
+ 5.) Bootstrap
29
+
30
+ Spree requires an admin user and a few other pieces of structural data to be loaded into your database.
31
+
32
+ rake spree:bootstrap
33
+
34
+ 6.) Sample Data (Optional)
35
+
36
+ Optionally load some sample data so you have something to look at.
37
+
38
+ rake spree:sample_data
39
+
40
+ 7.) Launch Application
41
+
42
+ Browse Store
43
+
44
+ http://localhost:xxxx/store
45
+
46
+ Admin Interface (user: admin password: test)
47
+
48
+ http://localhost:xxxx/admin
49
+
@@ -64,7 +64,8 @@ hoe = Hoe.new(GEM_NAME, VERS) do |p|
64
64
  ['rails', '>= 2.0.0'],
65
65
  ['activemerchant', '>= 1.2.1'],
66
66
  ['mocha', '>= 0.5.6'],
67
- ['has_many_polymorphs', '>= 2.12']
67
+ ['has_many_polymorphs', '>= 2.12'],
68
+ ['mini_magick', ">=1.2.3"]
68
69
  ]
69
70
  #p.extra_deps = [] # An array of rubygem dependencies [name, version], e.g. [ ['active_support', '>= 1.3.1'] ]
70
71
 
@@ -2,7 +2,7 @@ module Spree #:nodoc:
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 0
4
4
  MINOR = 0
5
- TINY = 5
5
+ TINY = 6
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].join('.')
8
8
  end
@@ -1,4 +1,4 @@
1
- class AccountController < RailsCart::BaseController
1
+ class AccountController < Spree::BaseController
2
2
  # Be sure to include AuthenticationSystem in Application Controller instead
3
3
  include AuthenticatedSystem
4
4
  # If you want "remember me" functionality, add this before_filter to Application Controller
@@ -1,6 +1,6 @@
1
1
  # this clas was inspired (heavily) from the mephisto admin architecture
2
2
 
3
- class Admin::BaseController < RailsCart::BaseController
3
+ class Admin::BaseController < Spree::BaseController
4
4
  before_filter :login_required
5
5
  helper :search
6
6
  layout 'admin'
@@ -5,7 +5,6 @@ class Admin::ImagesController < Admin::BaseController
5
5
  render :layout => false
6
6
  end
7
7
 
8
- # delete the variation (ajax call from either product or category edit screen)
9
8
  def delete
10
9
  image = Image.find(params[:id])
11
10
  viewable = image.viewable
@@ -1,4 +1,4 @@
1
- class CartController < RailsCart::BaseController
1
+ class CartController < Spree::BaseController
2
2
  before_filter :find_cart
3
3
  before_filter :store_previous_location
4
4
 
@@ -1,4 +1,4 @@
1
- class CheckoutController < RailsCart::BaseController
1
+ class CheckoutController < Spree::BaseController
2
2
  before_filter :find_order, :except => [:index, :thank_you]
3
3
 
4
4
  require_role 'admin', :only => :comp
@@ -1,4 +1,4 @@
1
- class RailsCart::BaseController < ApplicationController
1
+ class Spree::BaseController < ApplicationController
2
2
  # See ActionController::RequestForgeryProtection for details
3
3
  # Uncomment the :secret if you're not using the cookie session store
4
4
  #protect_from_forgery :secret => '55a66755bef2c41d411bd5486c001b16'
@@ -1,4 +1,4 @@
1
- class StoreController < RailsCart::BaseController
1
+ class StoreController < Spree::BaseController
2
2
  before_filter :find_cart
3
3
 
4
4
  def index
@@ -1,4 +1,4 @@
1
- module RailsCart::BaseHelper
1
+ module Spree::BaseHelper
2
2
  require 'paginating_find'
3
3
 
4
4
  def stylesheets
@@ -25,7 +25,6 @@
25
25
  <td valign="top"><%=product.price%></td>
26
26
  <td valign="top"><%=product.tag_list%></td>
27
27
  <td valign="top">
28
- <%= link_to "Show", :action => 'show', :id => product -%>
29
28
  <%= link_to "Edit", :action => 'edit', :id => product -%>
30
29
  <%= link_to "Delete", {:action => 'destroy', :id => product}, :confirm => "Are you sure you want to delete this product?" -%>
31
30
  </td>
@@ -2,7 +2,7 @@ namespace :spree do
2
2
  desc "Loads admin user and other structural data required by RC. You must run this task before using RC."
3
3
  task :bootstrap => :environment do
4
4
  # create the default admin user
5
- User.create(:login => 'rc_admin',
5
+ User.create(:login => 'admin',
6
6
  :email => 'admin@changeme.com',
7
7
  :salt => '7e3041ebc2fc05a40c60028e2c4901a81035d3cd',
8
8
  :crypted_password => '00742970dc9e6319f8019fd54864d3ea740f04b1',
@@ -19,6 +19,6 @@ namespace :spree do
19
19
  TaxTreatment.create(:name => "Non taxable")
20
20
  TaxTreatment.create(:name => "U.S. Sales Tax")
21
21
 
22
- puts "RC bootstrap process completed."
22
+ puts "Spree bootstrap process completed."
23
23
  end
24
24
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spree
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sean Schofield
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-02-26 00:00:00 -05:00
12
+ date: 2008-03-24 00:00:00 -04:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -48,6 +48,15 @@ dependencies:
48
48
  - !ruby/object:Gem::Version
49
49
  version: "2.12"
50
50
  version:
51
+ - !ruby/object:Gem::Dependency
52
+ name: mini_magick
53
+ version_requirement:
54
+ version_requirements: !ruby/object:Gem::Requirement
55
+ requirements:
56
+ - - ">="
57
+ - !ruby/object:Gem::Version
58
+ version: 1.2.3
59
+ version:
51
60
  description: Complete commerce solution for Ruby on Rails
52
61
  email: sean.schofield@gmail.com
53
62
  executables:
@@ -357,7 +366,7 @@ files:
357
366
  - starter-app/vendor/plugins/spree/app/controllers/admin/variations_controller.rb
358
367
  - starter-app/vendor/plugins/spree/app/controllers/cart_controller.rb
359
368
  - starter-app/vendor/plugins/spree/app/controllers/checkout_controller.rb
360
- - starter-app/vendor/plugins/spree/app/controllers/rails_cart/base_controller.rb
369
+ - starter-app/vendor/plugins/spree/app/controllers/spree/base_controller.rb
361
370
  - starter-app/vendor/plugins/spree/app/controllers/store_controller.rb
362
371
  - starter-app/vendor/plugins/spree/app/helpers/account_helper.rb
363
372
  - starter-app/vendor/plugins/spree/app/helpers/admin/base_helper.rb
@@ -370,8 +379,8 @@ files:
370
379
  - starter-app/vendor/plugins/spree/app/helpers/admin/variations_helper.rb
371
380
  - starter-app/vendor/plugins/spree/app/helpers/cart_helper.rb
372
381
  - starter-app/vendor/plugins/spree/app/helpers/checkout_helper.rb
373
- - starter-app/vendor/plugins/spree/app/helpers/rails_cart/base_helper.rb
374
382
  - starter-app/vendor/plugins/spree/app/helpers/search_helper.rb
383
+ - starter-app/vendor/plugins/spree/app/helpers/spree/base_helper.rb
375
384
  - starter-app/vendor/plugins/spree/app/helpers/store_helper.rb
376
385
  - starter-app/vendor/plugins/spree/app/models/address.rb
377
386
  - starter-app/vendor/plugins/spree/app/models/cart.rb