-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
75 lines (70 loc) · 2.62 KB
/
Rakefile
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
require(File.join(File.dirname(__FILE__), 'config', 'boot'))
require 'rake'
require 'rake/testtask'
require 'rake/rdoctask'
require 'tasks/rails'
unless Rake::Task.task_defined? "db:sample"
Dir["#{SPREE_ROOT}/lib/tasks/**/*.rake"].sort.each { |ext| load ext }
end
begin
require 'jeweler'
Jeweler::Tasks.new do |s|
s.name = "spree"
s.summary = "Open Source E-Commerce for Ruby on Rails"
s.description = "The most flexible commerce platform available - designed from the ground up to be as open and extensible as possible."
s.email = "sean@railsdog.com"
s.homepage = "http://github.com/railsdog/spree"
s.authors = ["Sean Schofield"]
s.bindir = 'bin'
s.executables = ['spree']
s.rubyforge_project = 'spree'
s.version = Spree::Version
s.add_dependency 'rake', '>= 0.7.1'
s.add_dependency 'rails', '= 2.3.5'
s.add_dependency 'rack', '>= 1.0.1' # only here b/c rails 2.3.5 lamely forgets to require it
s.add_dependency 'highline', '= 1.5.1'
s.add_dependency 'authlogic', '>=2.1.2'
s.add_dependency 'authlogic-oid', "1.0.4"
s.add_dependency 'activemerchant', '= 1.5.1'
s.add_dependency 'activerecord-tableless', '= 0.1.0'
s.add_dependency 'less', "1.2.20"
s.add_dependency 'stringex', "1.0.3"
s.add_dependency 'chronic', '0.2.3'
s.add_dependency 'whenever', "0.3.7"
s.add_dependency 'searchlogic', "2.3.5"
s.add_dependency 'will_paginate', "2.3.11"
s.add_dependency 'state_machine', "0.8.0"
s.add_dependency 'faker', "0.3.1"
s.add_dependency 'paperclip', "= 2.3.1.1"
s.has_rdoc = true
rdoc_excludes = Dir["**"].reject { |f| !File.directory? f }
rdoc_excludes.each do |e|
s.rdoc_options << '--exclude' << e
end
files = FileList['**/*']
files.exclude '**/._*'
files.exclude '**/*.rej'
files.exclude 'cache/'
files.exclude 'config/locomotive.yml'
files.exclude 'config/lighttpd.conf'
files.exclude 'config/mongrel_mimes.yml'
files.exclude 'db/*.db'
files.exclude 'db/*.sqlite3'
files.exclude 'db/*.sql'
files.exclude /^doc/
files.exclude 'log/*.log'
files.exclude 'log/*.pid'
files.exclude /^pkg/
files.include 'public/.htaccess.example'
files.exclude 'public/images/products'
files.exclude 'public/assets/products'
files.exclude 'spree.gemspec'
files.exclude 'tmp/'
files.exclude 'vendor/plugins/delegate_belongs_to/spec/app_root/log/*.log'
files.exclude 'vendor/plugins/resource_controller/test/*'
s.files = files.to_a
end
Jeweler::GemcutterTasks.new
rescue LoadError
#puts "Jeweler not available. Install it with: sudo gem install jeweler"
end