« Back to channel list

#ruby - 26 April 2019

« Back 1 day Forward 1 day »
[00:02:42] infernix: has joined #ruby
[00:06:54] skryking_: has joined #ruby
[00:11:04] d^sh: has joined #ruby
[00:18:21] fphilipe: has joined #ruby
[00:20:20] znz_jp: has joined #ruby
[00:23:52] s3nd1v0g1us: has joined #ruby
[00:31:37] orbyt_: has joined #ruby
[00:32:57] tdy1: has joined #ruby
[00:35:56] AJA4351: has joined #ruby
[00:44:01] brandoncc: has joined #ruby
[00:49:53] bvdw6: has joined #ruby
[00:55:32] jmcgnh: has joined #ruby
[00:59:22] gix-: has joined #ruby
[01:08:40] D9: has joined #ruby
[01:13:04] eblip: has joined #ruby
[01:13:19] eb0t: has joined #ruby
[01:19:33] dsmythe: has joined #ruby
[01:20:08] UnknownSoldier: has joined #ruby
[01:28:04] jottr: has joined #ruby
[01:48:46] fphilipe: has joined #ruby
[01:52:20] ramfjord: has joined #ruby
[01:56:07] jenrzzz_: has joined #ruby
[01:56:51] KeyJoo: has joined #ruby
[02:05:39] jottr: has joined #ruby
[02:12:45] jottr_: has joined #ruby
[02:18:27] jottr_: has joined #ruby
[02:23:06] BTRE: has joined #ruby
[02:23:46] jottr: has joined #ruby
[02:31:28] jottr: has joined #ruby
[02:35:42] dar123: has joined #ruby
[02:36:55] dsmythe: has joined #ruby
[02:49:27] fphilipe: has joined #ruby
[03:05:18] dar123: has joined #ruby
[03:10:05] braincrash: has joined #ruby
[03:10:25] jottr: has joined #ruby
[03:12:35] ramfjord: has joined #ruby
[03:37:08] sauvin: has joined #ruby
[03:39:58] pupsikov: has joined #ruby
[03:44:13] dsmythe: has joined #ruby
[03:51:27] jottr: has joined #ruby
[04:16:52] jenrzzz: has joined #ruby
[04:19:57] fphilipe: has joined #ruby
[04:26:52] jottr: has joined #ruby
[04:35:40] jenrzzz: has joined #ruby
[04:37:16] dsmythe: has joined #ruby
[04:47:59] jenrzzz: has joined #ruby
[04:50:57] darmou: has joined #ruby
[04:54:33] dar123: has joined #ruby
[04:57:35] dellavg_: has joined #ruby
[04:59:58] esrse: has joined #ruby
[05:00:36] reber: has joined #ruby
[05:01:56] jenrzzz: has joined #ruby
[05:26:41] fphilipe: has joined #ruby
[05:38:03] crankharder: has joined #ruby
[05:39:56] jenrzzz: has joined #ruby
[05:45:10] hightower2: has joined #ruby
[05:48:02] dar123: has joined #ruby
[05:54:59] mozzarel1: has joined #ruby
[06:02:00] conta: has joined #ruby
[06:10:11] duderonomy: has joined #ruby
[06:10:26] nowhere_man: has joined #ruby
[06:11:30] andikr: has joined #ruby
[06:17:30] laaron: has joined #ruby
[06:28:01] jottr: has joined #ruby
[06:33:57] Furai: has joined #ruby
[06:35:09] jenrzzz: has joined #ruby
[06:39:25] suukim: has joined #ruby
[06:40:21] podlech: has joined #ruby
[06:43:03] jenrzzz: has joined #ruby
[06:49:17] kapil____: has joined #ruby
[06:49:25] vondruch: has joined #ruby
[06:49:59] GodFather: has joined #ruby
[06:58:17] autoone: has joined #ruby
[07:00:38] jottr: has joined #ruby
[07:02:07] misaki_m: has joined #ruby
[07:04:34] patientj: has joined #ruby
[07:04:37] dsmythe: has joined #ruby
[07:04:42] crankharder: has joined #ruby
[07:08:31] clemens3: has joined #ruby
[07:13:53] lxsameer: has joined #ruby
[07:17:07] prestorium: has joined #ruby
[07:19:11] clemens3_: has joined #ruby
[07:19:59] jenrzzz: has joined #ruby
[07:22:26] Prira: has joined #ruby
[07:22:50] autoone: has joined #ruby
[07:30:44] patientj: has joined #ruby
[07:31:49] patientj: has left #ruby: ()
[07:35:44] _joes_: has joined #ruby
[07:35:46] BH23: has joined #ruby
[07:37:53] dsmythe: has joined #ruby
[07:40:00] autoone: has joined #ruby
[07:42:21] aupadhye: has joined #ruby
[07:44:26] vyrus001: has joined #ruby
[07:44:31] vyrus001: confused about an err
[07:44:33] vyrus001: /usr/lib64/ruby/site_ruby/2.4.0/rubygems/core_ext/kernel_require.rb:54:in `require': libffi.so.6: cannot open shared object file: No such file or directory - /home/vyrus/.gem/ruby/2.4.0/gems/ffi-1.9.18/lib/ffi_c.so (LoadError)
[07:45:16] vyrus001: ~/.gem/ruby/2.4.0/gems/ffi-1.9.18/lib $ ls -l = -rwxr-xr-x 1 vyrus vyrus 177168 Apr 3 2017 ffi_c.so
[07:52:32] _axx: has joined #ruby
[08:02:12] jefffrails35: has joined #ruby
[08:03:11] jenrzzz: has joined #ruby
[08:08:01] waheedi: has joined #ruby
[08:14:50] duderonomy: has joined #ruby
[08:17:16] Swyper: has joined #ruby
[08:35:27] thunderbirdtr: has joined #ruby
[08:35:27] jottr: has joined #ruby
[08:38:25] _joes_: has joined #ruby
[08:42:20] jottr_: has joined #ruby
[08:42:40] cgfbee: has joined #ruby
[08:44:03] jottr: has joined #ruby
[08:47:36] TvL2386: has joined #ruby
[09:01:05] darklajid: has joined #ruby
[09:01:48] dsmythe: has joined #ruby
[09:02:31] jenrzzz: has joined #ruby
[09:02:59] darklajid: Hey there. I .. don't really know ruby, but recently got asked (interview) to build a simple console application that is evaluated by a rspec testsuite. I did this in dotnet core. Unfortunately it seems the rspec code fails to read my stdout and now I wanna figure out why.
[09:04:05] teclator: has joined #ruby
[09:04:05] darklajid: https://pastebin.com/fX3WCB3A is the code that 1) returns the correct output, if I launch my console application directly (.net assembly) 2) returns [] if I launch the very same console application in a docker container 3) returns [] if I launch the very same code via dotnet run
[09:04:51] darklajid: All three invocations produce exactly the same output on the command line if launched interactively - but 2 out of 3 end up as empty array of lines in the Ruby code above. Is there anything I could tinker with to figure out why that might be the case?
[09:05:25] fphilipe: has joined #ruby
[09:06:11] hairedfox: has joined #ruby
[09:07:14] hairedfox: hi everyone
[09:07:18] hairedfox: I'm new here
[09:07:46] al2o3-cr: has joined #ruby
[09:09:41] darklajid: Basically pty = PTY.spawn("executable_here") w/ the code above works differently depending if the executable launches docker or dotnet run for some reason and I don't see any visible change..
[09:15:35] laaron: has joined #ruby
[09:17:39] kyrylo: has joined #ruby
[09:22:58] fphilipe: has joined #ruby
[09:24:40] tdy1: has joined #ruby
[09:28:10] lele: has joined #ruby
[09:32:37] venmx: has joined #ruby
[09:42:30] tuor: has joined #ruby
[09:42:39] aupadhye_: has joined #ruby
[09:49:03] dsmythe: has joined #ruby
[09:51:03] jottr: has joined #ruby
[10:03:36] dar123: has joined #ruby
[10:06:44] jottr: has joined #ruby
[10:09:16] phaul: darkla... oh they left :)
[10:09:25] phaul: probably race condition.
[10:09:51] phaul: hairedfox: hi. welcome to the channel
[10:20:19] dsmythe: has joined #ruby
[10:20:55] kapil____: has joined #ruby
[10:22:38] aupadhye_: has joined #ruby
[10:22:56] ramfjord: has joined #ruby
[10:26:47] Cthulu201: has joined #ruby
[10:27:40] aupadhye_: has joined #ruby
[10:28:34] jenrzzz: has joined #ruby
[10:36:30] venmx: has joined #ruby
[10:39:14] hightower2: has joined #ruby
[10:41:35] Cthulu201: has joined #ruby
[10:52:07] conta: has joined #ruby
[10:54:11] RougeR: has joined #ruby
[10:55:29] AJA4350: has joined #ruby
[10:57:57] dsmythe: has joined #ruby
[11:02:43] Bish: has anyone tried falcon so far, or any other way to use http/2 with ruby?
[11:03:03] Bish: i want to push messages to the browser like a chat message and don't quite now how
[11:05:12] jottr: has joined #ruby
[11:09:22] Bish: well i guess thats not what http/2 does
[11:09:35] Bish: so i still have to use websockets? when i want to do something like that?
[11:09:45] Bish: that sucks
[11:11:11] RiPuk: has joined #ruby
[11:13:48] asfsadf: has joined #ruby
[11:20:37] ferr: has joined #ruby
[11:33:44] sleetdrop: has joined #ruby
[11:36:16] ldnunes: has joined #ruby
[11:38:17] SuperLag: has joined #ruby
[11:39:36] jenrzzz: has joined #ruby
[11:43:52] phaul: has joined #ruby
[11:46:47] Silex: has joined #ruby
[11:47:14] Silex: has left #ruby: ()
[11:47:22] Silex: has joined #ruby
[11:54:21] ldnunes: has joined #ruby
[11:58:53] dsmythe: has joined #ruby
[12:01:08] adam12: Bish: I'm using Iodine which doesn't support http/2 afaik but does support websockets.
[12:02:48] adam12: Bish: Your options are Websockets, long-polling, SSE. You migt be able to use http2 since it's a streaming protocol. I'd say long-polling is the simplest at smaller scales. The message_bus gem works well for that (I use it paired with Roda).
[12:02:58] ctp: has joined #ruby
[12:03:09] afisher: has joined #ruby
[12:03:21] jhill: has joined #ruby
[12:03:35] englishm: has joined #ruby
[12:03:37] strmpnk: has joined #ruby
[12:04:08] ec: has joined #ruby
[12:05:31] lupine: SSE is *really* simple for unidirectional stuff
[12:06:43] tpanarch1st: has joined #ruby
[12:09:36] xfbs: has joined #ruby
[12:12:36] ldnunes: has joined #ruby
[12:23:14] ramfjord: has joined #ruby
[12:36:05] ldnunes: has joined #ruby
[12:36:54] shansen: has joined #ruby
[12:38:14] dhollinger: has joined #ruby
[12:43:42] _joes_: has joined #ruby
[12:50:32] Inline: has joined #ruby
[12:54:15] lucasb: has joined #ruby
[12:59:45] dsmythe: has joined #ruby
[13:15:03] ctp___: has joined #ruby
[13:15:19] afisher_: has joined #ruby
[13:22:41] brendan-: has joined #ruby
[13:24:35] jcalla: has joined #ruby
[13:27:46] cow[moo]: has joined #ruby
[13:28:23] RougeR: any fluentd users here>
[13:28:28] laaron: has joined #ruby
[13:34:44] sgen: has joined #ruby
[13:39:49] jenrzzz: has joined #ruby
[13:40:03] waheedi: has joined #ruby
[13:40:54] pupsikov: has joined #ruby
[13:54:57] jelera: has joined #ruby
[13:57:39] Rapture: has joined #ruby
[14:00:40] dsmythe: has joined #ruby
[14:01:14] jenrzzz: has joined #ruby
[14:05:20] SuperL4g: has joined #ruby
[14:09:38] brandoncc: has joined #ruby
[14:16:36] dsmythe: has joined #ruby
[14:16:40] cow[moo]: has joined #ruby
[14:23:28] ramfjord: has joined #ruby
[14:24:19] krawchyk: has joined #ruby
[14:30:52] laaron: has joined #ruby
[14:36:07] BH23: has joined #ruby
[14:36:14] _joes_: has joined #ruby
[14:44:45] dar123: has joined #ruby
[14:50:22] conta: has joined #ruby
[14:51:13] jelera: has joined #ruby
[14:53:06] Swyper: has joined #ruby
[14:54:54] Dbugger: has joined #ruby
[14:57:33] sgen: has joined #ruby
[15:00:37] yokel: has joined #ruby
[15:01:16] houhoulis: has joined #ruby
[15:01:24] rippa: has joined #ruby
[15:01:43] Momentum: has joined #ruby
[15:02:20] Momentum: hi, is 2.6.2 no longer maintained?
[15:07:08] queip: has joined #ruby
[15:08:31] ytti: Momentum, i don't understand the question, what does it mean to have maintained patch release?
[15:08:39] ytti: Momentum, or do you mean if 2.6 is maintained? that is indeed maintained
[15:09:29] Momentum: yeah well, i actually was running a rails app under 2.6.2 but i'm getting an error now after the update to 2.6.3
[15:09:49] Momentum: not an error but unmatching versions
[15:10:35] adam12: Momentum: What's the error?
[15:10:52] Momentum: Your Ruby version is 2.6.3, but your Gemfile specified 2.6.2
[15:11:05] Momentum: well i kinda solved that but ...
[15:11:18] ytti: very odd gemfile specification
[15:11:22] adam12: Momentum: That's caused by the `ruby` line in your Gemfile. Just update it or make it less strict.
[15:11:53] Momentum: edit the line in the gemfile to match the ruby version?
[15:11:59] ytti: you want foo.required_ruby_version = '>= 2.6'
[15:12:11] Swyper: has joined #ruby
[15:12:27] adam12: Momentum: Do you have a line in Gemfile that starts with "ruby" ?
[15:13:32] adam12: Momentum: ... and it is? I'm just gonna guess `ruby "2.6.2"`
[15:14:10] adam12: Momentum: I'd relax it to something like `ruby "~> 2.6.2"`
[15:15:30] Momentum: won't that cause me problems later on?
[15:15:47] adam12: Momentum: why would you say that?
[15:16:21] ytti: probability of ruby 2.6.N+K being broken but 2.6.N working for your code is not something you should plan for
[15:17:06] Momentum: okay, thank you
[15:17:47] Momentum: adam12: have i seen you in ##chess? or that's someone else?
[15:17:52] tdy1: has joined #ruby
[15:17:52] adam12: Momentum: not me.
[15:18:14] Momentum: okay, thank you guys, i appreciate it :)
[15:23:26] ramfjord: has joined #ruby
[15:25:15] Momentum: one more question, should i bother with rbenv? or that's not necessary
[15:25:30] Momentum: i still don't understand its exact usefulness on my situation anyway
[15:27:37] AJA4350: has joined #ruby
[15:27:49] adam12: Momentum: Hard to say. What's your situation? Can you describe a little bit about how you're using Ruby?
[15:28:16] Momentum: i actually set it to use 2.6.2 when i got that problem, so now i'm using 2.6.2
[15:29:55] ytti: rbenv utility is to install newer ruby version locally without super user permissions
[15:30:10] ytti: and to use different ruby versions simultaneously with convenience
[15:30:21] ytti: if you can avoid, do avoid, complexity needs justificaiton
[15:30:33] Momentum: yeah that makes total sense
[15:31:00] Momentum: i'm just trying to get rid of it now, since i'm specifying to use any ruby above 2.6.2 in my gemfile
[15:32:42] AJA4350: has joined #ruby
[15:42:44] armyriad: has joined #ruby
[15:50:16] Swyper: has joined #ruby
[15:53:11] cd: has joined #ruby
[15:54:11] jelera: has joined #ruby
[15:58:23] orbyt_: has joined #ruby
[16:01:43] SeepingN: has joined #ruby
[16:13:56] laaron-: has joined #ruby
[16:15:49] reber: has joined #ruby
[16:23:38] Eiam: has joined #ruby
[16:25:35] doodlebug: has joined #ruby
[16:26:21] sameerynho: has joined #ruby
[16:27:42] gix: has joined #ruby
[16:36:40] conta: has joined #ruby
[16:36:42] jelera: has joined #ruby
[16:39:52] conta: has joined #ruby
[16:39:54] weteamsteve: has joined #ruby
[16:47:49] sphenxes: has joined #ruby
[16:53:59] Swyper: has joined #ruby
[16:54:40] ramfjord: has joined #ruby
[17:04:47] duderonomy: has joined #ruby
[17:04:54] Swyper: has joined #ruby
[17:14:24] Swyper: has joined #ruby
[17:15:06] dhollinger: has joined #ruby
[17:18:04] Swyper: has joined #ruby
[17:25:53] jhill: has joined #ruby
[17:26:59] ec: has joined #ruby
[17:28:27] englishm: has joined #ruby
[17:29:17] BTRE: has joined #ruby
[17:29:31] conta: has joined #ruby
[17:37:07] jenrzzz: has joined #ruby
[17:40:54] doodleb89: has joined #ruby
[17:54:01] RougeR: has joined #ruby
[17:58:44] dsmythe: has joined #ruby
[18:10:20] jelera: has joined #ruby
[18:12:31] pupsikov: has joined #ruby
[18:15:26] jenrzzz: has joined #ruby
[18:20:10] rindolf: has joined #ruby
[18:25:44] jenrzzz: has joined #ruby
[18:26:04] Swyper: https://dpaste.de/foGp
[18:26:09] Swyper: any ideas why its not passing?
[18:27:20] rindolf: hi all, can the line " dir = File.expand_path(File.join(Dir.tmpdir, ".epubtmp#{Time.now.to_f.to_s}")) " here - https://sourceforge.net/p/docbook/code/HEAD/tree/trunk/xsl/epub/bin/dbtoepub - result in a collision?
[18:29:33] uplime: Swyper: you'd need to show the rspec file
[18:29:36] rindolf: Swyper: you are not calling random_word
[18:31:06] phaul: rindolf: by collision you mean to get a dir name that's already there?
[18:31:15] rindolf: phaul: yes
[18:31:33] rindolf: phaul: if the time is the same
[18:31:49] phaul: but tmpdir is unique
[18:31:57] phaul: &>> Dir.tmpdir
[18:31:59] rubydoc: # => undefined method `tmpdir' for Dir:Class (NoMethodError) stderr: -e:2:in `<main>': undefined method... check link for more (https://carc.in/#/r/6sjg)
[18:32:42] phaul: oh. it's not
[18:32:53] rindolf: phaul: https://ruby-doc.org/stdlib-2.0.0/libdoc/tmpdir/rdoc/Dir.html
[18:33:55] jcarl43: has joined #ruby
[18:34:57] phaul: one would expect them to use mktmpdir, which would be unique..
[18:38:13] phaul: being guessable by using Time.now and not proper random is also a security hole...
[18:38:13] rindolf: phaul: https://github.com/docbook/xslt10-stylesheets/blob/master/xsl/epub/bin/dbtoepub#L65
[18:39:20] phaul: one could spam //tmp with links to /etc/. then when root runs this they just corrupt /etc. it's far fetched, but shows the problem
[18:40:01] jenrzzz: has joined #ruby
[18:40:12] phaul: that's why tmp names should not be predictable
[18:42:58] gigetoo: has joined #ruby
[18:42:58] yokel: has joined #ruby
[18:43:21] sgen: has joined #ruby
[18:44:12] rindolf: phaul: should it be Dir::mktmpdir() or Dir.mktmpdir()?
[18:44:27] phaul: Dir.mktmpdir
[18:45:00] phaul: :: should only be used in constant nesting
[18:45:12] phaul: like A::B::C ...
[18:46:39] jelera: has joined #ruby
[18:47:30] jelera: has joined #ruby
[18:48:13] jelera: has joined #ruby
[18:48:37] nowhere_man: has joined #ruby
[18:48:39] jrafanie: has joined #ruby
[18:49:03] jelera: has joined #ruby
[18:49:06] ramfjord: Swyper: was that for a class or something? Personally I don't recommend writing tests that verify private state within a class - test the public interface only
[18:49:26] ramfjord: the "specification"
[18:49:29] Swyper: yeah its for an online course
[18:49:40] nadir: has joined #ruby
[18:49:53] jelera: has joined #ruby
[18:52:35] rindolf: phaul: thanks
[18:52:49] phaul: Swyper: I guess the specs came with the assignment. Can you share them? It's hard to tell why you are failing them, if can't see them.
[18:52:52] phaul: rindolf: yw
[18:53:38] mrpropa: has joined #ruby
[18:53:45] rindolf: phaul: https://github.com/docbook/xslt10-stylesheets/pull/144
[18:54:40] phaul: cool :) hopefully they fix it
[18:55:07] dar123: has joined #ruby
[18:56:46] phaul: I personally would remove () on method calls with no arguments
[18:59:08] steven: has joined #ruby
[19:02:19] phaul: but is that code leaving stuff in /tmp after it has run? No program should do that. Disk space is finite.. (but it's the same prior to your patch)
[19:03:58] cthu|: has joined #ruby
[19:08:24] rindolf: phaul: i see
[19:13:59] rindolf: phaul: thanks
[19:24:00] jenrzzz: has joined #ruby
[19:33:01] dar123: has joined #ruby
[19:42:46] Swyper: has joined #ruby
[19:44:48] Swyper: has joined #ruby
[19:45:01] Swyper: has joined #ruby
[19:54:55] jenrzzz: has joined #ruby
[19:55:06] lubekpl: has joined #ruby
[19:58:44] tdy1: has joined #ruby
[20:03:20] lubekpl: has joined #ruby
[20:09:13] doodlebug: has joined #ruby
[20:13:25] brandoncc: has joined #ruby
[20:21:12] kyrylo: has joined #ruby
[20:35:33] doodleb12: has joined #ruby
[20:37:19] jenrzzz: has joined #ruby
[20:44:33] nowhere_man: has joined #ruby
[20:54:59] hightower2: has joined #ruby
[21:02:31] r29v: has joined #ruby
[21:05:40] code_zombie: has joined #ruby
[21:07:46] doodlebug: has joined #ruby
[21:08:42] ErhardtMundt: has joined #ruby
[21:09:14] d0liver: has joined #ruby
[21:12:01] jenrzzz: has joined #ruby
[21:14:13] hightower2: has joined #ruby
[21:16:43] Azure: has joined #ruby
[21:23:31] d0liver: has joined #ruby
[21:25:36] Swyper: has joined #ruby
[21:28:20] weteamsteve: has joined #ruby
[21:30:10] Swyper: has joined #ruby
[21:32:34] prestorium: has joined #ruby
[21:36:42] weteamsteve1: has joined #ruby
[21:38:30] Swyper: https://dpaste.de/9UM2
[21:38:40] Swyper: ere are the spec tests failing as well phaul
[21:38:44] Swyper: and updated code
[21:45:44] nowhere_man: has joined #ruby
[21:56:47] queip: has joined #ruby
[21:59:45] phaul: Swyper: I ranyour code locally, let'slook at the first issue.
[22:00:49] phaul: It complains "undefined method `length' for nil:NilClass" on line that contains @guess_word = Array.new(@guess_word.length, "-")
[22:01:02] phaul: can you confirm you are seeing the same?
[22:03:51] phaul: an instance variable (variable with @) is nil on first encounter. That means @guess_word.length is sending the length message to nil object. That's why it's failing
[22:03:53] Swyper: Hi phaul I am not seeing the same, I think that is because I am just running the command to run the tests (bundle exec rspec)
[22:04:27] phaul: we have to somehow find a way so that you see proper error messages reported
[22:05:41] SegFaultAX: has joined #ruby
[22:05:43] phaul: what I did was the following: copied your source in a file, added require 'rspec/autorun' to the top, and removed (commented out the lines which weren't code
[22:06:07] phaul: then I ran it with $ ruby blah.rb ### blah.rb is the file...
[22:06:36] Swyper: require 'rspec/autorun' will just automatically run rspec I guess?
[22:06:38] phaul: it passed 4 tests, failed the rest and also gave error messages for each failure
[22:06:53] Swyper: neat I will do that
[22:07:31] gb_away: has joined #ruby
[22:07:38] Swyper: Rtyer$ ruby lib/hangman.rb
[22:07:38] Swyper: No examples found.
[22:07:38] Swyper: Finished in 0.00043 seconds (files took 0.09187 seconds to load)
[22:07:40] Swyper: 0 examples, 0 failures
[22:08:08] Swyper: I added require thing you did
[22:09:47] phaul: here's the file I ran: https://gist.github.com/phaul/b379092b81f3f29a92d6d1accd905c0c
[22:10:13] phaul: and here's the result: https://gist.github.com/phaul/592c9cef8410feafe207b5cd3e348872
[22:10:26] phaul: try running the same file, you have to see the same results
[22:13:44] doodleb35: has joined #ruby
[22:14:19] havenwood: Swyper: I can confirm. Running phaul's example above I get the same output.
[22:14:49] havenwood: except for the λ prompt ;)
[22:15:36] ramfjord: has joined #ruby
[22:16:01] phaul: https://github.com/subnixr/minimal defaults.. :)
[22:18:17] blackjid: has joined #ruby
[22:20:05] dar123: has joined #ruby
[22:21:09] Swyper: has joined #ruby
[22:22:12] havenwood: Swyper: When an Array is one-word strings, Ruby has a nice, readable shorthand: %w[cat dog bootcamp pizza]
[22:22:20] Swyper: has joined #ruby
[22:22:51] havenwood: Swyper: Also, consider freezing constants!: DICTIONARY = %w[cat dog bootcamp pizza].freeze
[22:24:04] havenwood: Swyper: It's common inside a class to use `self` to refer to the instance or `self.class` to refer to the class. That way, if you rename `Hangman` you only have to change it in one place.
[22:24:18] havenwood: self.class.random_word
[22:24:49] havenwood: Swyper: You have to define @guess_word before you can check its #length
[22:25:53] havenwood: Swyper: That first use of Array.new on line 6 is great, since it's properly using arguments. The second Array.new without arguments should instead be an Array literal: []
[22:26:01] havenwood: Swyper: @attempted_chars = []
[22:26:40] havenwood: Swyper: Remove parens from the end of methods without arguments. So `def secret_word` not `def secret_word()`.
[22:30:37] havenwood: There's a helper called `attr_reader` that can replace the methods on lines 10-25 that simply expose an instance variable of the same name.
[22:30:56] havenwood: `attr_reader :secret_word` is the same as `def secret_word; @secret_word; end`
[22:30:58] phaul: they are gone... Online courses depending on your background can be extremly hard I think.
[22:31:28] phaul: there is no direct feedback, you have to figure out on your own..
[22:31:37] havenwood: phaul: yeah, they go from new to Ruby to create your own class with a ton missing inbetween
[22:34:14] Swyper: has joined #ruby
[22:34:27] phaul: yeah. tbh, I want to encourage ppl and help them when they around, but when a bootcamp or such frees them from a couple of grand and promises that they will learn web and rails in 2 month.. oh well..
[22:37:47] doodlebug: has joined #ruby
[22:43:25] xtsee: has joined #ruby
[22:43:36] jenrzzz: has joined #ruby
[22:46:33] s3nd1v0g1us: has joined #ruby
[22:47:36] s3nd1v0g1us: has joined #ruby
[22:51:39] jelera: has joined #ruby
[22:53:51] jenrzzz: has joined #ruby
[22:54:52] bougyman: has joined #ruby
[22:58:54] laaron: has joined #ruby
[23:00:18] dsmythe: has joined #ruby
[23:07:47] doodleb65: has joined #ruby
[23:15:59] pupsikov: has joined #ruby
[23:28:08] jenrzzz: has joined #ruby
[23:40:17] Swyper: has joined #ruby
[23:43:46] doodlebug: has joined #ruby
[23:59:07] tpanarch1st: has joined #ruby