spree 0.9.2 → 0.9.3
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/Rakefile +56 -1
- data/config/boot.rb +4 -4
- data/config/database.yml +9 -36
- data/config/environment.rb +1 -1
- data/db/schema.rb +9 -9
- data/lib/spree.rb +1 -1
- data/lib/tasks/consistency.rake +1 -1
- data/lib/tasks/database.rake +1 -1
- data/public/assets/layouts/6/original/Picture_1.png +0 -0
- data/public/images/flags/dk.png +0 -0
- data/public/stylesheets/compiled/buttons.css +70 -0
- data/public/stylesheets/compiled/cart.css +69 -0
- data/public/stylesheets/compiled/checkout.css +79 -0
- data/public/stylesheets/compiled/colors.css +0 -0
- data/public/stylesheets/compiled/compare_products.css +14 -0
- data/public/stylesheets/compiled/layout.css +79 -0
- data/public/stylesheets/compiled/messages.css +69 -0
- data/public/stylesheets/compiled/mixins.css +0 -0
- data/public/stylesheets/compiled/navigation.css +69 -0
- data/public/stylesheets/compiled/prices.css +81 -0
- data/public/stylesheets/compiled/product_detail.css +78 -0
- data/public/stylesheets/compiled/product_thumbnail.css +69 -0
- data/public/stylesheets/compiled/registration.css +69 -0
- data/public/stylesheets/compiled/screen.css +1 -1
- data/public/stylesheets/sass/_buttons.sass +2 -2
- data/public/stylesheets/sass/_checkout.sass +1 -1
- data/public/stylesheets/sass/_layout.sass +3 -3
- data/public/stylesheets/sass/_mixins.sass +1 -1
- data/public/stylesheets/sass/_navigation.sass +4 -4
- data/public/stylesheets/sass/_product_thumbnail.sass +2 -2
- data/public/stylesheets/sass/_registration.sass +9 -0
- metadata +214 -602
- data/lib/tasks/release.rake +0 -114
- data/public/javascripts/calendar_date_select/format_db.js +0 -27
- data/public/javascripts/calendar_date_select/format_euro_24hr_ymd.js +0 -7
- data/public/javascripts/calendar_date_select/format_iso_date.js +0 -46
- data/public/javascripts/calendar_date_select/locale/de.js +0 -11
- data/public/javascripts/calendar_date_select/locale/fi.js +0 -10
- data/public/javascripts/calendar_date_select/locale/fr.js +0 -10
- data/public/javascripts/calendar_date_select/locale/pl.js +0 -10
- data/public/javascripts/calendar_date_select/locale/pt.js +0 -11
- data/public/javascripts/calendar_date_select/locale/ru.js +0 -10
data/lib/tasks/release.rake
DELETED
@@ -1,114 +0,0 @@
|
|
1
|
-
require 'rubygems'
|
2
|
-
require 'rake/testtask'
|
3
|
-
require 'rake/rdoctask'
|
4
|
-
require 'rake/gempackagetask'
|
5
|
-
require 'spree'
|
6
|
-
|
7
|
-
PKG_NAME = 'spree'
|
8
|
-
PKG_VERSION = Spree::Version.to_s
|
9
|
-
PKG_FILE_NAME = "#{PKG_NAME}-#{PKG_VERSION}"
|
10
|
-
RUBY_FORGE_PROJECT = PKG_NAME
|
11
|
-
RUBY_FORGE_USER = ENV['RUBY_FORGE_USER'] || 'schof'
|
12
|
-
|
13
|
-
RELEASE_NAME = PKG_VERSION
|
14
|
-
RUBY_FORGE_GROUPID = '5614'
|
15
|
-
RUBY_FORGE_PACKAGEID = '7123'
|
16
|
-
|
17
|
-
RDOC_TITLE = "Spree: Complete E-Commerce Solution for Ruby on Rails"
|
18
|
-
RDOC_EXTRAS = ["README.markdown", "CONTRIBUTORS", "CHANGELOG", "INSTALL", "LICENSE"]
|
19
|
-
|
20
|
-
namespace 'spree' do
|
21
|
-
spec = Gem::Specification.new do |s|
|
22
|
-
s.name = PKG_NAME
|
23
|
-
s.version = PKG_VERSION
|
24
|
-
s.summary = 'A complete e-commerce solution for Ruby on Rails.'
|
25
|
-
s.description = "Spree is a complete e-commerce solution designed for use by experienced Rails developers. No solution can possibly solve everyone’s needs perfectly. There are simply too many ways that people do business for us to model them all specifically. Rather then come up short (like so many projects before it), Spree’s approach is to simply accept this and not even try. Instead Spree tries to focus on solving the 90% of the problem that most commerce projects face and anticipate that the other 10% will need to be addressed by the end developer familiar with the client’s exact business requirements."
|
26
|
-
s.author = "Sean Schofield"
|
27
|
-
s.email = "sean@railsdog.com"
|
28
|
-
s.homepage = 'http://spreecommerce.com/'
|
29
|
-
s.rubyforge_project = RUBY_FORGE_PROJECT
|
30
|
-
s.platform = Gem::Platform::RUBY
|
31
|
-
s.bindir = 'bin'
|
32
|
-
s.executables = ['spree']
|
33
|
-
s.add_dependency 'rake', '>= 0.7.1'
|
34
|
-
s.add_dependency 'highline', '>= 1.4.0'
|
35
|
-
s.add_dependency 'rails', '= 2.3.4'
|
36
|
-
s.add_dependency 'activemerchant', '= 1.4.1'
|
37
|
-
s.add_dependency 'activerecord-tableless', '>= 0.1.0'
|
38
|
-
#s.add_dependency 'authlogic', '>=2.0.11' (For some reason including authlogic causes bug - see #433)
|
39
|
-
s.add_dependency 'calendar_date_select', '= 1.15'
|
40
|
-
s.add_dependency 'haml-edge', '>=2.1.37'
|
41
|
-
s.add_dependency 'chronic', '>=0.2.3'
|
42
|
-
s.add_dependency 'tlsmail', '= 0.0.1'
|
43
|
-
s.add_dependency 'rspec', '>= 1.2.0'
|
44
|
-
s.add_dependency 'rspec-rails', '>= 1.2.0'
|
45
|
-
s.add_dependency 'searchlogic', ">=2.3.5"
|
46
|
-
|
47
|
-
s.has_rdoc = true
|
48
|
-
#s.rdoc_options << '--title' << RDOC_TITLE << '--line-numbers' << '--main' << 'README'
|
49
|
-
rdoc_excludes = Dir["**"].reject { |f| !File.directory? f }
|
50
|
-
rdoc_excludes.each do |e|
|
51
|
-
s.rdoc_options << '--exclude' << e
|
52
|
-
end
|
53
|
-
#s.extra_rdoc_files = RDOC_EXTRAS
|
54
|
-
files = FileList['**/*']
|
55
|
-
files.exclude '**/._*'
|
56
|
-
files.exclude '**/*.rej'
|
57
|
-
files.exclude 'cache/'
|
58
|
-
#files.exclude 'config/database.yml'
|
59
|
-
files.exclude 'config/locomotive.yml'
|
60
|
-
files.exclude 'config/lighttpd.conf'
|
61
|
-
files.exclude 'config/mongrel_mimes.yml'
|
62
|
-
files.exclude 'db/schema.db'
|
63
|
-
files.exclude 'db/*.sqlite3'
|
64
|
-
files.exclude 'db/*.sql'
|
65
|
-
files.exclude /^doc/
|
66
|
-
files.exclude 'log/*.log'
|
67
|
-
files.exclude 'log/*.pid'
|
68
|
-
#files.include 'log/.keep'
|
69
|
-
files.exclude /^pkg/
|
70
|
-
files.include 'public/.htaccess.example'
|
71
|
-
files.exclude 'public/images/products'
|
72
|
-
files.exclude 'public/assets/products'
|
73
|
-
files.exclude 'tmp/'
|
74
|
-
files.exclude 'vendor/plugins/delegate_belongs_to/spec/app_root/log/*.log'
|
75
|
-
files.exclude 'vendor/plugins/resource_controller/test/*'
|
76
|
-
s.files = files.to_a
|
77
|
-
end
|
78
|
-
|
79
|
-
Rake::GemPackageTask.new(spec) do |pkg|
|
80
|
-
pkg.need_zip = true
|
81
|
-
pkg.need_tar = true
|
82
|
-
end
|
83
|
-
|
84
|
-
namespace :gem do
|
85
|
-
desc "Uninstall Gem"
|
86
|
-
task :uninstall do
|
87
|
-
sh "gem uninstall #{PKG_NAME}" rescue nil
|
88
|
-
end
|
89
|
-
|
90
|
-
desc "Install the gems needed for testing"
|
91
|
-
task :test_gems do
|
92
|
-
system "rake gems:install RAILS_ENV=test"
|
93
|
-
end
|
94
|
-
|
95
|
-
desc "Build and install Gem from source"
|
96
|
-
task :install => [:test_gems, :package, :uninstall] do
|
97
|
-
chdir("#{SPREE_ROOT}/pkg") do
|
98
|
-
latest = Dir["#{PKG_NAME}-*.gem"].last
|
99
|
-
sh "gem install #{latest}"
|
100
|
-
end
|
101
|
-
end
|
102
|
-
end
|
103
|
-
|
104
|
-
desc "Publish the release files to RubyForge."
|
105
|
-
task :release => [:gem, :package] do
|
106
|
-
files = ["gem", "tgz"].map { |ext| "pkg/#{PKG_FILE_NAME}.#{ext}" }
|
107
|
-
|
108
|
-
system %{rubyforge login --username #{RUBY_FORGE_USER}}
|
109
|
-
|
110
|
-
files.each do |file|
|
111
|
-
system %{rubyforge add_release #{RUBY_FORGE_GROUPID} #{RUBY_FORGE_PACKAGEID} "#{RELEASE_NAME}" #{file}}
|
112
|
-
end
|
113
|
-
end
|
114
|
-
end
|
@@ -1,27 +0,0 @@
|
|
1
|
-
// DB No Seconds Format: 2007-12-05 12:00
|
2
|
-
|
3
|
-
Date.padded2 = function(hour) { padded2 = hour.toString(); if ((parseInt(hour) < 10) || (parseInt(hour) == null)) padded2="0" + padded2; return padded2; }
|
4
|
-
Date.prototype.getAMPMHour = function() { hour=Date.padded2(this.getHours()); return (hour == null) ? 00 : (hour > 24 ? hour - 24 : hour ) }
|
5
|
-
Date.prototype.getAMPM = function() { return (this.getHours() < 12) ? "" : ""; }
|
6
|
-
|
7
|
-
Date.prototype.toFormattedString = function(include_time){
|
8
|
-
str = this.getFullYear() + "-" + (this.getMonth() + 1) + "-" + Date.padded2(this.getDate());
|
9
|
-
if (include_time) { hour=this.getHours(); str += " " + this.getAMPMHour() + ":" + this.getPaddedMinutes() }
|
10
|
-
return str;
|
11
|
-
}
|
12
|
-
|
13
|
-
Date.parseFormattedString = function (string) {
|
14
|
-
var regexp = '([0-9]{4})-(([0-9]{1,2})-(([0-9]{1,2})( ([0-9]{1,2}):([0-9]{2})? *)?)?)?';
|
15
|
-
var d = string.match(new RegExp(regexp, "i"));
|
16
|
-
if (d==null) return Date.parse(string); // at least give javascript a crack at it.
|
17
|
-
var offset = 0;
|
18
|
-
var date = new Date(d[1], 0, 1);
|
19
|
-
if (d[3]) { date.setMonth(d[3] - 1); }
|
20
|
-
if (d[5]) { date.setDate(d[5]); }
|
21
|
-
if (d[7]) {
|
22
|
-
date.setHours(parseInt(d[7], 10));
|
23
|
-
}
|
24
|
-
if (d[8]) { date.setMinutes(d[8]); }
|
25
|
-
if (d[10]) { date.setSeconds(d[10]); }
|
26
|
-
return date;
|
27
|
-
}
|
@@ -1,7 +0,0 @@
|
|
1
|
-
// Formats date and time as "2000.01.20 17:00"
|
2
|
-
Date.prototype.toFormattedString = function(include_time)
|
3
|
-
{
|
4
|
-
str = this.getFullYear() + "." + Date.padded2(this.getMonth()+1) + "." + Date.padded2(this.getDate());
|
5
|
-
if (include_time) { str += " " + this.getHours() + ":" + this.getPaddedMinutes() }
|
6
|
-
return str;
|
7
|
-
}
|
@@ -1,46 +0,0 @@
|
|
1
|
-
Date.prototype.toFormattedString = function(include_time) {
|
2
|
-
var hour;
|
3
|
-
var str = this.getFullYear() + "-" + Date.padded2(this.getMonth() + 1) + "-" +Date.padded2(this.getDate());
|
4
|
-
if (include_time) {
|
5
|
-
hour = this.getHours();
|
6
|
-
str += " " + this.getHours() + ":" + this.getPaddedMinutes();
|
7
|
-
}
|
8
|
-
return str;
|
9
|
-
};
|
10
|
-
|
11
|
-
Date.parseFormattedString = function (string) {
|
12
|
-
|
13
|
-
var regexp = "([0-9]{4})(-([0-9]{2})(-([0-9]{2})" +
|
14
|
-
"( ([0-9]{1,2}):([0-9]{2})?" +
|
15
|
-
"?)?)?)?";
|
16
|
-
|
17
|
-
var d = string.match(new RegExp(regexp, "i"));
|
18
|
-
if (d === null) {
|
19
|
-
return Date.parse(string); // at least give javascript a crack at it.
|
20
|
-
}
|
21
|
-
var offset = 0;
|
22
|
-
var date = new Date(d[1], 0, 1);
|
23
|
-
if (d[3]) {
|
24
|
-
date.setMonth(d[3] - 1);
|
25
|
-
}
|
26
|
-
if (d[5]) {
|
27
|
-
date.setDate(d[5]);
|
28
|
-
}
|
29
|
-
if (d[7]) {
|
30
|
-
date.setHours(d[7]);
|
31
|
-
}
|
32
|
-
if (d[8]) {
|
33
|
-
date.setMinutes(d[8]);
|
34
|
-
}
|
35
|
-
if (d[0]) {
|
36
|
-
date.setSeconds(d[0]);
|
37
|
-
}
|
38
|
-
if (d[2]) {
|
39
|
-
date.setMilliseconds(Number("0." + d[2]));
|
40
|
-
}
|
41
|
-
if (d[4]) {
|
42
|
-
offset = (Number(d[6])) + Number(d[8]);
|
43
|
-
offset = ((d[5] == '-') ? 1 : -1);
|
44
|
-
}
|
45
|
-
return date;
|
46
|
-
};
|
@@ -1,11 +0,0 @@
|
|
1
|
-
Date.weekdays = $w('Mo Di Mi Do Fr Sa So');
|
2
|
-
Date.months = $w('Januar Februar März April Mai Juni Juli August September Oktober November Dezember');
|
3
|
-
|
4
|
-
Date.first_day_of_week = 1;
|
5
|
-
|
6
|
-
_translations = {
|
7
|
-
"OK": "OK",
|
8
|
-
"Now": "Jetzt",
|
9
|
-
"Today": "Heute",
|
10
|
-
"Clear": "Löschen"
|
11
|
-
}
|
@@ -1,10 +0,0 @@
|
|
1
|
-
Date.weekdays = $w("Ma Ti Ke To Pe La Su");
|
2
|
-
Date.months = $w("Tammikuu Helmikuu Maaliskuu Huhtikuu Toukokuu Kes�kuu Hein�kuu Elokuu Syyskuu Lokakuu Marraskuu Joulukuu" );
|
3
|
-
|
4
|
-
Date.first_day_of_week = 1
|
5
|
-
|
6
|
-
_translations = {
|
7
|
-
"OK": "OK",
|
8
|
-
"Now": "Nyt",
|
9
|
-
"Today": "T�n��n"
|
10
|
-
}
|
@@ -1,10 +0,0 @@
|
|
1
|
-
Date.weekdays = $w('L Ma Me J V S D');
|
2
|
-
Date.months = $w('Janvier Février Mars Avril Mai Juin Juillet Août Septembre Octobre Novembre Décembre');
|
3
|
-
|
4
|
-
Date.first_day_of_week = 1;
|
5
|
-
|
6
|
-
_translations = {
|
7
|
-
"OK": "OK",
|
8
|
-
"Now": "Maintenant",
|
9
|
-
"Today": "Aujourd'hui"
|
10
|
-
}
|
@@ -1,10 +0,0 @@
|
|
1
|
-
Date.weekdays = $w('P W Ś C P S N');
|
2
|
-
Date.months = $w('Styczeń Luty Marzec Kwiecień Maj Czerwiec Lipiec Sierpień Wrzesień Październik Listopad Grudzień');
|
3
|
-
|
4
|
-
Date.first_day_of_week = 1
|
5
|
-
|
6
|
-
_translations = {
|
7
|
-
"OK": "OK",
|
8
|
-
"Now": "Teraz",
|
9
|
-
"Today": "Dziś"
|
10
|
-
}
|
@@ -1,11 +0,0 @@
|
|
1
|
-
Date.weekdays = $w('D S T Q Q S S');
|
2
|
-
Date.months = $w('Janeiro Fevereiro Março Abril Maio Junho Julho Agosto Setembro Outubro Novembro Dezembro');
|
3
|
-
|
4
|
-
Date.first_day_of_week = 0
|
5
|
-
|
6
|
-
_translations = {
|
7
|
-
"OK": "OK",
|
8
|
-
"Now": "Agora",
|
9
|
-
"Today": "Hoje",
|
10
|
-
"Clear": "Limpar"
|
11
|
-
}
|