# Ruby

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

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

---

## [invalidateCacheDescendants Error](https://www.ruby-forum.com/t/invalidatecachedescendants-error/165398)

<div class="topic-metadata">

**Author:** [@ADADAD](https://www.ruby-forum.com/u/ADADAD)\
**Replies:** 18\
**Last updated:** [April 17, 2009, 8:05pm UTC](https://www.ruby-forum.com/t/invalidatecachedescendants-error/165398 "2009-04-17T20:05:52Z")

</div>

Hello, We are hitting this error again when running a load test and is starting to create some concern around the scalability of our app. Every time we throw a lot of concurrent load at it, tomcat and the jruby app j…

---

## [Shared Half-Secret](https://www.ruby-forum.com/t/shared-half-secret/165815)

<div class="topic-metadata">

**Author:** [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Replies:** 2\
**Last updated:** [April 17, 2009, 8:02pm UTC](https://www.ruby-forum.com/t/shared-half-secret/165815 "2009-04-17T20:02:21Z")

</div>

I have a program A (totally private) that talks to a program B (open source). I would like to introduce some way to ensure B only listens to the real A to avoid things like man-in-the-middle attacks. Any good ideas a…

---

## [Generate dictionary conents from ri for the Apple Dictionary](https://www.ruby-forum.com/t/generate-dictionary-conents-from-ri-for-the-apple-dictionary/165814)

<div class="topic-metadata">

**Author:** [@Jaewoong\_kim\_C](https://www.ruby-forum.com/u/Jaewoong_kim_C)\
**Replies:** 1\
**Last updated:** [April 17, 2009, 7:47pm UTC](https://www.ruby-forum.com/t/generate-dictionary-conents-from-ri-for-the-apple-dictionary/165814 "2009-04-17T19:47:11Z")

</div>

Hi, all I just made a simple ruby script that reads the RI yaml file from the local drive and generate the dictionary content which you can use via Apple Dictionary Application. What’s more important is that I put it …

---

## [How to run a single test with Test::Unit?](https://www.ruby-forum.com/t/how-to-run-a-single-test-with-test-unit/196942)

<div class="topic-metadata">

**Author:** [@fipa](https://www.ruby-forum.com/u/fipa)\
**Replies:** 3\
**Last updated:** [April 17, 2009, 6:59pm UTC](https://www.ruby-forum.com/t/how-to-run-a-single-test-with-test-unit/196942 "2009-04-17T18:59:50Z")

</div>

Hi, I have tests written as: test “some test” do … end But when I want to run a single test it doesn’t work like before: $ ruby test/functional/some\_controller\_test.rb -n some\_test Iget 0 test, 0 assertions… I al…

---

## [Mocha: expects any number of time](https://www.ruby-forum.com/t/mocha-expects-any-number-of-time/165805)

<div class="topic-metadata">

**Author:** [@fipa](https://www.ruby-forum.com/u/fipa)\
**Replies:** 2\
**Last updated:** [April 17, 2009, 6:29pm UTC](https://www.ruby-forum.com/t/mocha-expects-any-number-of-time/165805 "2009-04-17T18:29:02Z")

</div>

Hi, How to create an assertion that only checks that a given method is invoked at least once. In my Rails app I wanted to mock current\_user, but I don’t care how many times it gets called, but I want to make sure it …

---

## [Hpricot Gem Problem](https://www.ruby-forum.com/t/hpricot-gem-problem/165800)

<div class="topic-metadata">

**Author:** [@josefslerka](https://www.ruby-forum.com/u/josefslerka)\
**Replies:** 0\
**Last updated:** [April 17, 2009, 5:27pm UTC](https://www.ruby-forum.com/t/hpricot-gem-problem/165800 "2009-04-17T17:27:04Z")

</div>

Hi Guys, I have the following situation. I am using a the Hpricot gem in my rails app. As some of you know, jruby cannot build native extensions, and the latest versions of hpricot, have the native extensions and the…

---

## [SOAP :: Attachment](https://www.ruby-forum.com/t/soap-attachment/165798)

<div class="topic-metadata">

**Author:** [@paerez](https://www.ruby-forum.com/u/paerez)\
**Replies:** 0\
**Last updated:** [April 17, 2009, 5:22pm UTC](https://www.ruby-forum.com/t/soap-attachment/165798 "2009-04-17T17:22:01Z")

</div>

Hello , all Does anyone have a good example of how to send an attachment using ruby’s soap lib? I looked at rdoc - but there is NO documentation for soap4r (which the default ruby lib) Thank you

---

## [Array of Hashes (created by xmlsimple)](https://www.ruby-forum.com/t/array-of-hashes-created-by-xmlsimple/165779)

<div class="topic-metadata">

**Author:** [@newtoruby](https://www.ruby-forum.com/u/newtoruby)\
**Replies:** 1\
**Last updated:** [April 17, 2009, 3:26pm UTC](https://www.ruby-forum.com/t/array-of-hashes-created-by-xmlsimple/165779 "2009-04-17T15:26:24Z")

</div>

I’m relatively new and this had me thoroughly confused today. require ‘xmlsimple’ myxml = “\<a href="http://www.mysite.com/category/file.php\\”\>\\r\\n\<img src="http://www.mysite.com/images/picture.jpg\\" width="640" heigh…

---

## [Re: "mspec ci" throws an exception](https://www.ruby-forum.com/t/re-mspec-ci-throws-an-exception/165711)

<div class="topic-metadata">

**Author:** [@raker\_t](https://www.ruby-forum.com/u/raker_t)\
**Replies:** 1\
**Last updated:** [April 17, 2009, 3:24pm UTC](https://www.ruby-forum.com/t/re-mspec-ci-throws-an-exception/165711 "2009-04-17T15:24:04Z")

</div>

Please file a bug against me. I need to add a ci\_files set in the config. JD

---

## [Some feedback on the compile/test process](https://www.ruby-forum.com/t/some-feedback-on-the-compile-test-process/165587)

<div class="topic-metadata">

**Author:** [@thbar](https://www.ruby-forum.com/u/thbar)\
**Replies:** 12\
**Last updated:** [April 17, 2009, 3:15pm UTC](https://www.ruby-forum.com/t/some-feedback-on-the-compile-test-process/165587 "2009-04-17T15:15:14Z")

</div>

Some notes as I go though the contributing process, in hope that will be useful to make it smoother: after a clean checkout and launching dev.bat, brbd would not compile (today). I believe it reported a missing micro…

---

## [Mocha: does\_not\_expect](https://www.ruby-forum.com/t/mocha-does-not-expect/165790)

<div class="topic-metadata">

**Author:** [@fipa](https://www.ruby-forum.com/u/fipa)\
**Replies:** 3\
**Last updated:** [April 17, 2009, 2:41pm UTC](https://www.ruby-forum.com/t/mocha-does-not-expect/165790 "2009-04-17T14:41:12Z")

</div>

Hi, I am writing tests for a Rails app using Test::Unit and Mocha. expects does a great job to make sure a method is called. But how to handle the fact that a method shouldn’t be called? I have a before filter that p…

---

## [Multi Threading](https://www.ruby-forum.com/t/multi-threading/165765)

<div class="topic-metadata">

**Author:** [@sriram](https://www.ruby-forum.com/u/sriram)\
**Replies:** 5\
**Last updated:** [April 17, 2009, 10:02am UTC](https://www.ruby-forum.com/t/multi-threading/165765 "2009-04-17T10:02:34Z")

</div>

Hello, #\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*STARTCODE start\_time = Time.now $count = 0 class Queue def initialize \*s # splat operator allows variable length argument list @mutex = Mutex.new @queue = \[\] s.each { |e| @queue.push e…

---

## [Querying using HTTP](https://www.ruby-forum.com/t/querying-using-http/165589)

<div class="topic-metadata">

**Author:** [@bodikp](https://www.ruby-forum.com/u/bodikp)\
**Replies:** 12\
**Last updated:** [April 17, 2009, 8:15am UTC](https://www.ruby-forum.com/t/querying-using-http/165589 "2009-04-17T08:15:03Z")

</div>

I’m querying a graphics database using http. On my server and on my PC, I can successfully run a simple script that checks for the existence of files in different formatsâ€”PDF, PNG, and TIFF. But, when my colleagues …

---

## [Security permissions for JRuby 1.2?](https://www.ruby-forum.com/t/security-permissions-for-jruby-1-2/164998)

<div class="topic-metadata">

**Author:** [@Daniel\_Noll](https://www.ruby-forum.com/u/Daniel_Noll)\
**Replies:** 1\
**Last updated:** [April 17, 2009, 7:34am UTC](https://www.ruby-forum.com/t/security-permissions-for-jruby-1-2/164998 "2009-04-17T07:34:42Z")

</div>

I was getting a really cryptic error running JRuby 1.2 under the same security permissions as 1.1.4. Here is the list of granted permissions: grant { permission java.util.PropertyPermission “", “read”; permission ja…

---

## [Rspec 1.2.4 Released](https://www.ruby-forum.com/t/rspec-1-2-4-released/165593)

<div class="topic-metadata">

**Author:** [@crucoba](https://www.ruby-forum.com/u/crucoba)\
**Replies:** 3\
**Last updated:** [April 17, 2009, 4:24am UTC](https://www.ruby-forum.com/t/rspec-1-2-4-released/165593 "2009-04-17T04:24:29Z")

</div>

rspec version 1.2.4 has been released! Be sure to check History.rdoc and Updgrade.rdoc at http://rspec.rubyforge.org/rspec/1.2.4/ before upgrading. http://rspec.info http://rubyforge.org/projects/rspec http://github.…

---

## [Bug filed: Array#hash should properly handle recursive arrays](https://www.ruby-forum.com/t/bug-filed-array-hash-should-properly-handle-recursive-arrays/165742)

<div class="topic-metadata">

**Author:** [@murena](https://www.ruby-forum.com/u/murena)\
**Replies:** 6\
**Last updated:** [April 17, 2009, 4:01am UTC](https://www.ruby-forum.com/t/bug-filed-array-hash-should-properly-handle-recursive-arrays/165742 "2009-04-17T04:01:07Z")

</div>

Hi, I have just filed this bug on CodePlex: http://ironruby.codeplex.com/WorkItem/View.aspx?WorkItemId=605 It is actually pretty easy to fix with a bunch of lines of code in RubyArray.GetHashCode (just tested, too ba…

---

## [Class loading problem](https://www.ruby-forum.com/t/class-loading-problem/165753)

<div class="topic-metadata">

**Author:** [@skiz](https://www.ruby-forum.com/u/skiz)\
**Replies:** 1\
**Last updated:** [April 17, 2009, 3:51am UTC](https://www.ruby-forum.com/t/class-loading-problem/165753 "2009-04-17T03:51:11Z")

</div>

Hi, I am working on creating a rails app. template that will create a base rails app that is ready for use with the google app engine. I have everything working except for the session management. The problem is not …

---

## [Rubypan 1.0 Released](https://www.ruby-forum.com/t/rubypan-1-0-released/165754)

<div class="topic-metadata">

**Author:** [@miracleofmagick](https://www.ruby-forum.com/u/miracleofmagick)\
**Replies:** 0\
**Last updated:** [April 17, 2009, 2:17am UTC](https://www.ruby-forum.com/t/rubypan-1-0-released/165754 "2009-04-17T02:17:46Z")

</div>

rubypan version 1.0 has been released! http://seattlerb.rubyforge.org/rubypan A gem command plugin that adds gem ferret to perform fulltext searching of http://rubypan.org. Requires RubyGems 1.3.2+ Changes: 1.0.…

---

## [Regualr expression question](https://www.ruby-forum.com/t/regualr-expression-question/165748)

<div class="topic-metadata">

**Author:** [@reg](https://www.ruby-forum.com/u/reg)\
**Replies:** 2\
**Last updated:** [April 17, 2009, 1:26am UTC](https://www.ruby-forum.com/t/regualr-expression-question/165748 "2009-04-17T01:26:21Z")

</div>

The “Ruby\_RegularExpression” sample application in the javapassion rubyonrails tutorial has this code puts “----Regular Expression” puts a = “hello there” puts a\[1\] #=\> 101 puts a\[1,3\] …

---

## [Graph 1.1.0 Released](https://www.ruby-forum.com/t/graph-1-1-0-released/165750)

<div class="topic-metadata">

**Author:** [@aguynamedryan](https://www.ruby-forum.com/u/aguynamedryan)\
**Replies:** 0\
**Last updated:** [April 17, 2009, 1:09am UTC](https://www.ruby-forum.com/t/graph-1-1-0-released/165750 "2009-04-17T01:09:59Z")

</div>

graph version 1.1.0 has been released! http://rubyforge.org/projects/seattlerb Graph is a type of hash that outputs in graphviz’s dot format. It comes with a command-line interface that is easily pluggable. It ships…

---

## [Db:migrate Fehler](https://www.ruby-forum.com/t/db-migrate-fehler/165738)

<div class="topic-metadata">

**Author:** [@kaczmarek](https://www.ruby-forum.com/u/kaczmarek)\
**Replies:** 1\
**Last updated:** [April 17, 2009, 1:08am UTC](https://www.ruby-forum.com/t/db-migrate-fehler/165738 "2009-04-17T01:08:48Z")

</div>

Hallo Leute , ich bin Neu mit Ruby beschÃ¤ftigt. Ich habe das InstantPaket zum 4.mal neu installiert und bekomme immer denselben Fehler bei DB:Migrate Fehler : undefined methof ‘feldtyp’ for ActiveRecord Erstellt wur…

---

## [Hoe 1.12.2 Released](https://www.ruby-forum.com/t/hoe-1-12-2-released/165749)

<div class="topic-metadata">

**Author:** [@aguynamedryan](https://www.ruby-forum.com/u/aguynamedryan)\
**Replies:** 0\
**Last updated:** [April 17, 2009, 12:55am UTC](https://www.ruby-forum.com/t/hoe-1-12-2-released/165749 "2009-04-17T00:55:56Z")

</div>

hoe version 1.12.2 has been released! http://rubyforge.org/projects/seattlerb/ http://seattlerb.rubyforge.org/hoe/ removed\_email\_address@domain.invalid Hoe is a simple rake/rubygems helper for project Rakefiles. It g…

---

## [$gem\_hom](https://www.ruby-forum.com/t/gem-hom/165645)

<div class="topic-metadata">

**Author:** [@bloodniece](https://www.ruby-forum.com/u/bloodniece)\
**Replies:** 3\
**Last updated:** [April 17, 2009, 12:25am UTC](https://www.ruby-forum.com/t/gem-hom/165645 "2009-04-17T00:25:17Z")

</div>

I am running cygwin with ruby version ruby 1.8.7 (2008-08-11 patchlevel 72) \[i386-cygwin\] When I installed zipruby I noticed this: make install mkdir -p /usr/lib/ruby/gems/1.8/gems/gems/gems/zipruby-0.2.9/lib /usr/b…

---

## [Passing hashes as command-line parameters](https://www.ruby-forum.com/t/passing-hashes-as-command-line-parameters/165735)

<div class="topic-metadata">

**Author:** [@jeffl](https://www.ruby-forum.com/u/jeffl)\
**Replies:** 8\
**Last updated:** [April 17, 2009, 12:12am UTC](https://www.ruby-forum.com/t/passing-hashes-as-command-line-parameters/165735 "2009-04-17T00:12:03Z")

</div>

Is it not possible to pass hashes as command-line arguments to a Ruby script? Thanks, Jeff

---

## [Ruby 1.9.1 + Tk problem](https://www.ruby-forum.com/t/ruby-1-9-1-tk-problem/164827)

<div class="topic-metadata">

**Author:** [@diego\_v](https://www.ruby-forum.com/u/diego_v)\
**Replies:** 10\
**Last updated:** [April 16, 2009, 11:33pm UTC](https://www.ruby-forum.com/t/ruby-1-9-1-tk-problem/164827 "2009-04-16T23:33:25Z")

</div>

Hello, I have a Ruby/Tk code that runs perfectly in 1.8.x but stalls in 1.9.1. Doing some investigation it seems that even the very basic programs: require ‘tk’ (that’s not a mistake… it’s literally only the require…

---

## [C# method returns string to IronRuby - how it automatically be a IronRuby string?](https://www.ruby-forum.com/t/c-method-returns-string-to-ironruby-how-it-automatically-be-a-ironruby-string/165716)

<div class="topic-metadata">

**Author:** [@benhiller](https://www.ruby-forum.com/u/benhiller)\
**Replies:** 3\
**Last updated:** [April 16, 2009, 10:55pm UTC](https://www.ruby-forum.com/t/c-method-returns-string-to-ironruby-how-it-automatically-be-a-ironruby-string/165716 "2009-04-16T22:55:19Z")

</div>

Hello, Just hosted the DLR within an application to allow users some scripting functionality. Part of the functionality is that you can call a C# method and have a string returned. However, the string is always bein…

---

## [Best way to install Ruby 1.9](https://www.ruby-forum.com/t/best-way-to-install-ruby-1-9/165724)

<div class="topic-metadata">

**Author:** [@juan\_zanos](https://www.ruby-forum.com/u/juan_zanos)\
**Replies:** 7\
**Last updated:** [April 16, 2009, 10:34pm UTC](https://www.ruby-forum.com/t/best-way-to-install-ruby-1-9/165724 "2009-04-16T22:34:46Z")

</div>

I’d like to start using Ruby 1.9 more often. Often I could use the extra performance. However, I’m still concerned about bugs and incompatibilities. Is there a practical way to use 1.9 in such a way that these pot…

---

## [\[patch\] More fixes for Array (IListOps.cs)](https://www.ruby-forum.com/t/patch-more-fixes-for-array-ilistops-cs/165611)

<div class="topic-metadata">

**Author:** [@murena](https://www.ruby-forum.com/u/murena)\
**Replies:** 6\
**Last updated:** [April 16, 2009, 10:18pm UTC](https://www.ruby-forum.com/t/patch-more-fixes-for-array-ilistops-cs/165611 "2009-04-16T22:18:22Z")

</div>

---

## [Review: RubyGems tests](https://www.ruby-forum.com/t/review-rubygems-tests/165739)

<div class="topic-metadata">

**Author:** [@Shri\_B](https://www.ruby-forum.com/u/Shri_B)\
**Replies:** 1\
**Last updated:** [April 16, 2009, 10:15pm UTC](https://www.ruby-forum.com/t/review-rubygems-tests/165739 "2009-04-16T22:15:26Z")

</div>

---

## [SecurityError requiring gems and other files with $SAFE=1 in Ruby 1.9.1](https://www.ruby-forum.com/t/securityerror-requiring-gems-and-other-files-with-safe-1-in-ruby-1-9-1/165626)

<div class="topic-metadata">

**Author:** [@philippeqc](https://www.ruby-forum.com/u/philippeqc)\
**Replies:** 3\
**Last updated:** [April 16, 2009, 9:56pm UTC](https://www.ruby-forum.com/t/securityerror-requiring-gems-and-other-files-with-safe-1-in-ruby-1-9-1/165626 "2009-04-16T21:56:26Z")

</div>

I’m using my own compiled version of Ruby 1.9.1p0 on Debian etch. With $SAFE=1, I get the following error trying to require gems (in this example Rake, but I get the same error with other gems): $SAFE=1 =\> 1 req…

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

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