# Ruby

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

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

---

## [Clogger 0.3.2 - share a hacker, share a bug](https://www.ruby-forum.com/t/clogger-0-3-2-share-a-hacker-share-a-bug/183411)

<div class="topic-metadata">

**Author:** [@ericw](https://www.ruby-forum.com/u/ericw)\
**Replies:** 0\
**Last updated:** [February 13, 2010, 11:42am UTC](https://www.ruby-forum.com/t/clogger-0-3-2-share-a-hacker-share-a-bug/183411 "2010-02-13T11:42:33Z")

</div>

Yes, I managed to make the same mistake here I made in Unicorn! This release fixes a memory leak in the optional C extension due to misuse of the Ruby C API. Users of the pure Ruby version are unaffected. We also mi…

---

## [Envjs rubygem 0.1.1](https://www.ruby-forum.com/t/envjs-rubygem-0-1-1/183005)

<div class="topic-metadata">

**Author:** [@thegoatboy](https://www.ruby-forum.com/u/thegoatboy)\
**Replies:** 4\
**Last updated:** [February 13, 2010, 6:30am UTC](https://www.ruby-forum.com/t/envjs-rubygem-0-1-1/183005 "2010-02-13T06:30:39Z")

</div>

envjs rubygem version 0.1.1 has been released! http://github.com/smparkes/env-js http://groups.google.com/group/envjs \<#envjs @ irc.freenode.net\> The envjs rubygem is a port of the env.js project based on the Johnson …

---

## [Code Review: ActiveRecord fix](https://www.ruby-forum.com/t/code-review-activerecord-fix/183396)

<div class="topic-metadata">

**Author:** [@Shri\_B](https://www.ruby-forum.com/u/Shri_B)\
**Replies:** 1\
**Last updated:** [February 13, 2010, 2:26am UTC](https://www.ruby-forum.com/t/code-review-activerecord-fix/183396 "2010-02-13T02:26:00Z")

</div>

tfpt review “/shelveset:ar;REDMOND\\sborde” Comment : remove\_const was not returning the old value in some cases

---

## [Embedding ruby](https://www.ruby-forum.com/t/embedding-ruby/182920)

<div class="topic-metadata">

**Author:** [@pujol\_josep](https://www.ruby-forum.com/u/pujol_josep)\
**Replies:** 10\
**Last updated:** [February 13, 2010, 1:36am UTC](https://www.ruby-forum.com/t/embedding-ruby/182920 "2010-02-13T01:36:16Z")

</div>

Hello, After reading a little, I found out that ruby was not designed with embedding in mind. However, I really love Ruby and I would like to embed it into my application. I would like to know if the problem with emb…

---

## [ActiveRecord tests status](https://www.ruby-forum.com/t/activerecord-tests-status/183397)

<div class="topic-metadata">

**Author:** [@Shri\_B](https://www.ruby-forum.com/u/Shri_B)\
**Replies:** 0\
**Last updated:** [February 13, 2010, 12:17am UTC](https://www.ruby-forum.com/t/activerecord-tests-status/183397 "2010-02-13T00:17:15Z")

</div>

This fix brings the ActiveRecord test pass rate to 98% with SQLServer. Only 54 out of 2300 tests are now disabled! From: Shri B. Sent: Friday, February 12, 2010 3:02 PM To: IronRuby External Code R. Cc: ‘removed\_ema…

---

## [Bug in Ruby YAML interpreter?](https://www.ruby-forum.com/t/bug-in-ruby-yaml-interpreter/183395)

<div class="topic-metadata">

**Author:** [@ralphshnelvar](https://www.ruby-forum.com/u/ralphshnelvar)\
**Replies:** 2\
**Last updated:** [February 13, 2010, 12:07am UTC](https://www.ruby-forum.com/t/bug-in-ruby-yaml-interpreter/183395 "2010-02-13T00:07:53Z")

</div>

I have a YAML file that looks something like this: en: countries: NI: “Nicaragua” NL: “Netherlands” NO: “Norway” NP: “Nepal” NR: “Nauru” NU: “Niue” When I run this through require ‘yaml’ countries = \[\] countri…

---

## [REXML translate (XPath?)](https://www.ruby-forum.com/t/rexml-translate-xpath/183339)

<div class="topic-metadata">

**Author:** [@aginghipster](https://www.ruby-forum.com/u/aginghipster)\
**Replies:** 2\
**Last updated:** [February 12, 2010, 10:15pm UTC](https://www.ruby-forum.com/t/rexml-translate-xpath/183339 "2010-02-12T22:15:31Z")

</div>

Can somebody explain or put me to an explanation of how to use REXML::Functions::translate ? I’d like to turn this: group\_list.elements\[“entry\[title=’#{name}’\]”\] . . . into a case insensitive lookup. Do I put the tra…

---

## [Running some benchmarks](https://www.ruby-forum.com/t/running-some-benchmarks/183323)

<div class="topic-metadata">

**Author:** [@xjivan](https://www.ruby-forum.com/u/xjivan)\
**Replies:** 3\
**Last updated:** [February 12, 2010, 9:24pm UTC](https://www.ruby-forum.com/t/running-some-benchmarks/183323 "2010-02-12T21:24:36Z")

</div>

Hi I’m currently helping David m. Peterson by setting up 2 windows boxes with ironruby and running a few benchmarks and tests with it. For example I’m going to try running a few of the complexer rails apps and see …

---

## [Calling a C# method with a byref parameter](https://www.ruby-forum.com/t/calling-a-c-method-with-a-byref-parameter/183309)

<div class="topic-metadata">

**Author:** [@magic6435](https://www.ruby-forum.com/u/magic6435)\
**Replies:** 8\
**Last updated:** [February 12, 2010, 9:24pm UTC](https://www.ruby-forum.com/t/calling-a-c-method-with-a-byref-parameter/183309 "2010-02-12T21:24:36Z")

</div>

Hi Everyone, I’m trying to write a IronRuby script that interops with a a .NET assembly written in C#. It has a class that derives from a base class in the .NET assembly. One of the base class protected methods loo…

---

## [Vendoring nokogiri in a jruby rails app](https://www.ruby-forum.com/t/vendoring-nokogiri-in-a-jruby-rails-app/182807)

<div class="topic-metadata">

**Author:** [@sjmadsen](https://www.ruby-forum.com/u/sjmadsen)\
**Replies:** 3\
**Last updated:** [February 12, 2010, 7:40pm UTC](https://www.ruby-forum.com/t/vendoring-nokogiri-in-a-jruby-rails-app/182807 "2010-02-12T19:40:24Z")

</div>

I’m trying to vendor nokogiri in a jruby rails app. I want to be able to run my app WAR on a machine that doesn’t have the nokogiri / libxml2 native extensions and .so files installed. I’m having trouble however. …

---

## [\[noob\] Problem with arrays](https://www.ruby-forum.com/t/noob-problem-with-arrays/226057)

<div class="topic-metadata">

**Author:** [@sobert](https://www.ruby-forum.com/u/sobert)\
**Replies:** 5\
**Last updated:** [February 12, 2010, 7:03pm UTC](https://www.ruby-forum.com/t/noob-problem-with-arrays/226057 "2010-02-12T19:03:32Z")

</div>

Hello, I have a few issue using arrays. I’m working with rubySDL to make a vertical shooting game. I have a ship, which had a collection of “fired\_missile”. The level have a collection of critters on screen. My main…

---

## [String to symbol](https://www.ruby-forum.com/t/string-to-symbol/183352)

<div class="topic-metadata">

**Author:** [@holod](https://www.ruby-forum.com/u/holod)\
**Replies:** 6\
**Last updated:** [February 12, 2010, 11:28am UTC](https://www.ruby-forum.com/t/string-to-symbol/183352 "2010-02-12T11:28:26Z")

</div>

Hello, I’m working with yaml and objects. Please, see my model: #Base class for all models. class DataBean #list allowed fields for model def allowed\_fields \[\] end def is\_attr\_allowed!(attr) raise(ValidationExce…

---

## [Problem with array in hash](https://www.ruby-forum.com/t/problem-with-array-in-hash/183360)

<div class="topic-metadata">

**Author:** [@holod](https://www.ruby-forum.com/u/holod)\
**Replies:** 2\
**Last updated:** [February 12, 2010, 11:13am UTC](https://www.ruby-forum.com/t/problem-with-array-in-hash/183360 "2010-02-12T11:13:39Z")

</div>

require ‘p’ lol = {} lol\[:arr\] = \[\] puts “#{lol\[:arr\].class} obj\_id=#{lol\[:arr\].object\_id}” lol\[:arr\] + \[Task.new(:id =\> ‘id01’)\] pp lol puts “#{lol\[:arr\].class} obj\_id=#{lol\[:arr\].object\_id}” lol\[:arr\] + \[Task.ne…

---

## [Mono builds](https://www.ruby-forum.com/t/mono-builds/183353)

<div class="topic-metadata">

**Author:** [@xjivan](https://www.ruby-forum.com/u/xjivan)\
**Replies:** 0\
**Last updated:** [February 12, 2010, 8:36am UTC](https://www.ruby-forum.com/t/mono-builds/183353 "2010-02-12T08:36:22Z")

</div>

For those of you interested in mono-on-\*nix-built-binaries for ironruby RC2. http://dl.dropbox.com/u/21717/ironruby-rc2.tar.bz2 http://dl.dropbox.com/u/21717/ironruby-rc2.tar.gz You need to either build the mono 2.6 …

---

## [Finding exact date before specified months & weeks](https://www.ruby-forum.com/t/finding-exact-date-before-specified-months-weeks/183346)

<div class="topic-metadata">

**Author:** [@martin\_mercy2001](https://www.ruby-forum.com/u/martin_mercy2001)\
**Replies:** 2\
**Last updated:** [February 12, 2010, 6:55am UTC](https://www.ruby-forum.com/t/finding-exact-date-before-specified-months-weeks/183346 "2010-02-12T06:55:31Z")

</div>

Dear All, Iam using ruby1.8.6 and rails 2.2.2 I have small issue when using Date functionality. My need is to find date when months or weeks is given as input like, When 3 months is given as input i need to calculate…

---

## [Code Review: SingletonOptimizations](https://www.ruby-forum.com/t/code-review-singletonoptimizations/183348)

<div class="topic-metadata">

**Author:** [@grujildo](https://www.ruby-forum.com/u/grujildo)\
**Replies:** 0\
**Last updated:** [February 12, 2010, 6:55am UTC](https://www.ruby-forum.com/t/code-review-singletonoptimizations/183348 "2010-02-12T06:55:08Z")

</div>

tfpt review “/shelveset:SingletonOptimizations;REDMOND\\tomat” Optimizes allocation of singletons. Module singletons could be allocated lazily. We used to eagerly allocate a singleton for each allocated RubyModule. Thi…

---

## [Rails 3?](https://www.ruby-forum.com/t/rails-3/182967)

<div class="topic-metadata">

**Author:** [@Mark\_Rendle](https://www.ruby-forum.com/u/Mark_Rendle)\
**Replies:** 5\
**Last updated:** [February 12, 2010, 5:09am UTC](https://www.ruby-forum.com/t/rails-3/182967 "2010-02-12T05:09:47Z")

</div>

I’m planning to try the Rails 3 beta with IronRuby later today. Is there any reason it just flat-out won’t work yet? I noted that R3 requires MRI 1.8.7 because of a hash-equality bug in 1.8.6, whereby two different h…

---

## [Delete Item In Array If Conditions Met](https://www.ruby-forum.com/t/delete-item-in-array-if-conditions-met/183335)

<div class="topic-metadata">

**Author:** [@kampers](https://www.ruby-forum.com/u/kampers)\
**Replies:** 6\
**Last updated:** [February 12, 2010, 1:24am UTC](https://www.ruby-forum.com/t/delete-item-in-array-if-conditions-met/183335 "2010-02-12T01:24:23Z")

</div>

Hi all: Ruby newbie here. Been trying to get this code to work but am having a tough time of it. Can anyone else please help me out? I’ve read from a db into an array, and would like to go through the array and remove…

---

## [Where to find org.apache.bsf.util imported by jruby-embed](https://www.ruby-forum.com/t/where-to-find-org-apache-bsf-util-imported-by-jruby-embed/183244)

<div class="topic-metadata">

**Author:** [@Hasan](https://www.ruby-forum.com/u/Hasan)\
**Replies:** 5\
**Last updated:** [February 12, 2010, 12:25am UTC](https://www.ruby-forum.com/t/where-to-find-org-apache-bsf-util-imported-by-jruby-embed/183244 "2010-02-12T00:25:53Z")

</div>

Dear all, we’d like to use jruby-embed bundle, but wonder where to find org.apache.bsf.util imported by this bundle. Can someone give us a hint? Thanks! Regards Hasan To unsubscribe from this list, please visit: …

---

## [Asynchronous Delegates](https://www.ruby-forum.com/t/asynchronous-delegates/183270)

<div class="topic-metadata">

**Author:** [@mercedes6s](https://www.ruby-forum.com/u/mercedes6s)\
**Replies:** 3\
**Last updated:** [February 12, 2010, 12:10am UTC](https://www.ruby-forum.com/t/asynchronous-delegates/183270 "2010-02-12T00:10:12Z")

</div>

Hello guys, I’d like to use asynchronous delegates, but it doesn’t seem to work. The IronRuby website mentioned that I can do: require ‘System’ =\> true require ‘System.Core, Version=3.5.0.0, Culture=neutral,…

---

## [Code Review: Misc rails fixes](https://www.ruby-forum.com/t/code-review-misc-rails-fixes/183332)

<div class="topic-metadata">

**Author:** [@Shri\_B](https://www.ruby-forum.com/u/Shri_B)\
**Replies:** 0\
**Last updated:** [February 11, 2010, 11:44pm UTC](https://www.ruby-forum.com/t/code-review-misc-rails-fixes/183332 "2010-02-11T23:44:19Z")

</div>

tfpt review “/shelveset:rails;REDMOND\\sborde” Comment : Adds OpenSSL::SSL::SSLError which fixes all the remaining active\_resource failures Adds an overload of NoMethodError.new that takes 3 arguments Implements Zli…

---

## [Ruby sspi](https://www.ruby-forum.com/t/ruby-sspi/183333)

<div class="topic-metadata">

**Author:** [@Tony\_Tsai](https://www.ruby-forum.com/u/Tony_Tsai)\
**Replies:** 0\
**Last updated:** [February 11, 2010, 11:03pm UTC](https://www.ruby-forum.com/t/ruby-sspi/183333 "2010-02-11T23:03:56Z")

</div>

Hi all, Is there any way that I can read user name through SSPI in Ruby on Rails? I’ve tried the tutorial at but it keeps on spitting out an error message as such ( http://dl.dropbox.com/u/163697/ntlm\_error.PNG ) T…

---

## [Johnson 2.0.0 prerelease 1](https://www.ruby-forum.com/t/johnson-2-0-0-prerelease-1/183324)

<div class="topic-metadata">

**Author:** [@thegoatboy](https://www.ruby-forum.com/u/thegoatboy)\
**Replies:** 0\
**Last updated:** [February 11, 2010, 8:17pm UTC](https://www.ruby-forum.com/t/johnson-2-0-0-prerelease-1/183324 "2010-02-11T20:17:05Z")

</div>

johnson version 2.0.0.pre1 has been released! http://github.com/jbarnette/johnson http://groups.google.com/group/johnson-talk Johnson wraps JavaScript in a loving Ruby embrace. It embeds the Mozilla SpiderMonkey Java…

---

## [N00b: text processing from magnetic stip input](https://www.ruby-forum.com/t/n00b-text-processing-from-magnetic-stip-input/183321)

<div class="topic-metadata">

**Author:** [@softf5ajivanet](https://www.ruby-forum.com/u/softf5ajivanet)\
**Replies:** 4\
**Last updated:** [February 11, 2010, 8:01pm UTC](https://www.ruby-forum.com/t/n00b-text-processing-from-magnetic-stip-input/183321 "2010-02-11T20:01:24Z")

</div>

Hello everyone! I’m trying to make a program and I’m really bad at text processing. The input is a magnetic stripe of a card (coming straight off a card reader). I’m trying to split the output so that each part can ge…

---

## [Test script](https://www.ruby-forum.com/t/test-script/183285)

<div class="topic-metadata">

**Author:** [@twaynz](https://www.ruby-forum.com/u/twaynz)\
**Replies:** 7\
**Last updated:** [February 11, 2010, 7:38pm UTC](https://www.ruby-forum.com/t/test-script/183285 "2010-02-11T19:38:25Z")

</div>

Hello, I am new to ruby and scripting. I have to develop a test-driven software, so I have to run each time a test and make the necessary changes to the code if the test fails. My program takes integers as parameters…

---

## [Can you help me about this deal?](https://www.ruby-forum.com/t/can-you-help-me-about-this-deal/183314)

<div class="topic-metadata">

**Author:** [@apple\_man](https://www.ruby-forum.com/u/apple_man)\
**Replies:** 1\
**Last updated:** [February 11, 2010, 5:28pm UTC](https://www.ruby-forum.com/t/can-you-help-me-about-this-deal/183314 "2010-02-11T17:28:49Z")

</div>

hi i saw this very cheap macbook pro 500$ here: (the 3rd from the left) i want to buy it, is it a good price? can i get a lower price? thanks

---

## [Newbee question. Runtime classloading](https://www.ruby-forum.com/t/newbee-question-runtime-classloading/183293)

<div class="topic-metadata">

**Author:** [@holod](https://www.ruby-forum.com/u/holod)\
**Replies:** 6\
**Last updated:** [February 11, 2010, 5:23pm UTC](https://www.ruby-forum.com/t/newbee-question-runtime-classloading/183293 "2010-02-11T17:23:12Z")

</div>

Hello, I’m Java developer and now explore Ruby for increasing programming knowledge. I want to understand runtime class loading I have an application: /lib/parser\_factory.rb class ParserFactory end /lib/parser\_form…

---

## [Need help with Code (Input Functionality)](https://www.ruby-forum.com/t/need-help-with-code-input-functionality/183287)

<div class="topic-metadata">

**Author:** [@michaelb](https://www.ruby-forum.com/u/michaelb)\
**Replies:** 9\
**Last updated:** [February 11, 2010, 3:57pm UTC](https://www.ruby-forum.com/t/need-help-with-code-input-functionality/183287 "2010-02-11T15:57:07Z")

</div>

When I run the following code: puts ‘What is your name?’ name = gets puts ‘What is your city?’ city = gets puts ‘What is your favorite color?’ color = gets puts “Your name is #{name}.”, “You live in #{city}.”, “Yo…

---

## [\[ANN\] Ripple 0.5 (Initial Release)](https://www.ruby-forum.com/t/ann-ripple-0-5-initial-release/183303)

<div class="topic-metadata">

**Author:** [@smc7000](https://www.ruby-forum.com/u/smc7000)\
**Replies:** 3\
**Last updated:** [February 11, 2010, 3:29pm UTC](https://www.ruby-forum.com/t/ann-ripple-0-5-initial-release/183303 "2010-02-11T15:29:53Z")

</div>

This is a quick message to announce the first release of Ripple, a rich Ruby client for Riak. (say that 10 times fast!) Full release commentary is available on my blog at http://seancribbs.com/tech/2010/02/10/introdu…

---

## [Find has key from a value](https://www.ruby-forum.com/t/find-has-key-from-a-value/183300)

<div class="topic-metadata">

**Author:** [@johnnybutler7](https://www.ruby-forum.com/u/johnnybutler7)\
**Replies:** 3\
**Last updated:** [February 11, 2010, 2:03pm UTC](https://www.ruby-forum.com/t/find-has-key-from-a-value/183300 "2010-02-11T14:03:40Z")

</div>

Hi, I cant seem to figure this out, if i have a hash value can i then get the key thats associated to that value. So the hash.has\_value(val)? method will return true or false if that value exists in the hash but what…

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

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