Sha256: f0430d781cda8fc009f50671071d82b8fef562fbf442ce7da1ec5267e8acce9e

Contents?: true

Size: 1.28 KB

Versions: 1

Compression:

Stored size: 1.28 KB

Contents

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

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

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

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.requirements << 'none'
    s.require_path = 'lib'
    s.autorequire = 'snmp'
    s.files = PKG_FILES.to_a
    s.has_rdoc = true
    s.extra_rdoc_files = ['README']    
    s.description = "A Ruby implementation of SNMP (the Simple Network Management Protocol)."
    s.author = 'Dave Halliday'
    s.email = 'snmp@halliday.ca'
    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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
snmp-0.4.1 Rakefile