#ruby - 09 January 2018
« Back 1 day Forward 1 day »
[00:00:04] ruby[bot]: +bb kiltzman!*@*$#ruby-fix-your-connection *!*@188.8.131.52$#ruby-fix-your-connection
[00:02:35] zenspider: OK. that's clear. then (I THINK) you can `include Module` in your rspec describe. That might be a bit cludgy because rspec does some serious voodoo and it might not be a normal namespace. you can also include it OUTSIDE the describe to make it globally available.
[00:02:44] zenspider: but yes, you should be using either subject or let and not worry about it as much
[00:04:53] zenspider: I prefer let over subject because then you use semantic names instead of generic pronouns
[00:15:42] Radar: https://github.com/rspec/rspec-core/blob/master/lib/rspec/core/memoized_helpers.rb#L399-L410
[00:50:43] weaksauce: any decent gui toolkits for ruby that are easy to do basic 2d stuff for small projects like visualization of things
[07:48:04] guardian: hello, I'm trying to debug a test in some project (not my project). I launch the test using bundle exec m ./path/to/test.rb
[16:34:00] mikhael_k33hl: If I have a nested module within a single file, how do I include an inside module or do I have to include the outermost module?
[16:37:51] mikhael_k33hl: havenwood: https://gist.github.com/marzdgzmn/0762a39adb0b5c3ebfecb01f805894ce is there a way I could include an inner module? or do I have to include the entire outer module?
[16:53:46] havenwood: mikhael_k33hl: Are you trying to include something into this code? Or include this code somewhere else?
[17:05:58] mikhael_k33hl: havenwood: I'm trying to include this code somewhere else. And yep, I mean the FileOps and Config
[17:13:22] apeiros__: mikhael_k33hl: did that solve your question? I wonder whether you might have meant include as in "load the code". that would be `require "path/to/file"`
[17:15:39] mikhael_k33hl: apeiros: Oh I think it did. Just wanted to you know, use the module methods inside the class
[18:12:05] Quintasan: I'm trying to migrate my WP posts to markdown files - https://gist.github.com/Quintasan/3019fce1812e04975de8cec31063b339 . I exported data to CSV using SELECT INTO OUTFILE - https://frelia.org/wp_posts.csv but I can't parse it for the life of me since Ruby keeps throwing Unquoted fields do not allow \r or \n (line 1). (CSV::MalformedCSVError) at me. Any ideas on what I'm doing wrong?
[18:15:29] vhvv: Quintasan: I’ve used Excel to “clean” CSVs before. It may be more liberal in what it accepts and parses than Ruby’s CSV. Import it and then save as CSV. Just an idea…
[18:22:11] darix: Quintasan: if you have sql access why not write a spit outs one md file per post right away?
[18:22:48] Quintasan: darix: Not sure if I want to use up time learning how to write a query like that.
[18:27:43] Quintasan: darix: Welp, at this point I'm really curious why this doesn't work. Or even how Ruby CSV class can create a CSV it can't parse back.
[18:51:33] jmpf: i've uncommented the 'option nodynamic' in ext/Setup && configured w/--with-static-linked-ext ; librubystatic.a is built; but then the linking complains about shared objs - are there up to date instructions on linking ruby statically?
[19:06:29] garyserj: i guess i could use rails and heroku but it isn't as heavy duty as to require rails.
[19:14:05] hexian: when using msys ruby on windows, does ruby use the pthread implementation or the win32 thread one?