# Ruby

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

[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:** 664

---

## [Spork for jruby](https://www.ruby-forum.com/t/spork-for-jruby/182546)

<div class="topic-metadata">

**Author:** [@rogerdpack](https://www.ruby-forum.com/u/rogerdpack)\
**Replies:** 2\
**Last updated:** [February 1, 2010, 5:41pm UTC](https://www.ruby-forum.com/t/spork-for-jruby/182546 "2010-02-01T17:41:36Z")

</div>

I’ve been working on a fork of spork that works for windows. In retrospect, it might well work for jruby, if anybody would like to test it out… http://wiki.github.com/rdp/spork/windows Enjoy. -r

---

## [No rake?](https://www.ruby-forum.com/t/no-rake/180545)

<div class="topic-metadata">

**Author:** [@rogerdpack](https://www.ruby-forum.com/u/rogerdpack)\
**Replies:** 6\
**Last updated:** [February 1, 2010, 5:40pm UTC](https://www.ruby-forum.com/t/no-rake/180545 "2010-02-01T17:40:59Z")

</div>

from trunk… C:\\dev\\ruby\\downloads\\jruby\\bin\>gem install faster\_rubygems JRuby limited openssl loaded. http://jruby.org/openssl gem install jruby-openssl for full support. Building native extensions. This could take …

---

## [Plea for not having to put it in the path \[again\]](https://www.ruby-forum.com/t/plea-for-not-having-to-put-it-in-the-path-again/181695)

<div class="topic-metadata">

**Author:** [@rogerdpack](https://www.ruby-forum.com/u/rogerdpack)\
**Replies:** 11\
**Last updated:** [February 1, 2010, 5:40pm UTC](https://www.ruby-forum.com/t/plea-for-not-having-to-put-it-in-the-path-again/181695 "2010-02-01T17:40:24Z")

</div>

I am always surprised when I run into things like this: $ ~/dev/downloads/jruby/bin/jirb /usr/bin/env: jruby: No such file or directory MRI doesn’t do this, so I think it’s something jruby should consider for ease of…

---

## [Odd UnsupportedCharsetException](https://www.ruby-forum.com/t/odd-unsupportedcharsetexception/181090)

<div class="topic-metadata">

**Author:** [@patrik](https://www.ruby-forum.com/u/patrik)\
**Replies:** 24\
**Last updated:** [February 1, 2010, 5:25pm UTC](https://www.ruby-forum.com/t/odd-unsupportedcharsetexception/181090 "2010-02-01T17:25:55Z")

</div>

Hi, I wanted to try out mechanize on jruby and ran into some problems. I’m using 1.4.0 on windows xp and it’s mechanize 0.9.3 and nokogiri 1.4.1. It all works fine on OSX and my laptop windows machine, but on my work …

---

## [Zlib gzip Iconv, what is going on with UTF-8](https://www.ruby-forum.com/t/zlib-gzip-iconv-what-is-going-on-with-utf-8/182691)

<div class="topic-metadata">

**Author:** [@inprogs](https://www.ruby-forum.com/u/inprogs)\
**Replies:** 2\
**Last updated:** [February 1, 2010, 5:08pm UTC](https://www.ruby-forum.com/t/zlib-gzip-iconv-what-is-going-on-with-utf-8/182691 "2010-02-01T17:08:25Z")

</div>

Hi. I googled rly hard but nothing is working. I got ruby 1.8.6 (test has been performed on windows) My problem is when I try receive gziped response from some sites which is not in UTF-8 itself. For instance this on…

---

## [Warble error](https://www.ruby-forum.com/t/warble-error/181922)

<div class="topic-metadata">

**Author:** [@msan](https://www.ruby-forum.com/u/msan)\
**Replies:** 1\
**Last updated:** [February 1, 2010, 4:54pm UTC](https://www.ruby-forum.com/t/warble-error/181922 "2010-02-01T16:54:11Z")

</div>

warble -T Missing the Rails gem. Please gem install -v= rails, update your RAILS\_GEM\_VERSION setting in config/environment.rb for the Rails version you do have installed, or comment out RAILS\_GEM\_VERSION to use the …

---

## [Newbie can't find java.rb](https://www.ruby-forum.com/t/newbie-cant-find-java-rb/181813)

<div class="topic-metadata">

**Author:** [@bartels](https://www.ruby-forum.com/u/bartels)\
**Replies:** 3\
**Last updated:** [February 1, 2010, 4:30pm UTC](https://www.ruby-forum.com/t/newbie-cant-find-java-rb/181813 "2010-02-01T16:30:11Z")

</div>

Hi Everyone, I would like to use ruby2java on Debian/Linux, but I have a problem getting started. ruby2java fails, because java.rb is not found (see below). This is the same error I get when I do $ ruby -e ‘require “…

---

## [Creating Arrays Through a Loop](https://www.ruby-forum.com/t/creating-arrays-through-a-loop/182692)

<div class="topic-metadata">

**Author:** [@squawkboxed](https://www.ruby-forum.com/u/squawkboxed)\
**Replies:** 5\
**Last updated:** [February 1, 2010, 3:46pm UTC](https://www.ruby-forum.com/t/creating-arrays-through-a-loop/182692 "2010-02-01T15:46:51Z")

</div>

I was wondering if it was possible to create a series of arrays through a loop. This doesn’t work (I think): for num in 1…10 array\_num = Array.new end

---

## [Curious - Why Warbler pulls gems from cache folder](https://www.ruby-forum.com/t/curious-why-warbler-pulls-gems-from-cache-folder/182684)

<div class="topic-metadata">

**Author:** [@homerlex](https://www.ruby-forum.com/u/homerlex)\
**Replies:** 1\
**Last updated:** [February 1, 2010, 2:44pm UTC](https://www.ruby-forum.com/t/curious-why-warbler-pulls-gems-from-cache-folder/182684 "2010-02-01T14:44:14Z")

</div>

Anyone know why Warbler grabs gems from GEM\_PATH/cache instead of GEM\_PATH/gems?

---

## [MacRuby 0.5](https://www.ruby-forum.com/t/macruby-0-5/182652)

<div class="topic-metadata">

**Author:** [@Laurent\_S](https://www.ruby-forum.com/u/Laurent_S)\
**Replies:** 6\
**Last updated:** [February 1, 2010, 2:29pm UTC](https://www.ruby-forum.com/t/macruby-0-5/182652 "2010-02-01T14:29:24Z")

</div>

Hi, After months of hard work and two successful beta releases, MacRuby 0.5 is now available. Get it here while it’s still hot! MacRuby is a version of Ruby 1.9, ported to run directly on top of Mac OS X core technol…

---

## [\[Feature:trunk\] rubyspec: Vector.each2 given one argument returns self when given a block FAILED](https://www.ruby-forum.com/t/feature-trunk-rubyspec-vector-each2-given-one-argument-returns-self-when-given-a-block-failed/182535)

<div class="topic-metadata">

**Author:** [@Yusuke\_ENDOH](https://www.ruby-forum.com/u/Yusuke_ENDOH)\
**Replies:** 3\
**Last updated:** [February 1, 2010, 1:45pm UTC](https://www.ruby-forum.com/t/feature-trunk-rubyspec-vector-each2-given-one-argument-returns-self-when-given-a-block-failed/182535 "2010-02-01T13:45:42Z")

</div>

e$B$$$7$D$+$5$se(B e$B1sF#$G$9!#e(B rubyspec e$B$,!"e(BVector#each2 e$B$,e(B self e$B$rJV$9$3$H$r4|BT$7$F$$$^$9!#e(B e$BG\<F@$G$-$J$/$b$J$$4|BT$J$N$G!"1~$($F$7$^$C$F$$$$$G$7$g$&$+!#e(B e$B8=:\_$Oe(B size.times e$B$N5"…

---

## [Did Something Changed Again in Spec](https://www.ruby-forum.com/t/did-something-changed-again-in-spec/182254)

<div class="topic-metadata">

**Author:** [@metanoize](https://www.ruby-forum.com/u/metanoize)\
**Replies:** 54\
**Last updated:** [February 1, 2010, 1:05pm UTC](https://www.ruby-forum.com/t/did-something-changed-again-in-spec/182254 "2010-02-01T13:05:18Z")

</div>

I am trying to unit test my .NET CLR assembly using IronRuby spec framework. First, the following command does not work anymore igem install spec Now, I have to type the following: igem install rspec Anyway, when I …

---

## [Reek version 1.2.7 released](https://www.ruby-forum.com/t/reek-version-1-2-7-released/182682)

<div class="topic-metadata">

**Author:** [@Kevin\_Rutherford](https://www.ruby-forum.com/u/Kevin_Rutherford)\
**Replies:** 0\
**Last updated:** [February 1, 2010, 12:35pm UTC](https://www.ruby-forum.com/t/reek-version-1-2-7-released/182682 "2010-02-01T12:35:27Z")

</div>

Hi, I’ve just pushed reek 1.2.7 to gemcutter. Highlights in this release: === Major Changes New option --yaml reports smells in YAML format Now require ‘reek/rake/task’ to use the rake task Now require ‘reek/spec’ to…

---

## [FFI with dlls compiled by MinGW](https://www.ruby-forum.com/t/ffi-with-dlls-compiled-by-mingw/182664)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [February 1, 2010, 10:56am UTC](https://www.ruby-forum.com/t/ffi-with-dlls-compiled-by-mingw/182664 "2010-02-01T10:56:32Z")

</div>

Hi, I’m having some problems running examples of using FFI-jruby under windows. Until now I’ve been using it under linux without any problem. This example works fine under linux (both jruby and ruby), but fails in w…

---

## [Can't update and install gem](https://www.ruby-forum.com/t/cant-update-and-install-gem/182369)

<div class="topic-metadata">

**Author:** [@johny](https://www.ruby-forum.com/u/johny)\
**Replies:** 10\
**Last updated:** [February 1, 2010, 7:17am UTC](https://www.ruby-forum.com/t/cant-update-and-install-gem/182369 "2010-02-01T07:17:08Z")

</div>

os:win xp ruby: ruby 1.9.1p243 (2009-07-16 revision 24175) \[i386-mingw32\] I got this error: Updating RubyGems ERROR: http://gems.rubyforge.org/ does not appear to be a repository ERROR: While executing gem … (Gem:…

---

## [Re: MacRuby 0.5](https://www.ruby-forum.com/t/re-macruby-0-5/182654)

<div class="topic-metadata">

**Author:** [@Jose\_Hales-Garcia](https://www.ruby-forum.com/u/Jose_Hales-Garcia)\
**Replies:** 0\
**Last updated:** [February 1, 2010, 5:32am UTC](https://www.ruby-forum.com/t/re-macruby-0-5/182654 "2010-02-01T05:32:51Z")

</div>

On Jan 31, 2010, at 7:50 PM, Phrogz removed\_email\_address@domain.invalid wrote: Anything you can say about MacRuby on the iPad? I’d love to be able to develop full-fledged iPad apps using Ruby. I’ve read on Aimonett…

---

## ["require 'rubygems'" In Your Library/App/Tests Is Wrong?](https://www.ruby-forum.com/t/require-rubygems-in-your-library-app-tests-is-wrong/182598)

<div class="topic-metadata">

**Author:** [@wannabe-coder](https://www.ruby-forum.com/u/wannabe-coder)\
**Replies:** 15\
**Last updated:** [February 1, 2010, 4:10am UTC](https://www.ruby-forum.com/t/require-rubygems-in-your-library-app-tests-is-wrong/182598 "2010-02-01T04:10:53Z")

</div>

I found the write up at http://gist.github.com/54177 very interesting. In it Ryan states: You should never do this in a source file included with your library, app, or tests: require 'rubygems' The system I use to …

---

## [Code Review: bugfixrc2](https://www.ruby-forum.com/t/code-review-bugfixrc2/182649)

<div class="topic-metadata">

**Author:** [@raker\_t](https://www.ruby-forum.com/u/raker_t)\
**Replies:** 0\
**Last updated:** [January 31, 2010, 11:16pm UTC](https://www.ruby-forum.com/t/code-review-bugfixrc2/182649 "2010-01-31T23:16:32Z")

</div>

tfpt review “/shelveset:bugfixrc2;REDMOND\\jdeville” Comment : Closes: http://ironruby.codeplex.com/WorkItem/View.aspx?WorkItemId=2146 http://ironruby.codeplex.com/WorkItem/View.aspx?WorkItemId=2959 http://ironruby.…

---

## [First rails app failed](https://www.ruby-forum.com/t/first-rails-app-failed/182377)

<div class="topic-metadata">

**Author:** [@rubynut](https://www.ruby-forum.com/u/rubynut)\
**Replies:** 5\
**Last updated:** [January 31, 2010, 10:58pm UTC](https://www.ruby-forum.com/t/first-rails-app-failed/182377 "2010-01-31T22:58:23Z")

</div>

I just started my lesson on rails and followed the steps in the book “beginning ruby on rails”, but sorry I have been getting wrong. I took the steps to build a new rails application as below: rails hello cd hell…

---

## [\[Bug:trunk\] rubyspec: StringIO#ungetc when passed \[char\] tries to convert the passed length to an I](https://www.ruby-forum.com/t/bug-trunk-rubyspec-stringio-ungetc-when-passed-char-tries-to-convert-the-passed-length-to-an-i/182625)

<div class="topic-metadata">

**Author:** [@Yusuke\_ENDOH](https://www.ruby-forum.com/u/Yusuke_ENDOH)\
**Replies:** 1\
**Last updated:** [January 31, 2010, 6:20pm UTC](https://www.ruby-forum.com/t/bug-trunk-rubyspec-stringio-ungetc-when-passed-char-tries-to-convert-the-passed-length-to-an-i/182625 "2010-01-31T18:20:58Z")

</div>

stringio e$B$N%a%s%F%J$N$J$+$@$5$s!"$b$7$/$O@.@%$5$se(B e$B1sF#$G$9!#e(B to\_int e$B$r\<BAu$7$?%\*%V%8%’%/%H$re(B StringIO#ungetc e$B$KM?$($?;~$N5sF0$,e(B 1.8 e$B$He(B 1.9 e$B$G0c$$$^$9!#e(B 1.8 e$B$G$OIaDL$K\<u$1F~$l$k…

---

## [\[Bug:trunk\] "foo" + :bar should be rejected](https://www.ruby-forum.com/t/bug-trunk-foo-bar-should-be-rejected/182629)

<div class="topic-metadata">

**Author:** [@Yusuke\_ENDOH](https://www.ruby-forum.com/u/Yusuke_ENDOH)\
**Replies:** 3\
**Last updated:** [January 31, 2010, 5:26pm UTC](https://www.ruby-forum.com/t/bug-trunk-foo-bar-should-be-rejected/182629 "2010-01-31T17:26:32Z")

</div>

e$B$J$+$@$5$se(B e$B1sF#$G$9!#e(B e$B8=:\_!“e(B"foo” + :bar e$B$,$G$-$F$7$^$$$^$9!#e(B $ ./ruby -ve ‘p “foo” + :bar’ ruby 1.9.2dev (2010-01-31 trunk 26518) \[i686-linux\] “foobar” r22606 e$B$G$I$5$/$5$K%3%\_%C%H$5$l$F…

---

## [Parameters](https://www.ruby-forum.com/t/parameters/182621)

<div class="topic-metadata">

**Author:** [@mcieong](https://www.ruby-forum.com/u/mcieong)\
**Replies:** 2\
**Last updated:** [January 31, 2010, 9:05am UTC](https://www.ruby-forum.com/t/parameters/182621 "2010-01-31T09:05:10Z")

</div>

Hi! I am a newbie in Ruby programming. I wrote the following functions and they works fine, but it seems very stupid of not using just one parameterized function to update the same fields(:first\_name, :last\_name), can…

---

## [Some shoes to fill](https://www.ruby-forum.com/t/some-shoes-to-fill/182575)

<div class="topic-metadata">

**Author:** [@Phlip](https://www.ruby-forum.com/u/Phlip)\
**Replies:** 2\
**Last updated:** [January 31, 2010, 7:46am UTC](https://www.ruby-forum.com/t/some-shoes-to-fill/182575 "2010-01-31T07:46:02Z")

</div>

Sorry about the \_why thread, but I got to the party late. (I was unluckily having an emergency job hunt last August, and then switched to Django, so I didn’t notice then when \_why abruptly switched careers and, appare…

---

## [Code Review: rc2fixes](https://www.ruby-forum.com/t/code-review-rc2fixes/182620)

<div class="topic-metadata">

**Author:** [@jsoho](https://www.ruby-forum.com/u/jsoho)\
**Replies:** 0\
**Last updated:** [January 31, 2010, 7:23am UTC](https://www.ruby-forum.com/t/code-review-rc2fixes/182620 "2010-01-31T07:23:48Z")

</div>

tfpt review “/shelveset:rc2fixes;REDMOND\\jimmysch” Comment : Couple of easy fixes for IronRuby 1.0 RC2: “NoOf” does not mangle to “no\_of” http://ironruby.codeplex.com/WorkItem/View.aspx?WorkItemId=3562 exec cant ru…

---

## [Pass arguments to 'require'](https://www.ruby-forum.com/t/pass-arguments-to-require/182302)

<div class="topic-metadata">

**Author:** [@tobyr](https://www.ruby-forum.com/u/tobyr)\
**Replies:** 5\
**Last updated:** [January 31, 2010, 12:47am UTC](https://www.ruby-forum.com/t/pass-arguments-to-require/182302 "2010-01-31T00:47:39Z")

</div>

\[You will be able to tell from what follows that I’m not a programmer - please bear with me!\] I wrote two scripts and, for the frequent occasions I would want to run one then the other, a third script which was just:- …

---

## [Modules and Classes, Includes and Extends](https://www.ruby-forum.com/t/modules-and-classes-includes-and-extends/182611)

<div class="topic-metadata">

**Author:** [@elricstorm](https://www.ruby-forum.com/u/elricstorm)\
**Replies:** 0\
**Last updated:** [January 31, 2010, 12:41am UTC](https://www.ruby-forum.com/t/modules-and-classes-includes-and-extends/182611 "2010-01-31T00:41:56Z")

</div>

I wanted to provide an example which for me is easier to understand than always using the Foo + Bar examples others use. When using modules and classes, I see them as containers. I decided to just put together a mor…

---

## [Newbie help : Ruby Processin](https://www.ruby-forum.com/t/newbie-help-ruby-processin/182549)

<div class="topic-metadata">

**Author:** [@jeromeqc](https://www.ruby-forum.com/u/jeromeqc)\
**Replies:** 2\
**Last updated:** [January 31, 2010, 12:33am UTC](https://www.ruby-forum.com/t/newbie-help-ruby-processin/182549 "2010-01-31T00:33:15Z")

</div>

Hello, Looking at the code in the attached file can someone please explain to me in simple terms why in the method class Example81 \< Processing::App def setup size screen.width/2, screen.height/2 #Initialize car obje…

---

## [File.symlink](https://www.ruby-forum.com/t/file-symlink/182604)

<div class="topic-metadata">

**Author:** [@ryan](https://www.ruby-forum.com/u/ryan)\
**Replies:** 3\
**Last updated:** [January 30, 2010, 11:39pm UTC](https://www.ruby-forum.com/t/file-symlink/182604 "2010-01-30T23:39:09Z")

</div>

While working with Ivan on the amp project, I came across a windows error when trying to create symlinks using File.symlink. This is well-documentedhttp://www.ruby-doc.org/core/classes/File.html#M002533and has a few…

---

## [Bitwise 2010 ( IIT Kharagpur ) An Annual Algorithm Intensive Online Programing Contest](https://www.ruby-forum.com/t/bitwise-2010-iit-kharagpur-an-annual-algorithm-intensive-online-programing-contest/182606)

<div class="topic-metadata">

**Author:** [@Bitwise\_2010\_SIIT\_K](https://www.ruby-forum.com/u/Bitwise_2010_SIIT_K)\
**Replies:** 0\
**Last updated:** [January 30, 2010, 10:57pm UTC](https://www.ruby-forum.com/t/bitwise-2010-iit-kharagpur-an-annual-algorithm-intensive-online-programing-contest/182606 "2010-01-30T22:57:01Z")

</div>

Bitwise is an Annual Algorithm Intensive Online Programming Contest, organized by the Department of Computer Science and Engineering, Indian Institute of Technology Kharagpur (IIT Kgp), one of the premier institutes o…

---

## [Cannot require 'liquid' (workitem created)](https://www.ruby-forum.com/t/cannot-require-liquid-workitem-created/182586)

<div class="topic-metadata">

**Author:** [@thbar](https://www.ruby-forum.com/u/thbar)\
**Replies:** 2\
**Last updated:** [January 30, 2010, 7:09pm UTC](https://www.ruby-forum.com/t/cannot-require-liquid-workitem-created/182586 "2010-01-30T19:09:58Z")

</div>

Hi, I wanted to see if liquid (http://www.liquidmarkup.org =\> non evaling templating system) would work with IronRuby, but apparently it doesn’t. require ‘liquid’ is raising this: Expression of type ‘System.Boolean’ …

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

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