File: Rakefile

package info (click to toggle)
ruby-rubyforge 2.0.4-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd, wheezy
  • size: 116 kB
  • ctags: 87
  • sloc: ruby: 811; makefile: 2
file content (40 lines) | stat: -rw-r--r-- 972 bytes parent folder | download
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
# -*- ruby -*-

require 'rubygems'
require 'hoe'
require 'json'

abort "you _must_ install this gem to release it" if
  ENV['VERSION'] && ENV['VERSION'] != RubyForge::VERSION

Hoe.plugin :email

Hoe.spec "rubyforge" do 
  developer 'Ryan Davis',   'ryand-ruby@zenspider.com'
  developer 'Eric Hodel',   'drbrain@segment7.net'
  developer 'Ara T Howard', 'ara.t.howard@gmail.com'
  developer 'Tom Copeland', 'tom@infoether.com'

  multiruby_skip << "rubinius"
  extra_deps << ["json_pure",">= 1.1.7"]
  self.rubyforge_name = "codeforpeople"
  self.need_tar       = false
end

task :postrelease => :announce

task :backup do
  Dir.chdir File.expand_path("~/.rubyforge") do
    cp "user-config.yml",  "user-config.yml.bak"
    cp "auto-config.yml",  "auto-config.yml.bak"
  end
end

task :restore do
  Dir.chdir File.expand_path("~/.rubyforge") do
    cp "user-config.yml.bak",  "user-config.yml"
    cp "auto-config.yml.bak",  "auto-config.yml"
  end
end

# vim:syntax=ruby