[#343034] RUBY vs COMMON LISP — fft1976 <fft1976@...>

On Aug 1, 8:55=A0pm, p...@informatimago.com (Pascal J. Bourguignon)

16 messages 2009/08/02

[#343054] Inconsistency in Array#[] — Wojciech Piekutowski <w.piekutowski@...>

Disclaimer: I know what docs say, but I'd prefer a different

14 messages 2009/08/02

[#343135] Kind of ParsTree for 1.9.1 — Macario Ortega <macarui@...>

22 messages 2009/08/04

[#343186] Bizarre Range behavior — Scott Briggs <scott.br@...>

Can someone please explain this behavior in ruby (1.8.6p111):

42 messages 2009/08/04
[#343187] Re: Bizarre Range behavior — Yossef Mendelssohn <ymendel@...> 2009/08/04

On Aug 4, 1:47=A0pm, Scott Briggs <scott...@gmail.com> wrote:

[#343193] Re: Bizarre Range behavior — Rob Biedenharn <Rob@...> 2009/08/04

On Aug 4, 2009, at 3:04 PM, Yossef Mendelssohn wrote:

[#343196] Re: Bizarre Range behavior — "Matthew K. Williams" <matt@...> 2009/08/04

On Wed, 5 Aug 2009, Rob Biedenharn wrote:

[#343199] Re: Bizarre Range behavior — Rob Biedenharn <Rob@...> 2009/08/04

On Aug 4, 2009, at 3:45 PM, Matthew K. Williams wrote:

[#343234] Re: Bizarre Range behavior — Yukihiro Matsumoto <matz@...> 2009/08/05

Hi,

[#343251] Re: Bizarre Range behavior — Brian Candler <b.candler@...> 2009/08/05

Yukihiro Matsumoto wrote:

[#343261] Re: Bizarre Range behavior — Yukihiro Matsumoto <matz@...> 2009/08/05

Hi,

[#343266] Re: Bizarre Range behavior — "David A. Black" <dblack@...> 2009/08/05

Hi --

[#343272] Re: Bizarre Range behavior — Yukihiro Matsumoto <matz@...> 2009/08/05

Hi,

[#343273] Re: Bizarre Range behavior — Rick DeNatale <rick.denatale@...> 2009/08/05

On Wed, Aug 5, 2009 at 12:21 PM, Yukihiro Matsumoto<matz@ruby-lang.org> wro=

[#343235] remove commas from string — Jason Lillywhite <jason.lillywhite@...>

I have following string:

14 messages 2009/08/05

[#343288] including gems with standalone app — Eric Peterson <ericdp@...>

Morning,

10 messages 2009/08/05

[#343320] 1.9 String and M17N documentation — Brian Candler <b.candler@...>

I have put together a document which tries to outline the M17N

20 messages 2009/08/06
[#343351] Re: [ANN] 1.9 String and M17N documentation — James Gray <james@...> 2009/08/06

On Aug 6, 2009, at 6:47 AM, Brian Candler wrote:

[#343378] Re: [ANN] 1.9 String and M17N documentation — Eric Hodel <drbrain@...7.net> 2009/08/07

On Aug 6, 2009, at 08:57, James Gray wrote:

[#343423] How do I add ? — chutsu <chutsu@...>

I've got a file that is in two columns, how do I add the second column

14 messages 2009/08/07

[#343566] Reading contents of a file and storing — Shekar Ls <idealone5@...>

Guys,

14 messages 2009/08/10

[#343592] Destroying related objects doubt ... basic oop question — Soh Dubom <sohdubom@...>

::Destroying related objects doubt

16 messages 2009/08/10
[#343726] Re: Destroying related objects doubt ... basic oop question — Mike Stephens <rubfor@...> 2009/08/12

Yet another reason for steering well clear of object-relational mappers.

[#343751] Re: Destroying related objects doubt ... basic oop question — Fabian Streitel <karottenreibe@...> 2009/08/12

> Yet another reason for steering well clear of object-relational mappers.

[#343649] Good editor for Windows Ruby — Peter Bailey <pbailey@...>

Hello,

21 messages 2009/08/11

[#343658] Readline not working with Ruby — Stewart <stewart.matheson@...>

24 messages 2009/08/11

[#343756] Class#descendants? — Jason Lillywhite <jason.lillywhite@...>

Ruby can do Class#ancestors but not Class#descendants.

18 messages 2009/08/12
[#343757] Re: Class#descendants? — Joel VanderWerf <vjoel@...> 2009/08/12

Jason Lillywhite wrote:

[#343771] skip_before_filter (Do I need a lesson in modules/mixins?) — Cris Shupp <cshupp1@...>

Gurus,

13 messages 2009/08/12

[#343831] newbie question making a folder with ruby — Simon Staton <simon@...>

ok well the program I am in the middle of programming I need it to

20 messages 2009/08/13
[#343851] Re: newbie question making a folder with ruby — Lui Core <usurffx@...> 2009/08/13

Simon Staton wrote:

[#343898] Re: newbie question making a folder with ruby — Simon Staton <simon@...> 2009/08/14

Lui Core wrote:

[#343902] Re: newbie question making a folder with ruby — Simon Staton <simon@...> 2009/08/14

To give more of an idea this is the code that I have on the .rb file. it

[#343920] Class method aliased in superclass bypasses subclass overrides — Marcos <markjreed@...>

This seems like it should work:

11 messages 2009/08/14

[#344009] start_with? Does someone need a grammar lesson? — 7stud -- <bbxx789_05ss@...>

String#start_with?-------------------------------

15 messages 2009/08/17

[#344088] fromdos dos2unix in ruby — Krzysztof Cierpisz <ciapecki@...>

how can I achieve in ruby the result of running:

18 messages 2009/08/18
[#344103] Re: fromdos dos2unix in ruby — krzysztof cierpisz <ciapecki@...> 2009/08/18

>

[#344109] Re: fromdos dos2unix in ruby — Robert Klemme <shortcutter@...> 2009/08/18

2009/8/18 krzysztof cierpisz <ciapecki@gmail.com>:

[#344125] exercise in DRY — Peter Ehrlich <crazedcougar@...>

I have some simple code for a thumbs up/thumbs down functionality.

13 messages 2009/08/18

[#344180] #has_arguments? — Intransition <transfire@...>

Messing with optional argument check for the umpteenth time, eg.

23 messages 2009/08/19

[#344218] Confirm my Performance Test Against Java? — Ben Christensen <benjchristensen@...>

I'm evaluating Ruby for use in a variety of systems that are planned by

40 messages 2009/08/19
[#344222] Re: Confirm my Performance Test Against Java? — brabuhr@... 2009/08/19

On Wed, Aug 19, 2009 at 9:31 AM, Ben Christensen

[#344342] extending ruby - handling errors — Jason Lillywhite <jason.lillywhite@...>

I want to raise an ArgumentError, "Function only takes numeric objects."

11 messages 2009/08/20

[#344345] How do I estimate how long it will take a calculation to complete? — Paul <tester.paul@...>

Hi there, I wrote a short ruby script to calculate the prime factors

10 messages 2009/08/20

[#344366] Why, oh why, _why? — Karl von Laudermann <doodpants@...>

_why the lucky stiff appears to have disappeared from the internets!

79 messages 2009/08/20
[#344400] Re: Why, oh why, _why? — Ralf Mueller <ralf.mueller@...> 2009/08/21

Karl von Laudermann wrote:

[#344421] Re: Why, oh why, _why? — Gregory Brown <gregory.t.brown@...> 2009/08/21

On Fri, Aug 21, 2009 at 4:24 AM, Ralf Mueller<ralf.mueller@zmaw.de> wrote:

[#344432] Re: Why, oh why, _why? — Rick DeNatale <rick.denatale@...> 2009/08/21

On Fri, Aug 21, 2009 at 7:17 AM, Gregory Brown<gregory.t.brown@gmail.com> w=

[#344434] Re: Why, oh why, _why? — Gregory Brown <gregory.t.brown@...> 2009/08/21

On Fri, Aug 21, 2009 at 9:49 AM, Rick DeNatale<rick.denatale@gmail.com> wro=

[#344441] Re: Why, oh why, _why? — Jason Roelofs <jameskilton@...> 2009/08/21

On Fri, Aug 21, 2009 at 9:54 AM, Gregory Brown <gregory.t.brown@gmail.com>wrote:

[#344448] Re: Why, oh why, _why? — Xavier Noria <fxn@...> 2009/08/21

On Fri, Aug 21, 2009 at 4:07 PM, Jason Roelofs<jameskilton@gmail.com> wrote:

[#344453] Re: Why, oh why, _why? — Jason Roelofs <jameskilton@...> 2009/08/21

On Fri, Aug 21, 2009 at 10:23 AM, Xavier Noria <fxn@hashref.com> wrote:

[#344525] Re: Why, oh why, _why? — Todd Benson <caduceass@...> 2009/08/22

On Thu, Aug 20, 2009 at 3:10 PM, Karl von

[#344526] Re: Why, oh why, _why? — Todd Benson <caduceass@...> 2009/08/22

On Sat, Aug 22, 2009 at 7:43 AM, Todd Benson<caduceass@gmail.com> wrote:

[#344404] How to convert string "/regexp/i" to /regexp/i - ? — Joao Silva <rubyforum@...>

When i try to use:

20 messages 2009/08/21

[#344462] Github and _why — John W Higgins <wishdev@...>

I'm about to get very nasty responses but this absolutely is a very bad

19 messages 2009/08/21
[#344467] Re: Github and _why — Tony Arcieri <tony@...> 2009/08/21

On Fri, Aug 21, 2009 at 10:38 AM, John W Higgins <wishdev@gmail.com> wrote:

[#344545] 1.8.7 String#lines keeps new-line chars (say it ain't so in 1.9) — Intransition <transfire@...>

Ruby 1.8.7 p72

19 messages 2009/08/22

[#344554] Ruby Editor — sasan <sasan.bahrieh@...>

I need a good software for ruby programming. please post message for

21 messages 2009/08/22

[#344573] ruby-debug does not hit breakpoints at class-methods — Sys Ppp <systemppp@...>

ruby-1.8.6-p369

19 messages 2009/08/22
[#344593] Re: ruby-debug does not hit breakpoints at class-methods — 7stud -- <bbxx789_05ss@...> 2009/08/23

...and more

[#344597] Re: ruby-debug does not hit breakpoints at class-methods — Sys Ppp <systemppp@...> 2009/08/23

> $ rdebug r2test.rb

[#344652] Re: ruby-debug does not hit breakpoints at class-methods — 7stud -- <bbxx789_05ss@...> 2009/08/24

Sys Ppp wrote:

[#344653] Re: ruby-debug does not hit breakpoints at class-methods — 7stud -- <bbxx789_05ss@...> 2009/08/24

...or I guess this would be a better example:

[#344656] Re: ruby-debug does not hit breakpoints at class-methods — Sys Ppp <systemppp@...> 2009/08/24

To 7stud. These are all normal, except class-method, as i wrote.

[#344691] Re: ruby-debug does not hit breakpoints at class-methods — Rick DeNatale <rick.denatale@...> 2009/08/24

On Sun, Aug 23, 2009 at 11:50 PM, Sys Ppp<systemppp@gmail.com> wrote:

[#344705] Re: ruby-debug does not hit breakpoints at class-methods — Sys Ppp <systemppp@...> 2009/08/24

Rick Denatale wrote:

[#344580] Development - works, production not - why? — Joao Silva <rubyforum@...>

My development envrioment:

11 messages 2009/08/23

[#344680] Comparison Ruby, Python, Php, Groovy ecc. — Marco Mastrodonato <m.mastrodonato@...>

Comparison script languages for the fractal geometry, these are the

25 messages 2009/08/24
[#344684] Re: Comparison Ruby, Python, Php, Groovy ecc. — Urabe Shyouhei <shyouhei@...> 2009/08/24

Are those executables compiled with identical compilers + compile flags?

[#344717] _why's "suicide" note? — Graham Agnew <graham.agnew@...>

Just found this as _why's last tweet on the Google cached copy of _why's

12 messages 2009/08/24

[#344762] Calling method from another class — Kostas Lps <louposk@...>

Hi guys,

15 messages 2009/08/24

[#344872] ||= with 1.8 and 1.9 ? — Aldric Giacomoni <aldric@...>

A friend of mine on Twitter recently posted this tidbit of code:

30 messages 2009/08/26
[#344879] Re: ||= with 1.8 and 1.9 ? — Brian Candler <b.candler@...> 2009/08/26

Aldric Giacomoni wrote:

[#344899] Re: ||= with 1.8 and 1.9 ? — Rick DeNatale <rick.denatale@...> 2009/08/26

On Wed, Aug 26, 2009 at 11:08 AM, Brian Candler<b.candler@pobox.com> wrote:

[#344921] Re: ||= with 1.8 and 1.9 ? — Brian Candler <b.candler@...> 2009/08/26

Rick Denatale wrote:

[#344923] Re: ||= with 1.8 and 1.9 ? — Joel VanderWerf <vjoel@...> 2009/08/26

Brian Candler wrote:

[#344881] # sign does not work as expected form irb — Salvador Sanjuan <salvador.sanjuan@...>

I have just started Ruby. I have tried to do some exercises usin irb but

15 messages 2009/08/26
[#344887] Re: # sign does not work as expected form irb — Aldric Giacomoni <aldric@...> 2009/08/26

Salvador Sanjuan wrote:

[#344988] Re: # sign does not work as expected form irb — Salvador Sanjuan <salvador.sanjuan@...> 2009/08/27

Aldric Giacomoni wrote:

[#344938] Rack must not dictate how to create a middleware — Sys Ppp <systemppp@...>

In current realization of Rack::Builder the method :use dictates that

15 messages 2009/08/26
[#344940] Re: Rack must not dictate how to create a middleware — Brian Candler <b.candler@...> 2009/08/26

Sys Ppp wrote:

[#345037] Possible to use Ruby for Dynamic HTML sites without Rails? — Frank Peterson <fictionalperson@...>

How easy is this to do? I've been going though a Ruby book again (was

13 messages 2009/08/27

[#345070] I need a string#all_indices method--is there such a thing? — timr <timrandg@...>

In ruby you can use string#index as follows:

22 messages 2009/08/28

[#345079] #map, #select semantics — James Coglan <jcoglan@...>

I imagine this has come up before, though I can't find anything about it. I

16 messages 2009/08/28

[#345097] How to call this method — Robert Dober <robert.dober@...>

Hi list

15 messages 2009/08/28
[#345100] Re: How to call this method — Robert Klemme <shortcutter@...> 2009/08/28

2009/8/28 Robert Dober <robert.dober@gmail.com>:

[#345222] Sorting an array by multiple elements? — Paul <tester.paul@...>

Hi there, I have an array of arrays that I want to sort by multiple

14 messages 2009/08/30

[#345267] What is the ruby conventions to name private method? — pierr <pierr.chen@...>

16 messages 2009/08/31
[#345274] Re: What is the ruby conventions to name private method? — Ryan Davis <ryand-ruby@...> 2009/08/31

[#345322] help on phps $$ equivalent in ruby — Arthur Rats <simon.jacobs.ams@...>

i just cant find this anywhere, googling for a while and read up tons on

11 messages 2009/08/31

Re: gem list -r -d *** generates Error*** on http://gems.github.com

From: John <jhs408@...>
Date: 2009-08-02 15:45:08 UTC
List: ruby-talk #343049
On Jul 31, 3:49=A0pm, Eric Hodel <drbr...@segment7.net> wrote:
> On Jul 31, 2009, at 12:00, John wrote:
>
>
>
>
>
> > I'm using ruby 1.8.6 & gem 1.3.5 =A0:
>
> > I receive and error trying to list the details of
>
> > C:\Users\spanton>gem source
> > *** CURRENT SOURCES ***
>
> >http://gems.github.com
>
> > C:\Users\spanton>gem list -r -d
>
> > *** REMOTE GEMS ***
>
> > ERROR: =A0While executing gem ... (ArgumentError)
> > =A0 =A0comparison of String with 3 failed
>
> > Error also occurs, when using =A0 =A0gem list -r -d a
>
> > Yet it works ok, when using =A0 =A0 =A0 gem list -r -d b
>
> > Any ideas or workaround?
>
> $ rm -r ~/.gem/specs/gems.github.com%80/
>
> # I did this with just a as the search first and hit this gem:
>
> $ gem list -r -d --sourcehttp://gems.github.com-V andreasronge-neo4j
>
> *** REMOTE GEMS ***
>
> GET 200 OK:http://gems.github.com/latest_specs.4.8.gz
> GET 200 OK:http://gems.github.com/quick/Marshal.4.8/andreasronge-neo4j-0.=
0.4.gem...
> ERROR: =A0While executing gem ... (ArgumentError)
> =A0 =A0 =A0comparison of String with 3 failed
>
> So removing this gem from the index and rebuilding should fix the =A0
> problem.
>
> Anyhow, let's see why it's broken:
>
> $ curlhttp://gems.github.com/quick/Marshal.4.8/andreasronge-neo4j-0.0.4.g=
em...
> =A0 > neo4j.gemspec.rz
>
> Let's dump it out:
>
> $ ruby -rubygems -e 'Marshal.load =A0
> Gem.inflate(File.read("neo4j.gemspec.rz"))'
> /Library/Ruby/Site/1.8/rubygems/specification.rb:296:in `>': =A0
> comparison of String with 3 failed (ArgumentError)
> =A0 =A0 =A0 =A0 from /Library/Ruby/Site/1.8/rubygems/specification.rb:296=
:in `_load'
> =A0 =A0 =A0 =A0 from -e:1:in `load'
> =A0 =A0 =A0 =A0 from -e:1
>
> Yup, still fails, heavy artillery time! =A0Need to fake out the =A0
> Gem::Specification stuff and dump the spec:
>
> $ ruby -e 'module Gem; class Requirement; def marshal_load(arr) @arr =3D =
=A0
> arr; end; def inspect() @arr end; end; Version =3D Requirement; class =A0
> Specification; def self._load(str) p Marshal.load(str); nil end end; =A0
> end; Marshal.load File.read("neo4j.gemspec")'
> ["1.2.0", "2", "andreasronge-neo4j", 0.0.4, Wed Oct 22 15:00:00 -0700 =A0
> 2008, "A graph database for JRuby", >=3D#<Gem::Requirement:0x34c60>, =A0
> =A0>=3D#<Gem::Requirement:0x34b98>, "ruby", [], "neo4j", "andreas.ro...@g=
mail.com
> ", ["Andreas Ronge"], "A graph database for JRuby", "http://github.com/an=
dreasronge/neo4j/tree
> ", "true", "ruby", nil]
>
> Ok, so now we have a dump of the gem. =A0Let's look at where the error =
=A0
> came from in Gem::Specification:
>
> =A0 =A0 285 =A0 ##
> =A0 =A0 286 =A0 # Load custom marshal format, re-initializing defaults as=
 =A0
> needed
> =A0 =A0 287
> =A0 =A0 288 =A0 def self._load(str)
> =A0 =A0 289 =A0 =A0 array =3D Marshal.load str
> =A0 =A0 290
> =A0 =A0 291 =A0 =A0 spec =3D Gem::Specification.new
> =A0 =A0 292 =A0 =A0 spec.instance_variable_set :@specification_version, a=
rray[1]
> =A0 =A0 293
> =A0 =A0 294 =A0 =A0 current_version =3D CURRENT_SPECIFICATION_VERSION
> =A0 =A0 295
> -> 296 =A0 =A0 =A0 =A0 =A0 field_count =3D if spec.specification_version =
> =A0
> current_version then
> =A0 =A0 297 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0
> spec.instance_variable_set :@specification_version,
> =A0 =A0 298 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 current_version
> =A0 =A0 299 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0MARSHAL_FIELDS[cur=
rent_version]
> =A0 =A0 300 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0else
> =A0 =A0 301 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0MARSHAL_FIELDS[spe=
c.specification_version]
> =A0 =A0 302 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0end
> =A0 =A0 303
> =A0 =A0 304 =A0 =A0 =A0if array.size < field_count then
> =A0 =A0 305 =A0 =A0 =A0 =A0raise TypeError, "invalid Gem::Specification f=
ormat =A0
> #{array.inspec
> t}"
> =A0 =A0 306 =A0 =A0 =A0end
> =A0 =A0 307
> =A0 =A0 308 =A0 =A0 =A0spec.instance_variable_set :@rubygems_version, =A0=
 =A0 =A0 =A0 =A0
> array[0]
> =A0 =A0 309 =A0 =A0 =A0# spec version
> =A0 =A0 310 =A0 =A0 =A0spec.instance_variable_set :@name, =A0 =A0 =A0 =A0=
 =A0 =A0 =A0 =A0 =A0 =A0 =A0
> array[2]
> =A0 =A0 311 =A0 =A0 =A0spec.instance_variable_set :@version, =A0 =A0 =A0 =
=A0 =A0 =A0 =A0 =A0 =A0 =A0
> array[3]
>
> So, specification_version is what's broken with the gem. =A0RubyGems =A0
> expects it to be a number, but we can clearly see in the above dump =A0
> that the second item is a String. =A0The version of the gem is stored in =
=A0
> the fourth field, 0.0.4
>
> Pulling down this project and looking through the history we find:
>
> $ git log --grep=3Drelease
> [...]
> commit 0e10242e2ef63addf3ac294bb2e932202fa900fc
> Author: Andreas Ronge <andreas.ro...@gmail.com>
> Date: =A0 Mon Nov 17 23:05:26 2008 +0100
>
> =A0 =A0 =A0release 0.0.5, added CHANGELOG
>
> commit 0b283793ee2c8e0689274d85f049bb8c2cf4250c
> Author: andreas <andreas.ro...@gmail.com>
> Date: =A0 Thu Oct 23 16:19:27 2008 +0200
>
> =A0 =A0 =A0released to rubyforge gem repository
>
> commit 22bd9de5a5a6874ec4903af60fb5a95606f229ee
> Author: andreas <andreas.ro...@gmail.com>
> Date: =A0 Thu Oct 23 10:38:33 2008 +0200
>
> =A0 =A0 =A0prepare for rubyforge release of gem. Added license file
>
> commit 715e4384f0cc34a56580c2c52054e2756c5d06ac
> Author: andreas <andreas.ro...@gmail.com>
> Date: =A0 Mon Oct 20 12:13:00 2008 +0200
>
> =A0 =A0 =A0released as 0.0.3. Updated documentation
>
> So it looks like 0b283793ee2c8e0689274d85f049bb8c2cf4250c is release =A0
> 0.0.4.
>
> $ git checkout 0b283793
> $ cat neo4j.gemspec
> # WARNING : RAKE AUTO-GENERATED FILE. DO NOT MANUALLY EDIT!
> # LAST UPDATED : Thu Oct 23 15:05:22 +0200 2008
> #
> # RUN : 'rake gem:update_gemspec'
>
> Gem::Specification.new do |s|
> =A0 s.description =3D "A graph database for JRuby"
> =A0 s.files =3D [
> =A0 # ...
> =A0 ]
> =A0 s.rubygems_version =3D "1.2.0"
> =A0 s.platform =3D "ruby"
> =A0 s.date =3D "Thu Oct 23 00:00:00 +0200 2008" # <-- STRING?
> =A0 s.homepage =3D "http://github.com/andreasronge/neo4j/tree"
> =A0 s.rubyforge_project =3D "neo4j"
> =A0 s.bindir =3D "bin"
> =A0 s.summary =3D "A graph database for JRuby"
> =A0 s.rdoc_options =3D [...]
> =A0 s.specification_version =3D "2" # <-- STRING?
> =A0 s.email =3D "andreas.ro...@gmail.com"
> =A0 s.version =3D "0.0.4"
> =A0 s.required_rubygems_version =3D ">=3D 0"
> =A0 s.require_paths =3D ["lib"]
> =A0 s.required_ruby_version =3D ">=3D 1.8.4"
> =A0 s.extra_rdoc_files =3D ["README.rdoc"]
> =A0 s.has_rdoc =3D "true"
> =A0 s.name =3D "neo4j"
> =A0 s.authors =3D ["Andreas Ronge"]
> =A0 s.loaded =3D "false"
> end
>
> So the gemspec has a String for specification_version. =A0Also, why is =
=A0
> the date a String? =A0It should be a Time object! =A0It seems that this =
=A0
> was hand-built.
>
> There's a bunch of extra fields set here that RubyGems has defaults =A0
> for, like required_rubygems_version, required_ruby_version, =A0
> require_paths.
>
> Hrm, what's that Rake task look like?
>
> $ cat Rakefile
> # [...]
> =A0 =A0# Thanks to the Merb project for this code.
> =A0 =A0desc "Update Github Gemspec"
> =A0 =A0task :update_gemspec do
> # [...]
> =A0 =A0 =A0spec.instance_variables.each do |ivar|
> =A0 =A0 =A0 =A0value =3D spec.instance_variable_get(ivar)
> =A0 =A0 =A0 =A0name =3D ivar.split("@").last
> # [...]
> =A0 =A0 =A0 =A0 =A0case value
> =A0 =A0 =A0 =A0 =A0when Array
> =A0 =A0 =A0 =A0 =A0 =A0value =3D # ...
> =A0 =A0 =A0 =A0 =A0when String
> =A0 =A0 =A0 =A0 =A0 =A0value =3D # ...
> =A0 =A0 =A0 =A0 =A0else
> =A0 =A0 =A0 =A0 =A0 =A0value =3D value.to_s.inspect # WHAT?
> =A0 =A0 =A0 =A0 =A0end
> =A0 =A0 =A0 =A0 =A0result << " s.#{name} =3D #{value}\n"
> =A0 =A0 =A0 =A0end
> =A0 =A0 =A0end
> =A0 =A0 =A0result << "end"
> =A0 =A0 =A0File.open(File.join(File.dirname(__FILE__), =A0
> "#{spec.name}.gemspec"), "w"){|f
> | f << result}
> =A0 =A0end
>
> So the author of this gem isn't entirely to blame here. =A0What's =A0
> especially strange is that this is an especially broken implementation =
=A0
> of Gem::Specification#to_ruby which had RDoc all the way back to 0.8.11!
>
> Looking in the merb source, it seems this code was added here:
>
> commit 7d14e7e28be657c9a1a6b4f0730dd4f6d2f7031b
> Author: Daniel Neighman <has....@gmail.com>
> Date: =A0 Fri Apr 25 13:07:49 2008 +1000
>
> =A0 =A0 =A0Adds Code for generating a gemspec for github
>
> http://github.com/wycats/merb/commit/7d14e7e28be657c9a1a6b4f0730dd4f6...
>
> So it looks like Daniel Neighman is to blame. =A0(He may not actually =A0
> be, since he doesn't say where he got this code from.)
>
> I'm not sure how this code was written without looking through =A0
> Gem::Specification, nor how the author missed =A0
> Gem::Specification#to_ruby (which is exactly what they wanted).
>
> It appears that there are other projects infected by this code:
>
> http://www.google.com/codesearch?q=3Dskip_fields+new_platform+original_..=
.
>
> So if you own one of these, please delete that code!
>
> Fortunately, I now have new things to protect gem repositories from! =A0
> (Ryan hit me for not protecting RubyGems enough)
>
> And again, a gemspec is not something that you just dump something on. =
=A0
> It's not a big truck.- Hide quoted text -
>
> - Show quoted text -

Is there a workaround to this problem, which would allow me to
obtain the name & description for gems starting with "a".

Thanks,
John

In This Thread