My favorites
▼
|
Sign in
substruct
Open-source Ruby on Rails E-Commerce
Project Home
Downloads
Wiki
Issues
Source
READ-ONLY: This project has been
archived
. For more information see
this post
.
Search
Search within:
All issues
Open issues
New issues
Issues to verify
for
Advanced search
Search tips
Subscriptions
Issue
118
attachment: install_gems_option.patch
(1.2 KB)
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
Index: plugins/substruct/tasks/substruct.rake
===================================================================
--- plugins/substruct/tasks/substruct.rake (revision 163)
+++ plugins/substruct/tasks/substruct.rake (working copy)
@@ -36,9 +36,18 @@
stale = Session.find(:all, :conditions => ["updated_at <= ?", Time.now - Session::SESSION_TIMEOUT])
stale.each { |s| s.destroy }
end
+
+ REQUIRED_GEMS = %w(RedCloth fastercsv mime-types mini_magick ezcrypto)
# DATABASE ==================================================================
-
+ desc "Install gems substruct relies on -- #{REQUIRED_GEMS.inspect}"
+ task :install_substruct_required_gems do |task_args|
+ REQUIRED_GEMS.each do |gem|
+ print "installing #{gem}"
+ system("gem install #{gem}")
+ end
+ end
+
namespace :db do
desc %q\
@@ -50,7 +59,7 @@
# Check requirements
require 'rubygems' unless Object.const_defined?(:Gem)
- %w(RedCloth fastercsv mime-types mini_magick ezcrypto).each do |gem_name|
+ REQUIRED_GEMS.each do |gem_name|
check_installed_gem(gem_name)
end
@@ -354,4 +363,4 @@
puts
raise
end
-end
\ No newline at end of file
+end
Powered by
Google Project Hosting