437253-439629 subjects 437661-437918

[ANN] olddoc 1.5.0 - old-fashioned RDoc generator
437488 [ e@80 24 or ] olddoc contains old-fashioned document generators for those who do not

How do you references database dirs in a gem?
437489 [leamhall@gm ] The code I have works by making DATA_DIR from a relative path. When I
+ 437490 [ralf.mueller] It depends on what kind of database you use. In general I'd like to let the user configure where to look for
| 437491 [leamhall@gm ] that in a gem it fails to find the
| 437492 [shortcutter@] I think you have access to the gem's installation path via some gem
| 437494 [sto.mar@we .] sounds like you consider this approach a bad practice.
| 437495 [shortcutter@] First of all I have to say I am not familiar with the internal
+ 437493 [sto.mar@we .] This is not directly related to gemifying your code, only to the fact
  437496 [leamhall@gm ] Marcus, your solution worked perfectly! Thanks! I'm going to use it to

Is $LOAD_PATH used for 'require "some_file"?'
437497 [leamhall@gm ] Currently working on Winderz trying to figure out why
+ 437499 [sto.mar@we .] Are you sure you set the load path correctly?
| 437506 [leamhall@gm ] I am still working on this. The simple case works on Linux but the
+ 437508 [echristopher] I recall you were using 1.8.7 on CentOS; are you also using that version on
  437509 [leamhall@gm ] Hey Eric, I was using 2.2 and then down to 2.1.9 from RubyInstaller because
  437510 [leamhall@gm ] Ah, just to clarify, the issue was DevKit install as I was trying to use
  437511 [mike.dalessi] FWIW, modern Nokogiri compiles natively on Windows with DevKit. Here's a
  437512 [leamhall@gm ] I was using current Nokogiri. Unfortunately, installing DevKit requires

Hash Tables Explained
437498 [matugm@gm il] Hey,

Remote RoR....
437501 [tmartin@ir a] UGxlYXNlIGRvbuKAmXQga2lsbCBtZSBmb3IgcG9zdGluZyBoZXJlLCBidXQgSSBoYXZlIFNyLiBs

Re: calling Kernel-methods
437502 [matthew@ke w] On 8 February 2017 at 09:02, Die Optimisten <inform@die-optimisten.net>

[ANN] minitar-cli 0.6.1 Released
437503 [halostatue@g] minitar-cli version 0.6.1 has been released!

[ANN] minitar 0.6.1 Released
437504 [halostatue@g] minitar version 0.6.1 has been released!

[ANN] flog 4.6.1 Released
437505 [ryand-ruby@z] flog version 4.6.1 has been released!

JOB: remote Ruby team lead
437507 [ruby-talk.li] Toptal wants a remote team lead for Ruby projects.  See

OpenStreetMap Blogs (blogs.osm.org) Moved from Python to Ruby ;-)
437513 [gerald.bauer] Thanks to Andy Allan [1] for moving the OpenStreetMap Blogs [2]
437514 [shortcutter@] Hey, this is great news! But I thought Pluto is not a planet (any
437515 [gerald.bauer] Pluto is the largest and second-most-massive known dwarf planet in the
437516 [m-guelker@ph] Pluto, but I had the feeling that the task of collecting some feeds can
437517 [gerald.bauer] No need to apologize. I didn't use Planet Planet (in Python) or the

[ANN] Relaxo - git backed database with lightweight trasactional API
437518 [space.ship.t] I recently published Relaxo 1.0. It's a document storage engine
437519 [beholdthepan] This is a really fun and novel idea!
437520 [space.ship.t] Thanks Stephen, I appreciate your positive feedback. In fact, it's not

Generic class/design pattern question
437521 [leamhall@gm ] I'm re-working old code from early efforts of learning Ruby. Now I'm trying
+ 437548 [shortcutter@] I cannot seem to find that branch. I briefly looked into master and
| 437549 [leamhall@gm ] Robert, thanks for the feedback!
| 437550 [shortcutter@] You're welcome!
| 437555 [leamhall@gm ] Ah, line 38 of
| 437562 [shortcutter@] The point is: line 6 that I referenced above is _totally_ unrelated.
| + 437563 [leamhall@gm ] I'm fixing to be late for work but will study this tonight. Thanks!
| + 437564 [leamhall@gm ] Ah-ha! I looked at this some more and see what you mean. I should be able
|   437565 [Andy.Jones@j] However, there's a bigger question I'm trying to answer. Currently Chargen calls something like "Army.new(char)", when "char = Character.new.generate". Is there a better way? What will happen is that a character may go through more than one career. Classes like "Army" take the character in and modify it's attributes.
|   437566 [shortcutter@] I do not think solution 2 is appropriate here as the association
|   + 437696 [leamhall@gm ] I'm working on this again, and liking the last idea. Haven't gotten it
|   + 437831 [leamhall@gm ] Guys, I just wanted to follow up on this. Thank you very much for your
|   | 437838 [Andy.Jones@j] There are times when the Ruby language just seems to read your mind. One of the reasons I fell in love with it.
|   + 437866 [leamhall@gm ] I have this working. However, I feel like I'm missing the OOP boat and
|     437867 [pbayford@ta ] Not sure about others here, but I would find it useful to see at least a
|     437868 [leamhall@gm ] Hey Patrick, thanks!
|     + 437869 [pbayford@ta ] Thanks Leam - will take a day or two to plough  through these, but that
|     + 437870 [pbayford@ta ] Had a good look at your classes, and I can't see any obvious way of
|     + 437871 [ryand-ruby@z] def self.title(character)
|       + 437872 [pbayford@ta ] Hells teeth Ryan, even I should have spotted point 7)! However,
|       + 437873 [pbayford@ta ] BTW - I understand the Class method concept, and why it is necessary for
|       + 437874 [leamhall@gm ] Hey Ryan and Patrick, thanks! I've collated some of the notes and tried
|         437882 [sto.mar@we .] You might want to have a look at the vim-better-whitespace plugin
+ 437567 [martindemell] 1.Instead of code like
  437571 [botpena@gm i] untested,

[ANN] minitest-trump 1.0.0 Released
437522 [ryand-ruby@z] minitest-trump version 1.0.0 has been released!
437523 [Andy.Jones@j] Click here to view Company Information and Confidentiality Notice.<http://www.jameshall.co.uk/index.php/small-print/email-disclaimer>
437524 [rajsahae@gm ] Or randomly print "WRONG" when a test tries to assert something.
437525 [Andy.Jones@j] Godsdammit, now I want to write a Markov chain twitter bot
+ 437527 [subtileos@gm] Great stuff.
+ 437535 [Andy.Jones@j] Well, thats a relief, someone (lots of people in fact) got there before me: https://twitter.com/Trump2016_Bot

Reading information on a serial-port
437526 [jeremy@se an] I'm currently working on a script that reads the content on a serial

Ruby SOLID principles
437528 [aming@im m. ] Dears,
437529 [damiansimonp] You can also check UPCASE they have tutorials on each of the solid
+ 437530 [priviterag@g] <http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk>
| + 437531 [aming@im m. ] Great!
| + 437534 [Andy.Jones@j] +1.  I love this book.
|   437536 [costantinile] You have this talk by Sandi Metz, it's old but it's really good.
|   437537 [uday88k@gm i] Design patterns in Ruby by Russ Olsen
+ 437532 [leamhall@gm ] Damian, UPCASE looks interesting but I see nothing on the cost of the
  437533 [leamhall@gm ] Ah, fond it way down the page. Whatever happened to clean UX design?

30+ Themes - Dr Jekyll's February 2017 Edition - Midnight, Hacker, Merlot, Bootflat, Schemadoc, etc - Add Your Theme
437538 [gerald.bauer] I've put together the February'17 Edition of the Dr. Jekyll's Themes

Re: <DKIM> Reading information on a serial-port
437539 [sylvain.daub] You should use rubyserial gem instead of opening special file. See

Self-contained interfaces
437540 [subtileos@gm] A subject that I advocate for many time now is the subject of
+ 437541 [non.dmitriy@] I think there's no need in this.
| 437542 [matthew@ke w] I think there's no need in this.
| 437543 [subtileos@gm] Control is good.
| + 437544 [non.dmitriy@] Actually I agree with that.
| | 437545 [subtileos@gm] What do you mean with constants can not be private in ruby?
| | 437547 [non.dmitriy@] I mean, did you see any projects that use `private_constant` ?
| | + 437559 [subtileos@gm] I believe ruby talk is the right place to discuss these matters.
| | + 437576 [subtileos@gm] I believe it is worth to emphasise that *self-contained Interfaces*
| + 437546 [Andy.Jones@j] Control is good.
| + 437557 [sto.mar@we .] Can you _really_ control how other programmers use your gem?
|   + 437560 [subtileos@gm] Andy totally understood my point of view and expressed it very well in
|   + 437561 [Andy.Jones@j] [Cynicism chip activate]
|     437568 [sto.mar@we .] As someone who tries to improve the Ruby documentation
|     437569 [Andy.Jones@j] Well, to be fair, we were talking about third party gems, not core Ruby.
|     + 437572 [sto.mar@we .] sorry for the misunderstanding;
|     | 437575 [subtileos@gm] Glad you said that Marcus.
|     + 437574 [subtileos@gm] Thanks Andy
+ 437573 [subtileos@gm] We don't need to make constants inside `Bar` private provided `Bar` is

unvisible beta-gems?
437551 [inform@di -o] I installed a gem file manually, which was then automatically updated.
437552 [sto.mar@we .] Try the `--prerelease' option.
437553 [inform@di -o] ok!
+ 437554 [ialexxei@gm ] $ gem help install
+ 437558 [ryand-ruby@z] 5118 % gem install --help | grep prerelease

gem update system-default
437556 [inform@di -o] .../specifications and  .../specifications/defaults

[ANN] packetgen 1.4.0 released
437570 [sylvain.daub] packetgen 1.4.0 has been released.

SQLite update works in one file, fails in another.
437577 [leamhall@gm ] In the second file, the save_characters() method fails to update the

Best way to handle Integer/Bignum/Fixnum
437578 [space.ship.t] In my code, after migrating to 2.4.0, I see a lot of
+ 437579 [leamhall@gm ] Any reason your base code can't use Integer alone? If I understand
+ 437580 [ e@80 24 or ] How do you use IntegralTypes in your code?
  437581 [space.ship.t] If you use the name of the class in any way... Your suggestion gave me
  437582 [ e@80 24 or ] <top-posting corrected>

Best way to call Integer on temporary?
437583 [space.ship.t] I like to use Float, Integer and String to typecast data from user. It
+ 437584 [space.ship.t] Perhaps something like Integer? which would pass through nil.
+ 437587 [Andy.Jones@j] It seems like you might have reached the level of complexity which might justify a separate function: say, validate_int(foo) which either returns an integer or raises an exception.  (Or, which might be better, throws a signal; arguably a validation fail isn't actually an exception in your application, but an expected event.)
| 437588 [matthew@ke w] Samuel
| 437589 [Andy.Jones@j] Yeah, if it's just the three functions, and you're reusing them enough, it makes sense to wrap them up nicely.
| 437590 [leamhall@gm ] To quote Brian Kernighan, "Everyone knows that debugging is twice as hard
+ 437591 [shortcutter@] Since you will often replace the value with a default value anyway, you can do
| 437601 [space.ship.t] Interesting discussion, thanks for the ideas.
+ 437602 [botpena@gm i] if you like exceptions, then you also like rescuing.
  437603 [shortcutter@] I don't think that cuts it because you still want to see an exception
  437604 [shortcutter@] Thinking a bit more about this there is a different approach: since

Tcl/Tk with Ruby
437585 [karthikeyan@] /opt/anaconda1anaconda2anaconda3/lib/tcl8.5 /home/ak/.rvm/rubies/ruby-2.4.0/lib/tcl8.5 /home/ak/.rvm/rubies/lib/tcl8.5 /home/ak/.rvm/rubies/ruby-2.4.0/library /home/ak/.rvm/rubies/library /home/ak/.rvm/rubies/tcl8.5.18/library /home/ak/.rvm/tcl8.5.18/library
437586 [martindemell] try installing tcl8.6-dev and tk8.6-dev

Pathname with backslashes
437592 [pitinofabio@] I came across to this today. It seems that Pathname is not able to parse
+ 437593 [botpena@gm i] "c:\\hello\\world\\file.exe" is a valid filename in unix, special
| 437594 [pitinofabio@] Sorry, didn't get your comment :(
| + 437595 [rob.biedenha] <http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk>
| + 437596 [wishdev@gm i] "c;\a\b" is a valid FILENAME in Unix. So Pathname treats it as such on a
| | 437597 [pitinofabio@] Thanks all for the feedback!
| + 437598 [botpena@gm i] in unix, colons and backslashes (among others) are valid chars for
|   437599 [botpena@gm i] oops, my bad, sorry for the noise.
+ 437600 [m-guelker@ph] You should simply do it the other way round. Windows accepts slashes as

Net::ReadTimeout (Net::ReadTimeout)
437605 [Sascha.Manns] i'm using a gem (pony) which uses net-protocol. If i'm using it i'm
437606 [neriojose5@g] Well, It looks like a remote problem, but could you give details about what
+ 437607 [the.codefoli] Pony is a gem for emailing. It's getting a read timeout in "deliver". So it
| 437608 [shortcutter@] Not to forget the network between the client and SMTP server - and all
| 437610 [Sascha.Manns] Then i try to debug the network. Thanks for answering.
+ 437609 [Sascha.Manns] I dive pony a email, and it tries to deliver it to my chosen smtp

jwt gem may have a .decode() issue?
437611 [jtsengorg@gm] <http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk>
437612 [matt@kn ck u] <http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk>
437614 [jtsengorg@gm] <http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk>

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

API endpoints returning 401 errors
437615 [jtsengorg@gm] I'm working on an SPA calling a RESTful API driven by

OS X Sierra rbenv build errors
437616 [gvimrc@gm il] I just upgraded OS X Yosemite to Sierra and all seemed will until I

Standard libraries
437617 [lists@so th ] Anyone familiar with how to get a list together regarding less commonly
437618 [shortcutter@] AFAIK there is just one Ruby standard library which is part of every

[ANN] JRuby Released
437619 [tom.enebo@gm] The JRuby community is pleased to announce the release of JRuby

437620 [inform@di -o] begin [1,2,3].each {|x| p x, x/0 };  rescue; end
437622 [shortcutter@] The placement of "rescue". ;-)
437624 [hugoangelo@g] try this
+ 437625 [shortcutter@] _You_ should have tried...
+ 437626 [hugoangelo@g] If I understood what you are trying to get.
+ 437628 [inform@di -o] <http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk>
  437634 [shortcutter@] It is still quite foggy though. For example, your initial code will

Hash - key+value
437621 [inform@di -o] Is there a method for directly getting [key, value]-pairs? (like .keys)
+ 437623 [shortcutter@] Cheers
| 437629 [inform@di -o] I looked at it already, but I didn't find any, so there is no?
| 437630 [rob.biedenha] So you didn't find `.each` (each_pair) or `.to_a` to be "direct" enough? Since .keys returns and array and you specifically say "like .keys", why isn't Hash#to_a EXACTLY what you're looking for?
| 437631 [inform@di -o] as mentioned earlier I expect that .to_a builds the full array
| 437632 [matthew@ke w] I'm with robert and Rob...
| + 437633 [Andy.Jones@j] as mentioned earlier I expect that .to_a builds the full array (consuming a lot of ram), so .each {...} seems to be the best. (I have to write my own .keys_values method)
| + 437642 [inform@di -o] <http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk>
|   437644 [matthew@ke w] That doesn't help me understand.
+ 437627 [nomadic.spri] Each or each_pair yields key value pairs.

I Love Ruby - 2.4 edition
437635 [karthikeyan@] I am typing "I Love Ruby" for Ruby 2.4 and you can get it here
+ 437636 [bee.lists@gm] Hey man, love your publication.  Have so for over 2 years.
+ 437637 [ruby@e- ol t] Thank you very much for the sharing.
+ 437638 [Andy.Jones@j] I've never seen this before.  It's really good.  Thank you.
| + 437639 [zyxancf@gm i] Good one!. I quickly went through it and found a small typo on page
| | 437640 [karthikeyan@] <http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk>
| + 437641 [karthikeyan@] <http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk>
+ 437643 [mstanford@gu] I am brand new to Ruby and have been studying a few different books

[ANN] packetgen 1.4.1 released
437645 [sylvain.daub] packetgen 1.4.1 has been released.

[ANN] The dRuby Book
437646 [seki.at.drub] The dRuby Book is out of print, so I've re-published it on the web.
+ 437647 [leamhall@gm ] Is there a way to get it in one large file, or one file per chapter? I
| 437650 [gb.samuel@gm] Great job!! Looking forward to read it.
| 437655 [sathors@fr e] Well, I have the problem that on the
+ 437656 [karthikeyan@] Nice work! Long live free knowledge.
  437657 [subtileos@gm] Thank you very much for making the content of the book available to the
  437658 [hack3rcon@ya] <http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk>

AW:[ANN] The dRuby Book
437648 [ralf.mueller] Thx seki!! awesome book

Ruby Jobs that are not Rails?
437649 [leamhall@gm ] Not trying to cause an issue, but wondering what sorts of Ruby jobs there
437651 [subtileos@gm] You have DevOps positions using ruby.
437652 [vijaykumar.t] We use sensu for monitoring and it is completely in Ruby.
437653 [leamhall@gm ] Thanks guys! I'm looking for all the info i can get. While I can do simple
437654 [fluido@fl id] I am still able to fill up a working week with interesting stuff to do
437691 [the.codefoli] At Ooyala, we also used Ruby for our analytics query stuff. Backend
+ 437692 [leamhall@gm ] Guys, thanks!
| + 437693 [shortcutter@] Talk about job security.
| + 437694 [cebirim@gm i] a job as an infrastructure developer working with ELK (elasticsearch,
| + 437695 [Andy.Jones@j] Employed for very different programming skills here (Openedge, because I'm ooold) but I've fallen into a thing where I get to spend at least half my time writing small applications for the business intranet, in Ruby and Sinatra.
|   + 437699 [thedixie@gm ] here at Wavecrafters we use Ruby for getting data from everywhere, the
|   + 437700 [bar.hofesh@s] (supressed text/html)
+ 437704 [martindemell] integration test framework in ruby, built on top of test::unit, that made
  437710 [xeno.campano] PGh0bWw+Cgk8aGVhZD4KCQk8dGl0bGU+U29mdHdhcmUgRW5naW5lZXIsIERldmVsb3BlciwgUHJv

replacing '
437659 [inform@di -o] Is there a nicer way than "\\\\'" for replacing  '  with  \'     ?
437664 [mike@st k. a] <http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk>
437669 [inform@di -o] <http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk>
437670 [mike@st k. a] $ pry
437676 [inform@di -o] ups - I was manacled? hypnotized by / cognitive bound to the very
437689 [shortcutter@] I recommend against using the block form. It incurs unnecessary

Re: \\
437660 [inform@di -o] Why is there no difference between '\\' and "\\" ?
437665 [mike@st k. a] <http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk>
437684 [shortcutter@] I think this is not the explanation that OP is looking for. The real
437697 [inform@di -o] Thanks for that info - yes, it's confusing for me - less possibilties
437698 [shortcutter@] You could try http://ruby-doc.com/docs/ProgrammingRuby/ - maybe it is