spree 0.10.0 → 0.10.1

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.

data/CHANGELOG CHANGED
@@ -1,3 +1,8 @@
1
+ == 0.10.1
2
+
3
+ * # - 1209 Ruby Gems Warning (reverted this fix - RubyGems 1.3.6 is now required again)
4
+ * # - 1245 payment_gateway extension fails to load in production when spree is gemified
5
+ * # - 759 Error with creating admin user during bootstrap: unknown attribute: password_confirmation (Fixed in production mode)
1
6
 
2
7
  == 0.10.0
3
8
 
@@ -37,8 +37,8 @@ module Spree
37
37
  def load_rubygems
38
38
  require 'rubygems'
39
39
 
40
- unless rubygems_version >= '1.3.5'
41
- $stderr.puts %(Spree requires RubyGems >= 1.3.5 (you have #{rubygems_version}). Please `gem update --system` and try again.)
40
+ unless rubygems_version >= '1.3.6'
41
+ $stderr.puts %(Spree requires RubyGems >= 1.3.6 (you have #{rubygems_version}). Please `gem update --system` and try again.)
42
42
  exit 1
43
43
  end
44
44
 
@@ -47,7 +47,7 @@ module Spree
47
47
  Gem::Dependency.warned_version_requirement = true
48
48
 
49
49
  rescue LoadError
50
- $stderr.puts %(Spree requires RubyGems >= 1.3.5. Please install RubyGems and try again: http://rubygems.rubyforge.org)
50
+ $stderr.puts %(Spree requires RubyGems >= 1.3.6. Please install RubyGems and try again: http://rubygems.rubyforge.org)
51
51
  exit 1
52
52
  end
53
53
 
@@ -50,5 +50,8 @@ test:
50
50
  # database: db/test.sqlite3
51
51
 
52
52
  production:
53
- adapter: sqlite3
54
- database: db/production.sqlite3
53
+ adapter: mysql
54
+ database: spree
55
+ username: root
56
+ password:
57
+ host: localhost
@@ -5,7 +5,7 @@
5
5
  # ENV['RAILS_ENV'] ||= 'production'
6
6
 
7
7
  # Specifies gem version of Rails to use when vendor/rails is not present
8
- SPREE_GEM_VERSION = '0.10.0' unless defined? SPREE_GEM_VERSION
8
+ SPREE_GEM_VERSION = '0.10.1' unless defined? SPREE_GEM_VERSION
9
9
 
10
10
  # Bootstrap the Rails environment, frameworks, and default configuration
11
11
  require File.join(File.dirname(__FILE__), 'boot')
@@ -43,7 +43,9 @@ def create_admin_user
43
43
  :email => email,
44
44
  :login => email
45
45
  }
46
- require File.join(SPREE_ROOT, 'app/models/user.rb')
46
+
47
+ load 'user.rb'
48
+
47
49
  if User.find_by_login(email)
48
50
  say "\nWARNING: There is already a user with the email: #{email}, so no account changes were made. If you wish to create an additional admin user, please run rake db:admin:create again with a different email.\n\n"
49
51
  else
@@ -9,7 +9,7 @@ unless defined? Spree::Version
9
9
  module Version
10
10
  Major = '0'
11
11
  Minor = '10'
12
- Tiny = '0'
12
+ Tiny = '1'
13
13
  Pre = nil
14
14
 
15
15
  class << self
@@ -50,7 +50,7 @@ jQuery(document).ready(function(){
50
50
 
51
51
  var product = row['product'];
52
52
 
53
- if(product['variants'].length>0){
53
+ if(product['variants'].length>0 && expand_variants){
54
54
  //variants
55
55
  return $.map(product['variants'], function(variant){
56
56
 
@@ -4,6 +4,8 @@ class PaymentGatewayExtension < Spree::Extension
4
4
  to use in the aplication."
5
5
 
6
6
  def activate
7
+ require 'active_merchant'
8
+
7
9
  # Set the global "gateway mode" for active merchant (depending on what environment we're in)
8
10
  ActiveMerchant::Billing::Base.gateway_mode = :test unless ENV['RAILS_ENV'] == "production"
9
11
  # Mixin the payment_gateway method into the base controller so it can be accessed by the checkout process, etc.
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 10
8
- - 0
9
- version: 0.10.0
8
+ - 1
9
+ version: 0.10.1
10
10
  platform: ruby
11
11
  authors:
12
12
  - Sean Schofield
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-03-13 00:00:00 -05:00
17
+ date: 2010-03-15 00:00:00 -04:00
18
18
  default_executable: spree
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency