# Ruby

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

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

---

## [Create groups with ruby-net-ldap](https://www.ruby-forum.com/t/create-groups-with-ruby-net-ldap/137342)

<div class="topic-metadata">

**Author:** [@rvd5star](https://www.ruby-forum.com/u/rvd5star)\
**Replies:** 8\
**Last updated:** [May 14, 2008, 3:08pm UTC](https://www.ruby-forum.com/t/create-groups-with-ruby-net-ldap/137342 "2008-05-14T15:08:22Z")

</div>

hello all, I would like to ask if it’s possible to add new groups in active directory server using ruby-net-ldap library. thank you. best regards, rvd5star

---

## [Jetty Rails: gem to run JRuby on Rails applications with Jetty](https://www.ruby-forum.com/t/jetty-rails-gem-to-run-jruby-on-rails-applications-with-jetty/137568)

<div class="topic-metadata">

**Author:** [@fabiokr](https://www.ruby-forum.com/u/fabiokr)\
**Replies:** 1\
**Last updated:** [May 14, 2008, 3:01pm UTC](https://www.ruby-forum.com/t/jetty-rails-gem-to-run-jruby-on-rails-applications-with-jetty/137568 "2008-05-14T15:01:52Z")

</div>

Hi all, I’m proud to announce one more alternative to run our jruby on rails applications: http://jetty-rails.rubyforge.org I’ve written about the motivations here: Hope it helps someone! Cheers,

---

## [Problem in Action Web Service?](https://www.ruby-forum.com/t/problem-in-action-web-service/137594)

<div class="topic-metadata">

**Author:** [@varunkumargoel](https://www.ruby-forum.com/u/varunkumargoel)\
**Replies:** 0\
**Last updated:** [May 14, 2008, 2:34pm UTC](https://www.ruby-forum.com/t/problem-in-action-web-service/137594 "2008-05-14T14:34:46Z")

</div>

Hi All, I created one webservice using ROR.It’s working fine but now i have some questions. Whenever i am accessing my webservice through my another ROR application then i am getting the result as an array.Please t…

---

## [Ruby 1.8.7$B4,$-D\>$7(B](https://www.ruby-forum.com/t/ruby-1-8-7-b4-d-7-b/137590)

<div class="topic-metadata">

**Author:** [@Akinori\_MUSHA](https://www.ruby-forum.com/u/Akinori_MUSHA)\
**Replies:** 1\
**Last updated:** [May 14, 2008, 2:00pm UTC](https://www.ruby-forum.com/t/ruby-1-8-7-b4-d-7-b/137590 "2008-05-14T14:00:22Z")

</div>

ã€€1.8.7-preview2 ã®ãƒªãƒªãƒ¼ã‚¹å¾Œã€ã„ãã¤ã‹ã‚·ãƒ§ãƒ¼ã‚¹ãƒˆãƒƒãƒ‘ãƒ¼ãŒç™»å ´ã—ã¦ ã—ã¾ã„ã€ãƒªãƒªãƒ¼ã‚¹ã‚¨ãƒ³ã‚¸ãƒ‹ã‚¢ãƒªãƒ³ã‚°ãŒæ­¢ã¾ã£ã¦ã„ãŸã®ã§ã™ãŒã€å·»ãç›´ã—ã§ å†é–‹ã—ã¾ã™ã€‚ ã€€ã¾ã…

---

## [Problem installing buildr with rubygem on Windows XP](https://www.ruby-forum.com/t/problem-installing-buildr-with-rubygem-on-windows-xp/137577)

<div class="topic-metadata">

**Author:** [@maxxo](https://www.ruby-forum.com/u/maxxo)\
**Replies:** 1\
**Last updated:** [May 14, 2008, 12:25pm UTC](https://www.ruby-forum.com/t/problem-installing-buildr-with-rubygem-on-windows-xp/137577 "2008-05-14T12:25:08Z")

</div>

Hallo, I try to install the ruby building tool buildr with rubygems on Windows XP. When I type “gem install buildr” within the console I get following error message: Building native extensions. This could take a wh…

---

## [Failure trying 'gem contents'...?](https://www.ruby-forum.com/t/failure-trying-gem-contents/137523)

<div class="topic-metadata">

**Author:** [@Xeno\_C](https://www.ruby-forum.com/u/Xeno_C)\
**Replies:** 1\
**Last updated:** [May 14, 2008, 9:20am UTC](https://www.ruby-forum.com/t/failure-trying-gem-contents/137523 "2008-05-14T09:20:20Z")

</div>

root@rhaprpt:~# gem contents ERROR: While executing gem … (Gem::CommandLineError) Please specify a gem name on the command line (e.g. gem build GEMNAME) root@rhaprpt:~# Am I just missing something obvious here, or …

---

## [Require infinite loop](https://www.ruby-forum.com/t/require-infinite-loop/137565)

<div class="topic-metadata">

**Author:** [@Wayne\_K](https://www.ruby-forum.com/u/Wayne_K)\
**Replies:** 1\
**Last updated:** [May 14, 2008, 8:14am UTC](https://www.ruby-forum.com/t/require-infinite-loop/137565 "2008-05-14T08:14:23Z")

</div>

With the latest version, if a ruby source file requires itself, or if there is a cyclic chain of requires so that the original source file is required again - it results in an infinite loop. This used to work correctl…

---

## [Some more spec changes!](https://www.ruby-forum.com/t/some-more-spec-changes/137566)

<div class="topic-metadata">

**Author:** [@ksunair](https://www.ruby-forum.com/u/ksunair)\
**Replies:** 0\
**Last updated:** [May 14, 2008, 7:30am UTC](https://www.ruby-forum.com/t/some-more-spec-changes/137566 "2008-05-14T07:30:17Z")

</div>

As I was doing the test for FileOps, I ran into couple spec file problems. join\_spec: changed: couple of places instead of comparison operator ==, it has assignment operator =. I changed it and is in the uploaded fil…

---

## [R105 broke assembly loading](https://www.ruby-forum.com/t/r105-broke-assembly-loading/137532)

<div class="topic-metadata">

**Author:** [@barby](https://www.ruby-forum.com/u/barby)\
**Replies:** 10\
**Last updated:** [May 14, 2008, 7:25am UTC](https://www.ruby-forum.com/t/r105-broke-assembly-loading/137532 "2008-05-14T07:25:34Z")

</div>

Hi I just updated to r105 and now I can’t require assemblies anymore. require ‘bin/System.Net.dll’ c:\\tools\\IronRuby\\src\\IronRuby.Libraries\\Builtins\\Kernel.cs:272:in Require': Invalid character '?' in expression (…

---

## [Re: rake test](https://www.ruby-forum.com/t/re-rake-test/137555)

<div class="topic-metadata">

**Author:** [@ksunair](https://www.ruby-forum.com/u/ksunair)\
**Replies:** 1\
**Last updated:** [May 14, 2008, 7:15am UTC](https://www.ruby-forum.com/t/re-rake-test/137555 "2008-05-14T07:15:32Z")

</div>

In one of my rake test I ran into the same problem. It looks like one of the method was getting a null value even though the method signature hadÂ Â \[NotNull\] with /!/.Â I added a code if the value is null return fal…

---

## [Proc {}.arity is zero](https://www.ruby-forum.com/t/proc-arity-is-zero/137430)

<div class="topic-metadata">

**Author:** [@Tanaka\_A](https://www.ruby-forum.com/u/Tanaka_A)\
**Replies:** 2\
**Last updated:** [May 14, 2008, 7:10am UTC](https://www.ruby-forum.com/t/proc-arity-is-zero/137430 "2008-05-14T07:10:15Z")

</div>

e$B0J2\<$N$h$&$Ke(B proc {}.arity e$B$,e(B 0 e$B$K$J$j$^$9!#e(B % ./ruby -ve ‘p proc {}.arity’ ruby 1.9.0 (2008-05-12 revision 16397) \[i686-linux\] 0 1.8 e$B$G$Oe(B -1 e$B$G$9!#e(B % ruby-1.8 -ve ‘p proc {}.arity’ ru…

---

## [Rake test](https://www.ruby-forum.com/t/rake-test/137554)

<div class="topic-metadata">

**Author:** [@diabolist](https://www.ruby-forum.com/u/diabolist)\
**Replies:** 0\
**Last updated:** [May 14, 2008, 6:10am UTC](https://www.ruby-forum.com/t/rake-test/137554 "2008-05-14T06:10:46Z")

</div>

Should I be able to run these? I’m currently getting this error: :0:in do\_generate': undefined local variable or methodmethods’ for main:Object (NoMethodError) from :0:in #block162' from c:\\Projects\\IronRuby\\trunk\\sr…

---

## [(10\*\*32768-1).to\_s](https://www.ruby-forum.com/t/10-32768-1-to-s/137553)

<div class="topic-metadata">

**Author:** [@Tanaka\_A](https://www.ruby-forum.com/u/Tanaka_A)\
**Replies:** 0\
**Last updated:** [May 14, 2008, 6:09am UTC](https://www.ruby-forum.com/t/10-32768-1-to-s/137553 "2008-05-14T06:09:35Z")

</div>

e$B5)$K!“e(B(10\*\*32768-1).to\_s e$B$,$&$^$/F0$+$J$$$3$H$,$”$k$h$&$G$9!#e(B http://www.rubyist.net/~akr/chkbuild/debian-sarge/ruby-trunk/log/20080513T121601.txt.gz : Failure: test\_to\_s2(TestBignum) \[/home/akr/chkbui…

---

## [Array#index / Enumerable#find\_index](https://www.ruby-forum.com/t/array-index-enumerable-find-index/137502)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 2\
**Last updated:** [May 14, 2008, 5:01am UTC](https://www.ruby-forum.com/t/array-index-enumerable-find-index/137502 "2008-05-14T05:01:33Z")

</div>

Array#index e$B$He(B Enumerable#find\_index e$B$,$+$V$C$F$$$k$N$G$9$,!“e(B Enumerable#index e$B$,$”$l$Pe(B Enumerable#find\_index e$B$OITMW$@$H;W$&$N$G$9$,!"e(B e$B$$$+$,$G$7$g$&$+!)e(B a = %w\[a b C D e\] a.index {|x|…

---

## [Re: The Turing Machine (#162)](https://www.ruby-forum.com/t/re-the-turing-machine-162/137549)

<div class="topic-metadata">

**Author:** [@jameskelly](https://www.ruby-forum.com/u/jameskelly)\
**Replies:** 0\
**Last updated:** [May 14, 2008, 3:59am UTC](https://www.ruby-forum.com/t/re-the-turing-machine-162/137549 "2008-05-14T03:59:40Z")

</div>

I was a little late submitting this week, so, rather than fleshing this solution out, I just challenged myself to write a short but good program. I think I did a pretty good job, at 33 lines of non-golfed code. Thank…

---

## [Work in Perth (Australia)](https://www.ruby-forum.com/t/work-in-perth-australia/137322)

<div class="topic-metadata">

**Author:** [@dpitman](https://www.ruby-forum.com/u/dpitman)\
**Replies:** 1\
**Last updated:** [May 14, 2008, 1:58am UTC](https://www.ruby-forum.com/t/work-in-perth-australia/137322 "2008-05-14T01:58:50Z")

</div>

Hi, I’ll be heading back to Perth in the next few months after a few years working for Customs in Canberra. Is there anyone here from Perth who can give me a bit of an idea of the job market for Ruby work over there? …

---

## [Gem install of mongrel\_cluster fails](https://www.ruby-forum.com/t/gem-install-of-mongrel-cluster-fails/137528)

<div class="topic-metadata">

**Author:** [@Xeno\_C](https://www.ruby-forum.com/u/Xeno_C)\
**Replies:** 4\
**Last updated:** [May 14, 2008, 1:16am UTC](https://www.ruby-forum.com/t/gem-install-of-mongrel-cluster-fails/137528 "2008-05-14T01:16:02Z")

</div>

root@rhaprpt:~# gem install mongrel\_cluster --include-dependencies Select which gem to install for your platform (i486-linux) mongrel 1.1.4 (x86-mswin32-60) mongrel 1.1.4 (java) mongrel 1.1.4 (ruby) mongrel 1.1.3 (i38…

---

## [Require load error](https://www.ruby-forum.com/t/require-load-error/137522)

<div class="topic-metadata">

**Author:** [@haris](https://www.ruby-forum.com/u/haris)\
**Replies:** 4\
**Last updated:** [May 14, 2008, 12:24am UTC](https://www.ruby-forum.com/t/require-load-error/137522 "2008-05-14T00:24:57Z")

</div>

Hi, I installed ‘hpricot’ and ‘wx’ (wxruby) libraries with gem command and when I try to start a program which uses those two libraries I get ‘require - no such file to load - hpricot (or wx)’. I have ruby 1.9.0. de…

---

## [Detail on a regex?](https://www.ruby-forum.com/t/detail-on-a-regex/137497)

<div class="topic-metadata">

**Author:** [@kyle\_s](https://www.ruby-forum.com/u/kyle_s)\
**Replies:** 3\
**Last updated:** [May 14, 2008, 12:15am UTC](https://www.ruby-forum.com/t/detail-on-a-regex/137497 "2008-05-14T00:15:32Z")

</div>

Is there a way to pull details out of a regular expression’s failure? I’m running into a situation where I’ve got some validation methods, and I’m resorting to passing in both a regular expression and a range. I know …

---

## [Switch Two Lines in a File](https://www.ruby-forum.com/t/switch-two-lines-in-a-file/137517)

<div class="topic-metadata">

**Author:** [@Dana\_M](https://www.ruby-forum.com/u/Dana_M)\
**Replies:** 3\
**Last updated:** [May 14, 2008, 12:07am UTC](https://www.ruby-forum.com/t/switch-two-lines-in-a-file/137517 "2008-05-14T00:07:59Z")

</div>

Hey guys, I’m trying to write a script to switch two lines in a file, and for some reason am having difficulty grokking it. I have an ugly start, which I’ll post if you want, but it’s over thirty lines long and still…

---

## [Modify output of script](https://www.ruby-forum.com/t/modify-output-of-script/137515)

<div class="topic-metadata">

**Author:** [@kentbarber](https://www.ruby-forum.com/u/kentbarber)\
**Replies:** 2\
**Last updated:** [May 13, 2008, 11:51pm UTC](https://www.ruby-forum.com/t/modify-output-of-script/137515 "2008-05-13T23:51:15Z")

</div>

I’ve got some LDAP data I’m trying to pipe into a ruby script. Here is an example of the data there are multiple groups (dn) in the real data set. Sometimes the groups (dn) don’t have a “seeAlso” or “owner” associate…

---

## [Hash merge](https://www.ruby-forum.com/t/hash-merge/137485)

<div class="topic-metadata">

**Author:** [@twaters](https://www.ruby-forum.com/u/twaters)\
**Replies:** 8\
**Last updated:** [May 13, 2008, 11:36pm UTC](https://www.ruby-forum.com/t/hash-merge/137485 "2008-05-13T23:36:28Z")

</div>

I’m not sure if I’m using this the right way and I’m hoping you guys can help. I am merging two hashes together using merge and need to keep the keys the same and subtract the difference between the two values. The k…

---

## [Revision 105 out on Rubyforge](https://www.ruby-forum.com/t/revision-105-out-on-rubyforge/137525)

<div class="topic-metadata">

**Author:** [@John\_LSSIRONRUBY](https://www.ruby-forum.com/u/John_LSSIRONRUBY)\
**Replies:** 0\
**Last updated:** [May 13, 2008, 11:29pm UTC](https://www.ruby-forum.com/t/revision-105-out-on-rubyforge/137525 "2008-05-13T23:29:57Z")

</div>

This update contains Peter Bacon D.'s socket implementation and a set of bug fixes for bugs #20101, 20110, 20082, and 20103. I’ve also added Pete to the core team - he’s done a lot of excellent work in helping us get …

---

## [Help re manual RubyGems update?](https://www.ruby-forum.com/t/help-re-manual-rubygems-update/137433)

<div class="topic-metadata">

**Author:** [@greg](https://www.ruby-forum.com/u/greg)\
**Replies:** 1\
**Last updated:** [May 13, 2008, 9:01pm UTC](https://www.ruby-forum.com/t/help-re-manual-rubygems-update/137433 "2008-05-13T21:01:27Z")

</div>

Hi, I’m installing on Windows latest version of Ruby (on-click). Then I’m downloading the RubyGems zip and installing per http://docs.rubygems.org/read/chapter/3#page13, i.e. “ruby setup.rb”. (as I have a firewall …

---

## [Code Review: sockets-1](https://www.ruby-forum.com/t/code-review-sockets-1/137510)

<div class="topic-metadata">

**Author:** [@John\_LSSIRONRUBY](https://www.ruby-forum.com/u/John_LSSIRONRUBY)\
**Replies:** 0\
**Last updated:** [May 13, 2008, 8:46pm UTC](https://www.ruby-forum.com/t/code-review-sockets-1/137510 "2008-05-13T20:46:01Z")

</div>

tfpt review /shelveset:sockets-1;REDMOND\\jflam I’ve cleaned up Peter Bacon D.'s socket patch from last week now that we have our new MutableString implementation in. I’m running a test only job through SNAP right now. …

---

## [Ubuntu/Apache/Eruby](https://www.ruby-forum.com/t/ubuntu-apache-eruby/137507)

<div class="topic-metadata">

**Author:** [@Xeno\_C](https://www.ruby-forum.com/u/Xeno_C)\
**Replies:** 1\
**Last updated:** [May 13, 2008, 8:28pm UTC](https://www.ruby-forum.com/t/ubuntu-apache-eruby/137507 "2008-05-13T20:28:53Z")

</div>

I have an eruby application that I need to run on a machine with apache (and also some Rails stuff, but I suspect that is not a problem), and I am having a difficult time making the configuration work on Ubuntu that w…

---

## [Problem with files comparing](https://www.ruby-forum.com/t/problem-with-files-comparing/137417)

<div class="topic-metadata">

**Author:** [@cheyne](https://www.ruby-forum.com/u/cheyne)\
**Replies:** 6\
**Last updated:** [May 13, 2008, 7:53pm UTC](https://www.ruby-forum.com/t/problem-with-files-comparing/137417 "2008-05-13T19:53:40Z")

</div>

Hi, there My problem is to compare two files in the same directory as the program does. the code is: require ‘ftools’ def fcmp from = ‘my\_log.txt’ to = ‘my\_log\_e.txt’ if compare(from,to, verbose = false) then pu…

---

## [Code Review: RubyAstBugFixes](https://www.ruby-forum.com/t/code-review-rubyastbugfixes/137505)

<div class="topic-metadata">

**Author:** [@grujildo](https://www.ruby-forum.com/u/grujildo)\
**Replies:** 0\
**Last updated:** [May 13, 2008, 7:30pm UTC](https://www.ruby-forum.com/t/code-review-rubyastbugfixes/137505 "2008-05-13T19:30:56Z")

</div>

tfpt review /shelveset:RubyAstBugFixes;REDMOND\\tomat Fixes bug #20101: Can’t chain method call’s off of class definitions Fixes bug #20103: next and redo can’t be the value in a ternary. Fixes bug #20110: Invalid resu…

---

## [The Turing Machine (#162)](https://www.ruby-forum.com/t/the-turing-machine-162/137177)

<div class="topic-metadata">

**Author:** [@mansfiem](https://www.ruby-forum.com/u/mansfiem)\
**Replies:** 28\
**Last updated:** [May 13, 2008, 7:04pm UTC](https://www.ruby-forum.com/t/the-turing-machine-162/137177 "2008-05-13T19:04:26Z")

</div>

\-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- The three rules of Ruby Q. 2: Please do not post any solutions or spoiler discussion for this quiz until 48 hours have passed from the time on th…

---

## [Requiring the same file and capturing the constants](https://www.ruby-forum.com/t/requiring-the-same-file-and-capturing-the-constants/137500)

<div class="topic-metadata">

**Author:** [@dorelal](https://www.ruby-forum.com/u/dorelal)\
**Replies:** 1\
**Last updated:** [May 13, 2008, 6:54pm UTC](https://www.ruby-forum.com/t/requiring-the-same-file-and-capturing-the-constants/137500 "2008-05-13T18:54:22Z")

</div>

file1.txt class Person end module Speak end The task is to printout all the constants listed in the file. In this case there are Person and Speak. I need to handle two cases. The system loads the file for the fi…

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

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