401174-407831 subjects 401581-402293

some gems not working anymore
401380 [lists@ru y- ] I have a very strange issue. Some of my installed gems are not working
+ 401383 [lists@ru y- ] Odd, I'd verify your using the same gem that came with your build of
+ 401387 [lists@ru y- ] Thanks for looking into this.
| 401388 [shortcutter@] This looks suspicious: why do you have a /usr/bin/gem but not a /usr/bin/ruby?
+ 401389 [lists@ru y- ] This is Ubuntu 10.04.
| 401391 [shortcutter@] Hm.... Did you check "gem environment"?
+ 401392 [lists@ru y- ] I think you got it!
| 401393 [shortcutter@] That should be decided by rvm.  Maybe you need to reinstall now that
+ 401394 [lists@ru y- ] $/home/jacky/.rvm/rubies/ruby-1.9.3-p194/bin/ruby -v
| 401395 [shortcutter@] Did you reinstall?  Does the original error still show?
+ 401398 [lists@ru y- ] Aha! You're right, reinstalling rvm helped. Thanks very much for your

Calling ActiveX Dll
401390 [jrs.idx@nt w] I am new to Ruby and I am looking to see if ActiveX Dll's can be called

[ANN] text-markup 0.01
401397 [martindemell] <https://github.com/martindemello/text-markup>

Re: Welcome to our (ruby-talk ML)         You are added automatically
401401 [saittam82@ho] ...

C Extension Shutdown GC vs Free Functions Called
401402 [lists@ru y- ] It was my assumption that during shutdown the objects would be freed
401414 [lists@ru y- ] If you have to free the objects in certain order, in C/C++ you have to
401415 [lists@ru y- ] Unsure if this really applies. Could you restate? I am not quite
401416 [lists@ru y- ] For what its worth, I just tried hooking into the at exit hook at the
401417 [lists@ru y- ] I am sorry that I don't know the precise situation.  If you just want

"undefined method `synchronize' for #<Mutex:0xa0f5adc>" from embedded Ruby program
401404 [graham@me he] I'm writing a C++ program (on Centos 5 Linux) that embeds a Ruby 1.9.3
+ 401405 [matthew@ke w] Is this thread related?
| 401406 [graham@me he] ...
+ 401426 [graham@me he] ...
  + 401427 [   ar@le .m ] I can't even locate where the Mutex class gets "synchronize" added as a method to it.  thread.c defines rb_mutex_synchronize, but Init_Thread therein doesn't appear to add it as a method on rb_cMutex.
  + 401428 [   ar@le .m ] prelude.rb is called by Init_prelude(), generated by tool/compile_prelude.rb, itself called by ruby_init_prelude() (in ruby.c).

[ANN] ruby_parser 3.0.2 Released
401409 [ryand-ruby@z] ruby_parser version 3.0.2 has been released!

check string format
401411 [lists@ru y- ] i have a string
+ 401419 [lists@ru y- ] why do you use those strings in the first place? Where do they come
+ 401421 [ryand-ruby@z] Parsing homework?
+ 401435 [lists@ru y- ] its a kind of assignment for me "converting hash format string into hash
  401441 [ryand-ruby@z] hash=20

Re: Alternatives to methods for large number of nested "ifs" - SOLVED
401418 [phil@pr co .] procs were the solution (they allow shared variables) - I now have this

how to increase variable inside the while loop
401422 [lists@ru y- ] what i want is , something like bellow
+ 401423 [lists@ru y- ] In your wording, "current" is a variable, but it has nothing assigned to
+ 401424 [lists@ru y- ] you cannot change "living" Ruby code like you try to do. That is, you
+ 401437 [shortcutter@] Chances are that if you understand what you want the solution will
| 401466 [sto.mar@we .] You have no reason to make `i' and `num' global variables, so don't.
+ 401468 [lists@ru y- ] at last i did like this
| 401469 [sto.mar@we .] Ever heard of if-statements?
+ 401470 [lists@ru y- ] That extra end was copy past mistakes.
+ 401471 [lists@ru y- ] if var1 > (var2 + var3)*0.6
| 401477 [sto.mar@we .] I'm not sure whether he wanted to compare with the sum of
+ 401482 [lists@ru y- ] yes, i was thinking of using aRRAY
+ 401483 [lists@ru y- ] ok i got work way round

mysql drama!
401430 [lists@ru y- ] I'm havng trouble using mysql in my example.
+ 401538 [transfire@gm] ...
+ 401556 [lists@ru y- ] unfortunately no i didn't dunno whta happened. i'm using windows 7
  401558 [keystonelemu] Look into mysql2, it's a C based library.
  401569 [lists@ru y- ] will that make thigns better?
  401570 [keystonelemu] It should make things faster, and I haven't experienced a good portion of

Re: "undefined method `synchronize' for #<Mutex:0xa0f5adc>" from embedded Ruby program (Solved)
401431 [graham@me he] Thanks for replying, Arlen.
401432 [   ar@le .m ] My badĄ˝I didn't think to check the linkage; was assuming the ruby_ prefix implied it might be externally called.
401465 [graham@me he] ...

Call SharePoint web services in Ruby
401433 [lists@ru y- ] I am new to to Ruby, but have fare knowledge of SharePoint.
401447 [sophrinix@gm] This is an incredibly broad statement.
401448 [lists@ru y- ] Many thanks for quick reply.
401454 [richard.conr] I would have a search through the top google hits, and the stackoverflow

Instance-variable-like user API
401434 [garthy_lmklt] I was wondering if anyone can suggest a better solution to a problem I
401436 [shortcutter@] The only solution for this that I can see is to use some kind of
+ 401444 [   ar@le .m ] class A < SomeBase
| + 401446 [garthy_lmklt] Thanks for putting that together, it's a good solution- and actually
| + 401455 [tamouse.list] I'm not quite getting the remote thing -- is this a ruby-ism, a
|   401474 [garthy_lmklt] The suggestion is essentially to create a Ruby class that uses the array
+ 401445 [garthy_lmklt] Thanks for that.

ruby 1.9.3p237 in cygwin
401438 [botpena@gm i] definitely not a ruby-core dev here, so hope this is ok to post.
+ 401439 [phasis@gm il] 2012/11/22 botp <botpena@gmail.com>
| 401442 [botpena@gm i] omg, that was quick. thank you Heesob Park and ruby team.
+ 401440 [graham@me he] Yes, I had the same. I commented out the call (it wasn't in anything
  401443 [botpena@gm i] glad i am not alone = )
  401456 [shortcutter@] Why don't you use the Ruby version from the repo?  cygwin switched to
  401623 [graham@me he] Thanks for that, Robert.
  401625 [shortcutter@] You're welcome.

CSV:mode must be 'r', 'rb', 'w', or 'wb'
401449 [lists@ru y- ] CSV.open(filename, 'a') do |csv|
401464 [sto.mar@we .] A quick search for the error message shows that
401480 [lists@ru y- ] but am using ruby 1.9.3p327.
401499 [lists@ru y- ] Sure you don't have two versions installed at once? Try adding to the

Errno::ECONNREFUSED in net/ssh
401450 [lists@ru y- ] but the error shows its not able to communicate with the remote machine
401467 [lucevers@gm ] Had the same problem, solved by changing username/password by a variable.
+ 407186 [lists@ru y- ] How to cleanly catch this exception ?
+ 407191 [shortcutter@] Had the same problem, solved by changing username/password by a variable.

Arrays with records as objects
401451 [lists@ru y- ] I am completely new to Ruby.
+ 401457 [shortcutter@] With that structure you rather need to do
+ 401459 [lists@ru y- ] Robert
| 401461 [tamouse.list] Steve,
+ 401462 [lists@ru y- ] Robert,
| 401473 [tamouse.list] This is great!! Experimenting with stuff that your learning is a great
+ 401486 [lists@ru y- ] Thanks for all the advice.
| 401518 [tamouse.list] My pleasure. :)
+ 401526 [lists@ru y- ] So far so good.
| 401531 [tamouse.list] Yes, and it's a doozy :)
+ 401536 [lists@ru y- ] Far more elegant!

Optimal number of threads in real browser testing
401452 [lists@ru y- ] Am writing a program for multithread real browser testing using ruby
+ 401472 [lists@ru y- ] Posted via http://www.ruby-forum.com/.
| 401487 [lists@ru y- ] Thats the way by observing code, is there no way to do it using pen and
+ 401488 [lists@ru y- ] Without some data to extrapolate from you'll be making wild guesses.
+ 401489 [lists@ru y- ] So with jruby/iron ruby, optimum is one thread by core, for pure
  401551 [lists@ru y- ] What is giant lock mean? and what if i use ruby?

Using DSL miniprograms as a data store
401453 [tamouse.list] I've been thinking of writing a simple gem that something similar to
401537 [transfire@gm] ...

working with mysql in ruby
401458 [lists@ru y- ] i have been trying to successfully connect ruby with mysql. there are a
+ 401460 [hassan.schro] Absolutely; the mysql2 gem works fine standalone, or as part of a
+ 401475 [garthy_lmklt] I can't speak for MySQL, but I've been using DBI with a PostgreSQL
+ 401498 [lists@ru y- ] `require': cannot load such fil
+ 401543 [lists@ru y- ] here is another attempt....
| 401544 [hassan.schro] OK, stop right there --
+ 401545 [lists@ru y- ] I just tried reinstalling ruby, i installed the devkit. i do have vmware
| + 401546 [i_cenov@bo e] I don't understand Ruby, nevertheless I installed Redmine in our office. So,
| | 401549 [lists@ru y- ] You've installed the binary version of mysql.
| | + 401553 [eliezer@ng e] I would suggest you to install the rails installer since it's installing
| | + 401555 [lists@ru y- ] Don't forget that you've got the RubyInstaller group as a resource if
| |   401560 [lists@ru y- ] I will remember to mention my system and ruby version next time. thank
| |   401562 [travis@tr vi] Please unsubscribe me from this list. Thanks!
| |   401563 [   ar@le .m ] Only you can do that: http://www.ruby-lang.org/en/community/mailing-lists/#subscriptions-form
| |   401571 [travis@tr vi] Thanks Arlen!
| + 401547 [hassan.schro] This has nothing whatsoever to do with a particular DB. MySQL
+ 401548 [lists@ru y- ] I will try to figure out the issue with the gem not being found, i read

Keypressed in Ruby
401476 [lists@ru y- ] to write something who works like this.
401478 [fluido@fl id] With Curses, you have to set the terminal in Cbreak mode, otherwise

Need help setting up a Unit Testing GUI for Ruby under Eclipse
401479 [lists@ru y- ] I am learning how to code in Ruby under Eclipse and would like to take

declarative database schemes - automatically create migration files?
401481 [marco-oweber] class Foo
401573 [eule@sp ce c] That looks like DataMapper to me ;)
401574 [marco-oweber] Its closest - I've been hanging around on that channel for days.

[survey] Cluster Analysis on Ruby Ecosystem
401484 [lists@ru y- ] Dear Ruby Developer,

watir-webdriver blocklist message
401485 [lists@ru y- ] When I load watir-webdriver I'm getting a message I've never seen
+ 401500 [lists@ru y- ] I've stopped getting the Blocklist message, but Watir's wait methods
+ 401513 [lists@ru y- ] Curiouser and curiouser...
+ 401515 [lists@ru y- ] It's also doing the same thing with a totally seperate install or Ruby
+ 401528 [lists@ru y- ] I managed to put together a kludge for now by using explicit timeouts in

401490 [Mohammed-Yas] I am trying to connect an api using xmlrpc in ruby. When I run the =
401491 [hassan.schro] It's not an "error"; try the above URL in a browser, and you'll see that
401492 [Mohammed-Yas] ...
401493 [hassan.schro] Though having said that, I tried your XMLRPC example here using
401494 [Mohammed-Yas] ...
401495 [hassan.schro] You might try with the latest Ruby, then, because we're on the same
401496 [Mohammed-Yas] ...
401497 [hassan.schro] That's what I see, as well, and I assume that constitutes "working".

[ANN] hoe 3.3.1 Released
401501 [ryand-ruby@z] hoe version 3.3.1 has been released!

[ANN] minitest 4.3.1 Released
401502 [ryand-ruby@z] minitest version 4.3.1 has been released!

[ANN] RubyInline 3.11.4 Released
401503 [ryand-ruby@z] RubyInline version 3.11.4 has been released!

[ANN] omnifocus-github 1.4.0 Released
401504 [ryand-ruby@z] omnifocus-github version 1.4.0 has been released!

[ANN] ruby_parser 3.0.3 Released
401505 [ryand-ruby@z] ruby_parser version 3.0.3 has been released!

[ANN] image_science 1.2.4 Released
401506 [ryand-ruby@z] image_science version 1.2.4 has been released!

[ANN] rake-remote_task 2.1.0 Released
401507 [ryand-ruby@z] rake-remote_task version 2.1.0 has been released!

[ANN] vlad 2.3.0 Released
401508 [ryand-ruby@z] vlad version 2.3.0 has been released!

tktext: insert with multiple (chars, taglist) not working properly
401512 [martindemell] The ruby tktext documentation lists
+ 401514 [martindemell] require 'tk'
+ 401519 [martindemell] Figured it out - it should have been insert(pos, text, [tag], text,

I'm exploiting Ruby references
401516 [uzleepito@gm] I think I've found a nice example that shows the power of Ruby
401517 [martindemell] Smalltalk supports this with the `become` method. Here's one ruby
401523 [uzleepito@gm] Wow!  become is a great thing.  Why don't we have a built-in become in Ruby?
+ 401533 [martindemell] Just as an aside, I'm not sure of the full scope of your program, but
+ 401572 [eule@sp ce c] Hei Nokan,

C Extension: Why would VALUE state appear differently during shutdown than immediately before it?
401520 [lists@ru y- ] I have a graph of objects in a C extension, and as such I maintain
401530 [kubo@ji ba .] I had a similar problem. I fixed it by preventing deallocation from

Has anyone experience using Xcode to debug a Ruby C extension?
401521 [lists@ru y- ] I have a C extension, I use Rakefile with extconf.rb, mkmf, rspec, etc.

Re: C Extension: Why would VALUE state appear differently during shutdown than immediately before it
401524 [lists@ru y- ] For the record, if anyone else tries to write a database driver, or any
+ 401525 [santoshamom@] I live for the day 80% of these posts don't sound like Greek to me.
+ 401527 [lists@ru y- ] Just a little comment here.  If I have to to traverse a graph of
  + 401541 [lists@ru y- ] rb_set_end_proc
  + 401542 [lists@ru y- ] I hear what you are saying Bill. I am writing up my thoughts on how to

How to create a gem which conditionally compiles/installs a C extension?
401529 [lists@ru y- ] I have a gem that needs to compile and install a C extension on MRI
+ 401532 [lists@ru y- ] `Gem::Ext::ExtConfBuilder` makes this difficult by (incorrectly)
| 401540 [lists@ru y- ] Agreed.
| + 401557 [lists@ru y- ] When you get a moment would you try replacing
| + 401566 [lists@ru y- ] Sigh.
+ 402029 [transfire@gm] ...

[ANN] worlddb/console - Try world.db w/ Interactive Ruby Console
401535 [gerald.bauer] I've added support for the interactive Ruby console (irb) to the

[ANN] Hashery 2.1.0 (Golden Retriever)
401539 [transfire@gm] ...

1.9.3 vs 1.8.7
401550 [lists@ru y- ] Greetings,
401554 [stu@ru yp og] 1.9.x is faster than 1.8.x and can compete with the speed of other
401564 [contact@se o] "p327" refers to the patchlevel. It's basically just like a

mixin objectvariables
401559 [lists@ru y- ] i tried to replace methods and variables common to many classes by a
401584 [shortcutter@] That does not work.  You define instance variables of the module and
401600 [lists@ru y- ] Thank you Robert for explaining and providing a solution. That was a

Take over google group mirror of rubygems-developers mailing list
401561 [transfire@gm] ...

browser.html diffrent from the page source - watir-webdriver
401565 [lists@ru y- ] if I go to a page using watir-webdriver+ruby, and right click and view
401634 [lists@ru y- ] If this is consistent it might just be the order in which watir is
401686 [lists@ru y- ] Thats a great solution, but isnt it costly? I guess there may be some

click on link not working with ie #watir-webdriver
401567 [lists@ru y- ] Greetings,
+ 401575 [lists@ru y- ] What does this output?
| 401576 [lists@ru y- ] that will be ok as I am able to flash also to the right link, I see that
+ 401593 [lists@ru y- ] Found this on another forum, does it help?
| 401595 [lists@ru y- ] could you pour some more light over what you said? I didnt get by all
| 401596 [jam@ja an be] ...
| 401622 [lists@ru y- ] I uchecked protected mode for all zones. still not working.
+ 401594 [lists@ru y- ] require 'watir-webdriver'
| 401632 [lists@ru y- ] Did you give this a go?
| 401667 [lists@ru y- ] I wasn't doing that because I have to deal with submit buttons also, so
+ 401669 [lists@ru y- ] If there's a submit button on a form, you can usually get around it by
  401685 [lists@ru y- ] Got this fantastic article

trepanning, rb-threadframe, rb-trace for MRI 1.9.3 (next gen ruby-debug)
401568 [lists@ru y- ] I've just put on gemcutter new versions of the Ruby debugger trepanning.

Few unclosed browser
401577 [lists@ru y- ] I have the following program using watir-webdriver, I have made the code
+ 401592 [lists@ru y- ] Try closing with this instead of checking for nil first, it seems more
| 401619 [lists@ru y- ] What is the diffrence?
| 401633 [lists@ru y- ] This will attempt to close the browser even if it is nil, it just
| 401684 [lists@ru y- ] but this says br is not defined. Isnt it correct that br is not defined
+ 401722 [lists@ru y- ] require 'watir-webdriver'

atomic statements in multithreading
401578 [lists@ru y- ] suppose I am working in multiple thread each thread runs following
+ 401579 [   ar@le .m ] step-1
| 401580 [lists@ru y- ] Does it do the same as:  ??
+ 401583 [shortcutter@] Why do you want to do that?  That will cripple throughput more than necessary.
| 401585 [lists@ru y- ] To solve: http://www.ruby-forum.com/topic/4408352#new
| 401586 [shortcutter@] I don't see how your solution is necessary to solve that.
| 401590 [lists@ru y- ] basically I am unable to click a link on ie, so I got an alternating bad
| 401591 [nikzubkov@gm] Are you sure you need to stop other threads in CURRENT process? Very
| 401646 [lists@ru y- ] that correct?
+ 401649 [tony.arcieri] I'm still not sure I entirely understand what you want, but you can make