Sha256: 0ec94a7d44c89a90ebd6ac5d9bfeb19a66d51cce2542cc76736973857f53adc6

Contents?: true

Size: 1.52 KB

Versions: 1

Compression:

Stored size: 1.52 KB

Contents

begin
  require 'rubygems'
  require 'rake/gempackagetask'

  SPEC = Gem::Specification.new do |s|
    s.name = 'bindata'
    s.version = CURRENT_VERSION
    s.platform = Gem::Platform::RUBY
    s.summary = 'A declarative way to read and write binary file formats'
    s.author = 'Dion Mendel'
    s.email = 'dion@lostrealm.com'
    s.homepage = 'http://bindata.rubyforge.org'
    s.rubyforge_project = 'bindata'
    s.require_path = 'lib'
    s.has_rdoc = true
    s.extra_rdoc_files = ['NEWS']
    s.rdoc_options << '--main' << 'NEWS'
    s.files = PKG_FILES
    s.add_development_dependency('rspec')
    s.add_development_dependency('haml')
    s.add_development_dependency('maruku')
    s.add_development_dependency('syntax')
    s.description = <<-END.gsub(/^ +/, "")
      BinData provides an easy (and more readable) alternative to ruby's
      #pack and #unpack methods.

      It does this by providing a declarative way of specifying structured
      binary data.  This means the programmer specifies *what* the format
      of the binary data is, and BinData works out *how* to read and write
      data in this format.
    END
  end

  Rake::GemPackageTask.new(SPEC) do |pkg|
    pkg.need_tar_gz = true
  end

  file "bindata.gemspec" => ["Rakefile", "lib/bindata.rb"] do |t|
    require 'yaml'
    open(t.name, "w") { |f| f.puts SPEC.to_yaml }
  end

  CLOBBER.include("bindata.gemspec")

  desc "Create a stand-alone gemspec"
  task :gemspec => "bindata.gemspec"
rescue LoadError
  puts "RubyGems must be installed to build the package"
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
bindata-1.2.0 tasks/pkg.rake