Sha256: 2ae487a4006a268b3de54171f9c7282fd4358683abd98d708fc44d03c13fd780

Contents?: true

Size: 1.46 KB

Versions: 1

Compression:

Stored size: 1.46 KB

Contents

require 'rake'
require 'rake/testtask'
require 'rake/gempackagetask'
require 'rake/rdoctask'
require 'rake/clean'

# test target
Rake::TestTask.new do |test|
    test.libs  << "lib"
end

# package target
PKG_VERSION = '1.0.2'
PKG_FILES = FileList[
    'Rakefile',
    'README',
    'setup.rb',
    'lib/**/*.rb',
    'test/**/test*.rb',
    'test/**/*.yaml',
    'examples/*.rb',
    'data/**/*.yaml']

CLEAN.include 'pkg'
CLEAN.include 'doc'
CLEAN.include 'web/web'

spec = Gem::Specification.new do |s|
    s.platform = Gem::Platform::RUBY
    s.summary = "A Ruby implementation of SNMP (the Simple Network Management Protocol)."
    s.name = 'snmp'
    s.version = PKG_VERSION
    s.files = PKG_FILES.to_a
    s.has_rdoc = true
    s.extra_rdoc_files = ['README']    
    s.rdoc_options << '--main' << 'README' <<
                      '--title' << 'SNMP Library for Ruby'
    s.description = "A Ruby implementation of SNMP (the Simple Network Management Protocol)."
    s.author = 'Dave Halliday'
    s.email = 'hallidave@gmail.com'
    s.rubyforge_project = 'snmplib'
    s.homepage = 'http://snmplib.rubyforge.org'
end

Rake::GemPackageTask.new(spec) do |package|
    package.need_zip = true
    package.need_tar = true
end

# rdoc, clobber_rdoc, rerdoc targets
Rake::RDocTask.new do |doc|
    doc.rdoc_dir = "doc"
    doc.main = "README"
    doc.rdoc_files.include('README', 'lib/**/*.rb')
    doc.title = "SNMP Library for Ruby"
end 

task :web => :rdoc do
    require 'web/generate'  
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
snmp-1.0.2 Rakefile