« Back to channel list

#ruby - 23 May 2017

« Back 1 day Forward 1 day »
[00:00:36] Puffball: has joined #ruby
[00:05:14] railswebdev: has joined #ruby
[00:07:14] jameswatling: has joined #ruby
[00:16:56] segmond: has joined #ruby
[00:20:56] ixti: has joined #ruby
[00:23:27] moombah567: has joined #ruby
[00:24:32] jamesaxl: has joined #ruby
[00:25:15] moombah567: has left #ruby: ()
[00:25:40] moombah567: has joined #ruby
[00:27:12] mim1k: has joined #ruby
[00:27:33] rakm: has joined #ruby
[00:28:05] moombah567: has left #ruby: ()
[00:29:39] cschneid_: has joined #ruby
[00:29:55] Cohedrin: has joined #ruby
[00:31:59] moombah567: has joined #ruby
[00:32:40] rdw200169__: has joined #ruby
[00:33:06] zzxc: Hey I'm sorry I have some what of newbie question. I'm getting "NameError uninitalized constant ____::Configuration" when I run rspec. Anyone have any idea's why?
[00:33:26] yirabbit_: has joined #ruby
[00:33:28] postmodern: has joined #ruby
[00:33:39] jusa: has joined #ruby
[00:33:42] zzxc: I have a require for it in my lib/____.rb file as well.
[00:35:53] GodFather: has joined #ruby
[00:36:23] duderonomy: has joined #ruby
[00:41:30] bmurt: has joined #ruby
[00:44:03] eightlimbed: has joined #ruby
[00:46:24] yirabbit_: has joined #ruby
[00:49:15] apparition: has joined #ruby
[00:52:08] skweek: has joined #ruby
[00:55:36] nobitanobi: has joined #ruby
[01:01:39] t-recx: has joined #ruby
[01:05:16] Pumukel: has joined #ruby
[01:05:26] DLSteve: has joined #ruby
[01:07:00] gizmore|2: has joined #ruby
[01:23:57] BubonicPestilenc: has joined #ruby
[01:24:02] cschneid_: has joined #ruby
[01:26:44] bronson: has joined #ruby
[01:26:48] jrafanie: has joined #ruby
[01:27:02] brent__: has joined #ruby
[01:28:23] hays: has joined #ruby
[01:30:40] Scriptonaut: has left #ruby: ()
[01:33:22] nobitanobi: has joined #ruby
[01:34:35] railswebdev: has joined #ruby
[01:40:43] cdg: has joined #ruby
[01:43:43] charliesome: has joined #ruby
[01:49:14] d^sh: has joined #ruby
[01:49:31] sp4rrow: has joined #ruby
[01:53:38] jackjackdripper: has joined #ruby
[01:53:55] jameswatling: has joined #ruby
[01:55:02] MarkBilk: I just did gem install rdoc-data and it took a very long time. But ri Array still says: Nothing known about Array.
[01:55:07] jackjackdripper: has joined #ruby
[01:57:39] apparition: has joined #ruby
[01:58:52] havenwood: MarkBilk: how'd you install Ruby
[02:00:18] havenwood: MarkBilk: Depending on how you did, there are various good ways to get the docs.
[02:00:32] DeeJayh: has joined #ruby
[02:00:46] havenwood: MarkBilk: Did you run?: rdoc-data --install
[02:02:32] lucz: has joined #ruby
[02:04:45] sp4rrow: has joined #ruby
[02:11:15] houhoulis: has joined #ruby
[02:13:09] railswebdev: has joined #ruby
[02:13:37] Jameser: has joined #ruby
[02:15:56] sp4rrow: has joined #ruby
[02:16:24] lucz: has joined #ruby
[02:20:24] genpaku: has joined #ruby
[02:21:09] ruby[bot]: -b *!*@gateway/web/freenode/ip.172.58.11.157$#ruby-banned
[02:26:49] bronson: has joined #ruby
[02:27:42] mim1k: has joined #ruby
[02:28:52] lucz: has joined #ruby
[02:29:18] DeeJayh: has joined #ruby
[02:31:33] izaac: has joined #ruby
[02:33:43] moombah567: has left #ruby: ()
[02:34:21] jusa: has joined #ruby
[02:39:49] Cohedrin: has joined #ruby
[02:41:08] cschneid_: has joined #ruby
[02:43:00] romeoh: has joined #ruby
[02:47:35] bheesham: has joined #ruby
[02:49:40] railswebdev: has joined #ruby
[02:49:41] belmoussaoui: has joined #ruby
[02:50:00] blackwind_123: has joined #ruby
[02:50:46] connor_goodwolf: has joined #ruby
[02:53:00] jphase: has joined #ruby
[02:56:31] milardovich: has joined #ruby
[02:57:53] moombah5_: has joined #ruby
[03:02:08] johnny56: has joined #ruby
[03:03:15] stormbytes: what's the easiest way to cut off the last ../foo/bar off a directory string?
[03:06:13] m1911: has joined #ruby
[03:09:58] Cohedrin: has joined #ruby
[03:10:18] jrafanie: has joined #ruby
[03:11:48] havenwood: stormbytes: give an example or two of what you mean? what input would result in what output?
[03:12:23] stormbytes: i was looking for /go/to/here => /go but found it already, using .split...join
[03:12:54] stormbytes: so far its day-1 back to Ruby from Javascript and its like.. wow... someone just walked in and opened up all the windows
[03:13:05] stormbytes: no promises await/sync CRAP
[03:13:49] stormbytes: straight forward, straight up. No needing a million copies of every dependency
[03:14:47] eightlimbed: has joined #ruby
[03:14:56] xall: has joined #ruby
[03:15:50] jusa: has joined #ruby
[03:16:49] boringcp1: has joined #ruby
[03:20:02] comet23: has joined #ruby
[03:21:08] enterprisey: has joined #ruby
[03:21:08] eam: you'd love event machine
[03:25:28] railswebdev: has joined #ruby
[03:26:14] patarr: has joined #ruby
[03:26:37] jrafanie: has joined #ruby
[03:35:48] DeeJayh: has joined #ruby
[03:37:51] nobitanobi: has joined #ruby
[03:39:31] charliesome: has joined #ruby
[03:40:14] lucz: has joined #ruby
[03:42:48] segmond: has joined #ruby
[03:44:35] gix: has joined #ruby
[03:45:58] bheesham: has joined #ruby
[03:51:29] MarkBilk: havenwood: Thanks! rdoc-data --install fixed it.
[03:52:06] ResidentBiscuit: has joined #ruby
[03:55:16] MarkBilk: btw, I installed the devkit and installed hpricot.gem from source. But most of the methods don't work. So I'm learning more Ruby so I can deal with Nokogiri.
[04:02:12] DeeJayh: has joined #ruby
[04:04:44] kassav__: has joined #ruby
[04:06:33] nofxxxx: has joined #ruby
[04:06:48] roamingdog: has joined #ruby
[04:12:07] auzty: has joined #ruby
[04:14:34] boringcpg: has joined #ruby
[04:17:28] dasher00: has joined #ruby
[04:21:19] railswebdev: has joined #ruby
[04:21:36] kristoff_: has joined #ruby
[04:24:31] Stan: has joined #ruby
[04:24:36] gizmore|2: has joined #ruby
[04:24:45] __Yiota: has joined #ruby
[04:24:52] Zarthus_: has joined #ruby
[04:25:24] dasher00: has joined #ruby
[04:25:42] hays: has joined #ruby
[04:25:50] unsymbol: has joined #ruby
[04:26:00] hays: has joined #ruby
[04:27:40] bronson: has joined #ruby
[04:28:12] mim1k: has joined #ruby
[04:28:21] davic: has joined #ruby
[04:30:12] Dry_Lips: has joined #ruby
[04:30:12] Dry_Lips: has joined #ruby
[04:30:29] Guest37310: has joined #ruby
[04:31:31] latemus: has joined #ruby
[04:35:00] yirabbit_: has joined #ruby
[04:35:37] renchan: has joined #ruby
[04:38:02] bkxd: has joined #ruby
[04:41:47] lucz: has joined #ruby
[04:43:34] uZiel: has joined #ruby
[04:47:35] cfec0b8d: has joined #ruby
[04:50:37] jenrzzz: has joined #ruby
[04:50:37] jenrzzz: has joined #ruby
[04:52:28] BTRE: has joined #ruby
[04:53:54] Cohedrin: has joined #ruby
[04:56:57] ur5us: has joined #ruby
[05:01:38] xall: has joined #ruby
[05:16:47] jusa: has joined #ruby
[05:19:48] pankaj_: has joined #ruby
[05:20:22] ascarter: has joined #ruby
[05:24:37] ascarter: has joined #ruby
[05:25:39] rdavila: has joined #ruby
[05:27:10] patarr: has joined #ruby
[05:29:44] cschneid_: has joined #ruby
[05:37:58] rdavila: has joined #ruby
[05:38:39] nobitanobi: has joined #ruby
[05:40:55] kspencer: Unexpected error while processing request: undefined method `bytesize' for [...]:Array
[05:41:11] kspencer: I'm stumped currently on why this is happening
[05:42:19] kspencer: I don't have 'bytesize' on anything connected to it, but I also don't get a line to go to either
[05:42:57] DeeJayh: has joined #ruby
[05:42:58] baweaver: &ri Array#bytesize
[05:42:58] `derpy: No results
[05:43:12] bheesham: has joined #ruby
[05:43:55] nickjj: has joined #ruby
[05:43:55] baweaver: much past that I'd have to see the associated code where it's happening
[05:46:38] jackjackdripper: has joined #ruby
[05:50:06] kspencer: https://gist.github.com/IotaSpencer/310cc1084b232e557251000fef473049#file-girc-rb-L99-L138
[05:50:56] anisha: has joined #ruby
[05:51:45] baweaver: That may be relevant: https://github.com/puma/puma/issues/536
[05:51:50] baweaver: poking around the gist
[05:52:51] baweaver: Might need to return an OK response at the end
[06:00:35] normie1: has joined #ruby
[06:01:29] dionysus69: has joined #ruby
[06:01:52] Mortomes|Work: has joined #ruby
[06:10:45] dminuoso: baweaver! baweaver!
[06:10:48] dminuoso: I dreamt about you last night.
[06:10:59] dminuoso: My entire dream was filled with bad puns and everything.
[06:11:05] dminuoso: You have a bad influence on me.
[06:12:04] mtkd: has joined #ruby
[06:19:28] dionysus69: response.to_json.keys tells me theres no method keys for string
[06:19:40] dionysus69: but i expect json not string :)
[06:27:08] yxhuvud: has joined #ruby
[06:29:01] bronson: has joined #ruby
[06:29:05] alazred: has joined #ruby
[06:29:06] alazred: has joined #ruby
[06:31:28] Doow: has joined #ruby
[06:33:58] vali: has joined #ruby
[06:34:59] manveru: dionysus69: to_json returns String :)
[06:35:49] manveru: not sure why you'd expect otherwise...
[06:35:53] ineb: has joined #ruby
[06:40:01] charliesome: has joined #ruby
[06:40:15] stoffus: has joined #ruby
[06:40:31] dionysus69: i thought it would return a hash or something
[06:40:52] dionysus69: now i have to do this response = JSON.parse(response.to_json)
[06:41:18] conta: has joined #ruby
[06:41:42] djbkd: has joined #ruby
[06:41:51] manveru: why not just `response`?
[06:42:32] manveru: tbh i don't know what response class you're talking about, and what you want to get from it... so hard to give advise :)
[06:42:40] biberu: has joined #ruby
[06:43:14] blackwind_123: has joined #ruby
[06:43:14] lucz: has joined #ruby
[06:43:18] Bock: has joined #ruby
[06:44:44] dionysus69: response is <Google::Apis::SheetsV4::BatchClearValuesResponse:0x0055ad0630a170 @spreadsheet_id="1btbbWrx-i99BxMO0ml1IVM2MNvi5iyavJ-rcoL1RPFA", @cleared_ranges=["Sheet1!A10", "Sheet1!B10"]>
[06:45:12] dionysus69: to json gives {"spreadsheetId"=>"1btbbWrx-i99BxMO0ml1IVM2MNvi5iyavJ-rcoL1RPFA", "clearedRanges"=>["Sheet1!A10", "Sheet1!B10"]}
[06:45:22] dionysus69: then I parse it to convert to hash
[06:45:45] dionysus69: returns : colon notation instead of =>, that is after JSON.parse sorry
[06:47:09] anisha: has joined #ruby
[06:49:15] herwin: it looks like that class has a to_h method
[06:49:39] manveru: http://www.rubydoc.info/gems/google-api-client/Google/Apis/SheetsV4/BatchClearValuesResponse
[06:56:07] gothicsouth: has joined #ruby
[06:58:07] ascarter: has joined #ruby
[07:01:16] dionysus69: herwin: oh thanks, unfortunately i am still lil awkward with ruby :\ not enough experience
[07:01:17] Cohedrin: has joined #ruby
[07:04:52] KeyJoo: has joined #ruby
[07:09:29] anisha: has joined #ruby
[07:10:06] Mang0es: has joined #ruby
[07:10:34] jgnagy: has joined #ruby
[07:12:39] insanedreamer: has joined #ruby
[07:15:04] nobitanobi: has joined #ruby
[07:17:07] andikr: has joined #ruby
[07:17:37] AlexRussia: has joined #ruby
[07:17:38] jusa: has joined #ruby
[07:17:49] puppet645: has joined #ruby
[07:17:59] nickjj_: has joined #ruby
[07:19:43] blackmes1: has joined #ruby
[07:20:47] Mang0es: has joined #ruby
[07:21:05] kassav_: has joined #ruby
[07:22:50] dionysus69: I am making methods like this for google api spreadsheets and I will probably do same for youtube api, is it a good idea to make a gem out of it later? would be my first gem and I want some experienced opinion :) https://gist.github.com/anonymous/88f80fd48b37916edd6cd41825e628e6
[07:24:41] dionysus69: let me know if I could improve on something and if anyone would ever use such functionality, I think it would save lots of time for other people in the future
[07:26:06] charliesome: has joined #ruby
[07:28:03] patarr: has joined #ruby
[07:28:12] mark_66: has joined #ruby
[07:29:27] nunchuck: has joined #ruby
[07:30:10] ecuanaso: has joined #ruby
[07:33:46] jenrzzz: has joined #ruby
[07:33:47] jenrzzz: has joined #ruby
[07:38:19] bkxd: has joined #ruby
[07:38:59] gusrub: has joined #ruby
[07:42:07] ur5us: has joined #ruby
[07:42:38] fxa: has joined #ruby
[07:42:39] MarkBilk_: has joined #ruby
[07:43:38] bkxd: has joined #ruby
[07:44:45] fxa90id: has joined #ruby
[07:44:45] fxa90id: has joined #ruby
[07:47:06] morfin: has joined #ruby
[07:47:14] morfin: i do this:
[07:48:07] marr: has joined #ruby
[07:48:15] morfin: https://paste.ubuntu.com/24631286/
[07:48:18] nertzy: has joined #ruby
[07:48:40] morfin: but it does not build - any suggestions? Some hunks fail
[07:51:04] dionysus69: first of all something is wrong with the text you posted and this isn't related to ruby in any way go to #security or #ubuntu channels
[07:51:26] randdomone: has joined #ruby
[07:51:48] morfin: it is related
[07:51:50] pandaant: has joined #ruby
[07:52:43] randdomone: I got error " syntax error, unexpected '.' [text&.decoded, html&.decoded] " with ^ pointing at . after text& while runing some aplication, may it be caused by wrong version of ruby?
[07:53:01] morfin: 1. This is builduing ruby with rbenv after patching. 2. I use Arch already. 3. It's related to Ruby(MRI).
[07:53:44] mikecmpbll: has joined #ruby
[07:54:57] dionysus69: morfin: anyways something is wrong with paste you posted, post it on pastebin or gist.github.com
[07:55:11] morfin: it's not wrong - that's just very long command
[07:55:44] morfin: cat <patches_list> | rbenv install --patch 2.3.0
[07:58:50] Beams: has joined #ruby
[07:59:38] Bhootrk_: has joined #ruby
[08:01:47] antgel: has joined #ruby
[08:09:42] ur5us: has joined #ruby
[08:12:00] burgestrand: has joined #ruby
[08:12:02] romeoh_: has joined #ruby
[08:12:33] dminuoso: morfin: How do you even write Ruby without templates?
[08:19:15] morfin: i found only one place where some guy wrote patches for Ruby to build version 2.3.0 with recent OpenSSL 1.1 but that does not seem to be working :(
[08:19:19] tvw: has joined #ruby
[08:21:27] romank: has joined #ruby
[08:22:45] mim1k: has joined #ruby
[08:25:23] romank_: has joined #ruby
[08:25:33] nertzy: has joined #ruby
[08:28:29] User458764: has joined #ruby
[08:29:55] bronson: has joined #ruby
[08:32:06] aufi: has joined #ruby
[08:36:23] romank: has joined #ruby
[08:36:47] morfin: dminuoso, you don't need templates when can reopen classes :)(
[08:39:43] dminuoso: Template all the things.
[08:40:03] dminuoso: Ever since my feature requests to add a<b> to the syntax of Ruby has been rejected, I stopped writing Ruby code.
[08:41:05] Beams: has joined #ruby
[08:42:57] alazred: has joined #ruby
[08:42:58] alazred: has joined #ruby
[08:43:15] aupadhye: has joined #ruby
[08:44:37] lucz: has joined #ruby
[08:46:52] lxsameer: has joined #ruby
[08:50:34] nicoulaj: has joined #ruby
[08:50:44] bascht: has joined #ruby
[08:50:48] brucebag: has joined #ruby
[08:50:48] brucebag: has joined #ruby
[08:50:49] apeiros: has joined #ruby
[08:50:52] nikivi: has joined #ruby
[08:50:58] kegster: has joined #ruby
[08:51:03] workmad3: has joined #ruby
[08:51:04] Morrolan: has joined #ruby
[08:51:07] x0F: has joined #ruby
[08:51:15] A124: has joined #ruby
[08:51:17] pragmatism: has joined #ruby
[08:51:19] Papierkorb: has joined #ruby
[08:51:23] romank: has joined #ruby
[08:51:31] Scient: has joined #ruby
[08:51:40] jasondotstar: has joined #ruby
[08:52:15] JoshL: has joined #ruby
[08:52:37] Archrover: has joined #ruby
[08:52:45] akkad: has joined #ruby
[08:53:23] rgr: has joined #ruby
[08:53:43] DoubleMalt: has joined #ruby
[08:54:15] vqrs: has joined #ruby
[08:55:33] im0nde: has joined #ruby
[08:58:01] modin: has joined #ruby
[09:02:00] sonOfRa: has joined #ruby
[09:09:40] romank: has joined #ruby
[09:11:19] voltai[m]: has joined #ruby
[09:11:19] heftig: has joined #ruby
[09:11:19] Tagami[m]: has joined #ruby
[09:11:19] KevinMGranger: has joined #ruby
[09:11:20] turt2live: has joined #ruby
[09:11:20] Giphy[m]: has joined #ruby
[09:11:20] M107262[m]: has joined #ruby
[09:11:20] daveyboi[m]: has joined #ruby
[09:11:20] johnson[m]: has joined #ruby
[09:11:20] thulsa_legume[m]: has joined #ruby
[09:11:20] kp666[m]: has joined #ruby
[09:11:20] aviraldg: has joined #ruby
[09:11:20] jonjits[m]: has joined #ruby
[09:11:20] intermo[m]: has joined #ruby
[09:11:21] jakebriggs[m]: has joined #ruby
[09:11:21] dman[m]: has joined #ruby
[09:11:26] el_ocho[m]: has joined #ruby
[09:11:27] testnick[m]: has joined #ruby
[09:11:28] velu_aon[m]: has joined #ruby
[09:13:04] dionysus69: can you help with one method I am trying to make use of but I can't already for an hour? its https://developers.google.com/sheets/api/reference/rest/v4/spreadsheets.values/batchUpdate cant understand what goes data = []
[09:13:24] dionysus69: documentation says one or more valueRanges, I added one valuerange and it just dies
[09:14:56] dionysus69: if I insert one value range it says failed to do each with index, that indicates it needs an array
[09:15:20] dionysus69: then i put value range in an array and error becomes "expected valuerange but didn't get"
[09:15:36] User458764: has joined #ruby
[09:15:49] dionysus69: https://gist.github.com/anonymous/20fc151176e541b6ed003d7d7058bcb8
[09:16:56] dionysus69: badRequest: Invalid data[0]: ValueRange.range is required but not specified
[09:16:58] davic: has joined #ruby
[09:18:31] jusa: has joined #ruby
[09:25:57] blackmes1: has joined #ruby
[09:27:37] fusta: has joined #ruby
[09:28:56] patarr: has joined #ruby
[09:30:40] belmoussaoui_: has joined #ruby
[09:31:29] pankaj_: has joined #ruby
[09:31:43] morfin: i guess if you need templates you can do C++ )
[09:32:07] morfin: but writing web apps with C++ could be such pain
[09:35:29] quobo: has joined #ruby
[09:37:43] romank: has joined #ruby
[09:38:10] charliesome: has joined #ruby
[09:39:53] gusrub: has joined #ruby
[09:44:15] blackmes1: has joined #ruby
[09:47:50] nhhc: has joined #ruby
[09:49:00] cfec0b8d: has joined #ruby
[09:49:28] Mortomes|Work: has joined #ruby
[09:49:59] jenrzzz: has joined #ruby
[09:49:59] jenrzzz: has joined #ruby
[09:54:45] morfin: not sure how can i replace mail....somedomain....com..ua to mail.somedomain.com.ua with regexes hmm
[09:56:07] morfin: after @ :)
[09:56:14] ljarvis: morfin: can you be more specific?
[09:56:21] ljarvis: actually "mail....somedomain....com..ua" ?
[09:57:00] ljarvis: or are those placeholders?
[09:57:04] morfin: test@mail....somedomain....com..ua => test@mail.somedomain.com.ua
[09:57:19] morfin: remove all multiple dots by single
[09:57:21] ljarvis: >> "test@mail....somedomain....com..ua".squeeze(".")
[09:57:22] ruby[bot]: ljarvis: # => "test@mail.somedomain.com.ua" (https://eval.in/803372)
[09:57:42] morfin: but assume there could be multiple dots before @
[09:57:51] morfin: can split and join
[09:57:54] ahrs: has joined #ruby
[09:57:59] herwin: makes me wonder what the actual problem is
[09:58:22] ljarvis: it's a weird case
[09:58:29] morfin: user is an idiot
[09:58:47] morfin: sometimes type myname@gmail..com
[09:58:56] ljarvis: you can't catch all user errors
[09:59:08] morfin: i try to catch as many as possible )
[09:59:20] Lamentin12: has joined #ruby
[09:59:24] ljarvis: that's not a good idea imo but fair enough, you know how to achieve this now
[09:59:58] nowhere_man: has joined #ruby
[10:00:31] herwin: <input type="email"> would catch it as well
[10:02:20] DeeJayh: has joined #ruby
[10:02:28] Beams: has joined #ruby
[10:02:28] statikowsky: has joined #ruby
[10:03:43] Bhootrk_: has joined #ruby
[10:03:47] govg: has joined #ruby
[10:05:38] Bhootrk_: has joined #ruby
[10:10:42] cschneid_: has joined #ruby
[10:19:28] jenrzzz: has joined #ruby
[10:19:28] jenrzzz: has joined #ruby
[10:23:39] ferr: has joined #ruby
[10:23:45] olspookishmagus: has joined #ruby
[10:26:11] nertzy: has joined #ruby
[10:26:49] patarr: has joined #ruby
[10:28:15] User458764: has joined #ruby
[10:31:05] bronson: has joined #ruby
[10:31:57] rgr: has joined #ruby
[10:32:38] DeeJayh: has joined #ruby
[10:34:32] nertzy: has joined #ruby
[10:34:42] romank: has joined #ruby
[10:46:26] lucz: has joined #ruby
[10:48:38] Fernando-Basso: has joined #ruby
[10:54:37] xall: has joined #ruby
[10:54:40] User458764: has joined #ruby
[11:09:22] romank: has joined #ruby
[11:14:59] bheesham: has joined #ruby
[11:17:36] User458764: has joined #ruby
[11:18:33] antgel: has joined #ruby
[11:19:24] jusa: has joined #ruby
[11:20:23] znz_jp: has joined #ruby
[11:23:38] govg: has joined #ruby
[11:30:32] cb: has joined #ruby
[11:33:31] fusta: has joined #ruby
[11:37:18] HoierM: has joined #ruby
[11:39:53] HoierM_: has joined #ruby
[11:41:29] ldnunes: has joined #ruby
[11:43:18] ddffg: has joined #ruby
[11:45:06] mikecmpbll: has joined #ruby
[11:46:05] bkxd: has joined #ruby
[11:46:59] lucz: has joined #ruby
[11:47:14] brent__: has joined #ruby
[11:49:59] belmoussaoui: has joined #ruby
[11:54:39] pusewicz: has joined #ruby
[12:01:17] jrafanie: has joined #ruby
[12:06:05] zzxc: has joined #ruby
[12:08:20] Lamentin12: has joined #ruby
[12:08:23] statikowsky: has joined #ruby
[12:10:05] im0nde: has joined #ruby
[12:10:09] Lamentin12: has joined #ruby
[12:11:18] cschneid_: has joined #ruby
[12:12:18] tAn: has joined #ruby
[12:12:54] fxa90id: has joined #ruby
[12:12:55] fxa90id: has joined #ruby
[12:13:47] belmoussaoui: has joined #ruby
[12:13:53] tekk: has joined #ruby
[12:14:08] arvindsaik: has joined #ruby
[12:14:10] oz: has joined #ruby
[12:14:23] DarkBushido: has joined #ruby
[12:14:23] arthurnn: has joined #ruby
[12:14:23] DarkBushido: has joined #ruby
[12:14:32] sinduck: has joined #ruby
[12:14:34] mgorbach: has joined #ruby
[12:14:34] pragmatism: has joined #ruby
[12:14:46] hfp: has joined #ruby
[12:15:01] nanoz: has joined #ruby
[12:15:04] Dreamer3: has joined #ruby
[12:15:11] bascht: has joined #ruby
[12:15:15] Archrover: has joined #ruby
[12:15:36] charliesome: has joined #ruby
[12:16:45] antgel: has joined #ruby
[12:18:25] jrafanie: has joined #ruby
[12:20:58] dionysus69: why cant I require module by name?
[12:21:27] tobiasvl: dionysus69: what do you mean?
[12:22:23] dionysus69: I cant even require it by filename
[12:22:32] dionysus69: files are in same dir (home)
[12:22:47] dionysus69: require "helpers.rb"
[12:23:36] cschneid_: has joined #ruby
[12:23:55] SpComb: require './helpers' or require_relative 'helpers'
[12:24:30] SpComb: require normally looks in the $LOAD_PATH
[12:25:50] dionysus69: ok now file is required
[12:25:57] dionysus69: but i still get undefined method
[12:26:30] dionysus69: I just included a method within a module which i imported
[12:26:43] dionysus69: it should be accessible by the main file shouldn't it?
[12:27:00] tobiasvl: how are ypu calling it?
[12:28:39] dionysus69: just like before
[12:28:52] dionysus69: do I need to give it module name before the call?
[12:28:57] volty: has joined #ruby
[12:30:15] ledestin: has joined #ruby
[12:30:19] KevinMGranger: has joined #ruby
[12:30:19] voltai[m]: has joined #ruby
[12:30:19] M107262[m]: has joined #ruby
[12:30:19] heftig: has joined #ruby
[12:30:19] Giphy[m]: has joined #ruby
[12:30:19] Tagami[m]: has joined #ruby
[12:30:20] jonjits[m]: has joined #ruby
[12:30:20] thulsa_legume[m]: has joined #ruby
[12:30:20] aviraldg: has joined #ruby
[12:30:20] johnson[m]: has joined #ruby
[12:30:20] jakebriggs[m]: has joined #ruby
[12:30:20] turt2live: has joined #ruby
[12:30:20] daveyboi[m]: has joined #ruby
[12:30:20] intermo[m]: has joined #ruby
[12:30:20] dman[m]: has joined #ruby
[12:30:21] kp666[m]: has joined #ruby
[12:30:26] el_ocho[m]: has joined #ruby
[12:30:27] velu_aon[m]: has joined #ruby
[12:30:27] testnick[m]: has joined #ruby
[12:31:04] BSaboia: has joined #ruby
[12:31:08] dionysus69: I had to add self to all module methods
[12:31:15] dionysus69: and modulename in front of the call
[12:31:27] dionysus69: if there's a better way let me know please :)
[12:31:58] bronson: has joined #ruby
[12:32:21] aurelien: has joined #ruby
[12:34:20] jeffreylevesque: has joined #ruby
[12:35:29] bkxd: has joined #ruby
[12:37:39] t-recx: has joined #ruby
[12:37:55] olivier__: has joined #ruby
[12:38:24] Jameser: has joined #ruby
[12:39:57] mniip: has left #ruby: ("This page is intentionally left blank")
[12:42:13] cb: has joined #ruby
[12:42:40] blackmes1: has joined #ruby
[12:43:00] cek: has joined #ruby
[12:43:20] mim1k: has joined #ruby
[12:43:57] Burgestr_: has joined #ruby
[12:44:00] pupsicle: has joined #ruby
[12:44:13] jrafanie: has joined #ruby
[12:46:08] olivier__: has joined #ruby
[12:46:14] cek: help me with enums, please. I'm being stupid today. Want to implement an enum for a looper that returns bulk objects: each=->{ get_bulk(count){|array| yield(array) } } . so for meh.take(1) it returns array and not array.take(1).
[12:47:02] User458764: has joined #ruby
[12:47:19] MarkBilk: has joined #ruby
[12:47:29] cek: i'm in control of get_bulk, but not in control of its underlying method. that method is returning array objects, in varying count
[12:47:47] User458764: has joined #ruby
[12:48:02] lucz: has joined #ruby
[12:48:03] cek: Just don't tell me I'll have to implement my owne enumerable class
[12:48:09] francuz: has joined #ruby
[12:52:05] bheesham: has joined #ruby
[12:54:19] olivier__: has joined #ruby
[12:54:33] vondruch: has left #ruby: ()
[12:54:41] yeticry_: has joined #ruby
[12:54:48] ramortegui: has joined #ruby
[12:55:55] statikowsky: has joined #ruby
[12:56:03] vondruch: has joined #ruby
[12:56:06] cek: to illustrate, https://repl.it/IMzr
[12:57:25] Jameser: has joined #ruby
[13:01:35] cek: https://repl.it/IMzr/1 , rather
[13:05:17] Jameser: has joined #ruby
[13:05:26] mim1k: has joined #ruby
[13:06:50] govg: has joined #ruby
[13:09:08] belmoussaoui_: has joined #ruby
[13:14:18] Jameser: has joined #ruby
[13:15:22] DeeJayh: has joined #ruby
[13:15:30] haylon: has joined #ruby
[13:16:04] omphe: has joined #ruby
[13:17:22] bkxd: has joined #ruby
[13:20:18] jusa: has joined #ruby
[13:26:21] cdg: has joined #ruby
[13:31:27] DLSteve: has joined #ruby
[13:31:59] blackmes1: has joined #ruby
[13:32:06] mustmodify___: has joined #ruby
[13:33:14] mustmodify___: It's about time for me to get a new machine. Obviously I want an SSD and a ton of RAM. But are there any specific features in terms of hardware architecture that specifically speed up developer work? I can't think of anything else.
[13:36:05] ineb: 3 screens and a gpu which can do that
[13:36:58] nadir: has joined #ruby
[13:37:36] KeyJoo: has joined #ruby
[13:38:26] Jameser: has joined #ruby
[13:40:57] RedNifre: has joined #ruby
[13:41:32] oleo: has joined #ruby
[13:41:42] RedNifre: Hey there. If I have a list of objects that have a name and an ID, what's the most elegant way to get the ID if I only have a name?
[13:42:25] Ryzokuken: has joined #ruby
[13:42:44] dviola: has joined #ruby
[13:43:30] mustmodify___: I have 3 screens. :)
[13:43:35] mustmodify___: Touch screens are awesome, btw.
[13:44:12] mustmodify___: I didn't do the best job of choosing a graphics card last time. That's one thing that I definitely will focus on next time.
[13:47:16] alibby1: has joined #ruby
[13:47:23] robnester: has joined #ruby
[13:47:48] jrgifford: has joined #ruby
[13:55:42] railswebdev: has joined #ruby
[13:56:28] jphase: has joined #ruby
[13:59:11] griffindy: has joined #ruby
[13:59:51] bkxd: has joined #ruby
[14:00:37] ur5us: has joined #ruby
[14:01:04] __Yiota: has joined #ruby
[14:02:07] gf3: has joined #ruby
[14:06:12] davic: has joined #ruby
[14:08:48] govg: has joined #ruby
[14:16:51] shinnya: has joined #ruby
[14:17:36] blackmes1: has joined #ruby
[14:19:16] jrafanie: has joined #ruby
[14:21:40] ResidentBiscuit: has joined #ruby
[14:22:04] bronson: has joined #ruby
[14:22:05] ResidentBiscuit: has joined #ruby
[14:22:33] nanoz]: has joined #ruby
[14:22:35] ResidentBiscuit: has joined #ruby
[14:22:38] AlexRussia: has joined #ruby
[14:23:05] ResidentBiscuit: has joined #ruby
[14:23:35] ResidentBiscuit: has joined #ruby
[14:24:00] ResidentBiscuit: has joined #ruby
[14:28:46] gusrub: has joined #ruby
[14:30:54] mdw: has joined #ruby
[14:31:24] chouhoulis: has joined #ruby
[14:32:00] chouhoul_: has joined #ruby
[14:32:30] robneste-: has joined #ruby
[14:32:39] mikecmpb_: has joined #ruby
[14:32:54] mim1k: has joined #ruby
[14:33:56] gothicsouth: has joined #ruby
[14:35:17] duderonomy: has joined #ruby
[14:36:07] gchristensen: has joined #ruby
[14:36:31] gchristensen: hi, I'd like to force writes to stdout go also to stderr from within a script. is this possible, or must I do it from outside?
[14:39:40] tgragnato: has joined #ruby
[14:39:44] cschneid_: has joined #ruby
[14:41:06] konsolebox: has joined #ruby
[14:42:13] ljarvis: gchristensen: you want to write to *both*?
[14:42:29] mustmodify___: has left #ruby: ()
[14:43:13] ljarvis: RedNifre: are the names unique?
[14:43:23] gchristensen: sorry, rereading my question it is a word salad. I want all writes to stdout to be written to the same file descriptor as stderr instead
[14:43:24] jphase: has joined #ruby
[14:43:26] oborot_: has joined #ruby
[14:43:27] kassav__: has joined #ruby
[14:45:36] ljarvis: gchristensen: you can change $stdout
[14:45:54] gchristensen: like `$stdout = $stderr` ? will that also update STDOUT?
[14:46:51] ljarvis: the idea is that you should be able to reset $stdout to STDOUT (i.e. it does not change)
[14:47:02] ljarvis: it is.. *sunglasses* constant
[14:47:24] tlaxkit: has joined #ruby
[14:47:51] gchristensen: yeah I was worried about that
[14:48:06] ljarvis: if it doubt, give it a shot
[14:49:51] bheesham: has joined #ruby
[14:50:06] patarr: has joined #ruby
[14:50:21] gchristensen: we use STDOUT and overrwrite $stdout to STDOUT all over the place
[14:51:43] gchristensen: my issue is some debug logging is not synchronized with a deadlock we're receiving from ruby, which is making it difficult to understand the flow. $stdout.sync isn't helping either, because of other buffering going on
[14:52:05] cfec0b8d: has joined #ruby
[14:55:12] rippa: has joined #ruby
[14:57:32] belmoussaoui_: has joined #ruby
[14:58:01] robnester: has joined #ruby
[14:59:06] patarr1: has joined #ruby
[15:00:07] jrafanie: has joined #ruby
[15:01:59] AlexRussia_: has joined #ruby
[15:02:03] dionysus69: has joined #ruby
[15:02:04] jgnagy: has joined #ruby
[15:02:30] eputnam: has joined #ruby
[15:04:50] theunraveler: has joined #ruby
[15:08:12] fusta: has joined #ruby
[15:08:23] romank: has joined #ruby
[15:10:07] burgestrand: has joined #ruby
[15:10:18] mikecmpbll: has joined #ruby
[15:13:27] yeticry: has joined #ruby
[15:17:01] jackrandom: has joined #ruby
[15:17:57] gothicsouth: has joined #ruby
[15:21:10] jusa: has joined #ruby
[15:21:15] romank: has joined #ruby
[15:21:17] cschneid_: has joined #ruby
[15:23:06] cbyrda: has joined #ruby
[15:28:23] mach_kernel: has joined #ruby
[15:28:37] ascarter: has joined #ruby
[15:30:32] robneste-: has joined #ruby
[15:30:56] gma: has joined #ruby
[15:31:13] mach_kernel: wanted to get some feedback on a library i made
[15:31:21] mach_kernel: it's a wrapper on top of cancan abilities
[15:31:22] mach_kernel: https://github.com/mach-kernel/warhol
[15:31:54] mach_kernel: on new projects most people would likely elect to use pundit, but i've found it helpful to use this kind of pattern when refactoring existing code (e.g. that already uses cancan)
[15:35:15] uZiel: has joined #ruby
[15:36:23] blackmes1: has joined #ruby
[15:37:52] bambanx: has joined #ruby
[15:38:07] tlaxkit: has joined #ruby
[15:38:26] ozzy3: has joined #ruby
[15:38:30] ozzy3: hey peoples
[15:38:30] d10n-work: has joined #ruby
[15:38:40] ozzy3: can u say some commands for nick
[15:39:58] brent__: has joined #ruby
[15:40:48] ldnunes: has joined #ruby
[15:41:40] mikecmpbll: has joined #ruby
[15:44:29] mikecmpbll: has joined #ruby
[15:44:39] ozzy3: has left #ruby: ()
[15:51:29] mtkd: has joined #ruby
[15:51:34] ikopico: some commands for nick
[15:51:35] FastJack_: has joined #ruby
[15:53:06] theunraveler: has joined #ruby
[15:53:48] chouhoulis: has joined #ruby
[15:54:41] Lewix: has joined #ruby
[15:54:51] Lewix: hey people, it's been ages I haven't touched ruby
[15:55:12] uZiel: has joined #ruby
[15:55:48] Lewix: surviving?
[15:55:53] dionysus69: def method(param1, **params)
[15:55:53] dionysus69: is this header legit ? in docs I see only one * for "rest" arguments
[15:56:05] mim1k: has joined #ruby
[15:56:55] Lewix: dionysus69: I think one is legit, the splat operator
[15:57:34] chouhoulis: has joined #ruby
[15:58:18] dionysus69: lewix: ok ye just checked and two stars gives syntax error
[15:58:25] gusrub: has joined #ruby
[15:58:28] dionysus69: google docs has a bug then https://developers.google.com/youtube/v3/quickstart/ruby
[15:59:02] Lewix: what's the difference between class Color; def Color.each; end and class Color; def each; end. From memory, the forme is a instance methods that we can use after including enumerable and the later is a class methods;
[15:59:11] Lewix: the question is why would we use the later?
[15:59:33] lucz: has joined #ruby
[16:00:17] raspado: has joined #ruby
[16:00:38] sepp2k: has joined #ruby
[16:01:02] Lewix: def Color.each; @hash.each {|k,v| yield(k,v)};end => can you explain this, memory doesn't help much
[16:01:06] Lewix: ACTION is getting old
[16:01:15] ltem: has joined #ruby
[16:01:40] Lewix: never mind I just understood it as I was writing
[16:02:08] Lewix: I'll be back, gotta reboot
[16:02:24] marxarelli: has joined #ruby
[16:03:07] lewis: has joined #ruby
[16:06:31] mark_66: has left #ruby: ("PART #elixir-lang :PART #crystal-lang :QUIT :Leaving.")
[16:06:43] ddffg: has joined #ruby
[16:07:14] yqt: has joined #ruby
[16:08:15] ineb: has joined #ruby
[16:10:00] baweaver: lewis: how much of it do you understand?
[16:11:08] gheegh: has joined #ruby
[16:11:55] hobodave: has joined #ruby
[16:12:42] MrBusiness: has joined #ruby
[16:13:06] baweaver: Essentially you're defining each for Color in a way that yields the key and value of @hash to whatever block is passed to it
[16:14:08] nitric: has joined #ruby
[16:14:14] baweaver: So: color.each { |k,v| puts "Got a #{k} and a #{v} from @hash!" }
[16:14:34] baweaver: for a very lose definition of it
[16:16:00] baweaver: lewis: that make sense?
[16:16:57] govg: has joined #ruby
[16:20:21] haylon: has joined #ruby
[16:22:20] [Butch]: has joined #ruby
[16:22:53] jrafanie: has joined #ruby
[16:23:03] ascarter: has joined #ruby
[16:25:29] negatifze: has joined #ruby
[16:28:20] ineb: has joined #ruby
[16:28:52] cam27: has joined #ruby
[16:29:05] Derperperd: has joined #ruby
[16:29:12] nobitanobi: has joined #ruby
[16:29:25] kassav_: has joined #ruby
[16:31:09] psychicist__: has joined #ruby
[16:31:15] bkxd: has joined #ruby
[16:31:35] gchristensen: has left #ruby: ("WeeChat 0.4.2")
[16:33:56] psychicist__: has joined #ruby
[16:34:29] ddffg: has joined #ruby
[16:38:12] rgr_: has joined #ruby
[16:38:22] Derperperd: has joined #ruby
[16:42:35] AlexRussia_: has joined #ruby
[16:47:42] jackrandom: has joined #ruby
[16:50:46] muelleme: has joined #ruby
[17:01:25] Cohedrin: has joined #ruby
[17:01:57] nobitano_: has joined #ruby
[17:04:42] fusta: has joined #ruby
[17:05:31] nowhere_man: has joined #ruby
[17:06:10] dionysus69: how do I pass args to trollop
[17:06:20] dionysus69: documentation is so screwed up............
[17:06:35] haylon: has joined #ruby
[17:07:07] w4x: has joined #ruby
[17:07:53] w4x: Hi all o/
[17:13:33] hahuang65: has joined #ruby
[17:14:39] rkazak: has joined #ruby
[17:15:39] w4x: hi havenwood :)
[17:15:40] havenwood: dionysus69: try Slop
[17:15:42] skweek: has joined #ruby
[17:15:50] havenwood: dionysus69: https://github.com/leejarvis/slop
[17:15:57] havenwood: Or good ole OptionParser
[17:16:04] haylon: has joined #ruby
[17:16:28] w4x: apologies to jump straight in with a question , but wondering if someone could help me or tell me if this is possible
[17:17:45] w4x: im a total noob to Ruby , but tried to get as much reading and research under my best as i can , i essentially want to take output from a program called multimon-ng and pipe it into a sinatra / rails application. does anyone know if this is possible or where to start as my google searches have turned up 0 results
[17:17:52] tAn: has joined #ruby
[17:22:01] jusa: has joined #ruby
[17:22:06] ascarter: has joined #ruby
[17:23:50] patarr: has joined #ruby
[17:23:58] BSAlb: has joined #ruby
[17:26:09] Nahra: has joined #ruby
[17:26:54] ineb: has joined #ruby
[17:27:17] baweaver: system calls probably
[17:27:35] baweaver: Is that an aircrack derivative or something?
[17:29:07] baweaver: You'd just have Ruby make calls to it and pretty up the output
[17:29:17] w4x: i believe its a fork of the original multimon program , but it is used for decoding various types of radio data, i.e pagers and things. usually used in conjunction with a software defined radio.
[17:30:03] alibby: has joined #ruby
[17:30:07] baweaver: ah, ng suffix was familiar
[17:30:22] baweaver: anyways, system call out to it and just grab the output of it
[17:31:25] w4x: many thanks , much appreciated. I was just looking to start a slightly more advanced project than i had been doing so far , but short of the idea i didnt have a start point. :) Thanks again
[17:35:22] t-recx: has joined #ruby
[17:35:31] nobitanobi: has joined #ruby
[17:35:51] boringcpg: has joined #ruby
[17:38:10] bodgix: has joined #ruby
[17:38:27] BSaboia: has joined #ruby
[17:38:53] lupine: has joined #ruby
[17:38:55] mtkd: has joined #ruby
[17:39:05] unreal: has joined #ruby
[17:39:06] jinie: has joined #ruby
[17:39:14] bayed: has joined #ruby
[17:40:23] scrooloose: has joined #ruby
[17:40:52] cbarratt: has joined #ruby
[17:42:02] arvindsaik: has joined #ruby
[17:43:56] erlend: has joined #ruby
[17:44:41] patarr: has joined #ruby
[17:50:20] eightlimbed: has joined #ruby
[17:51:49] andrzejku: has joined #ruby
[17:54:19] gothicsouth: has joined #ruby
[17:55:01] polishdu1: has joined #ruby
[17:57:10] gf3: has joined #ruby
[17:58:08] pusewicz: has joined #ruby
[17:59:00] ferr: has joined #ruby
[17:59:47] Cohedrin: has joined #ruby
[18:00:35] blackwind_123: has joined #ruby
[18:00:59] lucz: has joined #ruby
[18:05:33] dnewkerk: has joined #ruby
[18:08:19] gil_: has joined #ruby
[18:08:19] gil_: has joined #ruby
[18:13:06] eightlimbed: is there a method like .rotate that takes an element in an array as the argument, instead of an integer?
[18:13:11] BSAlb: has joined #ruby
[18:14:01] eightlimbed: for example ... a = ['a','b','c'].rotate('c') => ['c','a','b']
[18:15:19] BSAlb: has joined #ruby
[18:15:28] havenwood: >> array = ['a','b','c']; array.rotate(array.index 'c') # eightlimbed
[18:15:30] ruby[bot]: havenwood: # => ["c", "a", "b"] (https://eval.in/803747)
[18:15:39] havenwood: eightlimbed: (Nope.)
[18:18:01] eightlimbed: that'll do. thank you! # havenwood
[18:18:44] mikecmpbll: has joined #ruby
[18:20:50] fusta: has joined #ruby
[18:22:25] jud^: has joined #ruby
[18:25:38] olivier__: has joined #ruby
[18:28:25] BSaboia: has joined #ruby
[18:29:26] mikecmpbll: has joined #ruby
[18:31:06] gnufied: has joined #ruby
[18:31:23] al2o3-cr: has joined #ruby
[18:34:13] bernd27: has joined #ruby
[18:35:07] ascarter: has joined #ruby
[18:35:13] lxsameer: has joined #ruby
[18:36:49] __Yiota: has joined #ruby
[18:38:30] preyalone: has joined #ruby
[18:39:36] muelleme: has joined #ruby
[18:40:39] dionysus69: does mp4 fall into this requirement?
[18:40:40] dionysus69: Accepted Media MIME types: video/*, application/octet-stream
[18:41:03] duderonomy: has joined #ruby
[18:41:09] havenwood: dionysus69: video/mp4
[18:41:14] bernd9000: has joined #ruby
[18:41:16] Renich: has joined #ruby
[18:41:55] dionysus69: i am trying to upload mp4 with youtube api
[18:42:10] dionysus69: i get an error: badContent: Media type 'application/mp4' is not supported. Valid media types: [video/*, application/octet-stream]
[18:42:22] havenwood: dionysus69: That's mp4's mime type: video/mp4
[18:42:35] dionysus69: so how do I specify it?
[18:43:07] dionysus69: this is the guide I am following
[18:43:16] havenwood: dionysus69: However you specify what mime type you're accepting with whatever tool you're using.
[18:43:31] marr: has joined #ruby
[18:43:31] dionysus69: doesn't have place for specifying mimetype, even though it has a field for it in a built in form
[18:43:45] dionysus69: https://developers.google.com/youtube/v3/docs/videos/insert#examples
[18:44:03] bronson: has joined #ruby
[18:44:07] havenwood: dionysus69: are you using the yt gem?
[18:44:32] postmodern: has joined #ruby
[18:44:50] dionysus69: no I dont know whats that
[18:44:54] dionysus69: I am just using that guide
[18:45:05] dionysus69: it doesnt ask for any kind of gem
[18:45:15] dionysus69: just pushes file like you would upload with paperclip
[18:46:58] minimalism: has joined #ruby
[18:50:52] blackmes1: has joined #ruby
[18:51:07] dionysus69: havenwood: i just successfully uploaded flv file
[18:51:53] dionysus69: I dont understand the essence of the error at all, it says application/mp4 is not supported but I dont understand where it comes up with that, i didnt assign such info anywhere
[18:59:41] romeoh: has joined #ruby
[19:00:12] romeoh: has joined #ruby
[19:01:38] Cohedrin: has joined #ruby
[19:02:40] romeoh: has joined #ruby
[19:03:17] romeoh_: has joined #ruby
[19:03:53] vuoto: has joined #ruby
[19:04:54] volty: has joined #ruby
[19:06:25] cbyrda: has joined #ruby
[19:06:28] lucz: has joined #ruby
[19:09:10] mim1k: has joined #ruby
[19:09:11] vuoto: has joined #ruby
[19:13:07] gothicsouth: has joined #ruby
[19:14:40] mdw: has joined #ruby
[19:14:58] Renich_: has joined #ruby
[19:16:10] vuoto: has joined #ruby
[19:19:04] dionysus69: lol it appeared that i just needed to add a content_type param at the end. docs weren't complete
[19:22:54] jusa: has joined #ruby
[19:26:04] skweek: has joined #ruby
[19:26:50] baweaver: dionysus69: then patch the docs
[19:27:17] baweaver: it'll help the next person to find that one
[19:27:58] dionysus69: baweaver: youtube banned me for uploading my favorite song... why would i
[19:28:43] baweaver: ACTION sighs
[19:29:01] baweaver: because updating the docs is the right thing to do when you find missing information.
[19:29:36] baweaver: the ToS for Youtube lets you know about upload rules, that's not really their problem, it's the labels problem
[19:30:01] ljarvis: dionysus69: please try to keep your messages together and avoid hitting return for every sentence, it's much easier for people to help you and much less frustrating for people who are helping others
[19:31:26] bkxd: has joined #ruby
[19:32:05] spheric: has joined #ruby
[19:32:57] droidburgundy: has joined #ruby
[19:33:36] dviola: has joined #ruby
[19:34:41] jusa: has joined #ruby
[19:35:40] cfec0b8d: has joined #ruby
[19:38:24] ascarter: has joined #ruby
[19:38:34] gothicsouth: has joined #ruby
[19:39:33] jackrandom: has joined #ruby
[19:40:10] ur5us: has joined #ruby
[19:43:31] jackjackdripper: has joined #ruby
[19:44:08] bronson: has joined #ruby
[19:44:49] jenrzzz: has joined #ruby
[19:46:07] brent__: has joined #ruby
[19:46:44] jud: has joined #ruby
[19:46:47] zapata: has joined #ruby
[19:46:52] vuoto: has joined #ruby
[19:48:28] andrzejku: has joined #ruby
[19:49:39] vuoto: has joined #ruby
[19:50:17] zachk: has joined #ruby
[19:50:54] vuoto: has joined #ruby
[19:53:06] MarkBilk_: has joined #ruby
[19:53:24] vuoto: has joined #ruby
[19:56:14] gothicsouth: has joined #ruby
[19:57:50] cdg: has joined #ruby
[20:01:02] dn`: has joined #ruby
[20:02:00] jackjackdripper: has joined #ruby
[20:02:06] MarkBilk: has joined #ruby
[20:04:04] cam27: I’m right at the heart of OOP and I am close to getting it, but not quite. So I started making a class called Enemy and I want to take away health when an enemy instance is hit.
[20:05:24] cam27: Hit enter by mistake. What link are we using to post code snippets?
[20:06:43] ecuanaso: has joined #ruby
[20:12:22] gothicsouth: has joined #ruby
[20:13:21] cam27: Went to paste my code and now I’m changing it, so might not paste it for a little while.
[20:13:42] bernd27: has joined #ruby
[20:13:56] DoubleMalt: has joined #ruby
[20:15:23] Cohedrin: has joined #ruby
[20:15:44] olivier__: has joined #ruby
[20:16:18] spheric: has joined #ruby
[20:18:50] hobodave: has joined #ruby
[20:19:37] brent__: has joined #ruby
[20:19:41] jenrzzz: has joined #ruby
[20:19:55] olivier__: has joined #ruby
[20:24:08] ecuanaso: has joined #ruby
[20:24:53] milardovich: has joined #ruby
[20:25:26] gnufied: has joined #ruby
[20:30:26] havenwood: cam27: Pasting a link to a Gist is perfect.
[20:33:31] Cohedrin: has joined #ruby
[20:33:34] mim1k: has joined #ruby
[20:37:53] zenguy_pc: has joined #ruby
[20:38:14] cdg: has joined #ruby
[20:39:56] dionysus69: has joined #ruby
[20:41:54] mikecmpb_: has joined #ruby
[20:43:16] zenguy_pc: has joined #ruby
[20:46:26] blackmesa: has joined #ruby
[20:48:42] ascarter: has joined #ruby
[20:50:04] ecuanaso: has joined #ruby
[20:50:57] eyc: has joined #ruby
[20:51:20] milardovich: has joined #ruby
[20:52:38] griffindy: has joined #ruby
[20:53:22] milardovich: has joined #ruby
[20:53:58] ur5us: has joined #ruby
[20:55:15] milardovich: has joined #ruby
[20:55:41] roshanavand: has joined #ruby
[20:57:05] milardovich: has joined #ruby
[20:57:45] Dimik: has joined #ruby
[20:59:29] Sembei: has joined #ruby
[20:59:43] zepy_aq_: has joined #ruby
[20:59:51] ur5us: has joined #ruby
[20:59:56] puppet645: has joined #ruby
[21:00:42] BSaboia: has joined #ruby
[21:01:13] DeeJayh_: has joined #ruby
[21:04:56] pusewicz: has joined #ruby
[21:05:55] bronson: has joined #ruby
[21:08:07] lucz: has joined #ruby
[21:08:18] jeffreylevesque: has joined #ruby
[21:08:35] haylon: has joined #ruby
[21:10:28] ineb: has joined #ruby
[21:14:40] mim1k: has joined #ruby
[21:14:48] rakm: has joined #ruby
[21:16:06] ur5us: has joined #ruby
[21:17:33] zacts: has joined #ruby
[21:17:45] SeepingN: has joined #ruby
[21:20:35] roamingdog: has joined #ruby
[21:27:01] HoierM_: has joined #ruby
[21:30:57] jenrzzz: has joined #ruby
[21:34:42] tomphp: has joined #ruby
[21:34:54] nofxxxx: has joined #ruby
[21:36:34] skweek: has joined #ruby
[21:37:52] BSaboia: has joined #ruby
[21:38:20] Coldblackice: has joined #ruby
[21:40:31] im0nde: has joined #ruby
[21:42:26] ecuanaso: has joined #ruby
[21:42:40] havenwood: has joined #ruby
[21:43:02] SeepingN: has joined #ruby
[21:43:29] KnownSyntax: has joined #ruby
[21:46:47] jenrzzz: has joined #ruby
[21:46:47] jenrzzz: has joined #ruby
[21:47:23] JBbankss: has joined #ruby
[21:49:34] Cohedrin: has joined #ruby
[21:50:39] QLCrisis: has joined #ruby
[21:53:09] im0nde_: has joined #ruby
[21:54:56] bambanx: has joined #ruby
[21:56:16] Cohedrin: has joined #ruby
[21:59:48] Yzguy: has joined #ruby
[22:01:07] robouk: has joined #ruby
[22:01:26] havenwood: has joined #ruby
[22:01:26] havenwood: has joined #ruby
[22:02:58] lxsameer: has joined #ruby
[22:06:12] jusa: has joined #ruby
[22:06:22] mim1k: has joined #ruby
[22:18:58] roamingdog: has joined #ruby
[22:19:32] Cohedrin: has joined #ruby
[22:19:48] roamingdog: has joined #ruby
[22:20:33] roamingdog: has joined #ruby
[22:21:24] roamingdog: has joined #ruby
[22:22:09] roamingdog: has joined #ruby
[22:22:18] cam27: After reading the chapter on class and instance variables I wanted to test my understanding of what is happening. So I am close except for when it comes to hurting an Enemy class’s instance object. Here is my gist. https://gist.github.com/cam271/a44eef440a6072cf41a24c556e9c7cad
[22:25:36] olivier__: has joined #ruby
[22:25:37] Trynemjoel: has joined #ruby
[22:26:32] roamingdog: has joined #ruby
[22:26:41] Majost: has joined #ruby
[22:26:42] cstrahan: has joined #ruby
[22:26:56] User458764: has joined #ruby
[22:27:34] raspado: has joined #ruby
[22:28:56] acemo: has joined #ruby
[22:30:55] Radar: cam27: which part?
[22:30:56] roamingdog: has joined #ruby
[22:31:19] SeepingN: if @health == 0... if something ever subtracts too much, they become.. undead?
[22:31:34] Radar: I was just about to point out the same thing
[22:31:42] roamingdog: has joined #ruby
[22:31:51] Radar: https://gist.github.com/cam271/a44eef440a6072cf41a24c556e9c7cad#file-enemy-rb-L43-L49
[22:31:53] Radar: What are these?
[22:32:02] Radar: You're assigning local variables in those methods.
[22:32:17] Radar: There is probably a better way to do this: https://gist.github.com/cam271/a44eef440a6072cf41a24c556e9c7cad#file-enemy-rb-L51-L53
[22:32:27] Radar: remove_instance_variable isn't used in Ruby code much
[22:32:31] gse: has joined #ruby
[22:32:32] roamingdog: has joined #ruby
[22:32:59] baweaver: enemy.health = 1; enemy.hit
[22:33:12] baweaver: enemy.health == 2?
[22:33:19] roamingdog: has joined #ruby
[22:33:31] t-recx: has joined #ruby
[22:33:52] SeepingN: what in tar nation is goin on hea
[22:34:04] roamingdog: has joined #ruby
[22:34:12] baweaver: I'd avoid using class vars like that as wel
[22:34:23] hahuang65: has joined #ruby
[22:34:38] seanh: has joined #ruby
[22:35:13] gmcintire: has joined #ruby
[22:35:52] swgillespie: has joined #ruby
[22:39:51] baweaver: cam27: https://gist.github.com/cam271/a44eef440a6072cf41a24c556e9c7cad#gistcomment-2104257
[22:39:53] baweaver: simpler version
[22:40:06] baweaver: don't try and bake in state management there, it clutters the classes too much
[22:41:15] baweaver: Keep classes simple and stupid
[22:41:27] baweaver: Too much meta knowledge in them will make things way more complicated than they need to be
[22:41:40] baweaver: For instance, avoid using puts inside a class
[22:41:45] cjhowe: has joined #ruby
[22:41:47] baweaver: only return strings so you can use puts elsewhere
[22:42:39] baweaver: (P.S. `puts` returns `nil`)
[22:43:20] bruce_lee: has joined #ruby
[22:43:20] bruce_lee: has joined #ruby
[22:43:28] baweaver: 'mornin Radar
[22:43:33] Radar: good morning
[22:43:46] baweaver: ACTION tips hat at SeepingN 
[22:44:22] romeoh: has joined #ruby
[22:44:34] romeoh: has joined #ruby
[22:45:16] QLCrisis: has joined #ruby
[22:45:40] romeoh: has joined #ruby
[22:46:23] cam27: Thanks baweaver, the meta programing ruby book is after this book, but I feel like I just need to understand how to work with class and instance methods as well as private and protected methods on those instances
[22:46:45] baweaver: For the most part you won't need class methods starting out
[22:47:09] baweaver: private, you're just saying what's a concern of the class versus what's the person using it going to be able to get at
[22:47:23] baweaver: Metaprogramming Ruby may be a bit overkill
[22:47:58] baweaver: 9/10 times you won't need it, but after some read it everything starts looking like a nail and you have this shiny new hammer you're just waiting to use
[22:48:04] Yzguy: has joined #ruby
[22:48:13] baweaver: it can make code inextricably hard to test and reason about
[22:48:49] baweaver: not to say it doesn't have a use, mind, but that some are far too eager to reach for it when a much simpler solution would have worked and is likely a lot faster
[22:49:01] cam27: So don’t look at the meta programing book after the Well Gounded Rubyist?
[22:49:16] baweaver: You can read it, sure, but keep that in mind
[22:49:24] baweaver: See also the channel topic for more ideas
[22:49:31] elomatreb: Please, you don't need the hammer, you can just monkeypatch the nail
[22:49:46] shinnya: has joined #ruby
[22:49:47] baweaver: that'd screw things up
[22:49:58] baweaver: </horrid-pun>
[22:50:44] baweaver: Monkeypatching is where you have a screwdriver and a nail, and instead of getting a hammer you thread the nail and make it act like a screw
[22:51:01] baweaver: ....even though the hammer was 5 ft away the entire time
[22:51:03] olivier__: has joined #ruby
[22:51:14] cam27: Ok, so besides removing puts inside of my class and returning strings instead, why does my object not change it’s health after calling hit and fatal hit method?
[22:51:25] baweaver: local variables
[22:51:42] baweaver: health= is shorthand for health.=(value)
[22:51:57] baweaver: def health=*
[22:52:34] baweaver: na, that should work still, let me read it again
[22:53:13] baweaver: look at your health= method
[22:53:21] baweaver: and remember that Ruby returns the last value in a method
[22:53:26] baweaver: and what does puts return again?
[22:53:38] baweaver: (hint: it's nil)
[22:53:53] baweaver: so since that's the method it'll return nil whenever you call it
[22:53:57] baweaver: so it may well be working
[22:54:18] baweaver: call health on it and you'll see it did actually work
[22:54:38] Yzguy: has joined #ruby
[22:55:20] jenrzzz: has joined #ruby
[22:55:21] jenrzzz: has joined #ruby
[22:57:26] baweaver: well time to head home for me
[22:57:35] jerezana27: has joined #ruby
[22:57:48] jerezana27: has left #ruby: ()
[22:58:44] mikeiniowa: has joined #ruby
[23:00:09] cam27: Cheers, thanks ( I didn’t get it yet, but if it looks close then that is good enough to go on )
[23:03:33] dnewkerk: has joined #ruby
[23:05:11] ineb: has joined #ruby
[23:07:00] spheric: has joined #ruby
[23:07:00] am55: has joined #ruby
[23:07:00] am55: has joined #ruby
[23:09:22] im0nde: has joined #ruby
[23:09:27] lucz: has joined #ruby
[23:12:46] sneakerhax: has joined #ruby
[23:13:23] TomyLobo: has joined #ruby
[23:15:16] al2o3-cr: has joined #ruby
[23:15:30] alibby: has joined #ruby
[23:18:46] jenrzzz: has joined #ruby
[23:25:06] qwasz: has joined #ruby
[23:25:06] bronson: has joined #ruby
[23:25:06] hellfar: has joined #ruby
[23:28:33] hobodave: has joined #ruby
[23:29:38] Bespoormsed: has joined #ruby
[23:30:26] Saganesque: has joined #ruby
[23:32:05] Cohedrin: has joined #ruby
[23:35:28] roamingdog: has joined #ruby
[23:36:34] Vile`: has joined #ruby
[23:36:39] kspencer: for some reason nothing works when trying to verify github signatures, I have no clue whats wrong, and have followed all documentation to the best of my ability
[23:39:02] Cohedrin: has joined #ruby
[23:44:42] ur5us: has joined #ruby
[23:45:16] QLCrisis: has joined #ruby
[23:47:45] Fysicus: has joined #ruby
[23:53:43] cschneid_: has joined #ruby
[23:53:54] brent__: has joined #ruby
[23:55:18] ascarter: has joined #ruby