# Ruby

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

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

---

## [How to call method in the another file](https://www.ruby-forum.com/t/how-to-call-method-in-the-another-file/189194)

<div class="topic-metadata">

**Author:** [@sweetzubair](https://www.ruby-forum.com/u/sweetzubair)\
**Replies:** 2\
**Last updated:** [May 27, 2010, 6:59am UTC](https://www.ruby-forum.com/t/how-to-call-method-in-the-another-file/189194 "2010-05-27T06:59:40Z")

</div>

Hello frends, I write the method on one file and call this method on another file but the problem is they not find the method of the another file in first file i write:file\_name=first.rb def a() puts “hello world” …

---

## [OpenSSL](https://www.ruby-forum.com/t/openssl/189225)

<div class="topic-metadata">

**Author:** [@hotgazpacho](https://www.ruby-forum.com/u/hotgazpacho)\
**Replies:** 1\
**Last updated:** [May 27, 2010, 5:05am UTC](https://www.ruby-forum.com/t/openssl/189225 "2010-05-27T05:05:45Z")

</div>

As I tweeted earlier (http://twitter.com/hotgazpacho/status/14799021492), I’m putting my money where my mouth is. As I understand it, the RubySpec project is missing specs for OpenSSL. If someone will write (or poin…

---

## [Define\_exception gem](https://www.ruby-forum.com/t/define-exception-gem/189222)

<div class="topic-metadata">

**Author:** [@Wes\_B](https://www.ruby-forum.com/u/Wes_B)\
**Replies:** 0\
**Last updated:** [May 27, 2010, 1:33am UTC](https://www.ruby-forum.com/t/define-exception-gem/189222 "2010-05-27T01:33:53Z")

</div>

I’m happy to announce the release of define\_exception 0.0.2. This is the initial public release of this library. = Summary This gem provides a dry way of defining custom exception in our application with default mess…

---

## [Nokogiri 1.4.2 Released](https://www.ruby-forum.com/t/nokogiri-1-4-2-released/189034)

<div class="topic-metadata">

**Author:** [@aaronpowell](https://www.ruby-forum.com/u/aaronpowell)\
**Replies:** 1\
**Last updated:** [May 26, 2010, 11:59pm UTC](https://www.ruby-forum.com/t/nokogiri-1-4-2-released/189034 "2010-05-26T23:59:38Z")

</div>

nokogiri version 1.4.2 has been released! http://nokogiri.org http://github.com/tenderlove/nokogiri/wikis http://github.com/tenderlove/nokogiri/tree/master http://groups.google.com/group/nokogiri-talk http://github.com…

---

## [How do I write an RSpec test to unit-test this interesting metaprogramming code?](https://www.ruby-forum.com/t/how-do-i-write-an-rspec-test-to-unit-test-this-interesting-metaprogramming-code/189061)

<div class="topic-metadata">

**Author:** [@aftershock](https://www.ruby-forum.com/u/aftershock)\
**Replies:** 3\
**Last updated:** [May 26, 2010, 11:49pm UTC](https://www.ruby-forum.com/t/how-do-i-write-an-rspec-test-to-unit-test-this-interesting-metaprogramming-code/189061 "2010-05-26T23:49:42Z")

</div>

I’m a little stumped by this problem. Here’s some simple code that, for each argument specified, will add specific get/set methods named after that argument. If you write attr\_option :foo, :bar, then you will see #foo…

---

## [Error invoking PDFTK when running from TextMate](https://www.ruby-forum.com/t/error-invoking-pdftk-when-running-from-textmate/167395)

<div class="topic-metadata">

**Author:** [@raimon](https://www.ruby-forum.com/u/raimon)\
**Replies:** 5\
**Last updated:** [May 26, 2010, 10:07pm UTC](https://www.ruby-forum.com/t/error-invoking-pdftk-when-running-from-textmate/167395 "2010-05-26T22:07:38Z")

</div>

Hello, I have some simple code that works perfectly from irb and from RoR, but when I try to run it from TextMate (command R) I’m getting always the error: PDF::Toolkit::ExecutionError: Error invoking PDFTK require …

---

## [How to have \*\_url generate urls with https:// protocol](https://www.ruby-forum.com/t/how-to-have-url-generate-urls-with-https-protocol/189214)

<div class="topic-metadata">

**Author:** [@errolsiegel](https://www.ruby-forum.com/u/errolsiegel)\
**Replies:** 0\
**Last updated:** [May 26, 2010, 10:02pm UTC](https://www.ruby-forum.com/t/how-to-have-url-generate-urls-with-https-protocol/189214 "2010-05-26T22:02:47Z")

</div>

Hello, I am using \*\_path in views and \*\_url in controllers (with redirect\_to, for example). It is my understanding that this is generally considered a good practice. I want to use my app using https, and thought it …

---

## ["Statically linking" native extensions](https://www.ruby-forum.com/t/statically-linking-native-extensions/189210)

<div class="topic-metadata">

**Author:** [@indigo](https://www.ruby-forum.com/u/indigo)\
**Replies:** 0\
**Last updated:** [May 26, 2010, 9:29pm UTC](https://www.ruby-forum.com/t/statically-linking-native-extensions/189210 "2010-05-26T21:29:38Z")

</div>

Hello. I am writing a small game in ruby, using rubygame to do the graphics. I am targeting an audience with little technical experience, which means I won’t be using gems, as easy as those are. My perfect scenario is…

---

## [XML Generator/Merger](https://www.ruby-forum.com/t/xml-generator-merger/189203)

<div class="topic-metadata">

**Author:** [@fuglyducky](https://www.ruby-forum.com/u/fuglyducky)\
**Replies:** 2\
**Last updated:** [May 26, 2010, 9:15pm UTC](https://www.ruby-forum.com/t/xml-generator-merger/189203 "2010-05-26T21:15:42Z")

</div>

Before I get into this, I need to say that I am not a programmer and have very limited programming experience in any language, let alone Ruby. With that said, Ruby is the language I know the best (which really isn’t s…

---

## [Watir - finding element in form](https://www.ruby-forum.com/t/watir-finding-element-in-form/189182)

<div class="topic-metadata">

**Author:** [@csitol](https://www.ruby-forum.com/u/csitol)\
**Replies:** 2\
**Last updated:** [May 26, 2010, 7:50pm UTC](https://www.ruby-forum.com/t/watir-finding-element-in-form/189182 "2010-05-26T19:50:14Z")

</div>

I’m trying to use Watir to log into a page. I can’t seem to find the login button in order to click on it. From the Watir examples I’ve read it seems I need the following code: browser = Watir::Safari.new browser.g…

---

## [Ruby Newbie...Classes and Objects, oh my!](https://www.ruby-forum.com/t/ruby-newbie-classes-and-objects-oh-my/189105)

<div class="topic-metadata">

**Author:** [@fuglyducky](https://www.ruby-forum.com/u/fuglyducky)\
**Replies:** 5\
**Last updated:** [May 26, 2010, 6:26pm UTC](https://www.ruby-forum.com/t/ruby-newbie-classes-and-objects-oh-my/189105 "2010-05-26T18:26:31Z")

</div>

I’m very new to Ruby and I’m trying to create a program that will take one text file and dump each line into an array. Then I take a second file and dump that into a string. Then I insert the string into the array. Th…

---

## [\[ANN\] Money 3.0.1](https://www.ruby-forum.com/t/ann-money-3-0-1/189199)

<div class="topic-metadata">

**Author:** [@semmons99](https://www.ruby-forum.com/u/semmons99)\
**Replies:** 3\
**Last updated:** [May 26, 2010, 5:12pm UTC](https://www.ruby-forum.com/t/ann-money-3-0-1/189199 "2010-05-26T17:12:24Z")

</div>

Money 3.0.1 Released Added #eql? method Updated Numeric#to\_money to work with all children of Numeric (BigDecimal, Integer, Fixnum, etc)

---

## [SOAP and NTLM Authentication](https://www.ruby-forum.com/t/soap-and-ntlm-authentication/164020)

<div class="topic-metadata">

**Author:** [@diabolist](https://www.ruby-forum.com/u/diabolist)\
**Replies:** 6\
**Last updated:** [May 26, 2010, 4:57pm UTC](https://www.ruby-forum.com/t/soap-and-ntlm-authentication/164020 "2010-05-26T16:57:03Z")

</div>

I’m trying to integrate with Sharepoint Services, and need to connect to the server using NTLM authentication. I can’t get the following lines of code to work: WSDL\_URL = ‘http://sharepoint.wavetronix.local/\_vti\_bin/l…

---

## [Class System::Int64 does not have a valid constructor](https://www.ruby-forum.com/t/class-system-int64-does-not-have-a-valid-constructor/189158)

<div class="topic-metadata">

**Author:** [@Bobby\_J](https://www.ruby-forum.com/u/Bobby_J)\
**Replies:** 2\
**Last updated:** [May 26, 2010, 4:47pm UTC](https://www.ruby-forum.com/t/class-system-int64-does-not-have-a-valid-constructor/189158 "2010-05-26T16:47:35Z")

</div>

http://www.ruby-forum.com/topic/206766 Someone posted about this error back in March, but I didn’t see any resolution posted. Any one discovered a workaround or fix for the issue described in the original post? – “T…

---

## [Reporting Bugs about REXML?](https://www.ruby-forum.com/t/reporting-bugs-about-rexml/188594)

<div class="topic-metadata">

**Author:** [@Hadmut\_D](https://www.ruby-forum.com/u/Hadmut_D)\
**Replies:** 8\
**Last updated:** [May 26, 2010, 4:20pm UTC](https://www.ruby-forum.com/t/reporting-bugs-about-rexml/188594 "2010-05-26T16:20:39Z")

</div>

Hi, where would I report a bug about ruby REXML? I did not yet find a proper way to report any bug. Starting at ruby-lang.org I came to redmine.org and registered, but then I just get an empty list of issues assigned…

---

## [Round the floating point to nearest halfpoint](https://www.ruby-forum.com/t/round-the-floating-point-to-nearest-halfpoint/189195)

<div class="topic-metadata">

**Author:** [@lucky1234](https://www.ruby-forum.com/u/lucky1234)\
**Replies:** 2\
**Last updated:** [May 26, 2010, 3:09pm UTC](https://www.ruby-forum.com/t/round-the-floating-point-to-nearest-halfpoint/189195 "2010-05-26T15:09:49Z")

</div>

Hi , I want to round the my floating point result into nearest halfpoint .how to do it. Example: 1)My floating point result is 3.3 i want it become 3.5 2) My floating point result is 3.6 i want it become 4 How ca…

---

## [How to achieve parallelism, using threads?](https://www.ruby-forum.com/t/how-to-achieve-parallelism-using-threads/189189)

<div class="topic-metadata">

**Author:** [@walle](https://www.ruby-forum.com/u/walle)\
**Replies:** 5\
**Last updated:** [May 26, 2010, 12:57pm UTC](https://www.ruby-forum.com/t/how-to-achieve-parallelism-using-threads/189189 "2010-05-26T12:57:15Z")

</div>

Hey, I’m having a hard time figuring out how threads works, and how to use them. I’m currently working on a project were I need to achieve parallelism in the code, but I always ends up with a multiply threads, workin…

---

## [Using Java resources in JRuby](https://www.ruby-forum.com/t/using-java-resources-in-jruby/189192)

<div class="topic-metadata">

**Author:** [@recursion](https://www.ruby-forum.com/u/recursion)\
**Replies:** 0\
**Last updated:** [May 26, 2010, 12:13pm UTC](https://www.ruby-forum.com/t/using-java-resources-in-jruby/189192 "2010-05-26T12:13:36Z")

</div>

Hi, I was wondering whether some of you could comment or give me some insights about how exactly the JRuby runtime is dealing with the Java resources that a particular JRuby script needs and uses. Imagine, that i h…

---

## [\[Bug #3307\] ext/tk $B$,(Bheader file$B$NM-L5$r8mH=Dj$9$k(B](https://www.ruby-forum.com/t/bug-3307-ext-tk-b-bheader-file-b-nm-l5-r8mh-dj-9-k-b/188754)

<div class="topic-metadata">

**Author:** [@Masaya\_T](https://www.ruby-forum.com/u/Masaya_T)\
**Replies:** 6\
**Last updated:** [May 26, 2010, 11:53am UTC](https://www.ruby-forum.com/t/bug-3307-ext-tk-b-bheader-file-b-nm-l5-r8mh-dj-9-k-b/188754 "2010-05-26T11:53:41Z")

</div>

Bug #3307: ext/tk e$B$,e(Bheader filee$B$NM-L5$r8mH=Dj$9$ke(B http://redmine.ruby-lang.org/issues/show/3307 e$B5/I\<\<Te(B: Masaya T. e$B%9%F!\<%?%9e(B: Open, e$BM%@hEYe(B: Normal e$B%+%F%4%je(B: ext, Target version: 1.…

---

## [Running changed files](https://www.ruby-forum.com/t/running-changed-files/188988)

<div class="topic-metadata">

**Author:** [@mszatanik](https://www.ruby-forum.com/u/mszatanik)\
**Replies:** 1\
**Last updated:** [May 26, 2010, 10:46am UTC](https://www.ruby-forum.com/t/running-changed-files/188988 "2010-05-26T10:46:12Z")

</div>

Hi, Ill try to explain my problem as clear and as short as possible. I have a button which does: Test::Unit::UI::Console::TestRunner.run(Testy) and i have a class which loads the files if they are not already loaded …

---

## [\[Bug #3335\] test/psych/json/test\_stream.rb reports many errors](https://www.ruby-forum.com/t/bug-3335-test-psych-json-test-stream-rb-reports-many-errors/189077)

<div class="topic-metadata">

**Author:** [@Usaku\_NAKAMURA](https://www.ruby-forum.com/u/Usaku_NAKAMURA)\
**Replies:** 1\
**Last updated:** [May 26, 2010, 5:58am UTC](https://www.ruby-forum.com/t/bug-3335-test-psych-json-test-stream-rb-reports-many-errors/189077 "2010-05-26T05:58:24Z")

</div>

Bug #3335: test/psych/json/test\_stream.rb reports many errors http://redmine.ruby-lang.org/issues/show/3335 e$B5/I\<\<Te(B: Usaku NAKAMURA e$B%9%F!\<%?%9e(B: Assigned, e$BM%@hEYe(B: Normal e$BC4Ev\<Te(B: Aaron P., Target…

---

## [Problem with Ruby 1.9, HTTPS and OpenSSL](https://www.ruby-forum.com/t/problem-with-ruby-1-9-https-and-openssl/189152)

<div class="topic-metadata">

**Author:** [@dagnan](https://www.ruby-forum.com/u/dagnan)\
**Replies:** 3\
**Last updated:** [May 26, 2010, 5:13am UTC](https://www.ruby-forum.com/t/problem-with-ruby-1-9-https-and-openssl/189152 "2010-05-26T05:13:19Z")

</div>

Hi I have a strange problem with my Ruby installation. First: I use RVM, and I tried to compile Ruby with my system version of openssl (and libs), and with the package version included in RVM. Both fail I have neve…

---

## [Rubygems freezes with expand\_path error](https://www.ruby-forum.com/t/rubygems-freezes-with-expand-path-error/189037)

<div class="topic-metadata">

**Author:** [@steux](https://www.ruby-forum.com/u/steux)\
**Replies:** 3\
**Last updated:** [May 26, 2010, 4:59am UTC](https://www.ruby-forum.com/t/rubygems-freezes-with-expand-path-error/189037 "2010-05-26T04:59:51Z")

</div>

Hi, Rubygems went crazy. Here is the command sequence: gem list \*\*\* LOCAL GEMS \*\*\* actionmailer (2.3.5) actionpack (2.3.5) activerecord (2.3.5) activeresource (2.3.5) activesupport (2.3.5) calendar\_date\_select (…

---

## [In-code data](https://www.ruby-forum.com/t/in-code-data/189173)

<div class="topic-metadata">

**Author:** [@jeromeqc](https://www.ruby-forum.com/u/jeromeqc)\
**Replies:** 5\
**Last updated:** [May 26, 2010, 3:25am UTC](https://www.ruby-forum.com/t/in-code-data/189173 "2010-05-26T03:25:37Z")

</div>

Hi, What is the best way/practice of storing data that is to be used and accessed within your code. For example if I downloded a language dictionay in txt format. Would it make more sense to read it from a text file …

---

## [JBoss Submit Problem](https://www.ruby-forum.com/t/jboss-submit-problem/189174)

<div class="topic-metadata">

**Author:** [@josh](https://www.ruby-forum.com/u/josh)\
**Replies:** 2\
**Last updated:** [May 26, 2010, 2:58am UTC](https://www.ruby-forum.com/t/jboss-submit-problem/189174 "2010-05-26T02:58:06Z")

</div>

For those who have used JBoss for deploying a JRuby on Rails app or might know what the problem is… I have multiple POST forms (i.e. form\_tag and form\_for) in my application. They are on new.html.erb pages and submi…

---

## [Does rubyscript2exe still work?](https://www.ruby-forum.com/t/does-rubyscript2exe-still-work/189081)

<div class="topic-metadata">

**Author:** [@marke](https://www.ruby-forum.com/u/marke)\
**Replies:** 10\
**Last updated:** [May 26, 2010, 2:40am UTC](https://www.ruby-forum.com/t/does-rubyscript2exe-still-work/189081 "2010-05-26T02:40:32Z")

</div>

I’m trying to get rubyscript2exe to work. I’m using 1.8.6 on Windows 7 x64 I’ve been searching around and every tutorial either has different directions then the last or is way outdated and wont work. Could somebody …

---

## [Curl library?](https://www.ruby-forum.com/t/curl-library/188822)

<div class="topic-metadata">

**Author:** [@Xeno\_CSS\_Eskimo\_No](https://www.ruby-forum.com/u/Xeno_CSS_Eskimo_No)\
**Replies:** 13\
**Last updated:** [May 26, 2010, 12:47am UTC](https://www.ruby-forum.com/t/curl-library/188822 "2010-05-26T00:47:02Z")

</div>

Two questions: How do I install the curl library for Ruby? I thought there was one…??? How come when I go ‘gem search curl’ I get: root@rockhopper:~# gem search curl \*\*\* LOCAL GEMS \*\*\* root@rockhopper:~# ???

---

## [Re: Git push](https://www.ruby-forum.com/t/re-git-push/189172)

<div class="topic-metadata">

**Author:** [@raker\_t](https://www.ruby-forum.com/u/raker_t)\
**Replies:** 0\
**Last updated:** [May 25, 2010, 11:09pm UTC](https://www.ruby-forum.com/t/re-git-push/189172 "2010-05-25T23:09:17Z")

</div>

I’ll pull them in as is. From: Ryan R. removed\_email\_address@domain.invalid Sent: Tuesday, May 25, 2010 12:09 PM To: removed\_email\_address@domain.invalid removed\_email\_address@domain.invalid Subject: Re: \[Ironruby-c…

---

## [Ruby one-file launcher that sets up environment?](https://www.ruby-forum.com/t/ruby-one-file-launcher-that-sets-up-environment/189054)

<div class="topic-metadata">

**Author:** [@Michal\_S](https://www.ruby-forum.com/u/Michal_S)\
**Replies:** 4\
**Last updated:** [May 25, 2010, 9:57pm UTC](https://www.ruby-forum.com/t/ruby-one-file-launcher-that-sets-up-environment/189054 "2010-05-25T21:57:16Z")

</div>

Hello I am trying to run some JRuby script and I have to set the CLASSPATH for my script to work. I use a launcher locally so I can run the script as ./scripts/mylauncher script.rb but if I wanted to distribute a sa…

---

## [Status of sftp/ssh connection. Retrieve error-msgs](https://www.ruby-forum.com/t/status-of-sftp-ssh-connection-retrieve-error-msgs/189168)

<div class="topic-metadata">

**Author:** [@walle](https://www.ruby-forum.com/u/walle)\
**Replies:** 0\
**Last updated:** [May 25, 2010, 9:54pm UTC](https://www.ruby-forum.com/t/status-of-sftp-ssh-connection-retrieve-error-msgs/189168 "2010-05-25T21:54:04Z")

</div>

Hey, I’m trying to determent the status of a sftp and ssh connection to a specific server. I’m currently using Net::SFTP and Net::SSH. Is there any similar way of doing this as with the Net::Http, were I’m using Net::…

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

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