[Rubygems-developers] FW: [ANN] arrayfields-3.0.0

Richard Kilmer rich at infoether.com
Wed Jun 30 00:17:16 EDT 2004


Nice ruby-talk post !!!!!

Go Gems!

-rich

------ Forwarded Message
From: "Mehr, Assaph (Assaph)" <assaph at avaya.com>
Reply-To: <ruby-talk at ruby-lang.org>
Date: Wed, 30 Jun 2004 12:33:24 +0900
To: ruby-talk ML <ruby-talk at ruby-lang.org>
Subject: Re: [ANN] arrayfields-3.0.0


1. The VERSION file in arrayfields-3.1.0.tgz still reads 3.0.0.
2. Can you release as a gem? And to save you the trouble...


C:\temp\arrayfields>cat arrayfields.gemspec

require 'rubygems'

spec = Gem::Specification.new do |s|
  s.name = 'arrayfields'
  s.version = File.read("VERSION").strip
  s.platform = Gem::Platform::RUBY
  s.summary = "Allow keyword access to arrays"
  s.files = %w{lib/arrayfields.rb}
  s.require_path = 'lib'
  s.autorequire = "arrayfields"

  s.has_rdoc = true
  s.test_suite_file = "test/arrayfields.rb"


  s.author = "Ara T. Howard"
  s.email = "ara.t.howard at noaa.gov"
  s.homepage = "http://raa.ruby-lang.org/project/arrayfields"
end

if $0==__FILE__
  Gem::Builder.new(spec).build
end

C:\temp\arrayfields>ruby arrayfields.gemspec
  Successfully built RubyGem
  Name: arrayfields
  Version: 3.1.0
  File: arrayfields-3.1.0.gem

C:\temp\arrayfields>gem --run-tests -i arrayfields-3.1.0.gem
Attempting local installation of 'arrayfields-3.1.0.gem'
Successfully installed arrayfields version 3.1.0

C:\temp\arrayfields>ruby -r arrayfields -e 'a = [42]; a.fields =
[:answer]; p a[:answer]'
42



------ End of Forwarded Message




More information about the Rubygems-developers mailing list