Sha256: ce71c669f33b3e90caa0b9830ebff262bb96d00cd4ce3b4656752221337888a5

Contents?: true

Size: 1.56 KB

Versions: 2

Compression:

Stored size: 1.56 KB

Contents

require 'rubygems'
require 'rake/gempackagetask'
require 'rake/rdoctask'

gemspec = Gem::Specification.new do |spec|
  spec.name         = 'mtik'
  spec.version      = File.open('VERSION.txt','r').to_a.join.strip
  spec.date         = File.mtime('VERSION.txt')
  spec.author       = 'Aaron D. Gifford'
  spec.email        = 'email_not_accepted@aarongifford.com'
  spec.homepage     = 'http://www.aarongifford.com/computers/mtik/'
  spec.summary      = 'MTik implements the MikroTik RouterOS API for use in Ruby.'
  spec.description  = 'MTik implements the MikroTik RouterOS API for use in Ruby.'
  spec.has_rdoc     = true ## Only partially true currently
  spec.rubyforge_project = 'mtik'
  spec.extra_rdoc_files  = [ 'README.txt' ]
  spec.require_paths     = [ 'lib' ]
  spec.files             = [
    'CHANGELOG.txt',
    'LICENSE.txt',
    'README.txt',
    'VERSION.txt',
    'Rakefile',
    'examples/tikcli.rb',
    'examples/tikcommand.rb',
    'examples/tikfetch.rb',
    'examples/tikjson.rb',
    'lib/mtik.rb',
    'lib/mtik/connection.rb',
    'lib/mtik/error.rb',
    'lib/mtik/fatalerror.rb',
    'lib/mtik/reply.rb',
    'lib/mtik/request.rb',
    'lib/mtik/timeouterror.rb'
  ]
end

Rake::GemPackageTask.new(gemspec) do |pkg|
  pkg.need_zip = true
  pkg.need_tar = true
end

Rake::RDocTask.new do |rdoc|
  rdoc.name     = 'rdoc'
  rdoc.main     = 'README.txt'
  rdoc.rdoc_dir = 'doc'
  rdoc.rdoc_files.include('README.txt', 'LICENSE.txt', 'CHANGELOG.txt', 'lib/**/*.rb')
end

task :default => [
  'pkg/mtik-' + File.open('VERSION.txt','r').to_a.join.strip + '.gem',
  :rdoc
]

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
mtik-3.1.1 Rakefile
mtik-3.1.0 Rakefile