<?xml version="1.0" encoding="UTF-8"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://purl.org/rss/1.0/" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:syn="http://purl.org/rss/1.0/modules/syndication/" xmlns:admin="http://webns.net/mvcb/">
  <channel rdf:about="http://blog.gmane.org/gmane.comp.lang.ruby.general">
    <title>gmane.comp.lang.ruby.general</title>
    <link>http://blog.gmane.org/gmane.comp.lang.ruby.general</link>
    <description/>
    <syn:updatePeriod>hourly</syn:updatePeriod>
    <syn:updateFrequency>1</syn:updateFrequency>
    <syn:updateBase>1901-01-01T00:00+00:00</syn:updateBase>
    <items>
      <rdf:Seq>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.ruby.general/364631"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.ruby.general/364630"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.ruby.general/364629"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.ruby.general/364628"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.ruby.general/364627"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.ruby.general/364626"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.ruby.general/364625"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.ruby.general/364624"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.ruby.general/364623"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.ruby.general/364622"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.ruby.general/364621"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.ruby.general/364620"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.ruby.general/364619"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.ruby.general/364618"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.ruby.general/364617"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.ruby.general/364616"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.ruby.general/364615"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.ruby.general/364614"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.ruby.general/364613"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.ruby.general/364612"/>
      </rdf:Seq>
    </items>
    <image rdf:resource="http://gmane.org/img/gmane-25t.png"/>
    <textinput rdf:resource=""/>
  </channel>
  <image rdf:about="http://gmane.org/img/gmane-25t.png">
    <title>Gmane</title>
    <url>http://gmane.org/img/gmane-25t.png</url>
    <link>http://gmane.org</link>
  </image>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.ruby.general/364631">
    <title>Re: RubyInstaller 2.0.0-p195 released</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.ruby.general/364631</link>
    <description>&lt;pre&gt;Hi,

2013/5/21 Rob Biedenharn &amp;lt;rob&amp;lt; at &amp;gt;agileconsultingllc.com&amp;gt;:

Windows uses LLP64 data models, which maintains compatibility with
32-bit code by leaving both int and long as 32-bit.

C:\Users\phasis&amp;gt;ruby -ve 'puts 1.size'
ruby 2.0.0p195 (2013-05-14) [i386-mingw32]
4

C:\Users\phasis&amp;gt;ruby -ve 'puts 1.size'
ruby 2.0.0p195 (2013-05-14) [x64-mingw32]
4

C:\Users\phasis&amp;gt;ruby -ve "puts ['a'].pack('P').length"
ruby 2.0.0p195 (2013-05-14) [i386-mingw32]
4

C:\Users\phasis&amp;gt;ruby -ve "puts ['a'].pack('P').length"
ruby 2.0.0p195 (2013-05-14) [x64-mingw32]
8

Refer to http://en.wikipedia.org/wiki/LLP64#64-bit_data_models

Regards,
Park Heesob


&lt;/pre&gt;</description>
    <dc:creator>Heesob Park</dc:creator>
    <dc:date>2013-05-21T01:23:19</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.ruby.general/364630">
    <title>Re: new, with an idea, and not sure what to learn next</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.ruby.general/364630</link>
    <description>&lt;pre&gt;
 Yes you are stomar. That's exactly the good thing that I see in Marshal 
files, that the user can't read(directly) the file, so he can't change 
specific things, of course as with YAML the user simply can delete the 
file or write whatever he wants inside(perhaps crashing the software), 
but with YAML he can "tweek" the things, no way to see clearly with 
Marshal files, that's what I like, and is a good thing if you are 
developing an application for a client. Kind regards.

&lt;/pre&gt;</description>
    <dc:creator>Damián M. González</dc:creator>
    <dc:date>2013-05-21T00:24:19</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.ruby.general/364629">
    <title>Self adjusting windows in shoes</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.ruby.general/364629</link>
    <description>&lt;pre&gt;Is there a way with *shoes* to have a windows that will "grow" according to
the information drop on it so the user does not have to scroll?

The stmt: Shoes.app :width =&amp;gt; 900, :height =&amp;gt; 720
creates a fix size windows. I would like to have the windows expand as
information is dropped on it.

Thank you

&lt;/pre&gt;</description>
    <dc:creator>Ruby Student</dc:creator>
    <dc:date>2013-05-20T22:52:45</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.ruby.general/364628">
    <title>[ANN] minitest 5.0.2 Released</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.ruby.general/364628</link>
    <description>&lt;pre&gt;minitest version 5.0.2 has been released!

* vim: &amp;lt;https://github.com/sunaku/vim-ruby-minitest&amp;gt;
* home: &amp;lt;https://github.com/seattlerb/minitest&amp;gt;
* rdoc: &amp;lt;http://docs.seattlerb.org/minitest&amp;gt;

minitest provides a complete suite of testing facilities supporting
TDD, BDD, mocking, and benchmarking.

    "I had a class with Jim Weirich on testing last week and we were
     allowed to choose our testing frameworks. Kirk Haines and I were
     paired up and we cracked open the code for a few test
     frameworks...

     I MUST say that minitest is *very* readable / understandable
     compared to the 'other two' options we looked at. Nicely done and
     thank you for helping us keep our mental sanity."

    -- Wayne E. Seguin

minitest/unit is a small and incredibly fast unit testing framework.
It provides a rich set of assertions to make your tests clean and
readable.

minitest/spec is a functionally complete spec engine. It hooks onto
minitest/unit and seamlessly bridges test assertions over to spec
expectations.

minitest/benchmark is an awesome way to assert the performance of your
algorithms in a repeatable manner. Now you can assert that your newb
co-worker doesn't replace your linear algorithm with an exponential
one!

minitest/mock by Steven Baker, is a beautifully tiny mock (and stub)
object framework.

minitest/pride shows pride in testing and adds coloring to your test
output. I guess it is an example of how to write IO pipes too. :P

minitest/unit is meant to have a clean implementation for language
implementors that need a minimal set of methods to bootstrap a working
test suite. For example, there is no magic involved for test-case
discovery.

    "Again, I can't praise enough the idea of a testing/specing
     framework that I can actually read in full in one sitting!"

    -- Piotr Szotkowski

Comparing to rspec:

    rspec is a testing DSL. minitest is ruby.

    -- Adam Hawkins, "Bow Before MiniTest"

minitest doesn't reinvent anything that ruby already provides, like:
classes, modules, inheritance, methods. This means you only have to
learn ruby to use minitest and all of your regular OO practices like
extract-method refactorings still apply.

Changes:

### 5.0.2 / 2013-05-20

* 3 bug fixes:

  * Gem.find_files is smarter than I remember... cause I wrote it that way. *sigh* I'm getting old.
  * Pride wasn't doing puts through its #io. (tmiller/tenderlove)
  * Replaced Runnable#dup and Test#dup with marshal_dump/load. Too many problems cropping up on untested rails code. (tenderlove/rubys)


&lt;/pre&gt;</description>
    <dc:creator>Ryan Davis</dc:creator>
    <dc:date>2013-05-20T22:46:54</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.ruby.general/364627">
    <title>Re: How to run shoes built via gem</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.ruby.general/364627</link>
    <description>&lt;pre&gt;Hi Seba and team

OK, I went ahead installed green_shoes. When I try to run it, I get this:

/usr/local/bin/gshoes
/usr/local/lib/ruby/gems/1.9.1/gems/gtk2-1.2.1/lib/gtk2/base.rb:20:in `&amp;lt;top
(required)&amp;gt;': undefined method `prepend_environment_path' for GLib:Module
(NoMethodError)
from /usr/local/lib/ruby/1.9.1/rubygems/custom_require.rb:55:in `require'
from /usr/local/lib/ruby/1.9.1/rubygems/custom_require.rb:55:in `require'
from /usr/local/lib/ruby/gems/1.9.1/gems/gtk2-1.2.1/lib/gtk2.rb:11:in `&amp;lt;top
(required)&amp;gt;'
from /usr/local/lib/ruby/1.9.1/rubygems/custom_require.rb:55:in `require'
from /usr/local/lib/ruby/1.9.1/rubygems/custom_require.rb:55:in `require'
from
/usr/local/lib/ruby/gems/1.9.1/gems/green_shoes-1.1.374/lib/green_shoes.rb:6:in
`&amp;lt;top (required)&amp;gt;'
from /usr/local/lib/ruby/1.9.1/rubygems/custom_require.rb:55:in `require'
from /usr/local/lib/ruby/1.9.1/rubygems/custom_require.rb:55:in `require'
from
/usr/local/lib/ruby/gems/1.9.1/gems/green_shoes-1.1.374/bin/gshoes:2:in
`&amp;lt;top (required)&amp;gt;'
from /usr/local/bin/gshoes:23:in `load'
from /usr/local/bin/gshoes:23:in `&amp;lt;main&amp;gt;'

Any words on this?

Thank you


On Mon, May 20, 2013 at 3:39 PM, Sebastjan H. &amp;lt;lists&amp;lt; at &amp;gt;ruby-forum.com&amp;gt; wrote:



&lt;/pre&gt;</description>
    <dc:creator>Ruby Student</dc:creator>
    <dc:date>2013-05-20T22:43:20</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.ruby.general/364626">
    <title>Re: RubyInstaller 2.0.0-p195 released</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.ruby.general/364626</link>
    <description>&lt;pre&gt;
On 2013-May-20, at 12:24 , Jabari Z. wrote:


Just ask ruby for the size of a known Fixnum:

$ ruby -v -e 'puts 1.size'
ruby 2.0.0p195 (2013-05-14 revision 40734) [x86_64-darwin11.4.2]
8

Fixnum#size returns the number of bytes in the representation. On a 32-bit system, you'd get 1.size==4 instead.

-ROb

&lt;/pre&gt;</description>
    <dc:creator>Rob Biedenharn</dc:creator>
    <dc:date>2013-05-20T21:22:46</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.ruby.general/364625">
    <title>Re: How to run shoes built via gem</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.ruby.general/364625</link>
    <description>&lt;pre&gt;Ruby Student wrote in post #1109537:

Could you please post this also on shoes&amp;lt; at &amp;gt;librelist.com? I am sure 
someone will help you.

Meanwhile, I suggest using green shoes (gem install green_shoes) as 
there are some issues with shoes3 as I recall and next release is still 
in progress.

regards,
seba

&lt;/pre&gt;</description>
    <dc:creator>Sebastjan H.</dc:creator>
    <dc:date>2013-05-20T19:39:52</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.ruby.general/364624">
    <title>Re: Is it 'safe' to upgrade to ruby 2.0 by now?</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.ruby.general/364624</link>
    <description>&lt;pre&gt;We've been running 2.0 in production on Heroku now since it came out. No
issues related to ruby.


On Fri, May 17, 2013 at 6:03 PM, Panagiotis Atmatzidis
&amp;lt;atma&amp;lt; at &amp;gt;convalesco.org&amp;gt;wrote:

&lt;/pre&gt;</description>
    <dc:creator>david palm</dc:creator>
    <dc:date>2013-05-20T16:43:37</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.ruby.general/364623">
    <title>Re: RubyInstaller 2.0.0-p195 released</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.ruby.general/364623</link>
    <description>&lt;pre&gt;I installed ruby-2.0.0-p195 on Windows 7 Premium Home Edition (64-bit)
but it has 32-bit numbers versus 64-bit ones.

So if you do this you get
=&amp;gt;  Bignum

For a 64-bit build numbers should be Fixnum all the way up to (2**63-1).

On my VirtualBox install of Linux Mint 14 (64-bit) that is what I get
for rvm install of ruby-2.0.0-p195

&lt;/pre&gt;</description>
    <dc:creator>Jabari Z.</dc:creator>
    <dc:date>2013-05-20T16:24:27</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.ruby.general/364622">
    <title>Re: Ruby Programming Practice</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.ruby.general/364622</link>
    <description>&lt;pre&gt;
I think the best approach to very early practice is to use the language
for purposes that are useful to the person wanting to practice.
Exercises, koans, and puzzles have their place, but doing administrative
scripting on Unix-like systems, simple library development to eliminate
duplicative coding for things that the programmer ends up doing over and
over again while writing other programs, and simple Web development with
eruby and very lightweight frameworks (e.g. Sinatra), are all great ways
to practice the craft at a beginner level.

Of course, some of that depends on using a Unix-like environment and
having some interest in the way things work beyond point-and-click
interfaces, so if you lack those things you may be stuck with exercises,
koans, and puzzles for a while.

&lt;/pre&gt;</description>
    <dc:creator>Chad Perrin</dc:creator>
    <dc:date>2013-05-20T16:18:01</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.ruby.general/364621">
    <title>Re: Ruby Programming Practice</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.ruby.general/364621</link>
    <description>&lt;pre&gt;
I haven't seen the "bastards book".  I'll have to check that out.

These days, my favorites to recommend are:

1. either Everyday Scripting with Ruby or Eloquent Ruby (pick at least
   one, maybe both)

2. Practical Object-Oriented Design in Ruby

3. Ruby Best Practices

4. Metaprogramming Ruby

. . . pretty much in that order, for leaning to do quality software
development in Ruby in general.  There is a glut of excellent
programming books for Ruby, however; our fun little language gets well
more than its fair share of good texts.

I also generally find myself compelled to point out that for purposes of
learning to do quality software development in Ruby, everyone should
avoid The Book of Ruby.  It's awful, and I'm shocked that No Starch
Press published it.

&lt;/pre&gt;</description>
    <dc:creator>Chad Perrin</dc:creator>
    <dc:date>2013-05-20T16:12:58</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.ruby.general/364620">
    <title>Re: new, with an idea, and not sure what to learn next</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.ruby.general/364620</link>
    <description>&lt;pre&gt;Read and meditate on Object Oriented Design, ActiveRecord / Rails
(railscasts/codeschool), and Data Normalization.

OO will give you an idea of how to structure things for a Ruby program,
Rails is the web framework that has some crazy power, and normalized data
is database concepts to help you make things more efficient.
On May 20, 2013 9:23 AM, "Robert Klemme" &amp;lt;shortcutter&amp;lt; at &amp;gt;googlemail.com&amp;gt; wrote:

&lt;/pre&gt;</description>
    <dc:creator>Brandon Weaver</dc:creator>
    <dc:date>2013-05-20T15:53:53</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.ruby.general/364619">
    <title>Re: why first 16 bytes are wrong with ruby openssl aes 128 cbc ?</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.ruby.general/364619</link>
    <description>&lt;pre&gt;Hello David,

If I understand you correctly, this seems to be caused by what is 
outlined here:

http://www.ruby-doc.org/stdlib-2.0/libdoc/openssl/rdoc/OpenSSL/Cipher.html

Under the section "auth_tag([ tag_len ] → string"

It looks like this is happening because you didn't invoke tag_len.

&lt;/pre&gt;</description>
    <dc:creator>Ryan S.</dc:creator>
    <dc:date>2013-05-20T15:51:01</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.ruby.general/364618">
    <title>Re: new, with an idea, and not sure what to learn next</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.ruby.general/364618</link>
    <description>&lt;pre&gt;

Well, but even reading a Marshal file isn't too hard: just fire up IRB read
the file and use p or pp to print out interesting parts.  You can even
iterate through the structure etc.

Kind regards

robert

&lt;/pre&gt;</description>
    <dc:creator>Robert Klemme</dc:creator>
    <dc:date>2013-05-20T14:22:36</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.ruby.general/364617">
    <title>Re: new, with an idea, and not sure what to learn next</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.ruby.general/364617</link>
    <description>&lt;pre&gt;Am 20.05.2013 03:34, schrieb Damián M. González:

Am I the "above person"?  :)

What I especially like about e.g. YAML::Store is that the files are
human readable and _not_ binary.

stomar

&lt;/pre&gt;</description>
    <dc:creator>sto.mar&lt; at &gt;web.de</dc:creator>
    <dc:date>2013-05-20T13:47:58</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.ruby.general/364616">
    <title>Re: Rename multiple files</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.ruby.general/364616</link>
    <description>&lt;pre&gt;You might find it more efficient to check that the file actually needs 
renaming as well. With your current system you're carrying on 
regardless.

&lt;/pre&gt;</description>
    <dc:creator>Joel Pearson</dc:creator>
    <dc:date>2013-05-20T10:14:35</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.ruby.general/364615">
    <title>Re: Rename multiple files</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.ruby.general/364615</link>
    <description>&lt;pre&gt;
This might not work because the bang versions return nil if no change was made.

Jesus.


&lt;/pre&gt;</description>
    <dc:creator>Jesús Gabriel y Galán</dc:creator>
    <dc:date>2013-05-20T10:14:11</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.ruby.general/364614">
    <title>Re: Rename multiple files</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.ruby.general/364614</link>
    <description>&lt;pre&gt;It's sorted now, thanks.

path = "D:\\Images"
Dir.open(path).each do |p|
  next if p.match(/^\./)
  old = path + "\\" + p
  new = path + "\\" + p.downcase.gsub(' ', '-')
  File.rename(old, new)
  puts old + " =&amp;gt; " + new
end

&lt;/pre&gt;</description>
    <dc:creator>Name Surname</dc:creator>
    <dc:date>2013-05-20T10:07:15</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.ruby.general/364613">
    <title>Re: Rename multiple files</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.ruby.general/364613</link>
    <description>&lt;pre&gt;i don't understand exactly what are you asking here,

Do you want to change the name of all the files(downcase and - included) 
under a particular folder?

RAJ

&lt;/pre&gt;</description>
    <dc:creator>Raj pal</dc:creator>
    <dc:date>2013-05-20T10:05:07</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.ruby.general/364612">
    <title>Re: Rename multiple files</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.ruby.general/364612</link>
    <description>&lt;pre&gt;path = "D:\\Images"
Dir.open(path).each do
  File.rename(Filename, Filename.downcase!.gsub!(32.chr,'-'))
end

What I would also really want is to set a path to a folder with multiple 
files and enter a code, so it would make the changes to all file names.

My code is missing something.

&lt;/pre&gt;</description>
    <dc:creator>Jonas Jonaitis</dc:creator>
    <dc:date>2013-05-20T09:45:17</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.ruby.general/364611">
    <title>Re: Rename multiple files</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.ruby.general/364611</link>
    <description>&lt;pre&gt;hi Jonas Jonaitis

Filename='Ruby Forum'

File.rename(Filename, Filename.downcase!.gsub!(32.chr,'-'))

This would work.

RAJ

&lt;/pre&gt;</description>
    <dc:creator>Raj pal</dc:creator>
    <dc:date>2013-05-20T09:19:48</dc:date>
  </item>
  <textinput rdf:about="http://search.gmane.org/?group=$group=gmane.comp.lang.ruby.general">
    <title>Search Engine</title>
    <description>Search the mailing list at Gmane</description>
    <name>query</name>
    <link>http://search.gmane.org/?group=$group=gmane.comp.lang.ruby.general</link>
  </textinput>
</rdf:RDF>
