environmentalist 0.2.2 → 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +13 -1
- data/VERSION.yml +1 -1
- metadata +1 -1
data/Rakefile
CHANGED
@@ -2,6 +2,8 @@ require 'rake'
|
|
2
2
|
require 'rake/testtask'
|
3
3
|
require 'rake/rdoctask'
|
4
4
|
|
5
|
+
gem 'jeweler', '~> 0.10.2'
|
6
|
+
|
5
7
|
begin
|
6
8
|
require 'jeweler'
|
7
9
|
Jeweler::Tasks.new do |s|
|
@@ -20,6 +22,16 @@ rescue LoadError
|
|
20
22
|
puts "Jeweler, or one of its dependencies, is not available. Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com"
|
21
23
|
end
|
22
24
|
|
25
|
+
require 'rake/rdoctask'
|
26
|
+
Rake::RDocTask.new do |rdoc|
|
27
|
+
config = YAML.load(File.read('VERSION.yml'))
|
28
|
+
rdoc.rdoc_dir = 'rdoc'
|
29
|
+
rdoc.title = "timecop #{config[:major]}.#{config[:minor]}.#{config[:patch]}"
|
30
|
+
rdoc.options << '--line-numbers' << '--inline-source'
|
31
|
+
rdoc.rdoc_files.include('README*')
|
32
|
+
rdoc.rdoc_files.include('lib/**/*.rb')
|
33
|
+
end
|
34
|
+
|
23
35
|
begin
|
24
36
|
require 'rake/contrib/sshpublisher'
|
25
37
|
namespace :rubyforge do
|
@@ -35,7 +47,7 @@ begin
|
|
35
47
|
)
|
36
48
|
|
37
49
|
host = "#{config['username']}@rubyforge.org"
|
38
|
-
remote_dir = "/var/www/gforge-projects/
|
50
|
+
remote_dir = "/var/www/gforge-projects/johntrupiano/environmentalist"
|
39
51
|
local_dir = 'rdoc'
|
40
52
|
|
41
53
|
Rake::SshDirPublisher.new(host, remote_dir, local_dir).upload
|
data/VERSION.yml
CHANGED