-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathRakefile
43 lines (36 loc) · 1020 Bytes
/
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
task :cruise => [:test_env, "bundler", "testapp", :environment, "inkling:rebuild", "spec"]
# task :one92 do
# system("rvm use 1.9.2")
# puts system("ruby -v")
# end
task :test_env do
ENV['RAILS_ENV'] = 'test'
end
task :bundler do
system('bundle install')
end
task :testapp do
include FileUtils
FileUtils.cd("testapp")
load 'Rakefile'
end
task :jeweler do
begin
require "jeweler"
require "./lib/inkling/version"
Jeweler::Tasks.new do |gem|
gem.name = "inkling"
gem.summary = "A content framework engine for Rails 3"
gem.description = "A content framework engine for Rails 3"
gem.files = Dir["{lib}/**/*", "{app}/**/*", "{config}/**/*"]
gem.version = Inkling::VERSION
gem.add_dependency("devise")
gem.add_dependency("inherited_resources")
gem.add_dependency("formtastic")
gem.add_dependency("cancan")
gem.add_dependency("rails")
end
rescue
puts "Jeweler or one of its dependencies is not installed."
end
end