net-dns 0.5.0 → 0.5.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/Rakefile +38 -4
  2. data/VERSION.yml +3 -3
  3. data/net-dns.gemspec +2 -2
  4. metadata +2 -2
data/Rakefile CHANGED
@@ -63,12 +63,46 @@ Rake::RDocTask.new do |rdoc|
63
63
  rdoc.rdoc_files.include('lib/**/*.rb')
64
64
  end
65
65
 
66
- desc "Upload project on RubyForge"
67
- task :upload do
68
- rubyforge = Rake::RubyForgePublisher.new("net-dns","bluemonk")
69
- rubyforge.upload
66
+ begin
67
+ require 'rake/contrib/sshpublisher'
68
+ namespace :rubyforge do
69
+
70
+ desc "Release gem and RDoc documentation to RubyForge"
71
+ task :release => ["rubyforge:release:gem", "rubyforge:release:docs"]
72
+
73
+ namespace :release do
74
+ desc "Publish RDoc to RubyForge."
75
+ task :docs => [:rdoc] do
76
+ config = YAML.load(
77
+ File.read(File.expand_path('~/.rubyforge/user-config.yml'))
78
+ )
79
+
80
+ host = "#{config['username']}@rubyforge.org"
81
+ remote_dir = "/var/www/gforge-projects/net-dns"
82
+ local_dir = 'rdoc'
83
+
84
+ Rake::SshDirPublisher.new(host, remote_dir, local_dir).upload
85
+ end
86
+ end
87
+ end
88
+ rescue LoadError
89
+ puts "Rake SshDirPublisher is unavailable or your rubyforge environment is not configured."
70
90
  end
71
91
 
92
+ begin
93
+ require 'rake/contrib/rubyforgepublisher'
94
+
95
+ namespace :rubyforge do
96
+
97
+ desc "Upload project on RubyForge"
98
+ task :upload => [:release] do
99
+ rubyforge = Rake::RubyForgePublisher.new("net-dns","bluemonk")
100
+ rubyforge.upload
101
+ end
102
+ end
103
+ rescue LoadError
104
+ puts "Rake rubyforgePublisher is unavailable or your rubyforge environment is not configured."
105
+ end
72
106
 
73
107
  def egrep(pattern)
74
108
  Dir['**/*.rb'].each do |fn|
data/VERSION.yml CHANGED
@@ -1,4 +1,4 @@
1
- ---
1
+ ---
2
2
  :minor: 5
3
- :patch: 0
4
- :major: 0
3
+ :patch: 1
4
+ :major: 0
data/net-dns.gemspec CHANGED
@@ -2,11 +2,11 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{net-dns}
5
- s.version = "0.5.0"
5
+ s.version = "0.5.1"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Marco Ceresa"]
9
- s.date = %q{2009-06-11}
9
+ s.date = %q{2009-06-12}
10
10
  s.description = %q{Net::DNS is a pure Ruby DNS library, with a clean OO interface and an extensible API}
11
11
  s.email = %q{ceresa@gmail.com}
12
12
  s.extra_rdoc_files = [
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: net-dns
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marco Ceresa
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-06-11 00:00:00 +01:00
12
+ date: 2009-06-12 00:00:00 +01:00
13
13
  default_executable:
14
14
  dependencies: []
15
15