# Ruby

**URL:** https://www.ruby-forum.com/c/ruby/7.md?page=1315

[Latest](https://www.ruby-forum.com/latest.md) · [Categories](https://www.ruby-forum.com/categories.md) · [Tags](https://www.ruby-forum.com/tags.md)

**Page:** 1316

---

## [How our libraries stack up against the specs](https://www.ruby-forum.com/t/how-our-libraries-stack-up-against-the-specs/117339)

<div class="topic-metadata">

**Author:** [@John\_LSSDLR](https://www.ruby-forum.com/u/John_LSSDLR)\
**Replies:** 10\
**Last updated:** [October 25, 2007, 7:29am UTC](https://www.ruby-forum.com/t/how-our-libraries-stack-up-against-the-specs/117339 "2007-10-25T07:29:42Z")

</div>

I re-implemented parts of the Rubinius test suite harness to use features that are implemented in IronRuby. The good news is that we’re using the specs as written without any changes at all. The spec suite driver curr…

---

## [Struct is slow](https://www.ruby-forum.com/t/struct-is-slow/117419)

<div class="topic-metadata">

**Author:** [@wemagor](https://www.ruby-forum.com/u/wemagor)\
**Replies:** 26\
**Last updated:** [October 25, 2007, 7:09am UTC](https://www.ruby-forum.com/t/struct-is-slow/117419 "2007-10-25T07:09:15Z")

</div>

I have a script in which I was using a 2-element array where a struct would be used in another language, so I decided to give the Ruby class Struct a try. My script went from taking 2 seconds to taking 27 seconds from…

---

## [Windows-api-0.2.0/lib/windows/api.rb:211: Segmentation fault](https://www.ruby-forum.com/t/windows-api-0-2-0-lib-windows-api-rb-segmentation-fault/118209)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [October 25, 2007, 6:30am UTC](https://www.ruby-forum.com/t/windows-api-0-2-0-lib-windows-api-rb-segmentation-fault/118209 "2007-10-25T06:30:42Z")

</div>

Hi, I am attempting to use ruby 186rc1 one click installer on Windows Vista and I am getting this error: c:/ruby/lib/ruby/gems/1.8/gems/windows-api-0.2.0/lib/windows/api.rb: 211: \[BUG\] Segmentation fault ruby 1.8.6 …

---

## [Ruby Logo Contest](https://www.ruby-forum.com/t/ruby-logo-contest/113553)

<div class="topic-metadata">

**Author:** [@Shugo\_M](https://www.ruby-forum.com/u/Shugo_M)\
**Replies:** 7\
**Last updated:** [October 25, 2007, 5:24am UTC](https://www.ruby-forum.com/t/ruby-logo-contest/113553 "2007-10-25T05:24:23Z")

</div>

Hi, Ruby Visual Identity Team (URL:http://rubyidentity.org/) did great works to improve the online presence of Ruby, and as a result, the Ruby logo kit ( URL:http://rubyidentity.org/ruby-logo-kit.zip) is avaiable no…

---

## [Re: Time Window (#144)](https://www.ruby-forum.com/t/re-time-window-144/118126)

<div class="topic-metadata">

**Author:** [@jameskelly](https://www.ruby-forum.com/u/jameskelly)\
**Replies:** 8\
**Last updated:** [October 25, 2007, 4:26am UTC](https://www.ruby-forum.com/t/re-time-window-144/118126 "2007-10-25T04:26:14Z")

</div>

Here’s my solution. It converts a time window into an array of arrays of ranges. Each range matches an interval of time (e.g.: 500…1700); each subarray contains all the ranges for a given day. I then wrote the simple …

---

## [Rglpk 0.1 Released](https://www.ruby-forum.com/t/rglpk-0-1-released/118250)

<div class="topic-metadata">

**Author:** [@oscar-alexander](https://www.ruby-forum.com/u/oscar-alexander)\
**Replies:** 0\
**Last updated:** [October 25, 2007, 4:14am UTC](https://www.ruby-forum.com/t/rglpk-0-1-released/118250 "2007-10-25T04:14:32Z")

</div>

rglpk version 0.1 has been released! http://rglpk.rubyforge.org/ Rglpk is a package providing a Ruby wrapper to the GLPK library (GLPK - GNU Project - Free Software Foundation (FSF)). The GLPK (GNU Linear Programming …

---

## [TMail 0.11 Released](https://www.ruby-forum.com/t/tmail-0-11-released/118186)

<div class="topic-metadata">

**Author:** [@Mikel\_L](https://www.ruby-forum.com/u/Mikel_L)\
**Replies:** 7\
**Last updated:** [October 25, 2007, 2:32am UTC](https://www.ruby-forum.com/t/tmail-0-11-released/118186 "2007-10-25T02:32:50Z")

</div>

Hello all, I am now maintaining the TMail project with Trans. The RubyForge site is at: http://tmail.rubyforge.org/ 0.11 rolls up all the great patches that the Ruby on Rails team made to their branch copy of Actio…

---

## [Libraries split is now complete](https://www.ruby-forum.com/t/libraries-split-is-now-complete/118238)

<div class="topic-metadata">

**Author:** [@John\_LSSDLR](https://www.ruby-forum.com/u/John_LSSDLR)\
**Replies:** 0\
**Last updated:** [October 25, 2007, 1:45am UTC](https://www.ruby-forum.com/t/libraries-split-is-now-complete/118238 "2007-10-25T01:45:32Z")

</div>

Revision 48 in SVN now contains the refactored library code. All library code should now go into src\\ironruby.libraries. You’ll also notice that the generateinitializers.cmd script lives there now, along with the Init…

---

## ["Some String \\xAE".to\_json gives an illegal/malformed error?](https://www.ruby-forum.com/t/some-string-xae-to-json-gives-an-illegal-malformed-error/118231)

<div class="topic-metadata">

**Author:** [@blackie](https://www.ruby-forum.com/u/blackie)\
**Replies:** 1\
**Last updated:** [October 25, 2007, 1:05am UTC](https://www.ruby-forum.com/t/some-string-xae-to-json-gives-an-illegal-malformed-error/118231 "2007-10-25T01:05:49Z")

</div>

Call me crazy, but I must be missing some fundamental understanding here. From what I can read on the JSON gem located here (http:// json.rubyforge.org/) this should be working but I’m getting a JSON::GeneratorError…

---

## [\[ANN\] One-Click Ruby Installer 186-26 Release Candidate 1](https://www.ruby-forum.com/t/ann-one-click-ruby-installer-186-26-release-candidate-1/117440)

<div class="topic-metadata">

**Author:** [@Curt\_SWorkS\_Hibbs](https://www.ruby-forum.com/u/Curt_SWorkS_Hibbs)\
**Replies:** 10\
**Last updated:** [October 25, 2007, 12:57am UTC](https://www.ruby-forum.com/t/ann-one-click-ruby-installer-186-26-release-candidate-1/117440 "2007-10-25T00:57:38Z")

</div>

This updates Ruby to 1.8.6 patch level 111 (lots of bug fixes since 1.8.6 was released). It also updates most of the included extensions to their latest versions (see the change log). The final release won’t happen u…

---

## [Ruby is simple? NooooT!](https://www.ruby-forum.com/t/ruby-is-simple-noooot/118198)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 17\
**Last updated:** [October 24, 2007, 11:53pm UTC](https://www.ruby-forum.com/t/ruby-is-simple-noooot/118198 "2007-10-24T23:53:53Z")

</div>

Hehe whoever said that ruby is not verbose was WRONG!! :wink: I mean look at the code below! All this just to find subdirectories and to list all the jpg files inside!! So… NOT!!! :slight\_smile: I hope the code posts…

---

## [Re: Time Window (#144)](https://www.ruby-forum.com/t/re-time-window-144/118225)

<div class="topic-metadata">

**Author:** [@jameskelly](https://www.ruby-forum.com/u/jameskelly)\
**Replies:** 1\
**Last updated:** [October 24, 2007, 11:35pm UTC](https://www.ruby-forum.com/t/re-time-window-144/118225 "2007-10-24T23:35:10Z")

</div>

Thanks; I wasn’t aware of that method’s existence. Actually, I wasn’t aware that Enumerable existed in the cor; its entry in the standard library section on Rubydoc contains no reference to this method. Has it been ad…

---

## [String method that takes in a regex](https://www.ruby-forum.com/t/string-method-that-takes-in-a-regex/118205)

<div class="topic-metadata">

**Author:** [@parvg](https://www.ruby-forum.com/u/parvg)\
**Replies:** 9\
**Last updated:** [October 24, 2007, 10:41pm UTC](https://www.ruby-forum.com/t/string-method-that-takes-in-a-regex/118205 "2007-10-24T22:41:20Z")

</div>

Hi, Is there a string method that takes in a regular expression AND returns a boolean value? Looking at the documentation i can’t find a method that meets my requirements (very surprising). Thanks, ParvG

---

## [Revision 45 up on SVN](https://www.ruby-forum.com/t/revision-45-up-on-svn/118121)

<div class="topic-metadata">

**Author:** [@John\_LSSDLR](https://www.ruby-forum.com/u/John_LSSDLR)\
**Replies:** 9\
**Last updated:** [October 24, 2007, 10:39pm UTC](https://www.ruby-forum.com/t/revision-45-up-on-svn/118121 "2007-10-24T22:39:35Z")

</div>

I fixed the Rakefile and pushed up Revision 45 to Subversion today. This gives you the latest bits as of this morning from my desktop here in Redmond. Of note in this release is the AstRewriter that Martin wrote. This…

---

## [Help with adding header files for 'mkmf' - new to Swig/mkmf](https://www.ruby-forum.com/t/help-with-adding-header-files-for-mkmf-new-to-swig-mkmf/118221)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [October 24, 2007, 10:20pm UTC](https://www.ruby-forum.com/t/help-with-adding-header-files-for-mkmf-new-to-swig-mkmf/118221 "2007-10-24T22:20:49Z")

</div>

Hi, I’m trying to extend a simple function from a large C++ API library for Ruby (OpenAccess). Ultimately I’d like to add functionality over time; however, I want to get a simple test case up and running as a proof-…

---

## [IronRuby...will it be like J++?](https://www.ruby-forum.com/t/ironruby-will-it-be-like-j/117891)

<div class="topic-metadata">

**Author:** [@Thufir](https://www.ruby-forum.com/u/Thufir)\
**Replies:** 22\
**Last updated:** [October 24, 2007, 9:36pm UTC](https://www.ruby-forum.com/t/ironruby-will-it-be-like-j/117891 "2007-10-24T21:36:21Z")

</div>

Could it be that Microsoft won’t fully implement the language specifications, a la the J++ versus Java scenario? What are some potential issues down the road? It seems that the license is BSD-like, which sounds good,…

---

## [\[ANN\] Rassmalog 7.1.0](https://www.ruby-forum.com/t/ann-rassmalog-7-1-0/118143)

<div class="topic-metadata">

**Author:** [@snk](https://www.ruby-forum.com/u/snk)\
**Replies:** 1\
**Last updated:** [October 24, 2007, 9:09pm UTC](https://www.ruby-forum.com/t/ann-rassmalog-7-1-0/118143 "2007-10-24T21:09:53Z")

</div>

Rassmalog A static blog engine based on YAML, eRuby, and Rake. It transforms blog entries written in Textile or other formatting systems into valid XHTML files that you can view on your computer or …

---

## [Pathname](https://www.ruby-forum.com/t/pathname/118131)

<div class="topic-metadata">

**Author:** [@Sanghyeon\_S](https://www.ruby-forum.com/u/Sanghyeon_S)\
**Replies:** 1\
**Last updated:** [October 24, 2007, 8:53pm UTC](https://www.ruby-forum.com/t/pathname/118131 "2007-10-24T20:53:03Z")

</div>

John L. wrote: after looking at your changes to the Rakefile, most of them fall in the bucket of using File.join() to concatenate pathname elements rather than using a canonical delimiter ‘’. I was under the impression…

---

## [Recursive array](https://www.ruby-forum.com/t/recursive-array/118021)

<div class="topic-metadata">

**Author:** [@simonsaid](https://www.ruby-forum.com/u/simonsaid)\
**Replies:** 11\
**Last updated:** [October 24, 2007, 7:41pm UTC](https://www.ruby-forum.com/t/recursive-array/118021 "2007-10-24T19:41:33Z")

</div>

207:0\> a = \[1,2,3,4\] \[1, 2, 3, 4\] 208:0\> a\[4\] = a \[1, 2, 3, 4, \[…\]\] 209:0\> a\[4\] \[1, 2, 3, 4, \[…\]\] 210:0\> a\[4\]\[4\] \[1, 2, 3, 4, \[…\]\] 211:0\> a\[4\]\[4\]\[4\]\[4\]\[4\]\[3\] 4 have you ever used this technique? can you provide…

---

## [Apache not Interpreting Ruby or Something](https://www.ruby-forum.com/t/apache-not-interpreting-ruby-or-something/118194)

<div class="topic-metadata">

**Author:** [@nobrow](https://www.ruby-forum.com/u/nobrow)\
**Replies:** 2\
**Last updated:** [October 24, 2007, 6:53pm UTC](https://www.ruby-forum.com/t/apache-not-interpreting-ruby-or-something/118194 "2007-10-24T18:53:33Z")

</div>

Still cannot get Ruby/Rails/Apache to play together. Have mod\_ruby installed and loaded and I think I have setup fcgi properly, but when I try an “Hello Rails World” example I just get #!/usr/bin/ruby18 # # You may sp…

---

## [Gem paths](https://www.ruby-forum.com/t/gem-paths/117959)

<div class="topic-metadata">

**Author:** [@redroofgreentree](https://www.ruby-forum.com/u/redroofgreentree)\
**Replies:** 1\
**Last updated:** [October 24, 2007, 6:27pm UTC](https://www.ruby-forum.com/t/gem-paths/117959 "2007-10-24T18:27:36Z")

</div>

Hey, So I’m trying to get ruby gems to work, and am stuck on the following: $ gem contents ruby-debug; gem env; ls -d /var/lib/gems/1.8/gems/ruby- debug-0.9.3/ Unable to find gem ‘ruby-debug’ in default gem paths Ru…

---

## [Unit Testing, how to use assert\_equal for last printed line?](https://www.ruby-forum.com/t/unit-testing-how-to-use-assert-equal-for-last-printed-line/118146)

<div class="topic-metadata">

**Author:** [@pood](https://www.ruby-forum.com/u/pood)\
**Replies:** 4\
**Last updated:** [October 24, 2007, 6:25pm UTC](https://www.ruby-forum.com/t/unit-testing-how-to-use-assert-equal-for-last-printed-line/118146 "2007-10-24T18:25:51Z")

</div>

I’ve been learning Ruby the last couple weeks and trying to figure how to Unit Test I wrote a method that outputs a few lines of text. How do I write an assertion so it tests if, say the last line printed is equal to…

---

## [Problems with require in eruby](https://www.ruby-forum.com/t/problems-with-require-in-eruby/118188)

<div class="topic-metadata">

**Author:** [@Vasyl\_S](https://www.ruby-forum.com/u/Vasyl_S)\
**Replies:** 1\
**Last updated:** [October 24, 2007, 5:45pm UTC](https://www.ruby-forum.com/t/problems-with-require-in-eruby/118188 "2007-10-24T17:45:27Z")

</div>

Hi, I’ve just set up eruby and mod\_ruby to handle .rb files in the document root dir. The problem is that certain 'require’s work, and others don’t. good.rb: \<% require ‘set’ puts “works” %\> bad.rb: \<% require…

---

## [Need advice on Ruby and game dev](https://www.ruby-forum.com/t/need-advice-on-ruby-and-game-dev/118140)

<div class="topic-metadata">

**Author:** [@digdug](https://www.ruby-forum.com/u/digdug)\
**Replies:** 10\
**Last updated:** [October 24, 2007, 5:26pm UTC](https://www.ruby-forum.com/t/need-advice-on-ruby-and-game-dev/118140 "2007-10-24T17:26:07Z")

</div>

Ok I am new to programming still. I know how to do small basic things like loops, strings, variables in like python, C, ruby…but thats it. The farthest which isnt probably even related is PHP/SQL which I am getting pr…

---

## [Scattered I/O (on MS Windows)](https://www.ruby-forum.com/t/scattered-i-o-on-ms-windows/118066)

<div class="topic-metadata">

**Author:** [@danielb](https://www.ruby-forum.com/u/danielb)\
**Replies:** 3\
**Last updated:** [October 24, 2007, 4:49pm UTC](https://www.ruby-forum.com/t/scattered-i-o-on-ms-windows/118066 "2007-10-24T16:49:11Z")

</div>

Hi all, Park H. and I came up with a custom implementation for IO.readlines using scattered I/O I thought would be fun to share. I think I’m seeing a 2x performance increase, but page caching is making it difficult t…

---

## [Using ruby to transfer and clean data between databases](https://www.ruby-forum.com/t/using-ruby-to-transfer-and-clean-data-between-databases/118174)

<div class="topic-metadata">

**Author:** [@runrunshaw](https://www.ruby-forum.com/u/runrunshaw)\
**Replies:** 3\
**Last updated:** [October 24, 2007, 4:47pm UTC](https://www.ruby-forum.com/t/using-ruby-to-transfer-and-clean-data-between-databases/118174 "2007-10-24T16:47:13Z")

</div>

Hi all, I have some data in an access database and I want to move this to my new SqlServer2005 database. However the schema of the database has changed significantly, it’s been normalised and various tables have been …

---

## [Watir and Inheritance](https://www.ruby-forum.com/t/watir-and-inheritance/118085)

<div class="topic-metadata">

**Author:** [@tcblues](https://www.ruby-forum.com/u/tcblues)\
**Replies:** 10\
**Last updated:** [October 24, 2007, 4:42pm UTC](https://www.ruby-forum.com/t/watir-and-inheritance/118085 "2007-10-24T16:42:26Z")

</div>

I’m trying to do this: require ‘Watir’ class Navigator\<Watir::IE def initialize(maxim) @maxim=maxim @iex=Watir::IE.new end def go(url) @iex.goto(url) if @maxim==1 then @iex.maximize() end end end naveg=Navi…

---

## [Ruby-Traits 0.2 released (sorry long)](https://www.ruby-forum.com/t/ruby-traits-0-2-released-sorry-long/118105)

<div class="topic-metadata">

**Author:** [@flatekmonkey](https://www.ruby-forum.com/u/flatekmonkey)\
**Replies:** 2\
**Last updated:** [October 24, 2007, 2:25pm UTC](https://www.ruby-forum.com/t/ruby-traits-0-2-released-sorry-long/118105 "2007-10-24T14:25:04Z")

</div>

Hi list after some very interesting input I decided to rewrite Ruby-Traits completely. http://rubyforge.org/frs/?group\_id=4642&release\_id=15737 I have decided to implement two different kinds of traits: ruby-traits …

---

## [Format string for array question](https://www.ruby-forum.com/t/format-string-for-array-question/117985)

<div class="topic-metadata">

**Author:** [@robkuz](https://www.ruby-forum.com/u/robkuz)\
**Replies:** 3\
**Last updated:** [October 24, 2007, 2:01pm UTC](https://www.ruby-forum.com/t/format-string-for-array-question/117985 "2007-10-24T14:01:39Z")

</div>

I have a great deal of data that looks like the line below “db file parallel write 8816 391 25.49” The code to bring this into an array had a problem due to the spaces in the test string “db fil…

---

## [Clarification needed regarding define\_method](https://www.ruby-forum.com/t/clarification-needed-regarding-define-method/118168)

<div class="topic-metadata">

**Author:** [@learningruby](https://www.ruby-forum.com/u/learningruby)\
**Replies:** 1\
**Last updated:** [October 24, 2007, 1:58pm UTC](https://www.ruby-forum.com/t/clarification-needed-regarding-define-method/118168 "2007-10-24T13:58:44Z")

</div>

hi all, I need to clarify one thing. Does Module#define\_method works with ruby 1.8.5 or 1.8.6 ?? thanks in advance… regards venkat

[Previous page](https://www.ruby-forum.com/c/ruby/7.md?page=1314)

[Next page](https://www.ruby-forum.com/c/ruby/7.md?page=1316)
