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 +5 -0
- data/config/boot.rb +3 -3
- data/config/database.yml +5 -2
- data/config/environment.rb +1 -1
- data/db/sample/users.rb +3 -1
- data/lib/spree.rb +1 -1
- data/public/javascripts/admin/orders/edit.js +1 -1
- data/vendor/extensions/payment_gateway/payment_gateway_extension.rb +2 -0
- metadata +3 -3
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
|
|
data/config/boot.rb
CHANGED
@@ -37,8 +37,8 @@ module Spree
|
|
37
37
|
def load_rubygems
|
38
38
|
require 'rubygems'
|
39
39
|
|
40
|
-
unless rubygems_version >= '1.3.
|
41
|
-
$stderr.puts %(Spree requires RubyGems >= 1.3.
|
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.
|
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
|
|
data/config/database.yml
CHANGED
data/config/environment.rb
CHANGED
@@ -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.
|
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')
|
data/db/sample/users.rb
CHANGED
@@ -43,7 +43,9 @@ def create_admin_user
|
|
43
43
|
:email => email,
|
44
44
|
:login => email
|
45
45
|
}
|
46
|
-
|
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
|
data/lib/spree.rb
CHANGED
@@ -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
|
-
-
|
9
|
-
version: 0.10.
|
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-
|
17
|
+
date: 2010-03-15 00:00:00 -04:00
|
18
18
|
default_executable: spree
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|