« Back to channel list

#ruby - 25 March 2016

« Back 1 day Forward 1 day »
[00:00:25] benbro1: I'm trying to install the following packages under ubuntu 16.04
[00:00:26] benbro1: gem install --user-install foreman jekyll kramdown rouge jekyll-sitemap jekyll-redirect-from jekyll-feed
[00:00:41] benbro1: getting a warning:
[00:00:49] benbro1: WARNING: You don't have /home/user/.gem/ruby/2.3.0/bin in your PATH, gem executables will not run.
[00:01:04] benbro1: why do I need to add it to my PATH manually?
[00:01:24] pwnd_nsfw: why no version manager?
[00:02:44] benbro1: pwnd_nsfw: I'm new to ruby. do you mean apt-get install all the gems?
[00:03:17] benbro1: pwnd_nsfw: version manager, not package manager. sorry
[00:03:24] benbro1: which version manager?
[00:03:36] pwnd_nsfw: I use rvm, but it seems to be disliked
[00:03:41] pwnd_nsfw: chruby seems to be like.. the way to go
[00:03:47] pwnd_nsfw: But I've never had a problem with rvm
[00:03:53] Azure: has joined #ruby
[00:04:30] jpfuentes2: has joined #ruby
[00:05:17] valetudo: has joined #ruby
[00:05:42] havenwood: benbro1: Don't use --user-install with RVM, it's already a user install.
[00:05:54] ramfjord: has joined #ruby
[00:06:03] havenwood: benbro1: There's an #rvm channel too.
[00:06:29] havenwood: benbro1: RVM should handle putting your gem bin dir in the PATH.
[00:06:47] benbro1: havenwood: thanks. I'll try RVM
[00:06:50] havenwood: benbro1: <3 ruby-install + chruby
[00:07:02] freerobby: has joined #ruby
[00:07:59] tubuliferous: has joined #ruby
[00:07:59] pawnbox: has joined #ruby
[00:08:00] pikajude: has joined #ruby
[00:08:00] pikajude: has joined #ruby
[00:08:19] cdg: has joined #ruby
[00:08:48] oz: has joined #ruby
[00:09:18] Mr_Pancake: has joined #ruby
[00:11:46] statelesscode: has joined #ruby
[00:15:55] Moosashi: has joined #ruby
[00:17:33] xlegoman: has joined #ruby
[00:19:04] mostlybadfly: has joined #ruby
[00:19:28] solocshaw: has joined #ruby
[00:19:52] moos3: has joined #ruby
[00:21:08] rikkipitt: has joined #ruby
[00:21:19] matp: has joined #ruby
[00:25:11] matp: has joined #ruby
[00:26:35] Pupeno: has joined #ruby
[00:29:02] diegoviola: has joined #ruby
[00:30:10] moeabdol: has joined #ruby
[00:30:53] darix: i find it amusing ... he already has ruby 2.3 and people still ask to use rvm or something
[00:31:02] darix: you are seriously obsessed with that.
[00:31:15] darix: *shakes head*
[00:31:48] loganhasson: has joined #ruby
[00:32:16] loganhas1on: has joined #ruby
[00:32:44] darix: benbro1: using your distro ruby is totally fine
[00:33:23] Devalo: has joined #ruby
[00:33:26] astrobunny: has joined #ruby
[00:33:32] loganhasson: has joined #ruby
[00:33:36] benbro1: darix: I just added .ruby to the path and it's working
[00:33:58] darix: benbro1: that's the only thing that rubygems wanted to hint
[00:33:59] rikkipitt: has joined #ruby
[00:34:31] smathy: darix, I always use a version manager, (a) to insulate my app's ruby from my system ruby and (b) to make upgrading ruby versions simpler when they come out.
[00:35:02] loganhasson: has joined #ruby
[00:35:28] dagda1_: has joined #ruby
[00:35:40] crowell: has joined #ruby
[00:35:47] poosee: has joined #ruby
[00:36:02] poosee: do you guys know javascript?
[00:36:03] darix: smathy: and i just use a distro that provides up2date ruby packages even for older distros
[00:36:19] htmldrum: has joined #ruby
[00:36:19] htmldrum_: has joined #ruby
[00:36:32] smathy: darix, that wasn't either of my reasons.
[00:36:36] poosee: i would like to create an object that has keys as letters
[00:36:44] Pupeno: has joined #ruby
[00:36:45] Pupeno: has joined #ruby
[00:36:45] poosee: basically i want to create a character counter
[00:36:50] benlieb: has joined #ruby
[00:36:58] poosee: if the key exists increment the value by 1
[00:36:58] darix: smathy: it was the 2nd.
[00:37:01] smathy: poosee, sounds like a hash.
[00:37:04] poosee: https://repl.it/BzZG
[00:37:10] poosee: i already wrote this much of the code
[00:37:18] poosee: but if you write it in ruby i'm sure i can decipher it
[00:37:33] pawnbox: has joined #ruby
[00:37:35] darix: smathy: and i think bundler is good enough for isolate apps
[00:37:42] smathy: darix, no, not staying current, the actual upgrade process. It's much simpler if I can install another version of ruby side-by-side, get the gems in place, then switch over when I want and easily switch back if I need to.
[00:37:44] poosee: i'm stuck on incremanting the value
[00:38:08] poosee: for values that already exist
[00:38:15] smathy: darix, mostly the isolation is about ensuring that things that are using the system ruby aren't suddenly having to run on a new version of ruby.
[00:38:18] darix: smathy: i currently have 2.1, 2.2 and 2.3 installed in parallel. your point was?
[00:38:31] yfeldblum: has joined #ruby
[00:38:37] smathy: darix, that my app wants 2.3.0 shouldn't mean I need to ensure everything else on my system can use 2.3.0 too.
[00:38:40] darix: if rubinius wouldnt be such a bitch to build, I would have that too
[00:38:42] smathy: darix, that it's easier.
[00:39:38] darix: smathy: https://build.opensuse.org/project/monitor/devel:languages:ruby
[00:39:40] smathy: darix, I mean to have them side-by-side you're managing your own GEM_HOME or GEM_PATH or whatever, that's all chruby is doing for me really.
[00:39:57] RegulationD: has joined #ruby
[00:40:04] smathy: darix, not sure what you think you're showing me there.
[00:40:40] smathy: darix, if I have a devops script that is running on 2.1 which is the /usr/bin/env ruby - I never want to have to worry that upgrading the ruby for my app is going to impact that. Hence the comment on isolation.
[00:41:12] darix: smathy: for all the ruby scripts where i need a certain version ... all I do is #!/usr/bin/ruby.ruby2.1
[00:41:27] darix: then i never have to care if i am in the correct chruby/rvm env for that script
[00:41:48] pwnd_nsfw: has joined #ruby
[00:42:25] smathy: darix, I'm not saying that there's not ways around it, I'm saying that a version manager makes managing those issues very simple, and is a reason to use one.
[00:43:46] darix: smathy: which is all nice. and still no reason to basically start every answer for ruby with "you arent using rvm/chruby ... you should change that before we can help you"
[00:44:01] darix: especially for someone already using 2.3
[00:44:17] darix: anyway. basketball time.
[00:45:34] TheGreatGudsby: has joined #ruby
[00:46:15] hahuang65: has joined #ruby
[00:46:52] chipotle: has joined #ruby
[00:48:00] ericli: Hi, if my module needs external libs like fileutils, I shall put require '' into module block or outside?
[00:48:15] darix: ericli: top of the file probably is best.
[00:48:24] ericli: darix, thanks
[00:48:46] yfeldblum: has joined #ruby
[00:48:48] loganhas1on: has joined #ruby
[00:49:05] Maletor: has joined #ruby
[00:51:00] rmulligan: has joined #ruby
[00:51:27] htmldrum1: has joined #ruby
[00:51:40] htmldrum2: has joined #ruby
[00:53:02] jokke: has joined #ruby
[00:53:43] moos3: has joined #ruby
[00:56:29] ChameleonSix: has joined #ruby
[00:56:37] ChameleonSix: has left #ruby: ()
[00:57:17] silentpost: has joined #ruby
[00:58:01] cdg: has joined #ruby
[00:58:24] tubuliferous: has joined #ruby
[01:00:05] dvinciguerra: has joined #ruby
[01:07:40] freerobby: has joined #ruby
[01:07:45] loganhasson: has joined #ruby
[01:07:47] zotherstupidguy: has joined #ruby
[01:08:52] `tim`: has joined #ruby
[01:14:48] rkazak: has joined #ruby
[01:14:53] CloCkWeRX: has joined #ruby
[01:15:22] ledestin: has joined #ruby
[01:16:28] abort_: has joined #ruby
[01:16:43] loganhasson: has joined #ruby
[01:17:31] pawnbox: has joined #ruby
[01:17:52] kinduff: has joined #ruby
[01:19:04] chipotle: has joined #ruby
[01:19:05] halfamind: has joined #ruby
[01:19:22] loganhasson: has joined #ruby
[01:19:59] Azure|dc: has joined #ruby
[01:20:17] siaW: has joined #ruby
[01:21:56] moos3: has joined #ruby
[01:23:09] loganhasson: has joined #ruby
[01:27:14] cjheath_: Upgraded to Ruby 2.2.2, seeing strange issues with class << self (exception “wrong argument type nil (expected Symbol)”). Fixed it in my code by calling singleton_class, but now it’s biting in RSpec. Seems to be a systematic thing. Anyone else seen this?
[01:28:11] QualityAddict: has joined #ruby
[01:28:49] Trynemjoel: has joined #ruby
[01:29:49] pwnd_nsfw: has joined #ruby
[01:30:38] Radar: cjheath_: Does the problem exist in a more modern 2.2 version?
[01:31:06] jamw: has joined #ruby
[01:31:39] cjheath_: Not sure. Onky recently upgraded to 2.2.2
[01:31:48] cjheath_: But it wasn’t there in 2.1.5
[01:31:49] TheNet: has joined #ruby
[01:32:06] jottr: has joined #ruby
[01:32:56] abort: has joined #ruby
[01:33:07] diego2: has joined #ruby
[01:33:50] cjheath_: Radar: It’s possible that it’s an interaction with Byebug
[01:34:02] CloCkWeRX: has joined #ruby
[01:34:17] Pupeno: has joined #ruby
[01:35:18] Uber|Dragon: has joined #ruby
[01:35:53] abort: has joined #ruby
[01:36:17] leon_e: has joined #ruby
[01:37:19] ramfjord: has joined #ruby
[01:37:59] Moosashi: has joined #ruby
[01:38:12] diego3: has joined #ruby
[01:38:49] abort: has joined #ruby
[01:39:21] Trynemjoel: has joined #ruby
[01:39:49] cpup: has joined #ruby
[01:40:08] abort: has joined #ruby
[01:40:45] blackmesa: has joined #ruby
[01:41:30] abort: has joined #ruby
[01:42:45] rbennacer: has joined #ruby
[01:43:57] baweaver: has joined #ruby
[01:46:16] znz_jp: has joined #ruby
[01:47:30] pawnbox: has joined #ruby
[01:47:45] abort: has joined #ruby
[01:49:16] abort: has joined #ruby
[01:49:42] diegoviola: has joined #ruby
[01:49:56] Rubie: has joined #ruby
[01:52:03] jamw: has joined #ruby
[01:52:20] threh: has joined #ruby
[01:54:30] IrishGringo: has joined #ruby
[01:54:49] Pupeno: has joined #ruby
[01:54:50] Pupeno: has joined #ruby
[01:56:15] Inside: has joined #ruby
[01:56:23] polyidus: has joined #ruby
[01:58:31] TheNet: has joined #ruby
[01:58:39] Yzguy: has joined #ruby
[02:03:57] cdg_: has joined #ruby
[02:04:58] jackjackdripper: has joined #ruby
[02:05:04] bkxd: has joined #ruby
[02:05:51] Trynemjoel: has joined #ruby
[02:06:47] ytti: has joined #ruby
[02:06:47] duoi: has joined #ruby
[02:06:48] ericli: has joined #ruby
[02:06:55] duoi: has joined #ruby
[02:07:22] Meeh: has joined #ruby
[02:07:24] QualityAddict: has joined #ruby
[02:08:00] whiteline: has joined #ruby
[02:08:15] cajone: has joined #ruby
[02:08:15] rbennacer: has joined #ruby
[02:08:52] tubuliferous: has joined #ruby
[02:09:17] TheNet: has joined #ruby
[02:09:50] alem0lars: has joined #ruby
[02:10:57] ericli: has joined #ruby
[02:11:30] jrcharney: has joined #ruby
[02:14:40] crowell: has joined #ruby
[02:16:51] bkxd: has joined #ruby
[02:17:48] workmad3: has joined #ruby
[02:17:55] rmulligan: has joined #ruby
[02:21:02] devbug: has joined #ruby
[02:22:07] hahuang65: has joined #ruby
[02:22:38] polyidus: has joined #ruby
[02:22:42] finisherr: has joined #ruby
[02:22:44] moos3: has joined #ruby
[02:23:33] threh: has joined #ruby
[02:25:34] hahuang61: has joined #ruby
[02:25:35] kies: has joined #ruby
[02:26:01] ericli: Hi, anyone ever use Mixlib::ShellOut? Can I input something when running Mixlib::ShellOut?
[02:27:52] uglybandersnatch: has joined #ruby
[02:28:12] rmulligan: has joined #ruby
[02:29:59] TheNet: has joined #ruby
[02:31:16] BTRE: has joined #ruby
[02:31:41] ascarter: has joined #ruby
[02:35:37] Moosashi: has joined #ruby
[02:40:36] siaW: has left #ruby: ()
[02:41:42] blackmesa: has joined #ruby
[02:42:00] Maletor: has joined #ruby
[02:42:48] Moosashi: has joined #ruby
[02:44:18] yatish27: has joined #ruby
[02:44:38] IrishGringo: has joined #ruby
[02:46:36] Rubie: has joined #ruby
[02:47:19] pawnbox: has joined #ruby
[02:49:34] benlieb: has joined #ruby
[02:51:23] Eiam_: has joined #ruby
[02:56:52] ascarter: has joined #ruby
[02:57:01] TheNet: has joined #ruby
[02:57:30] haraoka: has joined #ruby
[02:57:37] jpfuentes2: has joined #ruby
[03:00:26] PaulCapestany: has joined #ruby
[03:01:24] ellisTAA: has joined #ruby
[03:02:29] jcdesimp: has joined #ruby
[03:03:12] Musashi007: has joined #ruby
[03:03:52] kknight: has joined #ruby
[03:04:41] ascarter: has joined #ruby
[03:05:11] A124: has joined #ruby
[03:06:22] LoneHermit: has joined #ruby
[03:07:49] djbkd: has joined #ruby
[03:07:50] Melpaws: has joined #ruby
[03:08:02] zast: has joined #ruby
[03:09:05] silentpost: has joined #ruby
[03:11:20] IrishGringo: has joined #ruby
[03:14:15] yfeldblum: has joined #ruby
[03:15:05] yfeldblum: has joined #ruby
[03:15:53] diego2: has joined #ruby
[03:16:54] diego2: has joined #ruby
[03:17:35] pawnbox: has joined #ruby
[03:22:38] Breaking_Pitt: has joined #ruby
[03:23:42] ramfjord: has joined #ruby
[03:23:49] halfamind: has joined #ruby
[03:23:53] moos3: has joined #ruby
[03:25:26] freerobby: has joined #ruby
[03:25:45] zenspider: has joined #ruby
[03:27:42] fedexo: has joined #ruby
[03:28:42] ReK2: has joined #ruby
[03:28:42] ReK2: has joined #ruby
[03:29:19] moos3: has joined #ruby
[03:31:08] rmulliga`: has joined #ruby
[03:32:31] rmulliga`: has joined #ruby
[03:33:50] sauvin: has joined #ruby
[03:35:44] Jonah11_: has joined #ruby
[03:35:46] Salve: has joined #ruby
[03:37:54] yfeldblum: has joined #ruby
[03:40:07] ascarter: has joined #ruby
[03:43:10] blackmesa: has joined #ruby
[03:45:42] Sou|cutter: has joined #ruby
[03:47:37] pawnbox: has joined #ruby
[03:54:56] dextertzu: has joined #ruby
[03:55:46] devbug: has joined #ruby
[03:56:36] hakunin: has joined #ruby
[03:58:54] RegulationD: has joined #ruby
[03:59:15] chouhoul_: has joined #ruby
[04:01:55] rmulliga`: has joined #ruby
[04:03:27] agentmeerkat: has joined #ruby
[04:05:48] Pupeno: has joined #ruby
[04:06:04] ojss: has joined #ruby
[04:08:39] ojss: has joined #ruby
[04:08:47] nando293921: has joined #ruby
[04:09:36] ojss: has left #ruby: ()
[04:10:29] astrobunny: has joined #ruby
[04:11:37] TheGreatGudsby: has joined #ruby
[04:12:19] threh: has joined #ruby
[04:15:29] tubuliferous: has joined #ruby
[04:15:34] sdothum: has joined #ruby
[04:16:34] merida: has joined #ruby
[04:17:13] braincrash: has joined #ruby
[04:17:53] gregf: has joined #ruby
[04:18:47] sdothum: has joined #ruby
[04:20:17] merida_: has joined #ruby
[04:23:13] treaki_: has joined #ruby
[04:31:52] crameth: has joined #ruby
[04:33:04] moos3: has joined #ruby
[04:34:58] Devalo: has joined #ruby
[04:35:02] astrobun_: has joined #ruby
[04:39:51] [an]onymous: has joined #ruby
[04:39:56] Moosashi: has joined #ruby
[04:40:17] [an]onymous: Anyone tell me if this image is real...? http://adf.ly/1Yk9Jw
[04:41:21] ascarter: has joined #ruby
[04:44:30] devbug: has joined #ruby
[04:45:28] gix: has joined #ruby
[04:45:50] [an]onymous: Anyone tell me if this image is real...? http://adf.ly/1Yk9Jw
[04:45:59] blackmesa: has joined #ruby
[04:46:52] pawnbox: has joined #ruby
[04:49:46] devbug_: has joined #ruby
[04:51:09] Inside: has joined #ruby
[04:51:09] Inside: has joined #ruby
[04:53:57] yfeldblum: has joined #ruby
[04:55:26] binaryplease1: has joined #ruby
[04:58:27] Guest1361: has joined #ruby
[04:59:32] nazar: has joined #ruby
[05:01:05] safjj: has joined #ruby
[05:04:55] gix-: has joined #ruby
[05:05:36] griffindy: has joined #ruby
[05:05:56] lkba: has joined #ruby
[05:08:46] Musashi007: has joined #ruby
[05:10:51] kushi: has joined #ruby
[05:11:03] Breaking_Pitt: has joined #ruby
[05:11:10] jpfuentes2: has joined #ruby
[05:12:03] howdoi: has joined #ruby
[05:14:11] jcdesimp: has joined #ruby
[05:15:49] jobewan: has joined #ruby
[05:16:51] pawnbox: has joined #ruby
[05:17:43] sudoubuntu: has joined #ruby
[05:18:46] codecop: has joined #ruby
[05:21:04] LoneHerm_: has joined #ruby
[05:22:30] baweaver: has joined #ruby
[05:23:43] 7GHAALV13: has joined #ruby
[05:24:19] krz: has joined #ruby
[05:27:16] NineInchNazara_1: has joined #ruby
[05:28:48] NineInchNazara_5: has joined #ruby
[05:30:52] NineInchNazara: has joined #ruby
[05:34:34] neanderslob_: has joined #ruby
[05:35:18] moos3: has joined #ruby
[05:35:44] yeticry: has joined #ruby
[05:41:07] benlieb: has joined #ruby
[05:46:38] finisherr: has joined #ruby
[05:47:18] blackmesa: has joined #ruby
[05:53:08] crank1988: has joined #ruby
[05:53:14] NineInchNazara: has joined #ruby
[05:54:07] Musashi007: has joined #ruby
[05:55:36] davee_: has joined #ruby
[05:56:34] pawnbox: has joined #ruby
[05:57:20] skade: has joined #ruby
[05:58:43] choke: has joined #ruby
[05:58:58] davee_: has joined #ruby
[05:59:21] abort: has joined #ruby
[05:59:38] Es0teric: has joined #ruby
[05:59:43] RegulationD: has joined #ruby
[05:59:55] hahuang61: has joined #ruby
[06:00:23] User458764: has joined #ruby
[06:01:28] davee_: has joined #ruby
[06:03:03] jenrzzz: has joined #ruby
[06:03:40] Rubie: has joined #ruby
[06:03:56] mank: has joined #ruby
[06:04:01] davee__: has joined #ruby
[06:05:12] fullofcaffeine: has joined #ruby
[06:05:35] Breaking_Pitt: has joined #ruby
[06:05:55] fullofca_: has joined #ruby
[06:06:06] slawrence00: has joined #ruby
[06:06:36] davee__: has joined #ruby
[06:06:57] Pupeno: has joined #ruby
[06:07:46] Brando753: has joined #ruby
[06:08:19] djbkd: has joined #ruby
[06:08:30] baweaver: has joined #ruby
[06:09:46] braincra-: has joined #ruby
[06:14:24] cold_zero: has joined #ruby
[06:17:50] cold_zero: Hello. I need an advice from community. I've been working on my hobby project which grep-like utility to search within source code files. I have a Display class which is responsible for display matched line for each file https://gist.github.com/SuperManEver/df81df81932341e7b19e
[06:19:21] tjbiddle: has joined #ruby
[06:19:50] cold_zero: if you take a look at it you will see I use conditions all over the place and it makes me feel myself little uncomfortable. I wonder may there is a better approach or may be some code technique,
[06:23:14] Balzrael: has joined #ruby
[06:24:13] mistermocha: has joined #ruby
[06:25:04] sudoubuntu: has joined #ruby
[06:25:15] fullofca_: has joined #ruby
[06:25:59] ramfjord: has joined #ruby
[06:26:22] hk238: has joined #ruby
[06:27:40] krz: has joined #ruby
[06:28:32] mistermocha: has joined #ruby
[06:28:49] mondok: has joined #ruby
[06:29:39] uglybandersnatch: has joined #ruby
[06:31:08] aganov: has joined #ruby
[06:33:55] finisherr: has joined #ruby
[06:34:47] cdg: has joined #ruby
[06:36:05] moos3: has joined #ruby
[06:36:18] pawnbox: has joined #ruby
[06:45:00] yatish27: has joined #ruby
[06:45:36] yfeldblum: has joined #ruby
[06:46:31] ItSANgo__: has joined #ruby
[06:46:52] mistermocha: has joined #ruby
[06:47:06] NineInchNazara: has joined #ruby
[06:47:12] epitron: has joined #ruby
[06:48:42] blackmesa: has joined #ruby
[06:51:50] Musashi007: has joined #ruby
[06:52:42] dionysus69: has joined #ruby
[06:52:57] neanderslob_: has joined #ruby
[06:53:40] nofxx: has joined #ruby
[06:56:19] tildes: has joined #ruby
[06:58:37] s2013: has joined #ruby
[06:59:49] Breaking_Pitt: has joined #ruby
[07:01:04] cold_zero: has joined #ruby
[07:06:15] pawnbox: has joined #ruby
[07:06:49] johnny56_: has joined #ruby
[07:09:34] finisherr: has joined #ruby
[07:11:30] sudoubuntu: has joined #ruby
[07:14:11] JohnBat26|2: has joined #ruby
[07:14:49] nocontrol: has joined #ruby
[07:20:00] User458764: has joined #ruby
[07:24:24] nocontrol: has joined #ruby
[07:24:26] baweaver: has joined #ruby
[07:25:39] nocontrol: has joined #ruby
[07:27:27] jenrzzz: has joined #ruby
[07:29:14] benlieb: has joined #ruby
[07:30:16] davee__: has joined #ruby
[07:31:52] scepticulous: has joined #ruby
[07:32:11] ascarter: has joined #ruby
[07:32:56] Cohedrin: has joined #ruby
[07:34:59] chipotle: has joined #ruby
[07:35:18] hightower2: has joined #ruby
[07:36:09] pawnbox: has joined #ruby
[07:37:21] cpup: has joined #ruby
[07:38:04] moos3: has joined #ruby
[07:42:50] krz: has joined #ruby
[07:42:51] tAn: has joined #ruby
[07:42:51] ascarter: has joined #ruby
[07:43:05] helpa: has joined #ruby
[07:45:02] edwinvdgraaf: has joined #ruby
[07:45:50] ascarter: has joined #ruby
[07:46:54] tristanp: has joined #ruby
[07:49:04] pawnbox: has joined #ruby
[07:49:52] sq271: has joined #ruby
[07:50:04] blackmesa: has joined #ruby
[07:50:14] ramfjord: has joined #ruby
[07:51:26] lxsameer: has joined #ruby
[07:52:53] nocontrol: has joined #ruby
[07:55:10] codecop: has joined #ruby
[07:56:19] sergey_makagon: has joined #ruby
[07:57:27] scepticulous: has joined #ruby
[08:00:31] RegulationD: has joined #ruby
[08:00:35] hahuang61: has joined #ruby
[08:00:51] firstdayonthejob: has joined #ruby
[08:01:04] james1: has joined #ruby
[08:01:54] joonty: has joined #ruby
[08:04:10] sandelius: has joined #ruby
[08:05:16] bluOxigen: has joined #ruby
[08:06:20] DoubleMalt: has joined #ruby
[08:07:45] Pupeno: has joined #ruby
[08:08:36] waxjar: has left #ruby: ("Textual IRC Client: www.textualapp.com")
[08:08:38] waxjar: has joined #ruby
[08:10:40] nocontrol: has joined #ruby
[08:12:34] SCHAAP137: has joined #ruby
[08:13:12] nobitanobi: has joined #ruby
[08:13:28] rmulligan: has joined #ruby
[08:15:13] parduse: has joined #ruby
[08:19:49] nocontrol: has joined #ruby
[08:20:30] cold_zero: has joined #ruby
[08:21:32] Spami_: has joined #ruby
[08:22:45] sarbs: has joined #ruby
[08:31:14] Devalo: has joined #ruby
[08:35:18] gokulnath: has joined #ruby
[08:35:43] snoobydoo: has joined #ruby
[08:36:47] JamieD: has joined #ruby
[08:37:34] moos3: has joined #ruby
[08:38:04] nocontrol: has joined #ruby
[08:39:09] Couch: has joined #ruby
[08:39:56] mank: has joined #ruby
[08:39:58] yfeldblum: has joined #ruby
[08:42:12] merida: has joined #ruby
[08:42:44] mank: has joined #ruby
[08:43:42] mistermocha: has joined #ruby
[08:44:28] solocshaw: has joined #ruby
[08:44:41] dtzuzu: has joined #ruby
[08:45:10] makknife: has joined #ruby
[08:45:20] tvw: has joined #ruby
[08:45:21] edwinvdgraaf: has joined #ruby
[08:46:06] TvL2386: has joined #ruby
[08:47:44] Breaking_Pitt: has joined #ruby
[08:48:03] scepticulous: has joined #ruby
[08:48:46] bkxd: has joined #ruby
[08:48:48] edwinvdg_: has joined #ruby
[08:51:26] marr: has joined #ruby
[08:51:30] blackmesa: has joined #ruby
[08:55:12] Trynemjoel: has joined #ruby
[08:56:13] nocontrol: has joined #ruby
[08:58:41] mark2: has joined #ruby
[09:00:52] valetudo: has joined #ruby
[09:03:37] sandelius: has joined #ruby
[09:04:55] nocontrol: has joined #ruby
[09:07:35] rmulligan: has joined #ruby
[09:07:50] tjbiddle_: has joined #ruby
[09:08:14] marduk: has joined #ruby
[09:11:39] joonty: has joined #ruby
[09:11:43] crazydiamond: has joined #ruby
[09:21:34] blackmesa: has joined #ruby
[09:22:18] pandaant: has joined #ruby
[09:23:16] Anderson69s: has joined #ruby
[09:31:06] bluOxigen_: has joined #ruby
[09:32:50] Ishido: has joined #ruby
[09:33:54] nobitanobi: has joined #ruby
[09:37:21] dostoyev1ky: has joined #ruby
[09:37:33] j416_: has joined #ruby
[09:37:44] nibbo_: has joined #ruby
[09:37:57] unsymbol_: has joined #ruby
[09:38:41] gigetoo_: has joined #ruby
[09:39:41] zenlot: has joined #ruby
[09:39:51] moos3: has joined #ruby
[09:39:52] duoi: has joined #ruby
[09:39:52] ytti: has joined #ruby
[09:39:52] Pupeno: has joined #ruby
[09:39:54] interpelex: has joined #ruby
[09:40:33] FIGO_: has joined #ruby
[09:40:34] duoi: has joined #ruby
[09:41:42] Tharbakim: has joined #ruby
[09:41:46] Vircung: has joined #ruby
[09:43:33] valeri_ufo: has joined #ruby
[09:43:43] alem0lars: has joined #ruby
[09:43:58] elifoster: has joined #ruby
[09:44:21] mistermocha: has joined #ruby
[09:46:03] Evey_Hammond: has joined #ruby
[09:46:33] dtzuzu: has joined #ruby
[09:48:43] Cork: has joined #ruby
[09:49:27] nobitanobi: has joined #ruby
[09:49:44] tristanp: has joined #ruby
[09:50:24] moeabdol1: has joined #ruby
[09:50:42] edwinvdgraaf: has joined #ruby
[09:50:51] elifoster|alt: has joined #ruby
[09:51:26] merida_: has joined #ruby
[09:53:32] ytti: has joined #ruby
[09:53:32] _kfpratt: has joined #ruby
[09:57:28] phredus: hello hello anybody out there?
[09:57:36] kfpratt: has joined #ruby
[09:57:44] s2013: has joined #ruby
[10:01:14] RegulationD: has joined #ruby
[10:01:23] phredus: sandelius: hello, hey can I ask you a few quick ruby rails questions
[10:01:50] sandelius: sure, but you also have the #RubyOnRails channel
[10:02:07] phredus: sandelius: they are all asleep there, do you rails?
[10:02:27] hahuang61: has joined #ruby
[10:02:31] rmulligan: has joined #ruby
[10:03:37] Gasher: has joined #ruby
[10:03:55] phredus: should gem always be run as user or as root?
[10:04:33] phredus: also "gem pristine all" as root or as plain user?
[10:05:51] sandelius: it depends on how you installed ruby
[10:05:56] sepp2k: has joined #ruby
[10:06:12] sandelius: are you using e.g rbenv or rvm as a user?
[10:07:06] sandelius: run ls -a in your homw folder and check if you se a .rbenv or .rvm folder
[10:07:25] phredus: sandelius: no I used my distros package manager to install ruby and then rails. it had to be root to use package manager
[10:08:15] sandelius: phredus I would recommend that you use rbenv with https://github.com/fesplugas/rbenv-installer. then you install everything as user
[10:10:55] phredus: sandelius: I may have to end up doing that if I cant solve this issue
[10:11:05] ytti: has joined #ruby
[10:11:06] phredus: sandelius: Please look at these two errors "rails new plants" http://wklej.org/id/2160177 and rails s http://wklej.org/id/2160180
[10:11:30] skade: has joined #ruby
[10:11:49] sandelius: what ruby version are you using?
[10:12:33] phredus: I have 2.0 and 2.1 I am using 2.1.7p400
[10:13:07] scepticulous: has joined #ruby
[10:13:39] mistermocha: has joined #ruby
[10:15:49] User458764: has joined #ruby
[10:21:13] Musashi007: has joined #ruby
[10:21:21] phredus: sandelius: hello
[10:21:39] sandelius: ahh sry, was coding
[10:22:39] sandelius: first start and comment out spring from your gem file and run gem install
[10:23:35] nocontrol: has joined #ruby
[10:27:22] sandstrom: has joined #ruby
[10:27:28] skade: has joined #ruby
[10:27:34] Timba-as: has joined #ruby
[10:27:51] marduk: has joined #ruby
[10:28:55] sergey_makagon: has joined #ruby
[10:30:21] ytti: has joined #ruby
[10:31:32] uglybandersnatch: has joined #ruby
[10:33:26] JohnBat26: has joined #ruby
[10:33:59] Apocalypse: has joined #ruby
[10:34:18] phredus: sandelius: ok I think you meant run "gem install spring", ok I did and error is: /usr/lib64/ruby/gems/2.1.0/gems/sass-rails-5.0.4/lib/sass/rails/helpers.rb:1:in `require': cannot load such file -- sass (LoadError)
[10:34:43] sandelius: not comment out string from you gemfile and after you done that run "gem install"
[10:34:46] phredus: and $ gem install spring$ gem install spring
[10:34:46] phredus: ERROR: While executing gem ... (TypeError)
[10:34:46] phredus: no implicit conversion of nil into String
[10:34:46] phredus: ERROR: While executing gem ... (TypeError)
[10:34:46] phredus: no implicit conversion of nil into String
[10:35:42] Breaking_Pitt: has joined #ruby
[10:36:28] phredus: ok, commented out spring from Gemfile, then ran: $ gem install
[10:36:29] phredus: ERROR: While executing gem ... (Gem::CommandLineError)
[10:36:29] phredus: Please specify at least one gem name (e.g. gem build GEMNAME)
[10:37:41] robbyoconnor: has joined #ruby
[10:37:54] JohnBat26: has joined #ruby
[10:38:27] phredus: sandelius: the error you are trouble shooting having to do with springs happens after "rails new" when creating the new app.
[10:39:09] moos3: has joined #ruby
[10:41:13] Anderson69s: has joined #ruby
[10:44:03] SenpaiSilver: has joined #ruby
[10:44:10] Guest72543: has joined #ruby
[10:48:50] edwinvdgraaf: has joined #ruby
[10:51:21] ytti: has joined #ruby
[10:52:46] Devalo: has joined #ruby
[10:56:34] rmulligan: has joined #ruby
[10:56:52] ytti: has joined #ruby
[10:59:00] lxsameer: has joined #ruby
[11:01:27] htmldrum_: has joined #ruby
[11:01:27] htmldrum: has joined #ruby
[11:05:18] mdw: has joined #ruby
[11:05:48] patrick-sartent: has joined #ruby
[11:06:42] rmulligan: has joined #ruby
[11:07:19] ytti: has joined #ruby
[11:08:41] aganov: has joined #ruby
[11:08:47] blackmesa: has joined #ruby
[11:11:19] moos3: has joined #ruby
[11:13:41] faelkle: has joined #ruby
[11:14:06] ytti: has joined #ruby
[11:15:01] User458764: has joined #ruby
[11:15:02] Gasher: hey, what's the thing I'm supposed to use instead of RVM?
[11:15:47] johnmilton: has joined #ruby
[11:22:07] benbro1: has left #ruby: ()
[11:23:23] digneety: has joined #ruby
[11:25:25] sdothum: has joined #ruby
[11:25:28] valetudo: has joined #ruby
[11:25:40] Pupeno: has joined #ruby
[11:27:04] ltp: has joined #ruby
[11:28:04] FooMunki: has joined #ruby
[11:28:23] G: has joined #ruby
[11:28:57] patrick-sartent: Kidding, you can try rbenv. https://github.com/rbenv/rbenv
[11:33:14] RedDwarf: has joined #ruby
[11:34:46] sdothum: has joined #ruby
[11:37:06] fragtastic: has joined #ruby
[11:37:07] futilegames: has joined #ruby
[11:38:06] mank: has joined #ruby
[11:39:29] mank: has joined #ruby
[11:39:59] joonty: Gasher: or chruby
[11:41:59] TheGreatGudsby: has joined #ruby
[11:42:58] mank: has joined #ruby
[11:45:06] snowy: has joined #ruby
[11:46:24] mistermocha: has joined #ruby
[11:48:05] dtzuzu: has joined #ruby
[11:49:07] mdw: has joined #ruby
[11:51:36] tristanp: has joined #ruby
[11:51:40] rmulligan: has joined #ruby
[11:51:47] ramfjord: has joined #ruby
[11:51:58] s2013: has joined #ruby
[11:53:05] sdothum: has joined #ruby
[11:55:43] pawnbox: has joined #ruby
[11:57:11] chipotle: has joined #ruby
[12:01:54] RegulationD: has joined #ruby
[12:03:13] hahuang61: has joined #ruby
[12:03:32] htmldrum_: has joined #ruby
[12:03:33] htmldrum: has joined #ruby
[12:03:39] tknz: has joined #ruby
[12:07:46] Gasher: how to move a file?
[12:08:21] Gasher: I can't find a method for that in File
[12:08:25] gokulnath: has joined #ruby
[12:08:54] sinanislekdemir: has joined #ruby
[12:09:36] nobitanobi: has joined #ruby
[12:10:34] jottr: has joined #ruby
[12:10:55] Gasher: ah, can just rename it
[12:12:09] Trynemjoel: has joined #ruby
[12:12:45] Anderson69s: has joined #ruby
[12:13:18] Mon_Ouie: has joined #ruby
[12:14:40] rolha: has joined #ruby
[12:14:49] rolha: hi everyone
[12:15:54] rolha: (complete beginner to Ruby) how do I define a bracket method with 3 arguments in a class. I need Foo[1,2] = 3?
[12:16:20] rolha: I've tried defining def []=(k, v, d)
[12:16:26] rolha: but to no avail
[12:17:01] rolha: the use case is a matrix style setter, i.e. row 1 colum 2 equals 3
[12:18:38] sinanislekdemir: hi rolha, I believe what you are trying to use is
[12:18:56] rmulligan: has joined #ruby
[12:19:00] sinanislekdemir: like lets say class Test
[12:19:09] sinanislekdemir: and Test[1,2] = 3
[12:19:12] bkxd: has joined #ruby
[12:19:28] sinanislekdemir: therefore you can use "self" method there, like def self.[]=(a,b, val)
[12:20:15] rolha: sinanislekdemir: great, I'll try it. thanks!
[12:29:51] swills: has joined #ruby
[12:30:29] mark2: has left #ruby: ("PART ##javascript :PONG :adams.freenode.net")
[12:33:31] cold_zero: has joined #ruby
[12:36:38] edwinvdgraaf: has joined #ruby
[12:39:08] lorn: has joined #ruby
[12:39:23] Queitsch: has joined #ruby
[12:43:27] drptbl: has joined #ruby
[12:43:54] Xiti: has joined #ruby
[12:44:10] r1nuz: has joined #ruby
[12:47:09] mistermocha: has joined #ruby
[12:47:17] rolha: has joined #ruby
[12:47:24] lkba: has joined #ruby
[12:48:09] andywojo: has joined #ruby
[12:48:32] rmulligan: has joined #ruby
[12:51:53] krz: has joined #ruby
[12:52:57] TheNet: has joined #ruby
[12:56:40] halfamind: has joined #ruby
[12:57:27] yos7ph: has joined #ruby
[13:03:14] futilegames: has joined #ruby
[13:03:43] Anderson69s: has joined #ruby
[13:05:39] tildes: has joined #ruby
[13:06:06] stannard: has joined #ruby
[13:07:26] joonty: has joined #ruby
[13:09:09] LoneHermit: has joined #ruby
[13:10:22] dionysus69: has joined #ruby
[13:12:26] qpls: has joined #ruby
[13:13:42] _blizzy_: has joined #ruby
[13:13:42] chouhoulis: has joined #ruby
[13:15:14] Trynemjoel: has joined #ruby
[13:15:30] chipotle: has joined #ruby
[13:17:02] Pupeno: has joined #ruby
[13:17:14] B4daBing73: has joined #ruby
[13:17:36] rippa: has joined #ruby
[13:18:11] rbennacer: has joined #ruby
[13:19:49] mwlang: has joined #ruby
[13:20:50] silentpost: has joined #ruby
[13:21:46] dasher00: has joined #ruby
[13:22:09] kam270: has joined #ruby
[13:22:44] j3r0: has joined #ruby
[13:23:53] Rubie: has joined #ruby
[13:24:02] th0m_: has joined #ruby
[13:24:58] swills: has joined #ruby
[13:26:48] `tim`: has joined #ruby
[13:28:50] stannard: has joined #ruby
[13:29:25] nobitanobi: has joined #ruby
[13:31:12] treaki: has joined #ruby
[13:32:00] dome22xl: has joined #ruby
[13:38:33] sudoubuntu: has joined #ruby
[13:40:45] TomyLobo: has joined #ruby
[13:42:32] sdothum: has joined #ruby
[13:42:33] rmulligan: has joined #ruby
[13:42:54] dvinciguerra: has joined #ruby
[13:43:01] nobitanobi: has joined #ruby
[13:44:20] ChiefAlexander: has joined #ruby
[13:45:26] roshanavand: has joined #ruby
[13:46:20] mdw: has joined #ruby
[13:46:36] halfamind1: has joined #ruby
[13:47:23] jsaak: has joined #ruby
[13:47:52] mistermocha: has joined #ruby
[13:48:50] dtzuzu: has joined #ruby
[13:49:12] fexilal: has joined #ruby
[13:50:06] htmldrum_: has joined #ruby
[13:50:06] htmldrum: has joined #ruby
[13:51:52] mistermo_: has joined #ruby
[13:52:13] dn`: has joined #ruby
[13:53:01] tristanp: has joined #ruby
[13:57:54] Anderson69s: has joined #ruby
[13:58:35] phredus: has joined #ruby
[14:00:34] cold_zero: has joined #ruby
[14:01:49] rolha: has joined #ruby
[14:02:36] cold_zero: Hello. I try to find method that allows me to provide line of text and regular expression and return true or false whether there is match for some word in the given line for given regex
[14:02:47] RegulationD: has joined #ruby
[14:03:12] cold_zero: may be you know something like this
[14:03:58] hahuang61: has joined #ruby
[14:04:43] cold_zero: I'm thinking about just split line in words and do matching based on words, but I wonder may be there is a std library solution because it will be more performant
[14:06:18] Karix: has joined #ruby
[14:06:47] abort: has joined #ruby
[14:07:32] stannard: has joined #ruby
[14:07:36] idle_task: has joined #ruby
[14:08:18] hxegon: has joined #ruby
[14:08:35] \pub\bash0r: has joined #ruby
[14:09:20] \pub\bash0r: has left #ruby: ()
[14:10:01] fullofcaffeine: has joined #ruby
[14:12:37] Ox0dea: cold_zero: https://eval.in/542290
[14:13:13] floatingpoint: has joined #ruby
[14:14:09] cold_zero: is it working for ruby v 2.2
[14:14:53] smathy: has joined #ruby
[14:15:28] maxagaz: has joined #ruby
[14:16:11] rolha: has joined #ruby
[14:16:27] maxagaz: to see the keys of a hash, I do data_hash.keys, but how to know the other options I have than .keys ? where is it listed ?
[14:16:45] Ox0dea: >> Hash.instance_methods # maxagaz
[14:18:44] jottr: Hi all. I'm still struggling with using CSV::Table.delete_if . Not sure what I am doing wrong. https://git.io/vajU Maybe someone could have a look?
[14:19:29] systemsgotyou: has joined #ruby
[14:20:18] smathy: Day 6 of the jottr Chronicles: The Lost URL.
[14:21:26] jottr: https://git.io/vajUL
[14:22:21] Ox0dea: jottr: You want `found.any?`.
[14:22:51] Polysics: has joined #ruby
[14:23:52] smathy: Ox0dea, found is an ARelation ;)
[14:24:55] sandstrom: has joined #ruby
[14:25:56] Ox0dea: $ ruby -r active_record -e 'p ActiveRecord::Relation.instance_methods.include? :any?'
[14:26:00] Ox0dea: Yay, Ruby!
[14:27:31] bry4n: has joined #ruby
[14:27:46] chipotle: has joined #ruby
[14:27:50] smathy: Ox0dea, sorry, yeah, I just meant it could be just `found.where ... ` and would just add it to a single query.
[14:28:53] skweek: has joined #ruby
[14:29:53] davee__: has joined #ruby
[14:30:11] trinaldi: has joined #ruby
[14:31:08] jak: has joined #ruby
[14:31:32] Ox0dea: smathy: Ah, yeah, that'd be the better fix.
[14:32:35] ChiefAlexander: has joined #ruby
[14:33:04] uglybandersnatch: has joined #ruby
[14:33:06] Gasher: has joined #ruby
[14:33:35] kobain: has joined #ruby
[14:34:07] treehug88: has joined #ruby
[14:35:19] cdg: has joined #ruby
[14:36:41] rmulligan: has joined #ruby
[14:37:27] smathy: FYI, I pointed jottr to a few freelance hiring services because he has no real interest in learning ruby, just wants someone to fix his stuff for him.
[14:37:41] jottr: smathy: god
[14:38:05] jottr: smathy: Don't put words in my mouth
[14:39:08] smathy: jottr, putting words in your mouth would have been something like: he said that he has no interest in learning ruby. I didn't do that, I expressed my conclusion about your interests.
[14:39:55] jobewan: has joined #ruby
[14:39:56] Mon_Ouie: has joined #ruby
[14:39:58] jottr: smathy: Well. Since you don't know me, I can only ask yo to not jump to conclusions out of a few chat messages on irc.
[14:40:38] cold_zero: is there any difference between Regexp::new and Regexp::.compile ? The result looks identical for me
[14:41:10] jottr: I told you I'm working through the koans, and doing exercism exercises. But it all takes time...
[14:41:22] smathy: cold_zero, check the docs, it tells you.
[14:42:27] apeiros: ACTION wonders whether he's actually used Regexp.new in code at all
[14:42:52] shevy: I think I have not myself either
[14:42:57] smathy: I use it when I want to do Regexp.escape on a string.
[14:43:10] shevy: I tend to favour things like:
[14:43:17] shevy: regex_to_use = /foo bar/
[14:43:26] shevy: if input =~ regex_to_use
[14:43:38] mistermocha: has joined #ruby
[14:43:43] apeiros: smathy: how do you mean?
[14:43:46] freerobby: has joined #ruby
[14:44:13] apeiros: Regexp.new(Regexp.escape(string)) - like that?
[14:44:19] threh: has joined #ruby
[14:44:20] crazydiamond: has joined #ruby
[14:44:45] krz: has joined #ruby
[14:46:48] Pupeno: has joined #ruby
[14:47:54] mank: has joined #ruby
[14:48:45] mistermo_: has joined #ruby
[14:49:54] jottr: Just saw your pointer Ox0dea. thx for that
[14:50:46] Ox0dea: http://i.imgur.com/pQfZpYy.jpg
[14:50:52] htmldrum: has joined #ruby
[14:50:56] htmldrum_: has joined #ruby
[14:52:26] CasBaIT: has joined #ruby
[14:53:59] Devalo: has joined #ruby
[14:54:32] skweek: has joined #ruby
[14:54:40] sinanislekdemir: has joined #ruby
[14:57:31] mary5030: has joined #ruby
[14:57:35] mdw: has joined #ruby
[14:57:51] LoneHermit: has joined #ruby
[14:58:16] mary5030: has joined #ruby
[14:58:21] jackdan: has joined #ruby
[14:58:27] fullofca_: has joined #ruby
[14:58:38] theRoUS: i need to implement a work-conserving job queue mechanism with two work slots, with a dispatcher that assigns jobs to the slots as they become idle and then exits when the queue (and slots) are empty.
[14:58:40] theRoUS: is eventmachine a good match for that?
[14:59:00] jackdan: hi guys, i have an array like this [ [1, 3], [2, 1] ] and i want compute the maximum values out of them and get a result like this [2, 3]
[14:59:12] jackdan: the maximum of each column if you look at it as a matrix
[14:59:36] mdw7: has joined #ruby
[15:00:17] User458764: has joined #ruby
[15:00:42] cdg_: has joined #ruby
[15:02:44] nofacade: has joined #ruby
[15:04:02] ChiefAlexander: has joined #ruby
[15:04:24] Papierkorb: >> m = [[1,3], [2,1]]; m.map{|a| a.sort.last}
[15:04:27] Anderson69s: has joined #ruby
[15:04:44] adaedra: rho, Papierkorb.
[15:04:53] adaedra: We're modern, we've Array#max
[15:05:11] Papierkorb: adaedra: oh, yeah, no idea why I didn't use that
[15:05:13] slawrence00: has joined #ruby
[15:05:24] adaedra: >> [[1,3],[2,1]].map(&:map)
[15:05:42] Ox0dea: Missing a #transpose as well.
[15:05:45] adaedra: and ruby[bot]'s down again.
[15:06:00] adaedra: Ah yes, here is the missing piece.
[15:06:10] adaedra: apeiros: your bot has escaped!
[15:07:01] Rubie: has joined #ruby
[15:07:43] diegoaguilar: has joined #ruby
[15:08:02] tjbiddle: has joined #ruby
[15:08:17] diegoaguilar: has joined #ruby
[15:09:21] griffindy: has joined #ruby
[15:10:30] dionysus69: has joined #ruby
[15:11:37] Queitsch: has joined #ruby
[15:13:51] threh: has joined #ruby
[15:15:24] raeoks: has joined #ruby
[15:15:46] ramfjord: has joined #ruby
[15:17:38] mdw: has joined #ruby
[15:18:15] siaW: has joined #ruby
[15:19:12] maxagaz: has joined #ruby
[15:19:15] maxagaz: when I list the keys of my hash with "pp obj.keys", I get keys like this %u9E80, how can I convert it to the real character ?
[15:20:51] smathy: maxagaz, !gist your console session showing the hash and this output.
[15:21:33] ytti: maxagaz, what was your expected output?
[15:21:45] ytti: maxagaz, what do you expect %u9E80 to be?
[15:22:14] maxagaz: ytti, %u9E80 is the code of a Chinese character
[15:22:24] dikaio: has joined #ruby
[15:22:24] maxagaz: the unicode
[15:23:18] mank: has joined #ruby
[15:23:37] rolha: has joined #ruby
[15:24:00] freerobby: has joined #ruby
[15:24:25] ytti: maxagaz, http://p.ip.fi/SBc_
[15:24:46] mank: has joined #ruby
[15:24:47] ytti: maxagaz, are you sure you're actualling making the key 麀
[15:24:51] Xiti: has joined #ruby
[15:24:56] ytti: maxagaz, i suspect you're making the key %u9E80 verbatim
[15:25:43] ruby[bot]: has joined #ruby
[15:25:43] ChanServ: +o ruby[bot]
[15:25:52] joonty: has joined #ruby
[15:25:52] apeiros: adaedra: thanks for the ping
[15:26:13] ruby[bot]: -bbb *!*@gateway/web/freenode/ip.216.165.125.249$#ruby-banned *!*@gateway/web/freenode/ip.37.130.229.149$#ruby-banned *!*@gateway/web/cgi-irc/kiwiirc.com/ip.162.252.83.185$#ruby-banned
[15:26:27] adaedra: apeiros: yw
[15:26:30] maxagaz: ytti, the key is %u9E8, but I'd like to switch it to it's actual character 麀
[15:26:31] Azure: has joined #ruby
[15:26:53] stunder001: has joined #ruby
[15:27:06] apeiros: >> 0x9e80.chr('utf-8') # maxagaz
[15:27:07] ruby[bot]: apeiros: # => "麀" (https://eval.in/542315)
[15:27:51] ytti: was aobout to say "%u9E80"[2..-1].to_i(16).chr('utf-8')
[15:28:56] apeiros: ACTION prefers [2,4]
[15:29:56] apeiros: depending on whether the full string is just a single character or not, I'd use gsub instead of []
[15:29:57] ecnalyr: has joined #ruby
[15:30:04] lxsameer: has joined #ruby
[15:30:48] rmulligan: has joined #ruby
[15:31:13] adaedra: String#[] is more #sub than #gsub
[15:32:06] ytti: maxagaz, http://p.ip.fi/klNd
[15:32:07] Ox0dea: >> '' << 'u%9e80'[/\h+/].hex
[15:32:08] ruby[bot]: Ox0dea: # => "麀" (https://eval.in/542316)
[15:32:14] apeiros: maybe I didn't express myself clearly. if the string is potentially multiple %u sequences, I'd use gsub.
[15:32:31] halfamind: has joined #ruby
[15:32:43] Ox0dea: Who wouldn't?
[15:33:10] Trynemjoel: has joined #ruby
[15:33:27] loincloth: has joined #ruby
[15:35:48] KensoDev: has joined #ruby
[15:35:52] symm-: has joined #ruby
[15:36:08] rkazak: has joined #ruby
[15:36:23] hotpancakes: has joined #ruby
[15:38:02] Gasher: has joined #ruby
[15:39:33] RegulationD: has joined #ruby
[15:39:35] nando293921: has joined #ruby
[15:40:59] jpfuentes2: has joined #ruby
[15:41:29] speakingcode: has joined #ruby
[15:43:24] Trynemjoel: has joined #ruby
[15:45:06] halfamind: has joined #ruby
[15:45:41] car: has joined #ruby
[15:47:55] Rubie: has joined #ruby
[15:48:20] Uber|Dragon: has joined #ruby
[15:48:37] dc2: has joined #ruby
[15:49:37] dtzuzu: has joined #ruby
[15:50:27] rolha: has joined #ruby
[15:50:34] polishdub: has joined #ruby
[15:50:58] Mon_Ouie: has joined #ruby
[15:51:05] pawnbox: has joined #ruby
[15:51:33] pawnbox: has joined #ruby
[15:51:38] htmldrum: has joined #ruby
[15:51:40] htmldrum_: has joined #ruby
[15:53:32] jackjackdripper: has joined #ruby
[15:53:45] rmulligan: has joined #ruby
[15:54:34] tristanp: has joined #ruby
[15:54:41] babblebre: has joined #ruby
[15:56:45] mank: has joined #ruby
[15:57:27] fullofcaffeine: has joined #ruby
[15:57:50] mank: has joined #ruby
[15:58:41] codecop: has joined #ruby
[15:59:49] pietr0: has joined #ruby
[15:59:56] amclain: has joined #ruby
[16:00:39] LoneHerm_: has joined #ruby
[16:01:22] halfamind: has joined #ruby
[16:02:42] halfamind1: has joined #ruby
[16:02:44] Es0teric: has joined #ruby
[16:04:23] nano-: has joined #ruby
[16:04:43] hahuang61: has joined #ruby
[16:07:26] krz: has joined #ruby
[16:09:09] halfamind: has joined #ruby
[16:09:20] jackjackdripper: has joined #ruby
[16:10:31] dhollinger: has joined #ruby
[16:10:32] tlarevo: has joined #ruby
[16:11:14] pawnbox: has joined #ruby
[16:11:38] Trynemjoel: has joined #ruby
[16:14:32] dvinciguerra: has joined #ruby
[16:14:37] s_aly: has joined #ruby
[16:14:47] s_aly: has left #ruby: ("Leaving")
[16:16:40] d0nn1e: has joined #ruby
[16:18:21] halfamind: has joined #ruby
[16:18:57] rmulligan: has joined #ruby
[16:18:57] skweek: has joined #ruby
[16:20:10] Azure: has joined #ruby
[16:20:25] glcx: has joined #ruby
[16:20:26] diegoaguilar: has joined #ruby
[16:22:30] blandflakes: has joined #ruby
[16:23:14] shinnya: has joined #ruby
[16:25:46] fullofca_: has joined #ruby
[16:27:28] drewbro: has joined #ruby
[16:28:09] marxarelli: has joined #ruby
[16:28:43] rbennacer: has joined #ruby
[16:28:50] firstdayonthejob: has joined #ruby
[16:30:54] fullofcaffeine: has joined #ruby
[16:32:22] Jardayn: has joined #ruby
[16:32:30] hightower3: has joined #ruby
[16:34:37] moos3: has joined #ruby
[16:34:51] Bounga: has joined #ruby
[16:35:27] weemsledeux: has joined #ruby
[16:36:38] David27: has joined #ruby
[16:40:09] DoubleMalt: has joined #ruby
[16:40:17] x77686d: has joined #ruby
[16:40:27] matp: has joined #ruby
[16:40:54] smathy: theRoUS, eventmachine is more about IO. Sounds like you need a job queue setup like sidekiq with two workers.
[16:41:32] x77686d: Does anybody know if given '/(?<g>.)(?<g>.)/ =~ "ab" ', $~["g"] is guaranteed to be "b".
[16:42:10] smathy: apeiros, sorry, just saw your question from earlier, yes, like Regexp.new(Regexp.escape(string))
[16:42:19] benlieb: has joined #ruby
[16:43:02] apeiros: smathy: np. I see. I think I'd use /#{Regexp.escape(string})/, but I can see how one could prefer Regexp.new over that.
[16:43:20] smathy: x77686d, yes, later matches override earlier ones.
[16:44:17] jottr: has joined #ruby
[16:44:19] PaulCapestany: has joined #ruby
[16:44:34] Maletor: has joined #ruby
[16:44:37] gokulnath: has joined #ruby
[16:44:51] smathy: apeiros, yeah, just because of the noise in that. I (seriously) often go looking for Perl's \Q in the ruby docs, sure that I *must* have missed it last time ;)
[16:44:53] waxxy: has joined #ruby
[16:46:04] silentpost: has joined #ruby
[16:50:08] mistermocha: has joined #ruby
[16:50:50] symm-: has joined #ruby
[16:50:54] tommd: has joined #ruby
[16:51:05] x77686d: smathy: Thx!
[16:51:19] mdw: has joined #ruby
[16:52:11] tristanp: has joined #ruby
[16:52:25] htmldrum: has joined #ruby
[16:52:30] htmldrum_: has joined #ruby
[16:53:18] tristanp: has joined #ruby
[16:53:50] rcvalle: has joined #ruby
[16:54:47] skweek: has joined #ruby
[16:55:13] Devalo: has joined #ruby
[16:58:27] pawnbox: has joined #ruby
[16:58:34] sneakerhax: has joined #ruby
[16:59:41] chipotle_: has joined #ruby
[16:59:58] kies: has joined #ruby
[17:01:06] Es0teric: has joined #ruby
[17:01:48] sdothum: has joined #ruby
[17:03:07] ericli: has joined #ruby
[17:03:12] skweeke: has joined #ruby
[17:03:23] Gasher^: has joined #ruby
[17:04:03] nofxx: has joined #ruby
[17:04:03] nofxx: has joined #ruby
[17:04:56] LoneHerm_: has joined #ruby
[17:05:32] Ox0dea: >> /(?<g>.)(?<g>.)/ =~ "ab"; $~
[17:05:33] ruby[bot]: Ox0dea: # => #<MatchData "ab" g:"a" g:"b"> (https://eval.in/542341)
[17:05:43] Ox0dea: The earlier one is still in there, though; how do we get hold of it?
[17:06:25] sdothum: has joined #ruby
[17:06:46] diegoaguilar: has joined #ruby
[17:09:13] troulouliou_div2: has joined #ruby
[17:10:19] smathy: Ox0dea, .captures.first
[17:11:18] swills: has joined #ruby
[17:11:20] Dimik: has joined #ruby
[17:11:47] futilegames: has joined #ruby
[17:13:10] Antiarc1: has joined #ruby
[17:14:49] x77686d: Is a there name for a group of semicolon-separated expressions in parentheses, like (f; g; h)? I'm inclined to call it a compound expression but I'm wondering if there's a widely-used term for that construct.
[17:14:53] Ox0dea: smathy: Anticlimactic.
[17:15:18] davee_: has joined #ruby
[17:15:25] Ox0dea: x77686d: That sounds about right. Best avoided, though.
[17:16:09] x77686d: Here's an example: while (print "? "; line = gets) Can you avoid it there?
[17:17:04] choke: has joined #ruby
[17:17:12] eam: x77686d: yes, you put that code in a method
[17:17:16] apeiros: while get_input; … end
[17:17:38] eam: the answer to pretty much every "that's complex" issue is "use a method to structure things"
[17:17:50] s2013: has joined #ruby
[17:20:06] smathy: Ox0dea, I bet you were hoping ['g'].first would work.
[17:20:45] Ox0dea: smathy: Or, well, it'd be interesting if $~.named_captures had conflict resolution.
[17:21:56] Ox0dea: It's obviously egregious here, but Hash#conflict_proc would be interesting.
[17:23:11] perlgod: has joined #ruby
[17:27:04] Ox0dea: https://eval.in/542345
[17:27:46] moos3: has joined #ruby
[17:28:10] hackerdude: has joined #ruby
[17:28:11] sandstrom: has joined #ruby
[17:29:33] smathy: I hate you.
[17:30:06] Ox0dea: But... Hash#default_proc exists and Hash#merge supports conflict resolution.
[17:30:13] Ox0dea: I don't see why those things shouldn't make a baby.
[17:30:43] jgt: has joined #ruby
[17:31:10] nando293921: has joined #ruby
[17:35:28] nofxx: has joined #ruby
[17:35:53] jackjackdripper: has joined #ruby
[17:36:26] s2013: has joined #ruby
[17:37:36] djellemah_: has joined #ruby
[17:38:27] rbennacer: has joined #ruby
[17:39:41] djellemah_: has joined #ruby
[17:39:41] rbennacer: has joined #ruby
[17:40:23] chouhoulis: has joined #ruby
[17:40:37] perturbation: has joined #ruby
[17:41:13] chouhoulis: has joined #ruby
[17:49:11] Kruppe: has joined #ruby
[17:49:40] `tim`: has joined #ruby
[17:50:16] intrigueD: has joined #ruby
[17:50:20] dtzuzu: has joined #ruby
[17:50:51] mistermocha: has joined #ruby
[17:51:51] jero_: has joined #ruby
[17:52:24] FooMunki: has joined #ruby
[17:53:10] htmldrum: has joined #ruby
[17:53:10] htmldrum_: has joined #ruby
[17:54:20] jottr: has joined #ruby
[17:54:56] ramfjord: has joined #ruby
[17:57:22] dopie: has joined #ruby
[17:57:25] teotwaki: has joined #ruby
[17:59:08] Karix: has joined #ruby
[17:59:36] nofxx: has joined #ruby
[17:59:36] nofxx: has joined #ruby
[17:59:36] ljames: has joined #ruby
[18:03:57] raeoks: has joined #ruby
[18:03:57] ascarter: has joined #ruby
[18:05:28] hahuang61: has joined #ruby
[18:06:18] LoneHermit: has joined #ruby
[18:07:51] n1colas: has joined #ruby
[18:08:34] elifoster: has joined #ruby
[18:08:44] yfeldblum: has joined #ruby
[18:08:44] jerohm: has joined #ruby
[18:09:11] shevy: http://blog.christoffer.me/content/images/2016/03/javascript_developers-2.png
[18:09:16] shevy: now I need a typical day for ruby
[18:10:26] Eiam_: has joined #ruby
[18:10:41] jackdan: i dont understand taht shit
[18:11:03] Trynemjoel: has joined #ruby
[18:11:25] freerobby: has joined #ruby
[18:11:30] choke: has joined #ruby
[18:11:47] shevy: jackdan it was in the context of http://blog.christoffer.me/no-we-havent-forgotten-how-to-code-javascript-just-needs-to-become-a-better-language/ - I only found the picture weird but I want some cool one for ruby developers
[18:11:50] smathy: I guess they spend their day overcoming hurdles?
[18:12:37] Ox0dea: > I see us JavaScript developers as hurdle-runners where every 30 seconds we need to jump over a new obstacle.
[18:13:34] shevy: I wouldn't know a thing about how javascript developers feel
[18:13:51] Eiam_: has joined #ruby
[18:14:36] jackdan: i remember some video with a slim girl representing ruby
[18:14:54] jackdan: and some office dude with jars representing java
[18:15:07] manveru: that's pretty much how i feel when i write js...
[18:15:26] smathy: My only thought from all that azer stuff was, "Seriously, 2016 and JS *still* has no sprintf?"
[18:15:36] jackdan: manveru: you feel like a slim girl?
[18:15:54] manveru: uhm... sometimes
[18:15:57] Jonah11_: has joined #ruby
[18:16:07] manveru: i meant more the hurdle thing with js
[18:16:29] manveru: when you need to add a polyfill just to use Array.find
[18:16:41] manveru: or to compare two timestamps
[18:17:05] manveru: or have to support i18n in safari and IE
[18:17:29] sinanislekdemir: has joined #ruby
[18:17:38] boontdustie: has joined #ruby
[18:17:42] ChiefAlexander: has joined #ruby
[18:18:19] manveru: oh well, i just wish JS didn't feel so much like someone wrapped a stripped-down version of scheme into ugly syntax and called it a day
[18:18:35] JohnBat26: has joined #ruby
[18:18:44] jackdan: ruby holds the true power of OOP
[18:19:13] jackdan: why not opal manveru ?
[18:19:50] manveru: because i'd have to teach my team opal? :P
[18:20:01] jackdan: o you have a team
[18:20:05] manveru: leaky abstractions and such
[18:20:07] jackdan: wait arent you like in japan
[18:20:19] codecop: has joined #ruby
[18:20:20] jackdan: where everyone is a master in ruby
[18:20:21] rolha_: has joined #ruby
[18:20:24] djbkd: has joined #ruby
[18:20:30] jackdan: "ooo rubbbyyyy, naissaaaaa"
[18:20:34] manveru: no... it's been years since i was in japan
[18:20:49] manveru: and even there i mostly worked for US companies
[18:21:02] manveru: how do you know that anyway :)
[18:21:51] smathy: I can actually understand i18n and date stuff much better, sprintf is part of the C's stdlib, there's almost zero technical barrier to adding it into JS.
[18:23:13] ramfjord_: has joined #ruby
[18:23:17] drewbro: has joined #ruby
[18:23:22] manveru: i18n was actually added by every browser but safari
[18:23:32] smathy: I mean, it's such a ridiculous joke, that string formatting is harder in JS than C
[18:23:58] apeiros: javascript i18n? what did I miss?
[18:24:21] manveru: https://developer.mozilla.org/en-US/Add-ons/WebExtensions/API/i18n
[18:24:51] Ox0dea: In fairness, Eich did want LiveScript to be a Scheme dialect, and Scheme is pretty barebones out of the box.
[18:24:54] Ox0dea: See: SRFI 1.
[18:25:19] djbkd: has joined #ruby
[18:25:46] jottr: has joined #ruby
[18:25:50] edwinvdgraaf: has joined #ruby
[18:26:58] roshanavand: has joined #ruby
[18:26:59] smathy: Where it began doesn't justify, in 2016, that it still doesn't have it.
[18:27:02] rbennacer: has joined #ruby
[18:27:02] Maletor: has joined #ruby
[18:27:08] manveru: i still wonder if it was supposed to bring self to the browser
[18:27:37] manveru: did eich ever write about that?
[18:27:49] manveru: smathy: exactly
[18:27:58] smathy: It's not like bloating out a browser could possibly be a concern anymore.
[18:28:02] ss_much: has joined #ruby
[18:28:14] joonty: has joined #ruby
[18:30:22] hahuang61: has joined #ruby
[18:31:27] manveru: https://news.ycombinator.com/item?id=2786720
[18:32:11] NinjaPanzer: has joined #ruby
[18:32:32] jackdan: manveru: i log this channel and collect personal information
[18:32:48] jackdan: people mention stuff where they live and such
[18:33:13] manveru: well, update it to germany
[18:33:18] ascarter_: has joined #ruby
[18:33:34] jackdan: together with the refugees
[18:33:52] manveru: they leave nearby too
[18:34:03] jackdan: go feed them
[18:34:41] jackjackdripper1: has joined #ruby
[18:34:49] jackdan: i used to feed ducks in gemrany with weissbrot
[18:35:02] bronson: has joined #ruby
[18:35:19] uglybandersnatch: has joined #ruby
[18:35:41] jackdan: now that i think off, what do ducks eat normally? white bread must be a high calorie diet
[18:40:34] ascarter: has joined #ruby
[18:40:43] JohnBat26: has joined #ruby
[18:41:24] manveru: usually they eat insects and small fish and also various kinds of grass
[18:41:24] Musashi007: has joined #ruby
[18:41:35] futilegames: has joined #ruby
[18:41:41] spider-mario: has joined #ruby
[18:41:58] NinjaPanzer: has joined #ruby
[18:42:00] manveru: so yes, you probably shouldn't feed them much bread
[18:42:09] ych: has joined #ruby
[18:42:09] tvw: has joined #ruby
[18:43:11] djbkd: has joined #ruby
[18:43:19] NinjaPanzer: has joined #ruby
[18:45:10] polyidus: has joined #ruby
[18:45:26] ChiefAlexander: has joined #ruby
[18:47:01] shevy: jackdan: nope it is confirmed, they eat bread https://www.youtube.com/watch?v=M9hgGWP7sTw
[18:47:30] shevy: after all, they have small underwater bakeries for a reason
[18:48:25] Superfox_il_volp: has joined #ruby
[18:49:06] eam: unless you're trying to fatten 'em up
[18:49:08] rolha: has joined #ruby
[18:49:23] Ox0dea: Then you force-feed them lard. :(
[18:49:24] kirillzh: has joined #ruby
[18:51:21] ascarter_: has joined #ruby
[18:52:17] mistermocha: has joined #ruby
[18:52:18] drptbl: has joined #ruby
[18:52:44] eam: Ox0dea: thought they just force-fed corn
[18:52:47] bronson: has joined #ruby
[18:53:05] mdw: has joined #ruby
[18:53:05] eam: eg https://upload.wikimedia.org/wikipedia/commons/b/bf/00-gavage-en-parc-enquete-L214-France-2012.jpg
[18:53:56] htmldrum: has joined #ruby
[18:53:56] htmldrum_: has joined #ruby
[18:54:59] tjohnson: has joined #ruby
[18:55:29] Ox0dea: Well, there's no disputing that.
[18:55:31] User458764: has joined #ruby
[18:55:52] Devalo: has joined #ruby
[18:56:02] smathy: Mmmm, foie gras.
[18:56:16] Ox0dea: "Gavage" sounds like a clothing line.
[18:56:55] nogic: has joined #ruby
[18:57:23] JohnBat26: has joined #ruby
[18:57:43] nogic: has joined #ruby
[18:58:19] theRoUS: smathy: thanks!
[18:58:53] `tim`: has joined #ruby
[18:59:04] djellemah_: has joined #ruby
[19:01:43] mary5030: has joined #ruby
[19:02:04] jgt1: has joined #ruby
[19:02:41] tribals: has joined #ruby
[19:03:44] kentnl: has joined #ruby
[19:03:44] kentnl: has joined #ruby
[19:04:12] MEATCHICKEN: has joined #ruby
[19:04:20] MEATCHICKEN: What is the ruby equivilent of jasmine spies?
[19:04:31] MEATCHICKEN: http://jasmine.github.io/2.0/introduction.html
[19:04:39] MEATCHICKEN: In testing with jasmine - I can spy on methods
[19:04:45] MEATCHICKEN: I guess it is called stubbing?
[19:05:35] tribals: i would to install gems into `vendor/bundle`, how can i `require` something, for example, in irb?
[19:06:02] theRoUS: smathy: sidekiq looks kinda heavy-weight and very web-involved..
[19:06:28] Ox0dea: tribals: `bundle console` might do.
[19:06:49] Ox0dea: meatchicken: It's called spying.
[19:07:07] sarbs: has joined #ruby
[19:07:12] MEATCHICKEN: Ox0dea, what is the rspec equivilent?
[19:07:44] ramfjord: has joined #ruby
[19:07:52] LoneHerm_: has joined #ruby
[19:08:07] davee_: has joined #ruby
[19:08:30] Ox0dea: meatchicken: https://relishapp.com/rspec/rspec-mocks/docs/basics/spies
[19:08:42] davedev24: has joined #ruby
[19:09:51] rbennacer: has joined #ruby
[19:10:30] davee_: has joined #ruby
[19:10:51] rbennacer: has joined #ruby
[19:12:56] davee_: has joined #ruby
[19:15:19] andywojo: has joined #ruby
[19:15:26] ur5us: has joined #ruby
[19:17:27] ascarter: has joined #ruby
[19:19:26] nobitanobi: has joined #ruby
[19:19:38] smathy: theRoUS, itnothing to do with the web.
[19:19:39] minimalism: has joined #ruby
[19:20:32] smathy: theRoUS, evenmachine, on the other hand.
[19:21:00] theRoUS: smathy: the documentation seems pretty focussed there, and i don't need persistence -- in-memory queuing is all i need
[19:21:04] theRoUS: ACTION shrugs
[19:21:26] theRoUS: i've used EM a little in the past, which is the reason it was my first thought
[19:22:56] djellemah: theRoUS: how about Queue? - it's in core.
[19:23:45] djellemah: unless, GVL.
[19:23:59] s2013: has joined #ruby
[19:24:36] ascarter_: has joined #ruby
[19:24:47] vdamewood: has joined #ruby
[19:25:07] jenrzzz: has joined #ruby
[19:25:17] smathy: theRoUS, yeah, just do it yourself with Queue, or the other thing I thought of because you don't care about persistence would be https://github.com/brandonhilkert/sucker_punch
[19:25:37] theRoUS: djellemah: hah, i'd forgotten Queue. thanks!
[19:25:52] manveru: theRoUS: check out ninja too
[19:26:49] manveru: https://github.com/foca/ninja
[19:27:23] duncannz: has joined #ruby
[19:27:40] manveru: damn it's been 7 years already
[19:27:55] manveru: but it still works fine :)
[19:28:09] vdamewood: has joined #ruby
[19:30:27] `tim`: has joined #ruby
[19:32:52] Fire-Dragon-DoL: meatchicken: ifyou didn't find it, check rspec-mocks documentation, there is allow(foo).to receive(:something).and_return(whatever), there are also test doubles and other stuff. It's more powerful than jasmine, really nice
[19:34:18] spuk: has joined #ruby
[19:34:22] Melpaws: has joined #ruby
[19:34:23] diegoaguilar: has joined #ruby
[19:39:00] spuk: has joined #ruby
[19:39:39] Trynemjoel: has joined #ruby
[19:40:29] ruby-lang553: has joined #ruby
[19:41:59] mwlang: has joined #ruby
[19:44:51] Karix: has joined #ruby
[19:47:40] ruby-lang527: has joined #ruby
[19:48:25] smcfarlane: has joined #ruby
[19:49:43] digneety: has joined #ruby
[19:49:46] rodfersou: has joined #ruby
[19:51:05] htmldrum: has joined #ruby
[19:51:05] dtzuzu: has joined #ruby
[19:51:09] htmldrum_: has joined #ruby
[19:53:33] blackmesa: has joined #ruby
[19:54:26] rbennacer: has joined #ruby
[19:55:08] fullofca_: has joined #ruby
[19:57:20] Musashi007: has joined #ruby
[19:57:35] chouhoulis: has joined #ruby
[19:57:45] Moosashi: has joined #ruby
[20:03:50] NinjaPanzer: has joined #ruby
[20:04:21] Karix: has joined #ruby
[20:04:30] bronson: has joined #ruby
[20:07:24] rolha: has joined #ruby
[20:07:43] fullofcaffeine: has joined #ruby
[20:08:08] JohnBat26: has joined #ruby
[20:08:27] heinrich5991: has joined #ruby
[20:11:30] hahuang65: has joined #ruby
[20:12:17] shredding: has joined #ruby
[20:13:19] yqt: has joined #ruby
[20:13:24] NinjaPanzer: has joined #ruby
[20:13:34] mondok: has joined #ruby
[20:13:43] snowy: has joined #ruby
[20:16:59] rbennacer: has joined #ruby
[20:17:59] rbennacer: has joined #ruby
[20:18:51] Don_John: has joined #ruby
[20:21:28] diegoviola: has joined #ruby
[20:22:51] jobewan: has joined #ruby
[20:23:20] dopie: has joined #ruby
[20:24:24] Breaking_Pitt: has joined #ruby
[20:25:22] finisherr: has joined #ruby
[20:28:09] Karix: has joined #ruby
[20:28:25] ebbflowgo: has joined #ruby
[20:29:11] Mon_Ouie: has joined #ruby
[20:30:59] jpfuentes2: has joined #ruby
[20:34:41] _blizzy_: has joined #ruby
[20:36:22] rattatmatt: has joined #ruby
[20:36:30] sudoubuntu: has joined #ruby
[20:36:44] Timba-as: has joined #ruby
[20:38:59] TheGreatGudsby: has joined #ruby
[20:39:06] drewbro: has joined #ruby
[20:39:13] cdg: has joined #ruby
[20:42:39] Melpaws: has joined #ruby
[20:44:37] openstruct: has joined #ruby
[20:45:01] dreinull: has left #ruby: ("undefined")
[20:47:51] matthin: has joined #ruby
[20:48:08] blackmesa: has joined #ruby
[20:48:15] bronson: has joined #ruby
[20:48:51] Musashi007: has joined #ruby
[20:50:53] Mon_Ouie: has joined #ruby
[20:51:10] fullofca_: has joined #ruby
[20:52:42] choke: has joined #ruby
[20:52:54] mistermocha: has joined #ruby
[20:53:45] theRoUS: has joined #ruby
[20:55:03] LoneHermit: has joined #ruby
[20:56:09] dikaio: has joined #ruby
[20:59:35] jenrzzz: has joined #ruby
[21:00:19] agentmeerkat: has joined #ruby
[21:01:33] jaroslav: has joined #ruby
[21:02:17] mary5030: has joined #ruby
[21:02:58] jaroslav: Hi! I prefere simplicity, so I'm using 'chruby' instead of rvm. However, I'd like to have 'gemsets' like in rvm (so that each app would have own set of gems). I've found this: https://github.com/lengarvey/chruby_gemsets
[21:03:01] intrigueD: has joined #ruby
[21:03:21] smathy: jaroslav, I'd go with bundler.
[21:03:26] jaroslav: Is it a good option? Are there any alternatives?
[21:03:43] jaroslav: smathy: how can I do it with bundler?
[21:03:51] darkf: has joined #ruby
[21:03:54] havenwood: jaroslav: See also: https://github.com/postmodern/gem_home#readme
[21:04:08] mary5030: has joined #ruby
[21:04:41] jaroslav: havenwood: ah, that's awesome! Thx!
[21:05:11] adaedra: There's also the gs gem that was doing ok for me
[21:05:25] adaedra: But I'd say the gemset feature is not really needed when you have bundler
[21:05:43] anisha: has joined #ruby
[21:05:59] havenwood: If I'm using a gemset something has gone horribly awry. ;P
[21:06:59] postmodern: has joined #ruby
[21:08:39] AthenaF: has joined #ruby
[21:08:54] smathy: jaroslav, you'd use bundler: http://bundler.io/
[21:09:14] smathy: jaroslav, I'm not sure what else "how can I do it" means.
[21:10:00] s2013: has joined #ruby
[21:10:02] jaroslav: smathy: well, in rvm the 'gemset' is a feature where completely unique directory for installing gems is defined on a per-app basis
[21:10:30] jaroslav: smathy: so, if you eg. have ruby-2.3, you can do: # rvm ruby-2.3@my_fancy_app
[21:10:33] adaedra: jaroslav: bundler already ensures the gems you are using are the ones defined by your project
[21:10:37] smathy: jaroslav, so you're asking how bundler works under the hood?
[21:11:17] adaedra: at this point, gemsets are not doing more than forcing common gems to be installed multiple times instead of having shared installs.
[21:11:20] Breaking_Pitt: has joined #ruby
[21:11:22] jaroslav: smathy: no, I just thought there's an option to do it exactly like I explained above, but I've missed it in the docs :)
[21:11:52] adaedra: jaroslav: why do you want that?
[21:12:04] AthenaF: has left #ruby: ()
[21:12:06] jaroslav: smathy: I'm aware bundler + correct versions specified in *.gemspec file will do ~ the sam
[21:12:58] smathy: jaroslav, Gemfile not *.gemspec along with Gemfile.lock, but not sure what you think is missing for your requirement of each app having its own set of gems.
[21:13:20] jaroslav: adaedra: I just find it easier to control. If I have bunch of apps, with long dependency list, created by different people in my team, across many years...
[21:14:05] jaroslav: I just find it easier to be able to list directory contents, to know what a give app is using
[21:14:24] adaedra: bundle list
[21:15:13] patrick_star: has joined #ruby
[21:15:14] smathy: jaroslav, if you've got a lot invested in gemsets and you want to keep them then I'd recommend using rvm. I can't vouch for any of the non-rvm gemset managers, never used them or heard anything about them, sorry.
[21:15:17] hahuang65: has joined #ruby
[21:15:34] Aviio: has joined #ruby
[21:16:44] jaroslav: adaedra: smathy: thanks! I'll dig more around all the bundler features then. Probably you're right I can live without gemsets :)
[21:17:09] yxhuvud: has joined #ruby
[21:20:31] sandstrom: has joined #ruby
[21:23:07] smathy: jaroslav, I think there's even some rvm command for exporting a Gemfile.
[21:23:27] manveru: jackdan: there's always nix
[21:23:30] ericli: has joined #ruby
[21:23:48] manveru: ACTION is the local nix abassador
[21:23:54] anoob: has joined #ruby
[21:25:44] dvinciguerra: has joined #ruby
[21:25:51] dtzuzu: has joined #ruby
[21:28:13] diego1: has joined #ruby
[21:28:30] diego1: has joined #ruby
[21:33:13] ericli: has joined #ruby
[21:33:19] diego2: has joined #ruby
[21:34:07] symm-: has joined #ruby
[21:34:17] diego2: has joined #ruby
[21:34:27] dc2: has joined #ruby
[21:35:19] queequeg1: has joined #ruby
[21:36:04] hays_: has joined #ruby
[21:36:44] moonbay: has joined #ruby
[21:36:51] moonbay: any brogrammers in here?
[21:37:23] havenwood: ?offtopic moonbay
[21:37:23] ruby[bot]: moonbay: this seems to be off-topic. Please move your discussion to #ruby-offtopic, to keep this channel free for Ruby related problems. Thanks!
[21:39:36] chouhoul_: has joined #ruby
[21:40:27] Sammichmaker: has joined #ruby
[21:41:42] dtzuzu: has joined #ruby
[21:42:01] benlieb: has joined #ruby
[21:42:39] snowy: has joined #ruby
[21:49:04] ramfjord: has joined #ruby
[21:49:18] djbkd: has joined #ruby
[21:50:26] TheGreatGudsby: has left #ruby: ()
[21:50:26] TheGreatGudsby: has joined #ruby
[21:50:43] jenrzzz: has joined #ruby
[21:50:43] jenrzzz: has joined #ruby
[21:51:47] Azure: has joined #ruby
[21:52:31] Outlastsheep: has joined #ruby
[21:58:43] x77686d: has joined #ruby
[21:59:26] drewbro: has joined #ruby
[22:00:40] smathy: I thought the difference between private and protected was that private methods were not available in subclasses?
[22:03:32] smathy: Am I misunderstanding what "called from a subclass" means: https://gist.github.com/smathy/45f8fd75842561a037a2 ?
[22:03:59] Ox0dea: smathy: Private methods can't be invoked with an explicit receiver.
[22:04:48] Ox0dea: The same goes for protected ones unless `explicit_receiver.is_a?(self.class)`.
[22:04:53] stannard: has joined #ruby
[22:06:34] smathy: Ok.... so *if* you call a base class's methods with self.meth then you'll get an exception with a private method but not a protected one.
[22:07:04] Ox0dea: That's right.
[22:07:47] Ox0dea: There was some discussion on the mailing list about having explicit `self` count as an implicit receiver, but I don't recall what came of it.
[22:07:54] tildes: has joined #ruby
[22:08:10] floatingpoint: has joined #ruby
[22:08:35] apeiros: was self.foo= the only exception to that rule or are there others?
[22:08:55] apeiros: (private writer methods can be called with self)
[22:09:02] smathy: Ok, so a fairly useless and ad-hoc differentiation between protected and private then.
[22:09:54] smathy: apeiros, what now? You *can* call self.foo = 'abc' even if foo is private in base class?
[22:10:12] apeiros: trying to remember whether that's the only exception
[22:10:20] smathy: That's the opposite of useful.
[22:10:38] skweeke: has joined #ruby
[22:11:20] skweek: has joined #ruby
[22:11:38] smathy: So, in summary, private and protected are really just code documentation.
[22:11:40] apeiros: well, you wouldn't be able to call the method otherwise
[22:11:47] shevy: this is ruby!
[22:11:54] apeiros: yupp, +1 to viewing it that way
[22:12:00] shevy: .send versus .public_send !!!
[22:12:12] apeiros: ever since I learnt about Object#send that's how I thought about it :)
[22:12:39] smathy: apeiros, you'd be able to call it in the class it was defined in though, if Ox0dea's pseudo code is correct.
[22:12:58] apeiros: you can't call foo= methods without receiver. ever.
[22:13:00] Ox0dea: `foo=(...)` really ought to do The Right Thing. :/
[22:13:04] apeiros: all it'd do is assing an lvar
[22:13:24] smathy: apeiros, yeah, Ox0dea suggested that the private protection was something like: `explicit_receiver.is_a?(self.class)`
[22:13:36] Ox0dea: > private protection
[22:13:42] apeiros: no, the protected protection is
[22:13:47] smathy: Oh no, ...yeah that.
[22:13:51] smathy: Sorry, I misread.
[22:14:17] apeiros: I think matz calls it "visibility"
[22:14:50] smathy: Docs talk about "Access Control"
[22:15:16] smathy: http://ruby-doc.com/docs/ProgrammingRuby/html/tut_classes.html#S4
[22:16:40] shevy: hmm isn't this the 1.8.x code
[22:17:09] Ox0dea: smathy: I think that second bullet mentioning explicit receivers would've helped clarify.
[22:19:05] ericli: has joined #ruby
[22:19:43] smathy: It did, and "in the defining class" was another surprise :)
[22:20:34] smathy: Basically private methods are lexically scoped.
[22:20:50] mg^: private and protected don't even exist in MRuby, that was fun to discover.
[22:21:24] mg^: but the words exist and do nothing
[22:22:04] Ox0dea: >> public == private # This is Ruby!
[22:22:05] ruby[bot]: Ox0dea: # => true (https://eval.in/542360)
[22:22:23] smathy: This was surprising: https://gist.github.com/smathy/d3f70e727f5eb8c0af2c
[22:23:17] adaedra: private is merely a guideline after all
[22:24:33] smathy: It was also surprising NOT to have access to a private method in a reopened class.
[22:24:41] Ox0dea: smathy: How come? You're not invoking the private method with an explicit receiver.
[22:24:58] smathy: Ox0dea, yeah it wasn't surprising after reading the docs.
[22:25:05] Ox0dea: Ah, gotcha.
[22:25:14] smathy: Ox0dea, just very surprising when I thought private made a private method ;)
[22:25:27] rolha: has joined #ruby
[22:25:44] Ox0dea: As adaedra points out, method visibility is for humans.
[22:26:13] smathy: Just very un-DWIMmy.
[22:26:32] smathy: I'm actually mostly surprised that I've not tripped over it before, I guess I don't use it much.
[22:26:39] Uptime: has left #ruby: ("I guess it's post to be.")
[22:27:18] Ox0dea: The visibility specifiers are neat little one-word bundles of documentation.
[22:27:52] mg^: yeah that's really the most pragmatic way to look at them
[22:29:50] djellemah: has joined #ruby
[22:31:41] hays: has joined #ruby
[22:32:48] ramfjord: has joined #ruby
[22:35:26] Musashi007: has joined #ruby
[22:35:41] TinkerTyper: has joined #ruby
[22:37:10] uglybandersnatch: has joined #ruby
[22:37:53] Musashi007: has joined #ruby
[22:39:28] zenlot6: has joined #ruby
[22:40:04] freerobby: has joined #ruby
[22:40:55] patrick_star_2: has joined #ruby
[22:41:27] hays: has joined #ruby
[22:46:24] jobewan: has joined #ruby
[22:47:36] pwnd_nsfw: has joined #ruby
[22:48:53] Gasher: has joined #ruby
[22:49:03] devbug: has joined #ruby
[22:49:20] johnmilton: has joined #ruby
[22:53:33] mistermocha: has joined #ruby
[22:53:41] Devalo: has joined #ruby
[22:55:13] Es0teric: has joined #ruby
[22:56:00] DonOtreply: has joined #ruby
[22:58:16] shellie_: has joined #ruby
[22:58:44] SCHAAP137: has joined #ruby
[23:02:22] shevy: a dual symbol!
[23:02:47] stannard: has joined #ruby
[23:03:23] kam270: has joined #ruby
[23:05:36] shellie_: what's the best pattern to switch an underlying socket api that is used by my object representing a higher level protocol?
[23:06:21] diego1: has joined #ruby
[23:07:55] diego1: has joined #ruby
[23:10:56] drewbro: has joined #ruby
[23:11:47] benzrf: shellie_: have you considered using ømq instead :]
[23:12:15] kappy: has joined #ruby
[23:13:01] shellie_: benzrf: I've no idea how that could help me? :)
[23:13:24] benzrf: well, it was at least 70% facetious
[23:13:57] benzrf: the 30% is just "if you don't know what ømq is, and you're doing some kind of higher-level protocol that involves swithing between implementations or sockets, maaaybe ømq is relevant?"
[23:14:23] shellie_: I thought 0mq was just a message bus
[23:14:24] benzrf: shellie_: anyway, you could probably take a socket class as an argument or attribute
[23:14:28] benzrf: shellie_: not at all
[23:14:39] smathy: shellie_, we have no idea what your problem is. Try to explain: what you're doing, what you're expecting, what's happening instead.
[23:15:03] benzrf: its a collection of useful abstractions for sockety stuff that operates at a slightly higher level than plain old 2-way streams
[23:15:19] shellie_: what I'm looking for, is to wrap a web connection and an web-ssl connection in separate classes, but presenting them to my object with a common interface. I'm just not sure of what would be the cleast way to plug this into my code.
[23:15:27] benzrf: one of the things it happens to provide is the ability to treat the connection as a sequence of messages instead of as a sequence of bytes
[23:15:51] benzrf: ah, nvm, irrelevant :>
[23:16:28] shellie_: interesting, I shall look into 0mq nevertheless :)
[23:16:36] shellie_: (for different reason, tho)
[23:17:42] benzrf: shellie_: why not just add 'use ssl/tls' as an option in the ctor
[23:18:31] smathy: shellie_, you're talking to web servers and you're writing your own socket-level code?
[23:18:39] Moosashi: has joined #ruby
[23:18:53] Dreamer3_: has joined #ruby
[23:19:31] shellie_: that's an option benzrf, for the very standard implemention; the issue is I might want to use a different ssl implementation (or even switch the code to use QUIC or something else entirely)
[23:19:40] shellie_: also, smathy ^
[23:19:42] FooMunki: has joined #ruby
[23:21:17] daguilaraguilar: has joined #ruby
[23:23:21] stannard: has joined #ruby
[23:23:36] Inside: has joined #ruby
[23:23:36] Inside: has joined #ruby
[23:24:20] s2013: has joined #ruby
[23:25:50] davedev24: has joined #ruby
[23:28:16] SCHAAP137: has joined #ruby
[23:28:33] JoshL: has joined #ruby
[23:29:50] ramfjord: has joined #ruby
[23:32:43] robbyoconnor: has joined #ruby
[23:34:15] Gasher: has joined #ruby
[23:36:00] Melpaws: has joined #ruby
[23:36:45] stunder001: has joined #ruby
[23:38:32] jinie: has joined #ruby
[23:39:15] sonOfRa: has joined #ruby
[23:39:16] hxegon: has joined #ruby
[23:44:02] stannard: has joined #ruby
[23:48:28] bry4n: has joined #ruby
[23:55:28] ebbflowgo: has joined #ruby
[23:55:46] fullofcaffeine: has joined #ruby
[23:56:06] Cohedrin: has joined #ruby
[23:57:45] siaW: has left #ruby: ()
[23:58:27] davedev24: has joined #ruby
[23:59:20] mistralcontrasti: has joined #ruby