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.
Files changed (3) hide show
  1. data/Rakefile +20 -10
  2. data/VERSION.yml +1 -1
  3. 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/the-perfect-gem/"
50
- local_dir = 'rdoc'
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
@@ -1,4 +1,4 @@
1
1
  ---
2
2
  :minor: 4
3
3
  :major: 0
4
- :patch: 2
4
+ :patch: 3
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: abhiyerra-refacebook
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.2
4
+ version: 0.4.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Abhi Yerra