sinatra-pages 0.6.1 → 0.6.2
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +9 -9
- metadata +1 -1
data/Rakefile
CHANGED
@@ -25,6 +25,11 @@ Rake::GemPackageTask.new(GEM) do |package|
|
|
25
25
|
package.need_zip = false
|
26
26
|
end
|
27
27
|
|
28
|
+
desc "Install the generated Gem into your system."
|
29
|
+
task :install => [:clean, :rdoc, :package] do
|
30
|
+
sh 'gem19 install pkg/*.gem'
|
31
|
+
end
|
32
|
+
|
28
33
|
namespace :deployment do
|
29
34
|
desc "Deployment on Github and my own Server."
|
30
35
|
task :github do
|
@@ -41,6 +46,9 @@ namespace :deployment do
|
|
41
46
|
end
|
42
47
|
end
|
43
48
|
|
49
|
+
desc "Deployment on Github and Gemcutter."
|
50
|
+
task :deploy => ['deployment:github', 'deployment:gemcutter']
|
51
|
+
|
44
52
|
desc 'Functional testing with RSpec.'
|
45
53
|
Spec::Rake::SpecTask.new :spec do |task|
|
46
54
|
task.spec_opts = %w[--options spec/opts/spec.opts]
|
@@ -50,7 +58,7 @@ Spec::Rake::SpecTask.new :spec do |task|
|
|
50
58
|
end
|
51
59
|
|
52
60
|
desc 'Functional testing with RSpec and RCov.'
|
53
|
-
Spec::Rake::SpecTask.new
|
61
|
+
Spec::Rake::SpecTask.new :rcov do |task|
|
54
62
|
task.spec_opts = %w[--options spec/opts/spec.opts]
|
55
63
|
task.libs = %w[lib spec]
|
56
64
|
task.spec_files = FileList['spec/*_spec.rb']
|
@@ -58,13 +66,5 @@ Spec::Rake::SpecTask.new(:rcov) do |task|
|
|
58
66
|
task.rcov_opts = IO.readlines('spec/opts/rcov.opts').each{|line| line.chomp!}
|
59
67
|
end
|
60
68
|
|
61
|
-
desc "Install the generated Gem into your system."
|
62
|
-
task :install => [:package] do
|
63
|
-
sh 'gem19 install pkg/*.gem'
|
64
|
-
end
|
65
|
-
|
66
|
-
desc "Deployment on Github and Gemcutter."
|
67
|
-
task :deploy => ['deployment:github', 'deployment:gemcutter']
|
68
|
-
|
69
69
|
desc "Default is Functional testing with RSpec."
|
70
70
|
task :default => [:spec]
|