# Ruby

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

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

---

## [Reorder a XML file by distance from a location](https://www.ruby-forum.com/t/reorder-a-xml-file-by-distance-from-a-location/141214)

<div class="topic-metadata">

**Author:** [@johnnyrepp](https://www.ruby-forum.com/u/johnnyrepp)\
**Replies:** 6\
**Last updated:** [June 24, 2008, 10:50pm UTC](https://www.ruby-forum.com/t/reorder-a-xml-file-by-distance-from-a-location/141214 "2008-06-24T22:50:32Z")

</div>

Hi I’m quite the newbie and I’m looking for some help. I need to do something quick and it doesnt look so hard. I have this RSS file on my computer (below) and I need to produce a very similar RSS file but with the i…

---

## [How to get to the CLR type](https://www.ruby-forum.com/t/how-to-get-to-the-clr-type/140451)

<div class="topic-metadata">

**Author:** [@barby](https://www.ruby-forum.com/u/barby)\
**Replies:** 9\
**Last updated:** [June 24, 2008, 10:38pm UTC](https://www.ruby-forum.com/t/how-to-get-to-the-clr-type/140451 "2008-06-24T22:38:48Z")

</div>

How do I get to the CLR type definition of a class? I assumed that the code below would just work or at least not fail where it did :slight\_smile: @@login\_event = EventManager.register\_routed\_event(“login”, RoutingS…

---

## [Code Review: Partial2](https://www.ruby-forum.com/t/code-review-partial2/141348)

<div class="topic-metadata">

**Author:** [@grujildo](https://www.ruby-forum.com/u/grujildo)\
**Replies:** 0\
**Last updated:** [June 24, 2008, 10:04pm UTC](https://www.ruby-forum.com/t/code-review-partial2/141348 "2008-06-24T22:04:11Z")

</div>

tfpt review “/shelveset:Partial2;REDMOND\\tomat” Fixes partial trust bugs. MerlinWeb now runs well in Medium trust. Tomas

---

## [COBOL copybook parser](https://www.ruby-forum.com/t/cobol-copybook-parser/141342)

<div class="topic-metadata">

**Author:** [@toddlc](https://www.ruby-forum.com/u/toddlc)\
**Replies:** 0\
**Last updated:** [June 24, 2008, 9:30pm UTC](https://www.ruby-forum.com/t/cobol-copybook-parser/141342 "2008-06-24T21:30:44Z")

</div>

Hi all, Does a Ruby parser for COBOL exist? I’ve done some cursory searches and have come up empty, though a colleague has suggested a module is out there. I’m not looking to parse a particular copybook (I could wri…

---

## [One-Click Installer for Ruby 1.8.7?](https://www.ruby-forum.com/t/one-click-installer-for-ruby-1-8-7/140589)

<div class="topic-metadata">

**Author:** [@awarberg](https://www.ruby-forum.com/u/awarberg)\
**Replies:** 5\
**Last updated:** [June 24, 2008, 9:19pm UTC](https://www.ruby-forum.com/t/one-click-installer-for-ruby-1-8-7/140589 "2008-06-24T21:19:07Z")

</div>

Hi, When do you expect to release a one-click installer for ruby 1.8.7 for the Windows platform? Currently (at Download Ruby) there is still just a one-click installer for the old version 1.8.6. You’ve supplied a bi…

---

## [\[ANNOUNCE\]GlassFish v3 gem 0.3.0 Released](https://www.ruby-forum.com/t/announce-glassfish-v3-gem-0-3-0-released/141337)

<div class="topic-metadata">

**Author:** [@Vivek\_P](https://www.ruby-forum.com/u/Vivek_P)\
**Replies:** 0\
**Last updated:** [June 24, 2008, 8:41pm UTC](https://www.ruby-forum.com/t/announce-glassfish-v3-gem-0-3-0-released/141337 "2008-06-24T20:41:30Z")

</div>

I just released GlassFish gem 0.3.0. This is a bug fix release with few enhancements. The following issues reported at GlassFish issue tracker\[1\] have been fixed in this release: 3976 Rails Gem: Static content no…

---

## [IRB not finding "rubygems"](https://www.ruby-forum.com/t/irb-not-finding-rubygems/141327)

<div class="topic-metadata">

**Author:** [@bhutchins](https://www.ruby-forum.com/u/bhutchins)\
**Replies:** 4\
**Last updated:** [June 24, 2008, 8:26pm UTC](https://www.ruby-forum.com/t/irb-not-finding-rubygems/141327 "2008-06-24T20:26:51Z")

</div>

This an odd one. require ‘rubygems’ works in my scripts . . . but if I go to IRB to test some ‘rspec’ stuff. I get: require ‘rubygems’ =\> false Tried including the whole path, but that did not work either any i…

---

## [Require is not the same in irb as in ruby?](https://www.ruby-forum.com/t/require-is-not-the-same-in-irb-as-in-ruby/141308)

<div class="topic-metadata">

**Author:** [@gremio](https://www.ruby-forum.com/u/gremio)\
**Replies:** 2\
**Last updated:** [June 24, 2008, 8:19pm UTC](https://www.ruby-forum.com/t/require-is-not-the-same-in-irb-as-in-ruby/141308 "2008-06-24T20:19:14Z")

</div>

$ irb irb(main):001:0\> require ‘rubygems’ =\> true irb(main):002:0\> require ‘builder’ =\> true irb(main):003:0\> ^D All well and good. Now: $ cat \> foo.rb #!/usr/bin/ruby require ‘rubygems’ require ‘builder’ ^D …

---

## [Gem update --system: how to tell if it's making progress?](https://www.ruby-forum.com/t/gem-update-system-how-to-tell-if-its-making-progress/141312)

<div class="topic-metadata">

**Author:** [@starmaerker](https://www.ruby-forum.com/u/starmaerker)\
**Replies:** 2\
**Last updated:** [June 24, 2008, 6:50pm UTC](https://www.ruby-forum.com/t/gem-update-system-how-to-tell-if-its-making-progress/141312 "2008-06-24T18:50:46Z")

</div>

Hello, Today I decided to upgrade rubygems on my server from 1.0.0 to 1.2.0. So I ran: sudo gem update --system. That was 4 hours ago. I’d like to know whether it’s stuck or whether it’s actually making progress (a…

---

## [ISeq#to\_a hides internal\_id](https://www.ruby-forum.com/t/iseq-to-a-hides-internal-id/141330)

<div class="topic-metadata">

**Author:** [@Yusuke\_ENDOH](https://www.ruby-forum.com/u/Yusuke_ENDOH)\
**Replies:** 0\
**Last updated:** [June 24, 2008, 6:41pm UTC](https://www.ruby-forum.com/t/iseq-to-a-hides-internal-id/141330 "2008-06-24T18:41:56Z")

</div>

e$B1sF#$G$9!#e(B NODE\_FOR e$B$Ne(B internal\_id e$B$,e(B VM::InstructionSequence#to\_a e$B$G=PNOe(B e$B$5$l$J$$$?$a!"e(Bto\_a e$B$7$Fe(B load e$B$7$Fe(B eval e$B$9$k$HJQ$J$3$H$K$J$j$^$9!#e(B $ ./ruby -e ’ VM::Instruct…

---

## [Server crashes since ruby upgrade](https://www.ruby-forum.com/t/server-crashes-since-ruby-upgrade/141324)

<div class="topic-metadata">

**Author:** [@Ken\_Dunlap](https://www.ruby-forum.com/u/Ken_Dunlap)\
**Replies:** 1\
**Last updated:** [June 24, 2008, 6:39pm UTC](https://www.ruby-forum.com/t/server-crashes-since-ruby-upgrade/141324 "2008-06-24T18:39:05Z")

</div>

I’ve built ruby 1.8.6-p230 due to vulnerabilities in older versions. Previously using 1.8.6-p110. Built in a NetBSD 3.1 environment. I have a rails app using the rails 2.0.2. This is running fine on the production s…

---

## [JDBC Activerecord Gem](https://www.ruby-forum.com/t/jdbc-activerecord-gem/141171)

<div class="topic-metadata">

**Author:** [@phil\_swenson](https://www.ruby-forum.com/u/phil_swenson)\
**Replies:** 3\
**Last updated:** [June 24, 2008, 5:55pm UTC](https://www.ruby-forum.com/t/jdbc-activerecord-gem/141171 "2008-06-24T17:55:39Z")

</div>

What are the advantages of using the JDBC AR gem? Does it just translate all AR calls to JDBC for faster perf than the pure ruby solution? Are there any disadvantages? thanks for any thoughts… phil

---

## [Freeze Tempfile#path](https://www.ruby-forum.com/t/freeze-tempfile-path/141317)

<div class="topic-metadata">

**Author:** [@Keita\_Y](https://www.ruby-forum.com/u/Keita_Y)\
**Replies:** 0\
**Last updated:** [June 24, 2008, 5:48pm UTC](https://www.ruby-forum.com/t/freeze-tempfile-path/141317 "2008-06-24T17:48:37Z")

</div>

e$B;38}$H?=$7$^$9!#e(B tempfile.rb e$B$K$$1$ke(B Tempfile#path (@tmpname) e$B$NCM$re(BTempfilee$B%%V%8%’%/%H:n@.;~$Ke(B freeze e$B$9$k$?$a$N%Q%C%A$rEj9FCW$7$^$9!#e(B e$B8=:\_e(B 1.8, 1.9 e$B6&$Ke(B tempfile.rb e$B$K$\*…

---

## [Threads in JRuby vs standard Ruby](https://www.ruby-forum.com/t/threads-in-jruby-vs-standard-ruby/141309)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 6\
**Last updated:** [June 24, 2008, 5:32pm UTC](https://www.ruby-forum.com/t/threads-in-jruby-vs-standard-ruby/141309 "2008-06-24T17:32:46Z")

</div>

Hello guys, This is the first time I am working with threads and so far it gave me a good result in the speed of my code, using Ruby 1.8.6 in the native Mac OS X distribution. By I read in the book “The Ruby P.ming l…

---

## [Net/smtp.rb typo](https://www.ruby-forum.com/t/net-smtp-rb-typo/141316)

<div class="topic-metadata">

**Author:** [@Masao\_Takaku](https://www.ruby-forum.com/u/Masao_Takaku)\
**Replies:** 0\
**Last updated:** [June 24, 2008, 5:29pm UTC](https://www.ruby-forum.com/t/net-smtp-rb-typo/141316 "2008-06-24T17:29:50Z")

</div>

e$B$?$+$/$H$b$&$7$^$9!#e(B net/smtp.rb e$B$KJQ?tL\>$NDV$j%\_%9$K$h$k%P%0$,$"$k$h$&$G$9!#e(B Hiki e$B$N%F%9%HCf$K%(%i!\<$K$J$C$?$N$G5$IU$-$^$7$?!#e(B undefined local variable or method \`to’ for #\<Net::SMTP xxxxxxxx.xxxx.…

---

## [KABLAME! 0.2.1 Released](https://www.ruby-forum.com/t/kablame-0-2-1-released/141111)

<div class="topic-metadata">

**Author:** [@Jacob\_Dunphy](https://www.ruby-forum.com/u/Jacob_Dunphy)\
**Replies:** 12\
**Last updated:** [June 24, 2008, 4:40pm UTC](https://www.ruby-forum.com/t/kablame-0-2-1-released/141111 "2008-06-24T16:40:28Z")

</div>

This is the first “announced release” of KABLAME! KABLAME! started as a way for me to show my managers that half of the development team wasn’t writing any tests. It was a stupid Rails plugin that I’ve now turned int…

---

## [Date intervals for graphs](https://www.ruby-forum.com/t/date-intervals-for-graphs/141229)

<div class="topic-metadata">

**Author:** [@arvias](https://www.ruby-forum.com/u/arvias)\
**Replies:** 2\
**Last updated:** [June 24, 2008, 4:20pm UTC](https://www.ruby-forum.com/t/date-intervals-for-graphs/141229 "2008-06-24T16:20:30Z")

</div>

Hi, I’m in a position where I have to create dynamic date based Line graphs. By dynamic I mean the start and end dates are variable and the output should depend on the time period. For example if the date interval is…

---

## [RubyToC Question](https://www.ruby-forum.com/t/rubytoc-question/139682)

<div class="topic-metadata">

**Author:** [@unebaguettesvp](https://www.ruby-forum.com/u/unebaguettesvp)\
**Replies:** 13\
**Last updated:** [June 24, 2008, 4:00pm UTC](https://www.ruby-forum.com/t/rubytoc-question/139682 "2008-06-24T16:00:34Z")

</div>

People, RubyToC installs OK: gem install RubyToC Bulk updating Gem source index for: http://gems.rubyforge.org Successfully installed RubyToC-1.0.0.5 Installing ri documentation for RubyToC-1.0.0.5… Installing RDoc…

---

## [Exception message when requiring buggy code](https://www.ruby-forum.com/t/exception-message-when-requiring-buggy-code/141301)

<div class="topic-metadata">

**Author:** [@Yusuke\_ENDOH](https://www.ruby-forum.com/u/Yusuke_ENDOH)\
**Replies:** 0\
**Last updated:** [June 24, 2008, 2:56pm UTC](https://www.ruby-forum.com/t/exception-message-when-requiring-buggy-code/141301 "2008-06-24T14:56:30Z")

</div>

e$B1sF#$G$9!#e(B require e$B$,%Q!\<%9;~$K\<:GT$9$k$H0J2\<$N$h$&$KDL\>o$NNc30$K$J$j$^$9$,!"e(B $ cat foo.rb "foo $ ./ruby -e ’ begin require “foo.rb” rescue SyntaxError p $! end ’ #\<SyntaxError: /home/mame/work/rub…

---

## [Unable to upgrade rubygems](https://www.ruby-forum.com/t/unable-to-upgrade-rubygems/141297)

<div class="topic-metadata">

**Author:** [@Une\_BSSSSvS\_ue](https://www.ruby-forum.com/u/Une_BSSSSvS_ue)\
**Replies:** 4\
**Last updated:** [June 24, 2008, 2:45pm UTC](https://www.ruby-forum.com/t/unable-to-upgrade-rubygems/141297 "2008-06-24T14:45:21Z")

</div>

what i did : download locally rubygems-update-1.2.0.gem then : ~/gems%\> sudo gem install -l rubygems-update-1.2.0.gem Password: Successfully installed rubygems-update-1.2.0 1 gem installed however i’ve still the 1…

---

## [How to determine the current controller?](https://www.ruby-forum.com/t/how-to-determine-the-current-controller/141292)

<div class="topic-metadata">

**Author:** [@jdunneuk](https://www.ruby-forum.com/u/jdunneuk)\
**Replies:** 1\
**Last updated:** [June 24, 2008, 2:06pm UTC](https://www.ruby-forum.com/t/how-to-determine-the-current-controller/141292 "2008-06-24T14:06:33Z")

</div>

Hi guys, I want to build a generic navigation menu with partials in the style of if current\_controller == ‘abcd’ render pratial ‘abscd’ How can I determine the current controller from within the layout .rhtml file w…

---

## [Spacing data into columns](https://www.ruby-forum.com/t/spacing-data-into-columns/141212)

<div class="topic-metadata">

**Author:** [@jturney](https://www.ruby-forum.com/u/jturney)\
**Replies:** 3\
**Last updated:** [June 24, 2008, 1:11pm UTC](https://www.ruby-forum.com/t/spacing-data-into-columns/141212 "2008-06-24T13:11:26Z")

</div>

Hi, I want to output a series of items, but I want to make sure they’re properly spaced out so it’s more readable. Sample: dfssdf | 393f | dfskjsdfk dfjkdfkdfkj| fd | 3493 df | 1 | et…

---

## [Expression introspection?](https://www.ruby-forum.com/t/expression-introspection/141293)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [June 24, 2008, 12:23pm UTC](https://www.ruby-forum.com/t/expression-introspection/141293 "2008-06-24T12:23:57Z")

</div>

I wonder if anyone has any suggestions for handling a design question I have. I think I want introspection of Ruby Expressions, but my ruby experience is limited and there may be an alternative approach that I’ve mis…

---

## [Suggestion: Enumerable#all?/any? with argument](https://www.ruby-forum.com/t/suggestion-enumerable-all-any-with-argument/141240)

<div class="topic-metadata">

**Author:** [@Farrel\_L](https://www.ruby-forum.com/u/Farrel_L)\
**Replies:** 5\
**Last updated:** [June 24, 2008, 9:35am UTC](https://www.ruby-forum.com/t/suggestion-enumerable-all-any-with-argument/141240 "2008-06-24T09:35:26Z")

</div>

I was thinking about Enumerable (one of Ruby’s more powerful modules) and I was wondering whether the following proposal to extend Enumerable#all?/any? would have any merit. In a nutshell I think any? and all? shoul…

---

## [\[Ruby 1.9 - Feature #198\] (Open) Publish transcode code generation code and tables](https://www.ruby-forum.com/t/ruby-1-9-feature-198-open-publish-transcode-code-generation-code-and-tables/141278)

<div class="topic-metadata">

**Author:** [@Martin\_DSSS\_rst](https://www.ruby-forum.com/u/Martin_DSSS_rst)\
**Replies:** 1\
**Last updated:** [June 24, 2008, 9:33am UTC](https://www.ruby-forum.com/t/ruby-1-9-feature-198-open-publish-transcode-code-generation-code-and-tables/141278 "2008-06-24T09:33:41Z")

</div>

e$B%A%1%C%He(B #198 e$B$,Js9p$5$l$^$7$?!#e(B (by Martin De$(D+de(Brst) Feature #198: Publish transcode code generation code and tables http://redmine.ruby-lang.org/issues/show/198 e$B5/I\<\<Te(B: Martin De$(D+de(Brst …

---

## [(no subject)](https://www.ruby-forum.com/t/no-subject/141271)

<div class="topic-metadata">

**Author:** [@Chris\_Cederstrom](https://www.ruby-forum.com/u/Chris_Cederstrom)\
**Replies:** 0\
**Last updated:** [June 24, 2008, 8:11am UTC](https://www.ruby-forum.com/t/no-subject/141271 "2008-06-24T08:11:59Z")

</div>

unsubscribe

---

## [RubySpec numbers for IronRuby](https://www.ruby-forum.com/t/rubyspec-numbers-for-ironruby/141268)

<div class="topic-metadata">

**Author:** [@John\_LSSIRONRUBY](https://www.ruby-forum.com/u/John_LSSIRONRUBY)\
**Replies:** 0\
**Last updated:** [June 24, 2008, 7:44am UTC](https://www.ruby-forum.com/t/rubyspec-numbers-for-ironruby/141268 "2008-06-24T07:44:29Z")

</div>

We’ve been having a lot of problems around here with getting RubySpecs integrated properly, so again my apologies for delays in getting the latest sources out to y’all. We have an old version of Ruby checked into SNAP…

---

## [Rex: howto use the lexer class?](https://www.ruby-forum.com/t/rex-howto-use-the-lexer-class/141127)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 1\
**Last updated:** [June 24, 2008, 4:01am UTC](https://www.ruby-forum.com/t/rex-howto-use-the-lexer-class/141127 "2008-06-24T04:01:06Z")

</div>

Hello. I’m trying to get rex to parse my inputs. After reading some of the sample files provided with rex, I created this simple(?) file: file: test.rex------------------------------------------------------------ --…

---

## [Running system() without output](https://www.ruby-forum.com/t/running-system-without-output/141258)

<div class="topic-metadata">

**Author:** [@Yanik\_Magnan](https://www.ruby-forum.com/u/Yanik_Magnan)\
**Replies:** 2\
**Last updated:** [June 24, 2008, 3:54am UTC](https://www.ruby-forum.com/t/running-system-without-output/141258 "2008-06-24T03:54:04Z")

</div>

Heya, I’m relatively new to Ruby, but I haven’t found any way of doing this by looking through the documentation. I want to call system("/usr/bin/sometask #{somefile}"), except the task in question doesn’t have a --q…

---

## [ExecutionContext without references IronRuby](https://www.ruby-forum.com/t/executioncontext-without-references-ironruby/141250)

<div class="topic-metadata">

**Author:** [@benhiller](https://www.ruby-forum.com/u/benhiller)\
**Replies:** 4\
**Last updated:** [June 24, 2008, 3:38am UTC](https://www.ruby-forum.com/t/executioncontext-without-references-ironruby/141250 "2008-06-24T03:38:47Z")

</div>

Hi, This might be a bit of a strange request, but is it possible to get access to the ExecutionContext without actually referencing the IronRuby assembly? As a quick demo, I wrote the following code: Script…

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

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