abhiyerra-refacebook 0.4.2 → 0.4.3
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +20 -10
- data/VERSION.yml +1 -1
- metadata +1 -1
data/Rakefile
CHANGED
@@ -1,16 +1,9 @@
|
|
1
1
|
# -*- ruby -*-
|
2
2
|
|
3
3
|
require 'rubygems'
|
4
|
+
require 'rake/rdoctask'
|
4
5
|
require './lib/refacebook.rb'
|
5
6
|
|
6
|
-
begin
|
7
|
-
require 'spec/rake/spectask'
|
8
|
-
rescue LoadError
|
9
|
-
puts 'To use rspec for testing you must install rspec gem:'
|
10
|
-
puts '$ sudo gem install rspec'
|
11
|
-
exit
|
12
|
-
end
|
13
|
-
|
14
7
|
begin
|
15
8
|
require 'jeweler'
|
16
9
|
Jeweler::Tasks.new do |gemspec|
|
@@ -31,6 +24,15 @@ rescue LoadError
|
|
31
24
|
puts "Jeweler not available. Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com"
|
32
25
|
end
|
33
26
|
|
27
|
+
desc 'Generate documentation.'
|
28
|
+
Rake::RDocTask.new(:rdoc) do |rdoc|
|
29
|
+
rdoc.rdoc_dir = 'doc'
|
30
|
+
rdoc.title = 'ReFacebook'
|
31
|
+
rdoc.options << '--line-numbers' << '--inline-source'
|
32
|
+
rdoc.rdoc_files.include('README.*')
|
33
|
+
rdoc.rdoc_files.include('lib/**/*.rb')
|
34
|
+
end
|
35
|
+
|
34
36
|
begin
|
35
37
|
require 'rake/contrib/sshpublisher'
|
36
38
|
namespace :rubyforge do
|
@@ -46,8 +48,8 @@ begin
|
|
46
48
|
)
|
47
49
|
|
48
50
|
host = "#{config['username']}@rubyforge.org"
|
49
|
-
remote_dir = "/var/www/gforge-projects/
|
50
|
-
local_dir = '
|
51
|
+
remote_dir = "/var/www/gforge-projects/refacebook/"
|
52
|
+
local_dir = 'doc'
|
51
53
|
|
52
54
|
Rake::SshDirPublisher.new(host, remote_dir, local_dir).upload
|
53
55
|
end
|
@@ -57,6 +59,14 @@ rescue LoadError
|
|
57
59
|
puts "Rake SshDirPublisher is unavailable or your rubyforge environment is not configured."
|
58
60
|
end
|
59
61
|
|
62
|
+
begin
|
63
|
+
require 'spec/rake/spectask'
|
64
|
+
rescue LoadError
|
65
|
+
puts 'To use rspec for testing you must install rspec gem:'
|
66
|
+
puts '$ sudo gem install rspec'
|
67
|
+
exit
|
68
|
+
end
|
69
|
+
|
60
70
|
desc "Runnings the specs"
|
61
71
|
Spec::Rake::SpecTask.new do |t|
|
62
72
|
t.spec_files = FileList['spec/**/*_spec.rb']
|
data/VERSION.yml
CHANGED