public
Description: Substitute for the "rails" command that can pre-install any gems, init a git db, and/or freeze rails, etc on top of a rails application
Homepage: http://suprails.org
Clone URL: git://github.com/listrophy/suprails.git
angelic (author)
Sat Dec 20 14:07:47 -0800 2008
listrophy (committer)
Wed Dec 31 12:21:05 -0800 2008
suprails / Rakefile
100644 67 lines (59 sloc) 1.898 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
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
require 'rubygems'
require 'rake/gempackagetask'
require 'rake/testtask'
 
spec = Gem::Specification.new do |s|
  s.name = "suprails"
  s.version = "0.2.1"
  s.date = "2008-11-30"
  s.authors = ["Bradley Grzesiak"]
  s.email = "listrophy@gmail.com"
  s.summary = 'Suprails provides a wrapper to the rails command'
  s.homepage = 'http://suprails.org'
  s.files = ["README",
    "COPYING",
    "TODO",
    "lib/db.rb",
    "lib/facet.rb",
    "lib/gems.rb",
    "lib/insertion_helper.rb",
    "lib/runner.rb",
    "lib/suprails.rb",
    "lib/suprails_helper.rb",
    "lib/yaml_helper.rb",
    "facets/haml.rb",
    "bin/suprails",
    "suprails.config.example"]
  s.executables << "suprails"
  s.rubyforge_project = 'suprails'
  s.description = <<-EOF
This project is intended to be a replacement for the "rails" command. It
does not replace the rails framework but rather provides a starting point
for a rails application far beyond what the "rails" command provides.
During execution, in fact, the suprails command calls the rails command.
EOF
  
  if s.respond_to? :specification_version then
    current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
    s.specification_version = 2
 
    if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
      s.add_runtime_dependency(%q<rails>, [">= 0"])
    else
      s.add_dependency(%q<rails>, [">= 0"])
    end
  else
    s.add_dependency(%q<rails>, [">= 0"])
  end
end
 
package_task = Rake::GemPackageTask.new(spec) {}
 
desc "Build the project into a gem"
task :build_gemspec do
  File.open("#{spec.name}.gemspec", 'w') do |f|
    f.write spec.to_ruby
  end
end
 
task :default => [:build_gemspec, :gem]
 
desc "Run all the tests"
Rake::TestTask.new do |t|
    t.libs << "test" << "lib/#{::Config::CONFIG['arch']}"
    t.test_files = FileList['test/test_*.rb']
    t.verbose = true
end