384966-385647 subjects 385353-385802

^ [ANN] summaryse 1.0.0 Released
385178 [blambeau gma] summaryse version 1.0.0 has been released!
385179 [josh.cheek g] Happy birthday.
385180 [blambeau gma] Mmmm, yep, will consider.

^ problem compiling thread.so for ruby 1.9.2-p180
385182 [cremes.devli] I am trying to build MRI 1.9.2-p180. As far as I can tell, everything succeeds without error. However, when I try to load rubygems I get a LoadError for thread.so (which is required in the thread.rb file). See the gist below for all details. I can confirm that the thread.so library is not being built but I don't know why.

^ Re: LOCat v0.1.1 released
385183 [transfire gm] Yea, well let's try that again. v0.1.2 is out.

^ [ANN] Lemon v0.8.4 released
385184 [transfire gm] Lemon 0.8.4 has been released.

^ Re: Lemon v0.8.4 released
385185 [transfire gm] Home page should be http://rubyworks.github.com/lemon
385186 [ywzhaifei gm] great

^ Fwd: [ANN] o v2.0.0 release. next generation configuration library for Ruby.
385187 [ywzhaifei gm] Ruby.

^ [ANN] o v2.0.0 release. next generation configuration library for Ruby.
385188 [ywzhaifei gm] o, is a configuration library for Ruby. It has many features.  you can do

^ jruby and jgem problem
385189 [jarodzz gmai] I'm using Jruby for the first time. and met the gem problem.
385302 [headius head] I cannot reproduce this. This is JRuby master, but should not be

^ [ANN] celluloid 0.2.0: a concurrent object framework for Ruby
385190 [tony.arcieri] Celluloid is a concurrent object framework for Ruby inspired by Erlang

^ [ANN] LSRC V: Did You Know?
385191 [jimfreeze gm] Lone Star Ruby Conference V; August 11-13 in Austin, TX.

^ [ANN] summaryse 1.1.0 Released
385192 [blambeau gma] summaryse version 1.1.0 has been released!
385242 [shortcutter ] ng
385246 [blambeau gma] I understand your objections and must add that summaryse is somewhat

^ [ANN] RubyInstaller 1.8.7-p352 released
385193 [luislavena g] As you all know, over the years RubyInstaller has replaced the once

^ [ANN] RubyInstaller Extras
385194 [jon.forums g] Since 2009, we've been pleased to include Huw Collingbourne's The Book of Ruby with RubyInstaller. Well now, Huw has a newly updated version, and he's published it with No Starch Press.
385196 [kmandpjlynch] ...looks interesting...i'm just finishing up on a long Haskell journey...so,
+ 385198 [steve stevek] I've actually read the book (admittedly skimmed in parts), and it's a
+ 385200 [code apotheo] =20
  + 385201 [josh.cheek g] Enjoyed the review. Your summary of Eloquent Ruby reflected my experience
  + 385202 [cmdjackryan ] I'd like to add to your review that Eloquent Ruby actually explains

^ [ANN] quickl 0.2.2 Released
385195 [blambeau gma] quickl version 0.2.2 has been released!

^ [ANN] alf 0.9.1 Released
385197 [blambeau gma] I'm pleased to announce that alf 0.9.1 has been released and pushed

^ [ANN] Ruby-GNOME2 1.0.0
385199 [kou cozmixng] The Ruby-GNOME2 project released Ruby-GNOME2 1.0.0.

^ Re: alf 0.9.1 Released
385203 [sunaku gmail] According to the RubyGems Rational Versioning Policy[1], when a
385205 [transfire gm] It's not true for 0.x releases --in which case the second number
385206 [cmdjackryan ] You are confusing RRV and SemVer. :)
+ 385208 [blambeau gma] I was not aware of this difference between RRV and SemVer before;
| 385212 [cmdjackryan ] I'd make it clear in your announcements that you follow SemVer. Makes
| 385217 [blambeau gma] Thanks for the tip.
+ 385288 [transfire gm] On Jul 13, 4:52=A0pm, Phillip Gawlowski <cmdjackr...@googlemail.com>
  385293 [cmdjackryan ] "Though, RRV works best for *existing* libraries adopting it, and

^ Passing a ruby arrays to JS func
385204 [rubyonrails4] How do I pass the ruby arrays to Js func and access it(from JS func)from
+ 385211 [b.candler po] It sounds to me like you're asking a question about writing applications
+ 385215 [ninja slapha] I'll try to answer anyway, but you haven't given a lot of information here.

^ Creating a range of directories
385207 [simon simonh] I'm wanting to create a range of directories with a prefix, like the
+ 385209 [cmdjackryan ] require 'fileutils'
+ 385210 [josh.cheek g] That's basically what I'd do, but the steps in the middle are executed
+ 385213 [josh.cheek g] Also in this case, where you use a FileUtils method only once, including it
+ 385219 [simon simonh] Thanks a lot. I didn't realise that FileUtils.mkdir accepted a format
| + 385220 [cmdjackryan ] A String is a String is a String. ;)
| + 385224 [ryand-ruby z] It doesn't. Philip's code is wrong.
|   + 385227 [cmdjackryan ] *facepalm* That's what I wanted to type. So used to format strings
|   + 385266 [simon simonh] Thanks for clearing that up, Ryan. Out of curiosity what was the end of
|     385325 [shortcutter ] It's called "colon": http://en.wikipedia.org/wiki/Colon_%28punctuation%29
|     385327 [josh.cheek g] I think Ryan was saying that `receiver % arg` was syntactic sugar for
+ 385339 [simon simonh] Ah right, cheers Josh. I wasn't sure if he meant syntactic sugar for
  385357 [shortcutter ] I didn't assume you did. :-)

^ Re: Unexpected results from private_methods
385214 [b.candler po] They are methods in the Kernel module. Method names with a capital
385223 [j.d.maher co] Aha!  And those Kernel methods are the default conversions.
385226 [bbxx789_05ss] BasicOjbect is a Class, and a Class is an Object.

^ Re: array overwrite question
385216 [b.candler po] But of course, the subarrays in cc and the subarrays in bb are the same
385290 [dickyhide gm] aa2 = [[2,3],[4,5],[6,7]]
385296 [hanmac gmx.d] cc2 = Marshal.load(Marshal.dump(aa2))
385299 [shortcutter ] In this particular case #map also works because we know the depth to be

^ unsubscribe
385218 [dstone conce] dW5zdWJzY3JpYmUNCg==
385253 [mcpierce gma] Somebody doesn't like Ruby/Javascript interactions... :D
385269 [florian.assm] Maybe because he saw [this](https://github.com/jessesielaff/red). :)

^ Uploading an ActionDispatch::Http::UploadedFile to Google Storage
385221 [tyrelrichey ] site. I am at the final stage of the most painful programming experience
385270 [tyrelrichey ] So der der der browsers create a tmp file on the server automatically

^ Re: ruby -v does not detect ruby
385222 [tyrelrichey ] Also you might consider using RVM its very useful you can install

^ can't find bson_ext-1.3.1 **beginner**
385225 [bawgeous32 y] I am a web designer, and am trying to be able to edit a group project
+ 385228 [cmdjackryan ] Did you run "bundle install" to get the gems installed?
+ 385229 [luislavena g] 1) Download RubyInstaller

^ Issue with: instance_variable_defined?
385230 [rubyhacker g] I expect the third line to be true rather than false.
+ 385231 [justincollin] I was going to say that the attr_* methods don't create instance
+ 385236 [tim.pease gm] The behavior seems correct. The "rb_attr" method in eval.c only creates =

^ Re: Reading data from file and passing to javascript
385232 [bbxx789_05ss] ruby executes on the server side, which is the place on the internet
385240 [rubfor recit] Matthew
385258 [matthew.baum] Thanks for your consideration, but I have solved this issue myself.

^ Rolling Schedules
385233 [wow.mikes gm] I need to create schedules that roll when there is an exception. For

^ ruby 1.9 mac install problems
385234 [info marshal] Following Dave Thomas' instructions in Programming Ruby 1.9, p. 7, I got
385237 [ryand-ruby z] got
385239 [info marshal] path is set correctly. I checked ~/.profile, and the macports setup put
385241 [pxthanh299 g] If you install ruby 1.9 via Macports using the command "port install
385244 [bbxx789_05ss] In other words, your system's ruby software is called 'ruby', and the
385260 [info marshal] Thanks for the great tips! ruby1.9 does show 1.9.2 as version.
385322 [Carey.Nation] V2VsbCwgaXQgbWF5IG5vdCBoYXZlIGJlZW4gInJpZ2h0LCIgYnV0IHRoaXMgc2VlbXMgdG8gaGF2

^ trying to send a string to google storage
385235 [tyrelrichey ] So I have used this function from gstore gem
+ 385238 [code apotheo] This is very un-idiomatic Ruby, and you might want to consider at least
+ 385245 [tyrelrichey ] Thank you for your response I do write like that already but I should be
+ 385250 [tyrelrichey ] Never mind my last post I think it was that the name I chose for the

^ Why return(XXX) is valid within a "value = case N ..." ?
385247 [ibc aliax.ne] def test1
385248 [shortcutter ] Probably because case has branches which actually return a value (even
385249 [ibc aliax.ne] XD
385251 [fighter.lyt ] Remember all the block in ruby is actually a snippet ,so return from the

^ [Ruby/C] Very little piece of code driving me crazy
385252 [sexymimi64 g] I have a very very little piece of code in C using the libruby, and it
+ 385254 [ibc aliax.ne] Where does it crash? could you paste the output of the binary execution?
+ 385255 [hanmac gmx.d] RSTRING(b)->as.heap.ptr
+ 385256 [sexymimi64 g] It crashes when trying to access RSTRING(VALUE)->as.heap.ptr.
+ 385257 [hanmac gmx.d] little point, you can use NIL_P(v) to check if its nil, its an macro

^ Re: RubyInstaller Extras
385259 [jon.forums g] This got more replies than I expected and it's good to see discussion on
385261 [josh.cheek g] FWIW, I my experience buying Land of Lisp ebook directly from No Starch was
+ 385262 [steve stevek] In general, No Starch is an awesome publisher, and I've really liked
| 385263 [jon.forums g] importance of being able to quickly read code for understanding while
+ 385264 [code apotheo] as

^ Re: RubyGems Rational Versioning policy
385265 [sunaku gmail] Why?  What's the stigma against increasing major version numbers?
385268 [cmdjackryan ] Feature-completeness. Whatever I say is finished.

^ [ANN] LSRC V: 28 Days To World Class Ruby & Rails Training
385267 [jimfreeze gm] [Lone Star Ruby Conference V; August 11-13 in Austin, TX.]

^ does OrderedHash exist?
385271 [muranov math] i know that in Ruby 1.9 Hash is ordered, but it seems to be a
+ 385272 [bbxx789_05ss] After a long court battle, the ruby standard library has recently been
| 385273 [muranov math] Thanks, but this is for a Rails application, and i wonder if i can rely
+ 385274 [zettabyte gm] Yes, it has been marked with the #:nodoc: rdoc tag(?) so it is now omitted
| 385275 [muranov math] Thanks Gifford, i didn't know about this mailing list.
| 385291 [transfire gm] On Jul 14, 6:36=A0pm, Alexey Muranov <mura...@math.univ-toulouse.fr>
+ 385369 [orenshani7 g] Thomas,
  385373 [shortcutter ] I'm curious how you manage to keep the data structure ordered and keep
  + 385374 [flo andersgr] Not speaking for the OP, but the naive solution by keeping book of key
  + 385381 [josh.cheek g] You don't necessarily have to keep it ordered the whole time. Order only
    385424 [shortcutter ] ng

^ Is there a more efficient way to remove data from a string?
385276 [catflaporama] I have a regex as follows
+ 385277 [ian.asaff gm] ruby-1.9.2-p180 :004 > line =3D "abcXXdef"
+ 385278 [johnf bitsbu] # this won't remove trailing newlines
+ 385279 [code apotheo] ARGF.each_line do |line|
| 385280 [code apotheo] Actually, I did too literal a translation of your code.  If I was writing
| + 385282 [catflaporama] Awesome stuff. Thanks to all that replied. It really is appreciated.
| + 385286 [josh.cheek g] Depending on how the string is to be interpreted, you may need to escape it
|   385295 [code apotheo] it
+ 385300 [shortcutter ] Another possible option is to use String#[]=

^ Problem with Ruby on OS X
385281 [rony358 gmai] I am trying to use Ruby on OS X. I installed libnet4r using gem and then
+ 385283 [astahl hi5.c] I used to hit that all the time cuz I'd forget one minor detail... try addi=
| 385285 [rony358 gmai] Thanks for the replies.
| 385289 [rony358 gmai] I figured it out. Gem was using a different ruby. Once I removed the old
+ 385284 [nospam7272 m] require 'rubygems' first?

^ [ANN] kgio 2.6.0 - kinder, gentler I/O for Ruby!
385287 [normalperson] kgio provides non-blocking I/O methods for Ruby without raising

^ Look
385292 [transfire gm] I have tried for over a year to contact Michel Martens concerning the
+ 385294 [sophrinix gm] start a new gem call look-yall? (be sure to release it during ruby hoedown
| + 385586 [drbrain segm] hoedown
| | 385592 [mikbe.tk gma] Actually we way "Look ya'll!" all the time to draw attention to something
| | + 385604 [code apotheo] The boat, or the pig?
| | + 385605 [Reid.Thompso] the boat or the pig?
| + 385607 [transfire gm] btw, gave me a dang good laugh when I first read
+ 385673 [luislavena g] Can I ask how are you reaching him? over email? to which account? tried
  385678 [transfire gm] Yea, direct message github was my main route.

^ Help needed for a new release of text-hyphen
385297 [halostatue g] I've had folks asking me for a release of text-hyphen that works with
+ 385298 [adgar carbon] charset=iso-8859-1
| + 385315 [eule space.c] I second that analysis. It seems to use text-hyphen in Ruby 1.8 with
| | 385318 [halostatue g] , "h",
| | 385320 [halostatue g] Thanks everyone for the comments received. I've taken the approach
| | 385358 [headius head] Ok, I see your bugs. We'll have a look into it.
| | 385376 [halostatue g] I think it's a little more subtle than that, as I noted in my last comment o=
| + 385317 [halostatue g] ", "t", "s", "k", "a", "p", "i", "t", "\303", "\244", "n", "s", "m", "\303"=
+ 385301 [headius head] Is this the error I should see for JRuby?
| + 385305 [adgar carbon] That's the same error I saw, and fixed by using a latin1 input case
| + 385316 [halostatue g] Yes. But does jruby fake out mvm in this case? Because while Rake is
+ 385349 [shevegen lin] Man ... Ruby 1.9.x hates umlauts.

^ Re: regex to match a , and seperate.
385303 [shortcutter ] irb(main):007:0> str =

^ [ANN] Rabbit 1.0.1
385304 [kou cozmixng] Rabbit 1.0.1 has been released!!!

^ Not receiving some mail from ruby-talk
385306 [josh.cheek g] "regex to match a , and seperate."  I only see the most recent post,
+ 385308 [flo andersgr] Thanks for noticing this, I have the same problem. Even the description =
+ 385309 [bbxx789_05ss] Posted via http://www.ruby-forum.com/.
| 385310 [josh.cheek g] Sorry, it's not clear to me. Are you saying that some people are posting
| 385312 [shortcutter ] It's also not clear to me what's going on here.  Normally I would have
+ 385364 [shevegen lin] Could it have something to do with editing what you write in this
+ 385370 [josh.cheek g] I've also had 2 or 3 posts caught recently from spam assassin. Perhaps this

^ Elegant selection of closest number?
385307 [phil pricom.] People,
385313 [bbxx789_05ss] buckets = [
385314 [shortcutter ] buckets and data as above

^ replace string between xml tags that contains special characters
385311 [rousanmalik ] I am trying to get rid of the string in a xml file which contains some
+ 385323 [shortcutter ] Can you show what you tried, i.e. the code?
+ 385324 [code apotheo] It seems to me you should make use of the non-greedy modifier, which is
+ 385361 [jakekaiden y] an example of what you've tried would make things much better and
+ 385403 [rousanmalik ] Thank you all for the response.
  385404 [hassan.schro] %81_

^ [ANN] Ruby 1.9.2-p290 is released
385319 [yugui yugui.] Ruby 1.9.2-p290 has been released. This is a patch level release of Ruby
385321 [markus fisch] Here's the ChangeLog only with the changes between 1.9.2p180 and the

^ Comparing hashes based on their keys
385326 [stefano.miol] let's say we want to write a method that compares two hashes for
+ 385328 [shortcutter ] quality
| + 385329 [Rob AgileCon] I don't see why you couldn't just add your own method to Hash. (Tested
| | + 385337 [stefano.miol] I posted in the same gist a revised version of your method (see comment
| | + 385340 [stefano.miol] class Hash
| |   385345 [Rob AgileCon] return false unless self.keys.sort == other.keys.sort
| |   385352 [stefano.miol] Hah! True.
| + 385335 [stefano.miol] Exactly.
+ 385330 [josh.cheek g] What would be especially cool is if you could post your specs, then it would
| 385333 [stefano.miol] And here is a slightly modified version of the code that adds the method
+ 385331 [josh.cheek g] Looks like you've probably got a bug. You explicitly return in your code,
  385338 [stefano.miol] Very true.

^ Re: Maximum value of hash
385332 [osisson rapl] Steve's is good, but why use max when max_by is cleaner?
385336 [b.candler po] @hash.max_by {|k,v| v}

^ Jack into $LOADED_FEATURES update?
385334 [transfire gm] I would seem there is no way to jack into the update of
385582 [drbrain segm] $LOADED_FEATURES?
385609 [transfire gm] S?

^ [ANN] Cascadia Ruby Conf schedule; giveaway; registration deadline
385341 [ben bleythin] a little regional conf we're doing in Seattle in a couple of weeks.

^ moving a 1.8.6 install?
385342 [rogboone yah] Is it possible to move the gems from a Ruby 1.8.6 install on an (old)
+ 385343 [hanmac gmx.d] could you give me a reason why you use 1.8.6? you should update to 1.8.7
| 385344 [code apotheo] =20
+ 385347 [hassan.schro] 1) What makes you think it didn't work?
| 385351 [josh.cheek g] This is probably the best solution.
| 385354 [hassan.schro] Yeah, I was imagining a slightly more Byzantine barn dance of using
| 385368 [paradisaeida] I've not tested this with your versions of Ruby + gems, so +luck!
| 385431 [rogboone yah] Thanks for the replies.  I've been out sick and haven't been able to
| 385531 [eric lemurhe] If you're using a version of Rails that supports Bundler (Rails >= 2.3, may
+ 385348 [shevegen lin] But gems are just ruby files too. setup.rb can also install them...

^ Request for unit tests for learning purposes.
385346 [simon simonh] Needless to say, I've cloned his repository rather than starting from
+ 385350 [josh.cheek g] I've got 50 or 60 in Ruby Kickstart
+ 385356 [alexch gmail] Please check out http://testfirst.org and the ruby suite at
+ 385386 [simon simonh] Thanks both for the suggestions, but I prefer unit tests because they