« Back to channel list

#ruby - 28 June 2016

« Back 1 day Forward 1 day »
[00:00:10] xall: has joined #ruby
[00:00:19] cyphase: has joined #ruby
[00:01:10] shevy: has joined #ruby
[00:05:11] electrostat: has joined #ruby
[00:06:55] shevy: has joined #ruby
[00:09:24] SilverKey: has joined #ruby
[00:11:23] wilsonc91: has joined #ruby
[00:12:11] jhass: well, technically Ruby has metric tons of APIs
[00:15:05] Guest22196: has joined #ruby
[00:15:15] bhaak: has joined #ruby
[00:16:29] leea: has joined #ruby
[00:18:43] kavanagh: has joined #ruby
[00:19:10] AndroidLoverInSF: has joined #ruby
[00:19:48] sarbs: has joined #ruby
[00:21:20] xall: has joined #ruby
[00:24:31] john2: has joined #ruby
[00:24:32] hahuang61: has joined #ruby
[00:24:48] rickmasta: has joined #ruby
[00:25:02] mikecmpbll: has joined #ruby
[00:25:15] Lucky_ABA: has joined #ruby
[00:28:28] rickmasta: has joined #ruby
[00:30:33] skweek: has joined #ruby
[00:31:02] enterprisey: has joined #ruby
[00:31:16] dc2: has joined #ruby
[00:31:17] rickmasta: has joined #ruby
[00:33:39] rickmasta: has joined #ruby
[00:34:24] pawnbox: has joined #ruby
[00:35:00] yma__gib: has joined #ruby
[00:36:07] arescorpio: has joined #ruby
[00:37:01] ruby[bot]: -qqq $a:CSGSJay CSGSJay!*@* *!*@gateway/web/freenode/ip.82.26.247.162
[00:38:14] Hobogrammer: has joined #ruby
[00:46:02] crystal77: has joined #ruby
[00:47:58] mfb2_: has joined #ruby
[00:48:28] Ropeney: has joined #ruby
[00:48:29] electrostat: has joined #ruby
[00:50:30] shevy: has joined #ruby
[00:52:48] xlegoman: has joined #ruby
[00:53:03] workmad3_: has joined #ruby
[00:56:58] ThatsNotJack: has joined #ruby
[00:58:02] workmad3: has joined #ruby
[00:59:11] dminuoso: has joined #ruby
[00:59:38] douglascorrea: has joined #ruby
[01:05:41] zotherstupidguy: has joined #ruby
[01:09:55] moeabdol: has joined #ruby
[01:11:12] ullu: has joined #ruby
[01:11:54] RegulationD: has joined #ruby
[01:14:28] cdg: has joined #ruby
[01:15:49] electrostat: has joined #ruby
[01:16:06] mistermocha: has joined #ruby
[01:17:53] mistermo_: has joined #ruby
[01:19:22] ur5us: has joined #ruby
[01:19:36] ur5us: has joined #ruby
[01:21:25] blandflakes: has joined #ruby
[01:22:22] jaguarmagenta: has joined #ruby
[01:24:46] Cohedrin: has joined #ruby
[01:24:51] rehat: has joined #ruby
[01:25:18] hahuang61: has joined #ruby
[01:27:04] macsteps: has joined #ruby
[01:28:09] macsteps: has joined #ruby
[01:28:18] agentmeerkat: has joined #ruby
[01:30:39] mistermocha: has joined #ruby
[01:31:35] CloCkWeRX: has joined #ruby
[01:32:38] mistermo_: has joined #ruby
[01:32:56] rickmasta: has joined #ruby
[01:36:26] lessless: has joined #ruby
[01:38:12] nando293921: has joined #ruby
[01:38:21] rbennacer: has joined #ruby
[01:38:36] i8igmac: has joined #ruby
[01:39:32] mistermo_: has joined #ruby
[01:39:51] i8igmac: whats your guys preferred online ruby.io emulator
[01:39:57] i8igmac: i thought it was ruby.io
[01:40:07] workmad3: has joined #ruby
[01:40:08] jhass: wth is ruby.io
[01:40:25] i8igmac: to pastebin example scripts online
[01:40:30] jhass: doesn't even resolve
[01:40:34] i8igmac: its wrong. im trying to remember
[01:40:58] i8igmac: you guys have any preferred online ruby emulators?
[01:41:02] jhass: https://carc.in/#/rb
[01:41:10] havenwood: i8igmac: gist.github.com
[01:41:20] havenwood: i8igmac: for mruby: https://joshnuss.github.io/mruby-web-irb/
[01:41:24] jhass: j/k I run that for something else, ruby's there just for fun
[01:41:33] adam12: jhass: I didn't know that :)
[01:41:40] jhass: >> "hello"
[01:41:52] jhass: ugh, still ruboto?
[01:41:57] adam12: I've used it here. Didn't know that you ran it (see it elsewhere too obv, since you stalk me in other channels).
[01:42:17] havenwood: i8igmac: https://eval.in
[01:42:23] i8igmac: there it is evil
[01:42:26] mistermocha: has joined #ruby
[01:42:39] i8igmac: they all work
[01:42:41] ruby[bot]: jhass: I'm terribly sorry, I could not evaluate your code because of an error: Net::OpenTimeout:execution expired
[01:42:58] jhass: can you all not say anything for 2 minutes? :P
[01:43:43] ruby[bot]: has joined #ruby
[01:43:43] ChanServ: +o ruby[bot]
[01:43:54] jhass: >> "ping"
[01:44:13] jhass: ACTION shrugs
[01:44:24] nankyokusei: has joined #ruby
[01:45:03] ruby[bot]: jhass: I'm terribly sorry, I could not evaluate your code because of an error: Net::OpenTimeout:execution expired
[01:45:07] workmad3: has joined #ruby
[01:45:26] mistermocha: has joined #ruby
[01:45:34] jhass: oh amazing, eval.in's v6 is down
[01:45:52] shakes: has joined #ruby
[01:46:27] A_Drone: has joined #ruby
[01:48:55] blackmesa: has joined #ruby
[01:49:22] mistermo_: has joined #ruby
[01:50:08] smathy: has joined #ruby
[01:50:59] d0nn1e: has joined #ruby
[01:51:00] jhass: question is wth doesn't ruby fallback to v4
[01:51:43] rkazak: has joined #ruby
[01:51:56] benlieb: has joined #ruby
[01:51:58] yma__gib: has joined #ruby
[01:52:19] mistermocha: has joined #ruby
[01:57:14] mistermocha: has joined #ruby
[01:58:12] icarus: has joined #ruby
[01:58:12] mistermo_: has joined #ruby
[01:59:13] mattwashere: has joined #ruby
[02:00:47] yma__gib: has joined #ruby
[02:00:50] mattwashere: has joined #ruby
[02:01:12] dminuoso: has joined #ruby
[02:02:15] elifoster: has joined #ruby
[02:02:20] rbennacer: has joined #ruby
[02:02:35] A_Drone: has joined #ruby
[02:04:36] DeepKnow: has joined #ruby
[02:04:45] DeepKnow: has left #ruby: ()
[02:05:07] A_Drone_: has joined #ruby
[02:05:52] mistermocha: has joined #ruby
[02:06:18] shevy: has joined #ruby
[02:06:41] LoneHerm_: has joined #ruby
[02:10:59] mistermocha: has joined #ruby
[02:12:13] A_Drone: has joined #ruby
[02:12:43] arthurl: has joined #ruby
[02:12:57] mistermo_: has joined #ruby
[02:13:10] pawnbox: has joined #ruby
[02:15:52] mistermocha: has joined #ruby
[02:17:13] A_Drone: has joined #ruby
[02:17:53] mistermo_: has joined #ruby
[02:20:41] Es0teric: has joined #ruby
[02:20:50] mistermocha: has joined #ruby
[02:21:46] Log1x: has joined #ruby
[02:21:48] mistermo_: has joined #ruby
[02:22:45] tubuliferous: has joined #ruby
[02:22:47] mistermo_: has joined #ruby
[02:23:05] rkazak: has joined #ruby
[02:26:02] hahuang61: has joined #ruby
[02:26:11] woodruffw: has joined #ruby
[02:26:41] woodruffw: has joined #ruby
[02:27:43] mistermocha: has joined #ruby
[02:28:24] Ropeney: has joined #ruby
[02:28:34] houhoulis: has joined #ruby
[02:29:26] tmtwd: has joined #ruby
[02:29:37] agentmeerkat: has joined #ruby
[02:32:27] jaguarmagenta: has joined #ruby
[02:32:59] Rodya_: has joined #ruby
[02:39:28] karapetyan: has joined #ruby
[02:40:17] agentmeerkat: has joined #ruby
[02:40:26] howdoi: has joined #ruby
[02:42:28] yma__gib: has joined #ruby
[02:42:37] mgorbach: has joined #ruby
[02:43:59] jenrzzz: has joined #ruby
[02:43:59] jenrzzz: has joined #ruby
[02:44:06] preyalone: has joined #ruby
[02:44:21] Rodya_: has joined #ruby
[02:44:22] neo_: has joined #ruby
[02:44:25] mistermocha: has joined #ruby
[02:44:26] benlieb: has joined #ruby
[02:46:29] zacstewart: has joined #ruby
[02:49:21] blackgoat: has joined #ruby
[02:51:15] Sammichmaker: has joined #ruby
[02:51:25] blackmesa: has joined #ruby
[02:53:12] dsea: has joined #ruby
[02:53:47] benlieb: has joined #ruby
[02:54:38] xlegoman: has joined #ruby
[02:56:53] neo_: has joined #ruby
[03:01:17] mistermocha: has joined #ruby
[03:01:22] ramfjord: has joined #ruby
[03:01:48] yma__gib: has joined #ruby
[03:01:53] douglascorrea: has joined #ruby
[03:02:07] lessless: has joined #ruby
[03:02:09] xall: has joined #ruby
[03:02:58] Rodya_: has joined #ruby
[03:04:54] iMadper: has joined #ruby
[03:05:21] nettoweb: has joined #ruby
[03:07:05] pontiki: has joined #ruby
[03:10:05] LoneHerm_: has joined #ruby
[03:10:15] mtkd: has joined #ruby
[03:10:20] rbennacer: has joined #ruby
[03:11:17] braincrash: has joined #ruby
[03:11:58] RegulationD: has joined #ruby
[03:12:19] thisguy123: has joined #ruby
[03:12:39] benlieb: has joined #ruby
[03:13:26] crystal77: has joined #ruby
[03:16:21] ensyde: has joined #ruby
[03:17:08] Coldblackice: has joined #ruby
[03:18:45] rickmasta: has joined #ruby
[03:19:29] shevy: has joined #ruby
[03:19:29] ekinmur: has joined #ruby
[03:21:07] k3rn31: has joined #ruby
[03:23:33] rickmasta: has joined #ruby
[03:26:30] gix: has joined #ruby
[03:26:47] hahuang61: has joined #ruby
[03:27:43] LoneHermit: has joined #ruby
[03:29:18] sebstrax: has joined #ruby
[03:29:21] Lucky_ABA: has joined #ruby
[03:32:37] isberg: has joined #ruby
[03:33:39] hastur: has joined #ruby
[03:34:23] hastur: hey, i just `gem install pg` yet the stack trace sayd "cannot load such file: pg". what gives?
[03:34:31] hastur: i'm using rvm and version 2.1.2
[03:35:28] roamingdog: has joined #ruby
[03:36:18] Radar: maybe using a different ruby in your `gem` command
[03:36:21] Radar: hastur: `which gem` please
[03:36:46] jasvinder: has joined #ruby
[03:36:49] hastur: ~/.rvm/rubies/ruby-2.1.2/bin/gem
[03:37:03] jenrzzz: has joined #ruby
[03:37:07] Radar: hastur: and what command are you running to get that cannot load such file error?
[03:37:14] Radar: That path checks out.
[03:37:25] hastur: `ruby pg.rb`
[03:37:32] Radar: hastur: `which ruby`?
[03:38:05] hastur: ~/.rvm/rubies/ruby-2.1.2/bin/ruby :(
[03:38:06] c0mrad3: has joined #ruby
[03:38:11] Radar: Ok, that's fine too.
[03:38:16] Radar: `gem list` in a Gist please.
[03:38:20] Radar: and `gem env`
[03:39:38] Yzguy: has joined #ruby
[03:39:49] hastur: https://ghostbin.com/paste/98fh8
[03:39:56] hastur: hangon have to add gem env
[03:41:22] hastur: https://ghostbin.com/paste/98fh8
[03:42:42] Radar: pg is missing from your gem list
[03:42:49] Radar: hastur: Did you really run `gem install pg`?
[03:42:53] Radar: And did it succeed?
[03:42:57] hutch34: has joined #ruby
[03:44:34] hastur: er, i did use sudo
[03:44:34] Arcaire: ACTION puts quiet bets on apt-get install libpq-dev.
[03:44:34] ramfjord: has joined #ruby
[03:44:46] hastur: already libpq, i'll be taking that money thx
[03:45:04] Arcaire: You get nothing, because you used sudo.
[03:45:17] nankyokusei: has joined #ruby
[03:45:19] hastur: half of my gems fail because i DON'T use sudo
[03:45:35] Arcaire: best ruby installation system 2kever
[03:45:55] hastur: tried without sudo, pg now seems to work
[03:46:44] Radar: hastur: now that you're using RVM, don't use sudo for anything.
[03:47:12] hastur: so sudo then rvm is okay, but not vice versa?
[03:47:43] Gnosis: lol'led at that one
[03:48:13] shevy: has joined #ruby
[03:49:00] hastur: at some point, you don't really have to know the idiosyncracies of every tool you use in order to merely use those tools
[03:49:07] hastur: we have long since passed that point
[03:49:17] Arcaire: that's why i evolved from using rvm
[03:49:23] Arcaire: and now use a systemwide ruby with a user-specific gemhome
[03:49:58] hastur: nice meme
[03:50:02] hastur: sounds like a lot of work m9
[03:50:11] Arcaire: `gem` read the environment variable
[03:50:14] Arcaire: automatically, it always has
[03:50:19] Arcaire: you just have to set it, which i do in .bashrc
[03:50:26] Arcaire: export GEM_HOME=$HOME/.gem
[03:50:48] Arcaire: Systemwide ruby is just pacman -S ruby on my desktop, or whatever downloaded and installed in /usr myself
[03:50:55] Arcaire: on my server boxen
[03:51:06] hastur: mein mainframe
[03:51:12] Arcaire: m'ainframe
[03:51:59] hastur: that's pretty tite tho
[03:52:14] Arcaire: works v. well for me, and i don't have duplicate ruby versions lying around
[03:52:35] Arcaire: i'd rather have all my projects on one ruby version with semi-variable gem versions than totally variable everythings because you did 'rvm install' on a different date.
[03:53:00] Arcaire: ofc this doesn't work in "production" because people haven't worked out that Docker is a meta-meme yet and is actually okay.
[03:53:27] blackmesa: has joined #ruby
[03:53:31] hastur: what you're saying is
[03:53:38] hastur: "docker is a meme" is a meme
[03:53:44] Arcaire: what i'm saying
[03:53:53] M-shine: has joined #ruby
[03:54:03] Arcaire: it's alright if you secure it up right
[03:54:10] hastur: i have to applaud the way you turned what i said into what you said because that's a gorgeous use of meta
[03:54:28] hastur: or at least
[03:54:31] hastur: a correct usage
[03:54:35] jenrzzz: has joined #ruby
[03:54:35] jenrzzz: has joined #ruby
[03:54:35] hastur: in this climate
[03:54:58] hastur: in THIS economy
[03:55:06] Arcaire: in the CURRENT YEAR
[03:55:25] hastur: it's ................ 2016
[03:56:39] benlieb: has joined #ruby
[03:56:44] shevy: has joined #ruby
[03:57:02] dminuoso: has joined #ruby
[03:57:34] vdamewood: has joined #ruby
[03:58:01] ekinmur: has joined #ruby
[03:59:18] mattwashere: has joined #ruby
[04:02:59] wuyin: has joined #ruby
[04:05:40] Gnosis: You guys are either young or very passionate about memes and how a meme may become okay again.
[04:06:02] Gnosis: Or I am too tired to process all this.
[04:06:05] Arcaire: Little column A, little column B.
[04:06:50] M-Kodo: has joined #ruby
[04:07:15] xall: has joined #ruby
[04:09:58] shevy: has joined #ruby
[04:12:20] duncannz: has joined #ruby
[04:13:05] RegulationD: has joined #ruby
[04:13:24] kareeoleez: has joined #ruby
[04:13:39] ThatsNotJack: has joined #ruby
[04:15:06] hastur: Memes Rule Everything Around Me
[04:15:12] jgt3: has joined #ruby
[04:15:15] hastur: the meme war is at hand, brother
[04:15:24] hastur: arm yourself
[04:16:05] Arcaire: there's no way you're not from #ig
[04:21:12] fclausen: has joined #ruby
[04:21:57] jaguarmagenta: has joined #ruby
[04:27:32] hahuang61: has joined #ruby
[04:28:05] karapetyan: has joined #ruby
[04:28:22] SilverKey: has joined #ruby
[04:29:18] No: has joined #ruby
[04:29:26] Devalo: has joined #ruby
[04:31:27] M-mistake: has joined #ruby
[04:33:03] hk238: has joined #ruby
[04:33:41] nadir: has joined #ruby
[04:35:05] hirvi: has joined #ruby
[04:35:35] k3rn31: has joined #ruby
[04:36:54] Yzguy: has joined #ruby
[04:40:12] hahuang61: has joined #ruby
[04:41:22] hirvi: has joined #ruby
[04:45:07] ascarter: has joined #ruby
[04:45:34] shevy: has joined #ruby
[04:47:43] pawnbox: has joined #ruby
[04:50:01] zacstewart: has joined #ruby
[04:54:12] blackmesa: has joined #ruby
[04:55:49] neo_: has joined #ruby
[04:57:40] febuiles: has joined #ruby
[04:59:58] dminuoso: has joined #ruby
[05:00:45] moeabdol: has joined #ruby
[05:02:18] jas02: has joined #ruby
[05:05:12] seth: has joined #ruby
[05:13:23] seth: has joined #ruby
[05:13:55] RegulationD: has joined #ruby
[05:15:08] Hyuk: has joined #ruby
[05:15:26] dminuoso: has joined #ruby
[05:17:09] jaguarmagenta: has joined #ruby
[05:17:16] sauvin: has joined #ruby
[05:17:51] astrobunny: has joined #ruby
[05:23:06] blandflakes: has joined #ruby
[05:26:12] srgupta: has joined #ruby
[05:32:40] tmillc: has joined #ruby
[05:35:14] dminuoso: has joined #ruby
[05:37:47] Lucky_ABA: has joined #ruby
[05:42:24] xall: has joined #ruby
[05:49:10] craigp_: has joined #ruby
[05:51:19] zacstewart: has joined #ruby
[05:53:42] isberg: has joined #ruby
[05:54:35] tildes: has joined #ruby
[05:55:14] blackmesa: has joined #ruby
[05:57:56] kareeoleez: has joined #ruby
[05:58:45] pawnbox: has joined #ruby
[05:59:09] ciampix: has joined #ruby
[05:59:28] ascarter: has joined #ruby
[05:59:50] mattwashere: has joined #ruby
[05:59:55] mfb2: has joined #ruby
[06:00:39] TomyLobo: has joined #ruby
[06:02:17] isberg: has joined #ruby
[06:04:16] boogeyman: has joined #ruby
[06:04:48] Dimik: has joined #ruby
[06:05:46] boogeyman: has joined #ruby
[06:07:16] boogeyman: has joined #ruby
[06:07:30] pawnbox: has joined #ruby
[06:08:39] Adarsh_why: has joined #ruby
[06:08:46] boogeyman: has joined #ruby
[06:09:07] dminuoso: Hello Adarsh_why
[06:09:17] Adarsh_why: hello all. I am first time in irc
[06:09:20] boogeyman: has joined #ruby
[06:09:24] Adarsh_why: but this is cool
[06:09:39] Adarsh_why: Thanks @dminuoso
[06:09:53] boogeyman: has left #ruby: ()
[06:10:52] tildes: has joined #ruby
[06:12:34] Adarsh_why: Is anybody here into functional programming in ruby?
[06:12:35] skade: has joined #ruby
[06:13:16] Adarsh_why: It seems everyone busy.
[06:13:33] Adarsh_why: ok Thanks. Later
[06:14:46] RegulationD: has joined #ruby
[06:15:39] dhruvasagar: has joined #ruby
[06:17:04] shevy: has joined #ruby
[06:17:33] araujo: has joined #ruby
[06:17:33] araujo: has joined #ruby
[06:17:37] voodoofish430: has joined #ruby
[06:17:41] sandelius: has joined #ruby
[06:19:44] jackjackdripper: has joined #ruby
[06:20:03] jgt3: has joined #ruby
[06:20:15] ullu: has joined #ruby
[06:23:01] vuoto: has joined #ruby
[06:23:07] conta: has joined #ruby
[06:23:18] i8igmac: has joined #ruby
[06:25:31] k3rn31: has joined #ruby
[06:27:13] roamingdog: has joined #ruby
[06:29:14] DoubleMalt: has joined #ruby
[06:30:05] firstdayonthejob: has joined #ruby
[06:31:02] rodfersou: has joined #ruby
[06:35:46] AlexRussia: has joined #ruby
[06:38:10] emiltin: has joined #ruby
[06:43:00] mark_66: has joined #ruby
[06:44:05] Pumukel: has joined #ruby
[06:46:32] blaxter: has joined #ruby
[06:48:02] banjara: has joined #ruby
[06:48:17] ur5us: has joined #ruby
[06:48:49] moeabdol: has joined #ruby
[06:48:56] ur5us: has joined #ruby
[06:49:35] patrick_star_3: has joined #ruby
[06:50:43] andikr: has joined #ruby
[06:53:20] dmr8: has joined #ruby
[06:53:57] Copperfield: has joined #ruby
[06:53:59] dc2: has joined #ruby
[06:54:49] djbkd: has joined #ruby
[06:56:01] blackmesa: has joined #ruby
[07:00:01] yfeldblum: has joined #ruby
[07:00:52] symm-: has joined #ruby
[07:01:22] leea: has joined #ruby
[07:01:36] yfeldblum: has joined #ruby
[07:01:53] tmillc: has left #ruby: ("WeeChat 1.1.1")
[07:04:27] douglascorrea: has joined #ruby
[07:07:06] codecop: has joined #ruby
[07:08:30] maloik: has joined #ruby
[07:08:32] teclator_: has joined #ruby
[07:10:20] tAn: has joined #ruby
[07:10:37] solars: has joined #ruby
[07:11:36] tAn: has joined #ruby
[07:14:32] soulisson: has joined #ruby
[07:14:44] User458764: has joined #ruby
[07:14:59] soulisson: Hi, in ruby, are blocks objects that get implicitly passed to the function?
[07:15:02] User458764: Hi, how do I handle a Array string?
[07:15:18] User458764: I want to get an Array of course
[07:15:40] RegulationD: has joined #ruby
[07:15:42] dminuoso: soulisson: Not exactly objects.
[07:15:47] astrobunny: has joined #ruby
[07:15:57] dminuoso: soulisson: Blocks are one of the very few things in Ruby that are actually not objects. But in a sense you are right.
[07:16:41] dminuoso: They do get implicitly passed, and you get test for their presence using block_given?
[07:16:47] karapetyan: has joined #ruby
[07:17:14] soulisson: dminuoso, ok, so just the block address is passed to the function?
[07:17:47] dminuoso: soulisson: The exact details depend on the implementation.
[07:17:52] the_drow: has joined #ruby
[07:17:54] vqrs: has joined #ruby
[07:17:58] rolfb: has joined #ruby
[07:17:58] LoneHerm_: has joined #ruby
[07:19:24] n1x-nz: has joined #ruby
[07:19:24] dminuoso: soulisson: But you have no direct way to interact with the block other than either a) calling yield or b) bind it to a proc.
[07:20:05] antgel: has joined #ruby
[07:20:18] hs366: has joined #ruby
[07:21:16] ruby-lang910: has joined #ruby
[07:22:07] ur5us: has joined #ruby
[07:24:12] dminuoso: soulisson: Interestingly any proc object has a block attached to it - but it is that proc that is an actual Ruby object. That is also why binding a block to a proc is relatively cheap, because you only need to create a really small proc object, and then the block pointer gets assigned to it.
[07:25:02] soulisson: dminuoso, thanks
[07:25:11] the_drow: has joined #ruby
[07:25:15] Couch: has joined #ruby
[07:25:15] soulisson: dminuoso, another question, are methods objects in ruby?
[07:25:30] tildes: has joined #ruby
[07:25:45] dminuoso: soulisson: They are not in fact. They also belong to that small group of things that are not objects.
[07:25:52] CloCkWeRX: has joined #ruby
[07:25:57] the_drow: has joined #ruby
[07:26:12] dminuoso: soulisson: You can unbind them though, and thus creating objects from them.
[07:26:36] joonty: has joined #ruby
[07:27:17] dminuoso: soulisson: The third and I think last bit is variables, they also are not objects.
[07:28:00] soulisson: ok, thank you very much
[07:28:02] roamingdog: has joined #ruby
[07:28:19] hs366: has joined #ruby
[07:33:45] sucks: has joined #ruby
[07:34:51] aganov: has joined #ruby
[07:34:59] AlexRussia: has joined #ruby
[07:35:10] biberu: has joined #ruby
[07:38:18] tAn: has joined #ruby
[07:39:00] rkazak: has joined #ruby
[07:39:27] Niham: has joined #ruby
[07:40:44] User458764: I try to convert a String to an Array, my array string is "[1, 2, 3]" and String.try_convert "[1, 2, 3]" returns me another String but not an Array, why?
[07:41:22] voodoofish4301: has joined #ruby
[07:43:30] adaedra: Because that's not what try_convert does
[07:43:57] blackmesa: has joined #ruby
[07:43:59] adaedra: try_convert tries to convert something into a string, not from
[07:44:31] adaedra: Your data however is JSON-parseable, so you can use that
[07:44:46] tubuliferous: has joined #ruby
[07:44:57] yfeldblum: has joined #ruby
[07:47:04] mikecmpbll: has joined #ruby
[07:47:42] multi_io: has joined #ruby
[07:50:12] anisha: has joined #ruby
[07:50:13] jgt3: has joined #ruby
[07:52:45] zacstewart: has joined #ruby
[07:52:59] ramfjord: has joined #ruby
[07:53:18] benlieb: has joined #ruby
[07:53:27] User458764: adaedra thanks JSON will do the job
[07:57:38] tildes: has joined #ruby
[07:59:19] Guest91508: has joined #ruby
[08:00:01] aufi: has joined #ruby
[08:01:13] mattwashere: has joined #ruby
[08:01:20] Ishido: has joined #ruby
[08:01:26] anisha: has joined #ruby
[08:03:01] rkoller: has joined #ruby
[08:03:32] Silthias: has joined #ruby
[08:03:46] araujo_: has joined #ruby
[08:05:12] pandaant: has joined #ruby
[08:06:20] Silthias1: has joined #ruby
[08:12:02] jgt3: has joined #ruby
[08:12:38] nofxx: has joined #ruby
[08:14:24] snowy: has joined #ruby
[08:14:24] isxek: has joined #ruby
[08:15:02] snowy: has left #ruby: ()
[08:16:31] RegulationD: has joined #ruby
[08:19:19] LoneHermit: has joined #ruby
[08:19:36] jaguarmagenta: has joined #ruby
[08:21:02] jaruga___: has joined #ruby
[08:25:26] MrBusiness: has joined #ruby
[08:25:56] vondruch: has joined #ruby
[08:26:02] mrgrieves: has joined #ruby
[08:26:10] blandflakes: has joined #ruby
[08:26:51] tomphp: has joined #ruby
[08:28:44] roamingdog: has joined #ruby
[08:31:00] jenrzzz: has joined #ruby
[08:35:39] moeabdol: has joined #ruby
[08:35:58] fold4: has joined #ruby
[08:36:52] solars: has joined #ruby
[08:38:43] braincrash: has joined #ruby
[08:42:34] rikkipitt: has joined #ruby
[08:43:08] Stan: has joined #ruby
[08:45:59] tubuliferous: has joined #ruby
[08:46:23] hutch34: has joined #ruby
[08:46:27] madgen: has joined #ruby
[08:48:00] skade: has joined #ruby
[08:51:06] hs366: has joined #ruby
[08:51:11] tAn: has joined #ruby
[08:52:34] fold4: has joined #ruby
[08:53:48] zacstewart: has joined #ruby
[08:55:22] marr: has joined #ruby
[08:55:35] haxrbyte: has joined #ruby
[08:55:54] pawnbox: has joined #ruby
[08:57:36] Niham: has joined #ruby
[08:58:54] DaniG2k: has joined #ruby
[08:59:56] blackgoat: has joined #ruby
[09:01:01] dc2: has joined #ruby
[09:02:06] JesseH: has joined #ruby
[09:02:28] jaguarmagenta: has joined #ruby
[09:03:56] rikkipitt: has joined #ruby
[09:04:16] terlar: has joined #ruby
[09:04:22] karapetyan: has joined #ruby
[09:05:50] antgel: has joined #ruby
[09:05:58] lxsameer: has joined #ruby
[09:08:27] tAn: has joined #ruby
[09:09:09] jaiks1: has joined #ruby
[09:09:30] iszak: has joined #ruby
[09:16:55] terlar: has joined #ruby
[09:17:23] RegulationD: has joined #ruby
[09:19:18] A_Drone: has joined #ruby
[09:19:45] ex0ns: has joined #ruby
[09:21:30] moeabdol: has joined #ruby
[09:22:02] rikkipitt: has joined #ruby
[09:25:41] rbr: has joined #ruby
[09:26:03] TomyWork: has joined #ruby
[09:29:16] karapetyan: has joined #ruby
[09:29:47] SirOliver: has joined #ruby
[09:33:26] emilkarl: has joined #ruby
[09:33:37] toretore: has joined #ruby
[09:40:13] pawnbox: has joined #ruby
[09:40:33] YaknotiS: has joined #ruby
[09:46:15] gregf_: >> "[1, 2, 3]".scan(/\d+/).map(&:to_i)
[09:46:16] ruby[bot]: gregf_: # => [1, 2, 3] (https://eval.in/596867)
[09:46:25] gregf_: *scrolls to the bottom*
[09:47:17] ruby-lang910: has left #ruby: ()
[09:48:01] tubuliferous: has joined #ruby
[09:48:09] rikkipitt: has joined #ruby
[09:49:29] braincrash: has joined #ruby
[09:49:55] A_Drone: has joined #ruby
[09:50:17] benlieb: has joined #ruby
[09:51:20] spiman: has joined #ruby
[09:52:21] scottj: has joined #ruby
[09:52:27] A_Drone_: has joined #ruby
[09:54:27] rickmasta: has joined #ruby
[09:55:18] zacstewart: has joined #ruby
[09:57:58] GodFather: has joined #ruby
[09:59:31] karapetyan: has joined #ruby
[10:00:09] blackmesa: has joined #ruby
[10:00:20] ur5us: has joined #ruby
[10:00:44] karapetyan: has joined #ruby
[10:00:52] c355E3B: has joined #ruby
[10:01:15] emiltin: has joined #ruby
[10:01:50] Shidash: has left #ruby: ()
[10:02:40] mattwashere: has joined #ruby
[10:03:37] GodFather: has joined #ruby
[10:06:38] dionysus69: has joined #ruby
[10:07:52] binaryplease1: has joined #ruby
[10:08:05] nettoweb: has joined #ruby
[10:08:49] A_Drone: has joined #ruby
[10:09:01] leea: has joined #ruby
[10:10:04] moeabdol: has joined #ruby
[10:11:42] araujo: has joined #ruby
[10:13:09] araujo: has joined #ruby
[10:13:24] GodFather: has joined #ruby
[10:14:34] User458764: has joined #ruby
[10:14:37] braincrash: has joined #ruby
[10:15:04] roamingdog: has joined #ruby
[10:15:31] araujo: has joined #ruby
[10:18:17] RegulationD: has joined #ruby
[10:20:46] emiltin: has joined #ruby
[10:21:47] ullu: has joined #ruby
[10:22:39] ramfjord: has joined #ruby
[10:30:54] Mia: has joined #ruby
[10:30:55] Mia: has joined #ruby
[10:32:39] braincrash: has joined #ruby
[10:33:01] blackmesa: has joined #ruby
[10:33:06] rikkipitt: has joined #ruby
[10:34:29] dhruvasagar: has joined #ruby
[10:35:04] shadeslayer: has joined #ruby
[10:35:25] sdothum: has joined #ruby
[10:37:20] tao_: has joined #ruby
[10:39:05] SirOliver: has joined #ruby
[10:39:59] spiman_: has joined #ruby
[10:40:37] davidblko: has joined #ruby
[10:42:48] neo_: has joined #ruby
[10:42:49] TheHodge: has joined #ruby
[10:43:51] Ishido: has joined #ruby
[10:44:10] blackmesa: has joined #ruby
[10:47:20] braincrash: has joined #ruby
[10:47:49] strigonLeader: has joined #ruby
[10:49:41] minimalism: has joined #ruby
[10:50:30] blandflakes: has joined #ruby
[10:51:42] craigp_: has joined #ruby
[10:51:50] johnmilton: has joined #ruby
[10:53:05] nettoweb: has joined #ruby
[10:53:44] SirOliver: has joined #ruby
[10:55:30] Kedare: has joined #ruby
[10:56:46] raeoks: has joined #ruby
[10:59:01] unshadow: has joined #ruby
[10:59:20] braincrash: has joined #ruby
[11:01:23] tildes: has joined #ruby
[11:01:33] SirOliver: has joined #ruby
[11:02:19] shortCircuit__: has joined #ruby
[11:02:25] shortCircuit__: I have a question
[11:03:42] shortCircuit__: I have a module Abc which has a method foo and I also have a class Def which include Abc and also has a method foo .. now c = Def.new .. c.foo calls the class's foo ... how do I call the module's foo .... like a delegate or something
[11:05:08] aryaching: has joined #ruby
[11:06:44] shortCircuit__: is there something like a .call or .bind
[11:06:58] shortCircuit__: there is a .call on proc and lambda
[11:08:02] yqt: has joined #ruby
[11:08:47] braincrash: has joined #ruby
[11:10:51] karapetyan: has joined #ruby
[11:10:59] emilkarl: has joined #ruby
[11:13:10] eatsfoobars: has joined #ruby
[11:13:54] arnonhongklay: has joined #ruby
[11:15:47] conta: has joined #ruby
[11:17:56] chip_: has joined #ruby
[11:19:02] Hanmac: shortCircuit__: from where do you want to call the Abc#foo ? from inside the Def#foo or from the object c ?
[11:19:09] RegulationD: has joined #ruby
[11:19:55] shortCircuit__: hanmac I would like from the object and Def#foo
[11:20:39] rikkipitt: has joined #ruby
[11:20:40] Hanmac: from the Def#foo, just use "super", from the object you might need to alias the method to something lese like abc_foo
[11:20:59] craigp_: has joined #ruby
[11:22:18] shortCircuit__: I see .. so just alias it just after the include Abc
[11:24:00] douglascorrea: has joined #ruby
[11:25:07] mdw: has joined #ruby
[11:28:25] rolfb: has joined #ruby
[11:28:46] stoopidmunkey: has joined #ruby
[11:28:52] douglascorrea: has joined #ruby
[11:28:58] hs366: has joined #ruby
[11:29:10] eatsfoobars: has joined #ruby
[11:29:14] braincrash: has joined #ruby
[11:29:28] emiltin: has joined #ruby
[11:31:51] zotherstupidguy: has joined #ruby
[11:32:02] stoopidmunkey: has joined #ruby
[11:32:30] dvinciguerra_: has joined #ruby
[11:32:41] Vile`: has joined #ruby
[11:34:16] joonty: has joined #ruby
[11:36:50] nennes: has joined #ruby
[11:37:05] skade: has joined #ruby
[11:38:15] mdw: has joined #ruby
[11:39:19] aryaching: has joined #ruby
[11:39:39] Gasher: has joined #ruby
[11:42:14] Fernando-Basso: has joined #ruby
[11:42:36] neo_: has joined #ruby
[11:43:33] pawnbox: has joined #ruby
[11:44:41] bkxd: has joined #ruby
[11:45:04] karapetyan: has joined #ruby
[11:45:21] User458764: has joined #ruby
[11:46:38] Carella: has joined #ruby
[11:49:02] Hanmac: has joined #ruby
[11:50:04] ramfjord: has joined #ruby
[11:50:54] No: has joined #ruby
[11:51:00] ullu: has joined #ruby
[11:56:32] zacstewart: has joined #ruby
[11:58:34] samara: has joined #ruby
[11:59:30] synthroid: has joined #ruby
[11:59:43] workmad3: has joined #ruby
[12:03:29] karapetyan: has joined #ruby
[12:05:58] rikkipitt: has joined #ruby
[12:08:36] tvw: has joined #ruby
[12:11:23] Guest14: has joined #ruby
[12:11:26] blackmesa: has joined #ruby
[12:14:29] lenwood: has joined #ruby
[12:15:21] hutch34: has joined #ruby
[12:20:13] RegulationD: has joined #ruby
[12:24:12] prestorium: has joined #ruby
[12:26:07] blandflakes: has joined #ruby
[12:32:08] aupadhye: has joined #ruby
[12:33:46] fmcgeough: has joined #ruby
[12:34:21] chip_: has joined #ruby
[12:35:07] davedev24: has joined #ruby
[12:35:19] GodFather: has joined #ruby
[12:36:20] douglascorrea: has joined #ruby
[12:36:27] pawnbox: has joined #ruby
[12:37:44] shevy: if only rubygems.org would have an issue request thingy!
[12:38:00] CJKinni: has joined #ruby
[12:40:12] fclausen_: has joined #ruby
[12:41:10] sepp2k: has joined #ruby
[12:42:46] ych: has joined #ruby
[12:43:47] Raphal: shevy: no copy of the Gem on Github?
[12:44:35] pawnbox: has joined #ruby
[12:45:09] No: has joined #ruby
[12:46:00] shevy: rapha_ yeah but I am so lazy :(
[12:46:20] shevy: it's a fair enough question though :)
[12:46:34] ngw: has joined #ruby
[12:46:59] jhass: can't one configure a bugtracker url?
[12:47:21] emilkarl: has joined #ruby
[12:48:55] toretore: if someone filed issues for my libraries on rubygems.org i'd be annoyed
[12:50:17] aegis3121: has joined #ruby
[12:51:56] sergio_101: has joined #ruby
[12:53:34] neo_: has joined #ruby
[12:56:51] howdoi: has joined #ruby
[13:01:21] karapetyan: has joined #ruby
[13:02:09] aupadhye: has joined #ruby
[13:02:59] ramortegui: has joined #ruby
[13:04:26] Jardayn: has joined #ruby
[13:05:40] tubuliferous: has joined #ruby
[13:07:12] wilsonc91: has joined #ruby
[13:07:23] Akuma: has joined #ruby
[13:08:07] karapetyan: has joined #ruby
[13:08:20] pawnbox: has joined #ruby
[13:08:40] ChiefAlexander: has joined #ruby
[13:08:42] nando293921: has joined #ruby
[13:09:14] zacstewart: has joined #ruby
[13:11:47] stoopidmunkey: has joined #ruby
[13:12:26] Carella: has joined #ruby
[13:12:51] roamingdog: has joined #ruby
[13:13:51] blackmesa: has joined #ruby
[13:13:57] bmurt: has joined #ruby
[13:14:22] mattwashere: has joined #ruby
[13:16:29] hoov: has joined #ruby
[13:16:47] kobain: has joined #ruby
[13:17:12] tAn: has joined #ruby
[13:17:38] chip_: has joined #ruby
[13:18:58] Vile`: has joined #ruby
[13:19:19] Tass_: has joined #ruby
[13:20:33] stoopidmunkey: has joined #ruby
[13:20:58] RegulationD: has joined #ruby
[13:21:05] agentmeerkat: has joined #ruby
[13:21:32] karapetyan: has joined #ruby
[13:21:56] Bish: has joined #ruby
[13:22:34] Bish: hi folkies, how would you parse strings like [<user>][:<password>@hostname[:<port>]
[13:22:44] aryaching: has joined #ruby
[13:22:58] Bish: i could use URI but i would've to prepend a dummyschema first, which i think is dirty
[13:23:01] Bish: plain old regex?
[13:23:01] jhass: including the [] ?
[13:23:09] Bish: no, that's for "showing" optionality
[13:23:31] jhass: I'm afraid dummy schema is your best bet
[13:23:40] Bish: okay, will do that
[13:23:45] jhass: you don't want to venture into the dark lands that are parsing URI with regex
[13:24:00] Bish: yeah, im gonna listen to #ruby regarding that, after parsing html with regex
[13:24:08] Bish: having tried*
[13:24:48] eatsfoobars: has joined #ruby
[13:25:19] raeoks: has joined #ruby
[13:25:27] karapetyan: has joined #ruby
[13:27:01] aegis3121: has joined #ruby
[13:28:05] malconis: has joined #ruby
[13:28:26] jokester: has joined #ruby
[13:28:40] workmad3: has joined #ruby
[13:29:24] Carella: has joined #ruby
[13:29:29] haxrbyte_: has joined #ruby
[13:29:29] Vingador: has joined #ruby
[13:29:36] catbusters: has joined #ruby
[13:30:06] mattwashere: has joined #ruby
[13:30:10] malconis: has joined #ruby
[13:30:46] Es0teric: has joined #ruby
[13:31:13] synthroid: has joined #ruby
[13:33:03] diegoviola: has joined #ruby
[13:33:37] DaniG2k: has joined #ruby
[13:33:52] Omni_: has joined #ruby
[13:34:06] rikkipitt: has joined #ruby
[13:35:17] spiette: has joined #ruby
[13:35:41] sanjayu: has joined #ruby
[13:36:23] rapha: has joined #ruby
[13:37:28] karapetyan: has joined #ruby
[13:38:37] shinnya: has joined #ruby
[13:40:45] SilverKey: has joined #ruby
[13:43:56] hutch34: has joined #ruby
[13:45:33] Alina-malina: has joined #ruby
[13:45:33] Alina-malina: has joined #ruby
[13:45:37] Amnez777: has joined #ruby
[13:45:52] nankyokusei: has joined #ruby
[13:48:10] metaphori: has joined #ruby
[13:48:33] rbennacer: has joined #ruby
[13:49:51] dstarh: has joined #ruby
[13:53:37] metaphori: has left #ruby: ()
[13:55:16] pawnbox: has joined #ruby
[13:55:40] anagha_: has joined #ruby
[13:56:40] roby_: has joined #ruby
[13:56:56] snowy: has joined #ruby
[13:57:13] camilasan: has joined #ruby
[13:57:25] emiltin: has joined #ruby
[13:58:33] aupadhye_: has joined #ruby
[13:59:22] roby_: has joined #ruby
[13:59:35] joonty1: has joined #ruby
[14:00:34] metaphori: has joined #ruby
[14:01:50] antgel: has joined #ruby
[14:02:40] aryaching: has joined #ruby
[14:03:05] helpa: has joined #ruby
[14:03:18] macsteps: has joined #ruby
[14:05:29] dhk: has joined #ruby
[14:05:46] shevy: regexes can parse the world
[14:06:15] No: has joined #ruby
[14:07:38] dvinciguerra_: has joined #ruby
[14:08:09] ych: has joined #ruby
[14:08:22] emilkarl: has joined #ruby
[14:09:18] synthroid: has joined #ruby
[14:09:49] eatsfoobars: has joined #ruby
[14:10:34] hk238: has joined #ruby
[14:14:51] blackmesa: has joined #ruby
[14:14:52] agentmeerkat: has joined #ruby
[14:17:52] anisha_: has joined #ruby
[14:19:44] jhass: shevy: is that so? What's a regex for finding the character at N/2 a string for arbitrary length N?
[14:20:07] SilverKey: has joined #ruby
[14:21:03] nankyokusei: has joined #ruby
[14:21:26] aryaching: has joined #ruby
[14:21:29] tAn: has joined #ruby
[14:21:47] RegulationD: has joined #ruby
[14:22:01] roamingdog: has joined #ruby
[14:24:51] LoneHermit: has joined #ruby
[14:26:24] ljarvis: unpossible
[14:26:49] aryaching: has joined #ruby
[14:29:09] ekinmur: has joined #ruby
[14:29:13] arthurl: has joined #ruby
[14:29:54] ThatsNotJack: has joined #ruby
[14:33:02] freerobby: has joined #ruby
[14:33:31] jokester: has joined #ruby
[14:33:49] emiltin: has joined #ruby
[14:35:43] jnoob22: has joined #ruby
[14:37:40] ulluh: has joined #ruby
[14:37:44] l4v2: has joined #ruby
[14:37:59] hutch34: has joined #ruby
[14:39:08] l4v2: what class are most of the assertion methods in? because I don’t see Test::Unit::Assertion
[14:39:38] l4v2: I’m using Dash on Mac to search them
[14:39:41] ljarvis: l4v2: you sure you're not using minitest?
[14:39:56] ljarvis: because those are here: http://ruby-doc.org/stdlib-2.0.0/libdoc/minitest/rdoc/MiniTest/Assertions.html
[14:42:01] mistermocha: has joined #ruby
[14:42:11] saneax_AFK: has joined #ruby
[14:42:16] l4v2: I’m still in very on in learning Ruby and Rails, so I am not sure about that, but that was Rubies Docs. But then again, Rails might inheret a lot from Ruby
[14:42:30] SilverKey: has joined #ruby
[14:43:35] polishdub: has joined #ruby
[14:43:48] ChiefAlexander: has joined #ruby
[14:44:08] aufi: has joined #ruby
[14:46:12] catbusters: has joined #ruby
[14:46:18] rafadc: has joined #ruby
[14:47:16] l4v2: So if I am inhereting from this class class PasswordResetsTest < ActionDispatch::IntegrationTest Then how do I have access to a mehtod I don’t see listed in it like: assert_template Where do these methods live?
[14:47:53] svkurowski: has joined #ruby
[14:48:13] ljarvis: l4v2: http://api.rubyonrails.org type in assert_
[14:48:17] ljarvis: and be amazed
[14:48:33] karapetyan: has joined #ruby
[14:49:37] troulouliou_div2: has joined #ruby
[14:50:55] karapetyan: has joined #ruby
[14:52:16] ullu: has joined #ruby
[14:53:07] l4v2: ljarvis, I am going up the dependancy tree, and got to Minitest::Test and I don’t see it
[14:53:55] ljarvis: l4v2: you want assert_template
[14:54:34] ljarvis: because as i just said, you should type it into the rails docs i just linked you: http://api.rubyonrails.org/classes/ActionController/TemplateAssertions.html#method-i-assert_template
[14:54:36] l4v2: More than anything, I am just trying to learn how to find things when I need them, or just see what options a class has
[14:54:56] Rodya_: has joined #ruby
[14:55:02] ljarvis: you would generally search the api docs for the class or method name, and then look
[14:55:33] ljarvis: e.g. if you want the docs for ActiveRecord::Base, you can just type it into api.rubyonrails.org
[14:56:10] wsewolod: has joined #ruby
[14:56:33] l4v2: Does everything in active record inheret from base?
[14:56:55] rippa: has joined #ruby
[14:56:57] ljarvis: that's the class active record models inherit from
[14:59:52] l4v2: Is ther a good tutroial on learning docs for Rails?
[15:00:26] arooni: has joined #ruby
[15:01:16] shevy: jhass I can't solve your homework problems for you!
[15:01:23] aegis3121: has joined #ruby
[15:01:54] rafadc: has joined #ruby
[15:02:07] l4v2: THis is the unfriendliest room. I’m asking a general question to improve my skills, should I talk about cars?
[15:02:10] pawnbox: has joined #ruby
[15:02:37] jhass: shevy: give me a hint
[15:02:42] Wildfyr: has joined #ruby
[15:02:48] shevy: jhass rubular.com
[15:03:31] pawnbox_: has joined #ruby
[15:03:39] `tim`: has joined #ruby
[15:03:51] Xiti: has joined #ruby
[15:04:59] jhass: shevy: http://rubular.com/r/cInPEcoPy7 is what I tried, it works for the first and second, but how do I get c for the third and fourth and d for the fifth?
[15:05:51] shevy: no that sucks
[15:06:05] shevy: http://www.regular-expressions.info/
[15:07:26] workmad3: has joined #ruby
[15:08:28] Mia: has joined #ruby
[15:08:33] swills: has joined #ruby
[15:10:41] GodFather: has joined #ruby
[15:11:14] Beverage: has joined #ruby
[15:12:08] yardenbar: has joined #ruby
[15:12:47] jhass: shevy: do you have a specific section I should look at?
[15:13:58] chouhoulis: has joined #ruby
[15:14:33] Rodya_: has joined #ruby
[15:16:04] blackmesa: has joined #ruby
[15:16:07] chouhoulis: has joined #ruby
[15:17:34] rkazak: has joined #ruby
[15:20:21] kareeoleez: has joined #ruby
[15:21:01] crystal77: has joined #ruby
[15:22:43] RegulationD: has joined #ruby
[15:23:49] tristanp: has joined #ruby
[15:24:33] macsteps: has joined #ruby
[15:25:04] mark_66: has left #ruby: ("PART #RubyOnRails :PART #elixir-lang :PART #crystal-lang :PONG :sinisalo.freenode.net")
[15:25:21] solars: has joined #ruby
[15:25:26] karapetyan: has joined #ruby
[15:27:43] Rodya_: has joined #ruby
[15:28:21] svkurowski: has joined #ruby
[15:30:29] GodFather: has joined #ruby
[15:31:05] mattwashere: has joined #ruby
[15:32:33] tao_: has joined #ruby
[15:32:45] Vingador: has joined #ruby
[15:34:39] Rodya_: has joined #ruby
[15:34:56] karapetyan: has joined #ruby
[15:35:06] smathy: has joined #ruby
[15:38:41] tvon: has joined #ruby
[15:40:36] naftilos76: has joined #ruby
[15:40:56] Hyuk: has joined #ruby
[15:41:13] Rodya_: has joined #ruby
[15:42:44] No: has joined #ruby
[15:43:06] DaniG2k: has joined #ruby
[15:43:35] tvw: has joined #ruby
[15:45:19] cschneid_: has joined #ruby
[15:45:25] allcentury: has joined #ruby
[15:46:14] Rodya_: has joined #ruby
[15:46:27] tAn: has joined #ruby
[15:47:56] mtkd: has joined #ruby
[15:50:07] Devalo: has joined #ruby
[15:50:08] mistermocha: has joined #ruby
[15:50:48] bmurt: has joined #ruby
[15:51:16] emiltin: has joined #ruby
[15:52:43] eatsfoobars: has joined #ruby
[15:53:02] macsteps: has joined #ruby
[15:53:40] dionysus69: has joined #ruby
[15:53:44] mwlang: has joined #ruby
[15:54:19] Carella: has joined #ruby
[15:55:29] symm-: has joined #ruby
[15:56:21] jetpackjoe: has joined #ruby
[15:57:08] Carella: has joined #ruby
[15:57:28] rafadc: has joined #ruby
[15:58:11] ubear: has joined #ruby
[15:59:09] amclain: has joined #ruby
[16:00:37] wrkrcoop: has joined #ruby
[16:00:45] wrkrcoop: if i have a module and that module has a method
[16:00:57] wrkrcoop: how can i call that method if it doesn’t have self. as a prefix?
[16:01:40] Lucky_ABA: has joined #ruby
[16:01:40] hutch34: has joined #ruby
[16:01:40] workmad3: wrkrcoop: you need to include the module into a class, and then that method will be available as an instance method of the class
[16:02:19] wrkrcoop: workmad3: ah i see
[16:02:48] yqt: has joined #ruby
[16:03:46] TomyLobo: has joined #ruby
[16:03:48] synthroid: has joined #ruby
[16:04:21] synthroid: has joined #ruby
[16:04:31] huyderman: has joined #ruby
[16:04:57] `tim`: has joined #ruby
[16:06:05] Es0teric: has joined #ruby
[16:07:37] Rodya_: has joined #ruby
[16:09:14] whathappens: has joined #ruby
[16:09:23] isberg: has joined #ruby
[16:09:29] Wildfyr: has joined #ruby
[16:10:14] nando293921: has joined #ruby
[16:11:10] ciampix: has joined #ruby
[16:12:38] Rodya_: has joined #ruby
[16:13:18] jas02: has joined #ruby
[16:13:27] workmad3: has joined #ruby
[16:14:25] SilverKey: has joined #ruby
[16:15:46] CJKinni: has joined #ruby
[16:16:52] nando293921: has joined #ruby
[16:18:07] Rodya_: has joined #ruby
[16:18:37] blackmesa: has joined #ruby
[16:20:19] lenwood: has joined #ruby
[16:20:45] ubear: has left #ruby: ()
[16:21:20] jxs_: has joined #ruby
[16:21:56] Rodya_: has joined #ruby
[16:22:53] znz_jp: has joined #ruby
[16:23:24] elomatreb: has joined #ruby
[16:23:33] RegulationD: has joined #ruby
[16:24:00] skade: has joined #ruby
[16:24:00] nankyokusei: has joined #ruby
[16:24:13] Oog: has joined #ruby
[16:24:25] banister: has joined #ruby
[16:24:30] rafadc: has joined #ruby
[16:24:42] Rodya_: has joined #ruby
[16:25:45] tvon: has joined #ruby
[16:26:05] synthroid: has joined #ruby
[16:26:05] LoneHerm_: has joined #ruby
[16:27:00] nogic: has joined #ruby
[16:27:24] elomatreb: Good evening. Does anyone in here have some experience with writing a custom Redcarpet renderer class?
[16:27:51] nogic: has joined #ruby
[16:28:39] slackbotgz: has joined #ruby
[16:30:26] blandflakes: has joined #ruby
[16:31:06] smathy: wrkrcoop, or you can use the `extend self` trick - not sure how kosher that's considered /cc workmad3
[16:31:47] mattwashere: has joined #ruby
[16:32:12] ramfjord: has joined #ruby
[16:33:03] ldnunes: has joined #ruby
[16:33:05] blackmesa: has joined #ruby
[16:33:06] Rodya_: has joined #ruby
[16:34:00] chouhoulis: has joined #ruby
[16:35:19] Neo--: has joined #ruby
[16:35:27] Rodya_: has joined #ruby
[16:36:01] momo-reina: has joined #ruby
[16:37:11] Wildfyr: ok ... any projects u guys would recommend for a ruby beginner
[16:38:46] momo-reina: has joined #ruby
[16:39:12] havenwood: Wildfyr: Looking for something that already exists to look at or to do yourself?
[16:39:32] mistermocha: has joined #ruby
[16:39:57] Rodya_: has joined #ruby
[16:40:46] DanyC: has joined #ruby
[16:40:54] mistermo_: has joined #ruby
[16:42:00] arthurl: has joined #ruby
[16:42:00] mfb2: has joined #ruby
[16:42:34] Wildfyr: havenwood: do myself
[16:43:01] havenwood: wrkr, ah they left, was going to suggest module_funciton
[16:43:06] dhruvasagar: has joined #ruby
[16:43:13] wrkrcoop: has joined #ruby
[16:43:43] jgt3: has joined #ruby
[16:44:04] freerobby: has joined #ruby
[16:44:47] RegulationD: has joined #ruby
[16:44:58] Wildfyr: funcitron?
[16:45:00] havenwood: Wildfyr: Exercism has some good challenges and feedback to hone your answer: http://exercism.io/languages/ruby
[16:45:31] havenwood: Wildfyr: I misspelt "function," it was supposed to be "module_function."
[16:45:57] vdamewood: has joined #ruby
[16:46:01] havenwood: Wildfyr: http://ruby-doc.org/core/Module.html#method-i-module_function
[16:46:25] d0nn1e: has joined #ruby
[16:46:35] neo_: has joined #ruby
[16:46:36] mfb2: has joined #ruby
[16:47:57] xaxisx: has joined #ruby
[16:48:07] SCHAAP137: has joined #ruby
[16:48:23] DanyC: has left #ruby: ()
[16:48:27] lenwood_: has joined #ruby
[16:48:43] havenwood: class Module; alias module_funkitron module_function endalias module_funkitron
[16:48:57] l4v2: has joined #ruby
[16:49:26] tomchapin: has joined #ruby
[16:49:51] smathy: Oh yeah, module_function, havenwood ftw. I always forget about that.
[16:50:31] havenwood: Wildfyr: Even if you don't want to use exercism they have some good project ideas. But I'd suggest giving it a try since you can get some good feedback. Show us your project here too!
[16:50:46] dminuoso: has joined #ruby
[16:52:07] Wildfyr: havenwood: okay
[16:56:11] rbennacer: has joined #ruby
[16:57:21] agent_white: has joined #ruby
[16:57:35] neo_: has joined #ruby
[16:57:52] emiltin: has joined #ruby
[17:00:13] SilverKey: has joined #ruby
[17:01:02] ciampix: has joined #ruby
[17:01:10] Devalo: has joined #ruby
[17:01:28] SilverKey: has joined #ruby
[17:01:53] aegis3121: has joined #ruby
[17:01:58] karapetyan: has joined #ruby
[17:03:43] mattwashere: has joined #ruby
[17:03:58] tvon: has joined #ruby
[17:04:15] wsewolod: has joined #ruby
[17:09:01] prefix: has joined #ruby
[17:09:16] solars: has joined #ruby
[17:09:18] baweaver: havenwood: what's the use of module_function?
[17:09:29] baweaver: ACTION is skimming through the docs on it.
[17:09:38] macsteps: has joined #ruby
[17:09:43] aegis3121: It declares a method as being accessible with the Module as the receiver
[17:10:09] aegis3121: e.g. class methods for modules
[17:10:31] havenwood: baweaver: When you want the module method but also a private method by the same name when you include the module.
[17:10:31] baweaver: so def self.method ?
[17:10:36] ChiefAlexander: has joined #ruby
[17:10:59] baweaver: not really seeing it, but that might just be the pre-coffee haze talking
[17:11:01] havenwood: baweaver: Yeah, it's that plus the private method when you include it.
[17:12:55] blackmesa: has joined #ruby
[17:13:37] stoopidmunkey: has joined #ruby
[17:13:39] havenwood: Like fileutils, etc in the stdlib - you might want to call the self.method-style directly on the module, but alternatively you might want to include the module, but have the included method be private. I'm having not-enough-coffee explaining difficulty. :P
[17:14:17] araujo: has joined #ruby
[17:14:17] araujo: has joined #ruby
[17:16:04] nettoweb: has joined #ruby
[17:16:39] sebstrax: has joined #ruby
[17:18:04] Wildfyr: has joined #ruby
[17:18:14] hahuang61: has joined #ruby
[17:18:56] synthroid: has joined #ruby
[17:19:00] dionysus69: has joined #ruby
[17:19:11] funrep: what does "ModuleName::some_variable? ModuleName::some_other_var" mean?
[17:19:21] funrep: context: predicate in an if statement
[17:19:45] karapetyan: has joined #ruby
[17:19:56] baweaver: sure it's a variable?
[17:20:01] baweaver: might just be used as a namespace
[17:20:29] baweaver: like Aws::EC2::connecrions
[17:22:14] karapetyan: has joined #ruby
[17:23:06] pilne: has joined #ruby
[17:24:00] hirvi: has joined #ruby
[17:24:41] kirun: has joined #ruby
[17:25:57] mattwashere: has joined #ruby
[17:26:35] edwardly: has joined #ruby
[17:26:35] edwardly: has joined #ruby
[17:27:17] LoneHermit: has joined #ruby
[17:27:17] funrep: im just not sure what the "?" means, because i cant find a variable with tatt exact name, only without the ? in the libraries docs
[17:27:40] yardenbar: has joined #ruby
[17:27:59] hutch34: has joined #ruby
[17:28:43] rkazak: has joined #ruby
[17:28:48] freerobby: has joined #ruby
[17:29:18] baweaver: It's a stylistic thing. Ruby methods can have ? or ! on the end
[17:29:37] baweaver: they're usually used to indicate boolean (a question) or danger / mutation
[17:30:01] funrep: ah alright!
[17:30:01] baweaver: Like if I wanted to know if Person Bob was legal, I might ask: bob.legal?
[17:30:31] baweaver: ! (bang) methods normally indicate mutation, like map vs map!
[17:31:13] baweaver: I mentioned it above
[17:31:48] baweaver: >> [1,2,3].any? { |i| i.even? }
[17:31:49] ruby[bot]: baweaver: # => true (https://eval.in/597152)
[17:32:20] baweaver: any? asks if any objects in the enumerable are true. We're asking the objects in the block if they're even. 2 is, so any? is true.
[17:32:37] agentmeerkat: has joined #ruby
[17:32:41] baweaver: (I'm explicitly writing longhand before someone mentions that)
[17:32:44] karapetyan: has joined #ruby
[17:33:19] stoopidmunkey: has joined #ruby
[17:33:22] baweaver: As for bang methods....
[17:33:36] baweaver: >> [1,2,3].map { |i| i * 2 }
[17:33:37] ruby[bot]: baweaver: # => [2, 4, 6] (https://eval.in/597153)
[17:33:47] baweaver: >> a = [1,2,3].map { |i| i * 2 }; a
[17:33:49] ruby[bot]: baweaver: # => [2, 4, 6] (https://eval.in/597154)
[17:34:00] baweaver: >> a = [1,2,3]; a.map { |i| i * 2 }; a
[17:34:01] ruby[bot]: baweaver: # => [1, 2, 3] (https://eval.in/597155)
[17:34:06] baweaver: >> a = [1,2,3]; a.map! { |i| i * 2 }; a
[17:34:07] ruby[bot]: baweaver: # => [2, 4, 6] (https://eval.in/597156)
[17:34:32] baweaver: `map!` transforms the array. `map` simply returns a new array without modifying the original.
[17:35:09] craigp_: has joined #ruby
[17:35:27] baweaver: funrep / Wildfyr: that about cover it?
[17:36:10] baweaver: Consider also reading through Eloquent Ruby, as it tends to cover a lot of this information in more detail than I can hope to on IRC.
[17:36:48] baweaver: random yes, or scrollback issue?
[17:37:09] chouhoulis: has joined #ruby
[17:37:52] chouhoulis: has joined #ruby
[17:39:27] l4v2: bweaver what?
[17:39:42] baweaver: you randomly said yes up there a bit ago
[17:39:57] karapetyan: has joined #ruby
[17:40:14] baweaver: http://logs.ryanbigg.com/ruby?date=2016-06-28#5904716
[17:40:22] l4v2: oh, I thought your explanation was hime asking if that is how the bob.legal worked
[17:40:53] l4v2: I was saying yes to it
[17:41:37] baweaver: I think we all need coffee this morning havenwood :D
[17:42:09] tubuliferous: has joined #ruby
[17:42:11] postmodern: has joined #ruby
[17:42:50] l4v2: Ok so how am I supposed to know that methods from MiniTest in Ruby are available in Rails class ActionDispatch::IntegrationTest
[17:43:00] elifoster: has joined #ruby
[17:43:25] l4v2: The rails docs do not show that parent class
[17:43:38] baweaver: ACTION knows precious little about minitest
[17:43:53] karapetyan: has joined #ruby
[17:44:24] baweaver: also meeting time, be back later.
[17:45:04] smathy: l4v2, it's probably not a parent class, probably just mixed in. The Rails API isn't really very formally specified, mostly people know because they learnt from a tutorial, generator, or some article/post from the web.
[17:45:14] mattwashere: has joined #ruby
[17:45:27] n8o: has joined #ruby
[17:45:42] n8o: Has anyone had problems with rake on Travis CI?
[17:47:43] `tim`: has joined #ruby
[17:48:25] havenwood: l4v2: Just an aside, but it's Minitest now (the MiniTest lost the capital T in Minitest 5): https://github.com/seattlerb/minitest/blob/master/History.rdoc#500--2013-05-10
[17:48:53] SilverKey: has joined #ruby
[17:49:16] jackjackdripper: has joined #ruby
[17:49:20] l4v2: Oh well then someone needs to tell Ruby docs that lol http://ruby-doc.org/stdlib-2.0.0/libdoc/minitest/rdoc/MiniTest.html#top
[17:49:54] adaedra: 2.0.0, it's outdated
[17:49:57] neo_: has joined #ruby
[17:50:06] roamingdog: has joined #ruby
[17:50:34] neo_: has joined #ruby
[17:52:11] gagrio: has joined #ruby
[17:52:22] ThatsNotJack: has joined #ruby
[17:52:33] mtkd: has joined #ruby
[17:54:11] troulouliou_div2: has joined #ruby
[17:54:36] funrep: what kind of "function/method" is this? https://www.libgosu.org/rdoc/Gosu.html#button_down%3F-class_method it doesnt wrap its arguments in paranthesses when called in this context: "if Gosu::button_down? Gosu::KbLeft or Gosu::button_down? Gosu::GpLeft then"
[17:55:33] shevy: was there a way from within a ruby script to move the cursor to the very left side? e. g if someone would do print "hi", to erase the hi and "jump" as to the cursor position before hi was printed
[17:55:58] arooni: has joined #ruby
[17:56:00] havenwood: l4v2: Ruby 2.0 is past end-of-life and Ruby 2.1 is not receiving bug fixes since it's in maintenance mode. If you can switch to Ruby 2.2.5 or Ruby 2.3.1 it'd be best!
[17:56:05] diegoviola: has joined #ruby
[17:56:39] SilverKey: has joined #ruby
[17:56:43] l4v2: That was where my Google search brought me, I didn’t even catch that. Yeah I am using 2.3.1
[17:56:50] jas02: has joined #ruby
[17:56:55] havenwood: l4v2: That way the docs will be maintained among other good reasons.
[17:56:56] havenwood: l4v2: Ah, perfect.
[17:57:20] mattwashere: has joined #ruby
[17:57:40] jackjackdripper1: has joined #ruby
[17:58:44] synthroid: has joined #ruby
[18:00:53] lawell: has joined #ruby
[18:01:04] neo_: has joined #ruby
[18:01:15] aegis3121: has joined #ruby
[18:02:10] tubuliferous: has joined #ruby
[18:02:48] User458764: has joined #ruby
[18:03:34] B1n4r10: has joined #ruby
[18:04:08] freerobby: has joined #ruby
[18:04:13] wrkrcoop: im writing a integration spec and when i write get "person/v1/lookup/" :ids => “1,2,3” the ids dont get passed in
[18:04:26] wrkrcoop: i took this syntax from the post example https://www.relishapp.com/rspec/rspec-rails/docs/request-specs/request-spec
[18:04:36] wrkrcoop: anyone know how to pass in params for get request?
[18:05:03] ruby[bot]: Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
[18:05:31] baweaver: also, it's probably get "url/#{id}"
[18:05:36] wrkrcoop: baweaver: not using rails
[18:05:58] roamingdog: has joined #ruby
[18:06:34] baweaver: saw rspec-rails in the URL
[18:06:43] l4v2: havenwood the require ‘test_helper’ file may be where those assertions are in the ActionDispatch::IntegrationTest class. But here’s my question, I don’t have this gem in my Gemfile, so can I require gems just for certain files? Is that what is going on there?
[18:07:32] Madplatypus: has joined #ruby
[18:07:41] Ariadeno: has joined #ruby
[18:07:48] wrkrcoop: baweaver: adding the params to the url didnt work either … any other ideas?
[18:08:12] banister: has joined #ruby
[18:08:16] baweaver: and you're printing the params out? Is it Sinatra or what?
[18:08:32] wrkrcoop: baweaver: some internal framework, yes param says ‘test'
[18:08:33] lenwood: has joined #ruby
[18:08:58] baweaver: try removing the trailing slash
[18:09:04] ramfjord: has joined #ruby
[18:09:53] baweaver: Is the framework based on anything like Rack?
[18:09:59] wrkrcoop: yes its using rack
[18:10:25] havenwood: l4v2: If you're prefixing `bundle exec` to your command or rubygems_bundler is doing it for you then you're limited to exactly the gems and versions thereof in your Gemfile.lock file
[18:10:36] edwinvdgraaf: has joined #ruby
[18:10:36] baweaver: http://www.sinatrarb.com/testing.html
[18:10:43] edwardly: has joined #ruby
[18:10:43] edwardly: has joined #ruby
[18:10:44] baweaver: that covers some rack testing
[18:10:55] havenwood: same if RUBYGEMS_GEMDEPS=~ or the like is set
[18:11:21] l4v2: Oh cool, thnaks
[18:12:29] yfeldblum: has joined #ruby
[18:13:25] edwinvdgraaf: has joined #ruby
[18:13:55] l4v2: Seems like it would be better placed in the Gemfile though
[18:14:10] arnonhongklay: has joined #ruby
[18:15:53] centrx: has joined #ruby
[18:16:57] the_drow: has joined #ruby
[18:17:52] Rodya_: has joined #ruby
[18:18:11] memorasus: has joined #ruby
[18:19:19] mdw: has joined #ruby
[18:21:25] havenwood: l4v2: yeah, put it in the Gemfile then update the Gemfile.lock with: bundle
[18:21:46] dc4: has joined #ruby
[18:22:06] havenwood: or for non-Rails projects, with just RubyGems: gem install -g
[18:23:06] skweek: has joined #ruby
[18:24:29] Rodya_: has joined #ruby
[18:24:43] karapetyan: has joined #ruby
[18:25:42] macsteps: has joined #ruby
[18:27:30] hutch34_: has joined #ruby
[18:28:43] slappy16: has joined #ruby
[18:29:22] agentmeerkat: has joined #ruby
[18:29:58] PsionTheory: has joined #ruby
[18:30:44] No: has joined #ruby
[18:31:29] acidchild: has left #ruby: ()
[18:32:11] snowy: has joined #ruby
[18:32:12] karapetyan: has joined #ruby
[18:32:27] codecop: has joined #ruby
[18:35:30] karapetyan: has joined #ruby
[18:35:33] jas02: has left #ruby: ()
[18:37:41] replay: has joined #ruby
[18:37:55] karapetyan: has joined #ruby
[18:38:59] DEac-: has joined #ruby
[18:39:40] uberbrodt: has joined #ruby
[18:40:02] arnonhongklay: has joined #ruby
[18:41:41] chip_: has joined #ruby
[18:42:15] karapetyan: has joined #ruby
[18:42:42] CJKinni: has joined #ruby
[18:43:00] ramfjord: has joined #ruby
[18:45:24] karapetyan: has joined #ruby
[18:46:27] iceden: has joined #ruby
[18:47:28] ekinmur: has joined #ruby
[18:48:47] wuyin: has joined #ruby
[18:49:46] Vingador: has joined #ruby
[18:50:07] pontiki: has joined #ruby
[18:51:01] lenwood: has joined #ruby
[18:51:13] nankyokusei: has joined #ruby
[18:54:39] aryaching: has joined #ruby
[18:56:36] whathapp_: has joined #ruby
[18:56:57] sneakers: has joined #ruby
[18:57:07] ych: has joined #ruby
[18:57:36] centrx: has joined #ruby
[19:00:08] febuiles: has joined #ruby
[19:02:09] Gasher: has joined #ruby
[19:02:09] ekinmur: has joined #ruby
[19:02:34] jmignault: has joined #ruby
[19:04:08] dsea11: has joined #ruby
[19:04:13] sucks: has joined #ruby
[19:04:41] sucks: has joined #ruby
[19:05:56] miqlas-H: has joined #ruby
[19:06:03] aryaching: has joined #ruby
[19:06:28] SCHAAP137: has joined #ruby
[19:06:37] cpg: has joined #ruby
[19:07:10] Devalo: has joined #ruby
[19:08:30] ramfjord: has joined #ruby
[19:11:06] cpg: has left #ruby: ()
[19:13:56] symm-: has joined #ruby
[19:15:42] aldodelgado: has joined #ruby
[19:17:08] aldodelgado: Is it possible to create a model scope that returns a set of results and then from those results have a condition to only return the strings from a column?
[19:17:09] aldodelgado: https://gist.github.com/aldodelgado/52afb736463e5c379ba8fc8a3f1ee47f
[19:17:26] aldodelgado: Thats the query I can do in the console. However I’d like to make it a scope
[19:19:58] toretore: ?rails aldodelgado
[19:19:59] ruby[bot]: aldodelgado: Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
[19:20:11] patrick_star_2: has joined #ruby
[19:20:20] SilverKey: has joined #ruby
[19:20:42] tmi: has joined #ruby
[19:21:52] neo_: has joined #ruby
[19:22:31] tAn: has joined #ruby
[19:23:36] joonty1: has joined #ruby
[19:24:04] karapetyan: has joined #ruby
[19:25:06] Xeago_: has joined #ruby
[19:25:15] Rodya_: has joined #ruby
[19:25:58] Eiam: has joined #ruby
[19:27:08] nettoweb: has joined #ruby
[19:28:09] neo_: has joined #ruby
[19:28:15] LoneHermit: has joined #ruby
[19:32:08] nadir: has joined #ruby
[19:32:25] ruby-lang679: has joined #ruby
[19:32:34] Xeago_: has joined #ruby
[19:32:37] Vingador: has joined #ruby
[19:34:44] davedev24: has joined #ruby
[19:35:00] RegulationD: has joined #ruby
[19:35:06] nb_bez___: has joined #ruby
[19:35:54] centrx: has joined #ruby
[19:37:14] edwinvdgraaf: has joined #ruby
[19:37:58] yardenbar: has joined #ruby
[19:37:59] lenwood: has joined #ruby
[19:38:47] leea: has joined #ruby
[19:39:54] centrx: has joined #ruby
[19:40:56] mdw: has joined #ruby
[19:41:02] vuoto: has joined #ruby
[19:41:48] zeroDi: has joined #ruby
[19:41:58] aibot: has joined #ruby
[19:43:13] sucks: has joined #ruby
[19:43:18] Gasher: I'm trying to do some file reading and writing, but I don't see proper things about reading the file in the docs
[19:43:46] Gasher: for example, I know there is the method .gets to a file ('file1.gets') that reads something, but it's not in the File class in the docs
[19:45:37] workmad3: has joined #ruby
[19:46:50] Gasher: and the .gets method only gives me the first line of the file
[19:48:11] toretore: Gasher: find out which class File inherits from and look there
[19:48:24] havenwood: Gasher: You can use `File.read` but you'll find the docs in IO: http://ruby-doc.org/core/IO.html#method-c-read
[19:48:40] karapetyan: has joined #ruby
[19:48:55] havenwood: >> File.superclass
[19:48:57] ruby[bot]: havenwood: # => IO (https://eval.in/597187)
[19:49:24] havenwood: >> File.public_method(:read).owner
[19:49:25] ruby[bot]: havenwood: # => #<Class:IO> (https://eval.in/597188)
[19:49:48] Gasher: thanks a lot havenwood
[19:50:01] Gasher: it looks a bit strange to me
[19:50:43] ChiefAlexander: has joined #ruby
[19:51:10] karapetyan: has joined #ruby
[19:51:18] nankyokusei: has joined #ruby
[19:52:27] wrkrcoop: has joined #ruby
[19:54:07] tubuliferous: has joined #ruby
[19:55:52] SCHAAP137: has joined #ruby
[19:56:24] karapetyan: has joined #ruby
[19:56:44] memorasus: has joined #ruby
[19:57:32] RegulationD: has joined #ruby
[19:58:45] jas02: has joined #ruby
[19:59:23] jas02: has left #ruby: ()
[19:59:24] Gasher: so File.read and IO.read are the same? what's the point of File then?
[19:59:42] Gasher: (in that form at least)
[20:01:04] shevy: Gasher I think this may be subclassing, inheriting .read from IO
[20:01:45] Gasher: but, if IO handles files
[20:01:55] Gasher: then what's File for? the object itself?
[20:02:15] kavanagh: has joined #ruby
[20:02:17] shevy: well File has for instance chmod stuff, which IO does not have http://ruby-doc.org/core-2.2.0/File.html
[20:02:26] Gasher: yeah, true
[20:02:35] Gasher: but it's confusing in the docs
[20:03:01] shevy: the ruby docs are not very good indeed
[20:03:27] shevy: I compared the ruby readline docs, and the longer explanation here http://bogojoker.com/readline/
[20:03:46] shevy: they are sorta the same, more or less but the second is much better to read IMO
[20:04:48] centrx_: has joined #ruby
[20:05:42] roamingdog: has joined #ruby
[20:07:03] solars: has joined #ruby
[20:08:09] blackgoat: has joined #ruby
[20:11:24] mistergibson: has joined #ruby
[20:11:46] jas02: has joined #ruby
[20:12:39] whathappens: has joined #ruby
[20:14:13] jenrzzz: has joined #ruby
[20:14:13] jenrzzz: has joined #ruby
[20:14:45] ramfjord: has joined #ruby
[20:15:37] solars: has joined #ruby
[20:17:30] drbrain: Socket inherits from IO too
[20:17:38] drbrain: the difference comes from libc
[20:17:43] chip_: has joined #ruby
[20:17:56] centrx: has joined #ruby
[20:18:29] craigp_: has joined #ruby
[20:19:15] lxsameer: has joined #ruby
[20:20:07] tubuliferous: has joined #ruby
[20:20:20] roamingdog: has joined #ruby
[20:23:43] dc4: has joined #ruby
[20:24:43] korzybski: has joined #ruby
[20:24:54] neha-: has joined #ruby
[20:25:10] drbrain: … IO wraps things like write(2) and read(2), File wraps file-specific functionality as mentioned (chmod)
[20:25:25] karapetyan: has joined #ruby
[20:26:04] Rodya_: has joined #ruby
[20:26:11] l4v2: has joined #ruby
[20:29:23] LoneHermit: has joined #ruby
[20:29:55] jetpackj1: has joined #ruby
[20:30:43] hahuang61: has joined #ruby
[20:31:04] B1n4r10: has joined #ruby
[20:31:15] aibot: has joined #ruby
[20:32:43] jhack: has joined #ruby
[20:34:19] macsteps: has joined #ruby
[20:39:05] solars: has joined #ruby
[20:39:54] yqt: has joined #ruby
[20:40:30] evansbee: has joined #ruby
[20:42:23] ekinmur: has joined #ruby
[20:43:25] mfb2: has joined #ruby
[20:46:16] prefix: has joined #ruby
[20:46:47] No: has joined #ruby
[20:46:52] hutch34: has joined #ruby
[20:51:15] nettoweb: has joined #ruby
[20:52:24] mfb2: has joined #ruby
[20:52:49] the_drow: has joined #ruby
[20:54:06] smathy: has joined #ruby
[20:55:08] blaxter: has joined #ruby
[20:58:00] tubuliferous: has joined #ruby
[20:59:58] shevy: Gasher see - there is always one mommy object up there in the inheritance chain
[21:00:38] ur5us: has joined #ruby
[21:01:00] marr: has joined #ruby
[21:01:42] Qommand0r: has joined #ruby
[21:03:15] mgorbach: has joined #ruby
[21:03:47] smathy: has joined #ruby
[21:05:16] al2o3-cr: has joined #ruby
[21:05:29] AlexRussia: has joined #ruby
[21:06:02] Gasher: shevy; I know, but it doesn't make sense this time
[21:06:16] Gasher: to look up at it
[21:09:27] edwinvdg_: has joined #ruby
[21:10:54] isberg: Is there an alternative to Open3.capture3 that doesn't freeze in large output?
[21:11:12] isberg: Need to run system commands
[21:11:26] isberg: with access to the status code
[21:11:53] drbrain: isberg: Process.spawn and system let you do arbitrary IO redirection for the child process
[21:12:16] alexandernst: How would I convert "while not a and not b" to use "unless"? "unless a and not b"? "unless a and b"?
[21:12:23] pontiki: isberg: i think the answer for that was to thread the outputs
[21:12:32] pontiki: but it's been ages since i looked into that...
[21:12:35] drbrain: if you don't need to capture output, `system "whatever", "command", "here", out: IO::NULL, err: IO::NULL; p $?`
[21:12:44] ljarvis: alexandernst: do you mean until?
[21:12:55] drbrain: pontiki: yeah, Thread or select on the output and error IOs
[21:13:01] alexandernst: ljarvis: ahh, yes, until
[21:13:23] ljarvis: alexandernst: until b || b
[21:13:24] isberg: drbrain Kernel#system only takes a string. It's nice to pass arguments separately to avoid escaping
[21:13:33] ljarvis: alexandernst: er, a || b
[21:13:38] drbrain: isberg: no, it takes all the same arguments as #spawn
[21:13:54] ljarvis: alexandernst: the while is check "not a and not b", so the opposite is "yes a or yes b", aka "a or b"
[21:14:43] alexandernst: yeah... seems silly, but this "new" keyword in ruby are crushing my brain
[21:14:46] drbrain: isberg: https://gist.github.com/drbrain/ac8d53fb2adf18456817ac4a42a126cc
[21:15:00] isberg: Aha, it does take an array if arguments
[21:15:17] drbrain: isberg: do you care about the output?
[21:15:18] ljarvis: alexandernst: personally I would avoid until/unless for complex conditions
[21:15:23] isberg: drbrain Yes
[21:15:31] ljarvis: alexandernst: complex being one that has more than one condition
[21:15:34] alexandernst: I feel completely stupid googling "how to do until in ruby" having 15 years or C/C++ experience on my back...
[21:15:47] ljarvis: alexandernst: that's a sign you should just avoid it imo
[21:15:48] drbrain: isberg: to keep it from freezing you'll need to read the data in like pontiki said
[21:15:59] drbrain: either with a Thread or by using IO#select
[21:16:01] alexandernst: ljarvis: I'd avoid using until at all, but the linter I'm forced to use at work complains about "while not" ...
[21:16:04] ljarvis: alexandernst: if you're having difficulty writing it, it'll be difficult to read/maintain
[21:16:06] drbrain: al2o3-cr: to show that old versions support it too
[21:16:16] ljarvis: alexandernst: fix the silly linter
[21:16:17] al2o3-cr: drbrain: got it :)
[21:16:26] alexandernst: ljarvis: not allowed to :P
[21:16:53] Coldblackice: has joined #ruby
[21:17:03] ljarvis: alexandernst: you can't add a rule to avoid it blowing up on that? it's ridiculous that it's making your code worse. That's against the whole point of a linter
[21:17:43] drbrain: isberg: without reading the data out of the pipe eventually its buffer fills up and the child process will stall on write
[21:17:53] wrkrcoop: i have two arrays a = [1,2,3,4,5] and b = [5,6,7,8,9] is there a method that allows me to detect duplicates?
[21:18:13] aegis3121: are you wanting to know if there are duplicates, or know what they are?
[21:18:18] ljarvis: wrkrcoop: (a & b).any?
[21:18:24] wrkrcoop: ljarvis: thank you
[21:18:38] drbrain: wrkrcoop: >> a = [1,2,3,4,5]; b = [5,6,7,8,9]; a & b
[21:18:45] drbrain: >> a = [1,2,3,4,5]; b = [5,6,7,8,9]; a & b
[21:18:45] vuoto: has joined #ruby
[21:18:46] ruby[bot]: drbrain: # => [5] (https://eval.in/597198)
[21:19:05] isberg: drbrain Okay, so system or spawn then
[21:19:09] wrkrcoop: hmm but thats a boolean
[21:19:12] isberg: Unless I missed something
[21:19:12] wrkrcoop: i want to know which one
[21:19:23] aegis3121: Then you want what drbrain did
[21:19:32] ljarvis: wrkrcoop: then do what drbrain did and remove the .any?
[21:19:40] drbrain: isberg: Open3 (and system) are spawn wrappers in newer ruby
[21:19:51] baweaver: Set intersection basically
[21:19:58] wrkrcoop: is that big o slow?
[21:20:22] drbrain: wrkrcoop: O(N+M) IIRC
[21:20:30] wrkrcoop: thats terrible right?
[21:20:35] aegis3121: sounds...mostly linear
[21:20:54] ljarvis: you need to traverse both arrays, no avoiding that
[21:21:35] skade: has joined #ruby
[21:24:04] ChrisWilding: has joined #ruby
[21:24:52] banister: has joined #ruby
[21:25:22] Rodya_: has joined #ruby
[21:27:19] wrkrcoop: i have 2 arrays a = [1,2,3,4] and b = [4] is there a method that will return [1,2,3]
[21:27:54] wrkrcoop: a - b doesn’t work
[21:28:29] centrx: >> [1,2,3,4] - [4]
[21:28:31] ruby[bot]: centrx: # => [1, 2, 3] (https://eval.in/597199)
[21:30:24] LoneHermit: has joined #ruby
[21:30:24] baweaver: wrkrcoop: You might want to read up on the Array documentation some more: http://ruby-doc.org/core-2.3.1/Array.html
[21:30:35] wrkrcoop: baweaver: ok thanks -_-
[21:32:32] allcentury: has joined #ruby
[21:32:32] whathapp_: has joined #ruby
[21:34:50] tvon: has joined #ruby
[21:36:07] nankyokusei: has joined #ruby
[21:37:58] pawnbox: has joined #ruby
[21:38:47] djbkd: has joined #ruby
[21:39:08] B1n4r10: has joined #ruby
[21:39:55] korzybski: has joined #ruby
[21:45:54] datanoise: has joined #ruby
[21:46:41] whathappens: has joined #ruby
[21:47:06] mgorbach: has joined #ruby
[21:48:27] firstdayonthejob: has joined #ruby
[21:49:33] solars: has joined #ruby
[21:51:24] Psyq: has joined #ruby
[21:52:16] Psyq: has left #ruby: ()
[21:55:19] ruby-lang099: has joined #ruby
[21:57:08] DarthGandalf: has joined #ruby
[21:58:16] macsteps: has joined #ruby
[22:04:55] johnmilton: has joined #ruby
[22:05:30] firstdayonthejob: has joined #ruby
[22:08:10] the_drow: has joined #ruby
[22:14:10] rbennacer: has joined #ruby
[22:15:40] tao_: has joined #ruby
[22:15:51] dannyh: has joined #ruby
[22:16:42] dc4: has joined #ruby
[22:16:57] xlegoman: has joined #ruby
[22:18:51] swistak35: has joined #ruby
[22:19:50] roamingdog: has joined #ruby
[22:28:39] korzybski: has joined #ruby
[22:28:54] binaryplease: has joined #ruby
[22:30:19] jgt3: has joined #ruby
[22:30:48] tubuliferous: has joined #ruby
[22:34:09] zenlot: has joined #ruby
[22:36:14] Azure: has joined #ruby
[22:37:13] Azure: has joined #ruby
[22:38:20] jottr: has joined #ruby
[22:38:55] bonhoeffer: has joined #ruby
[22:39:58] shevy: https://github.com/ruby/ruby/blob/trunk/lib/fileutils.rb#L760
[22:40:05] shevy: msg = +"install -c"
[22:40:11] shevy: hmm does someone know what the + there is doing?
[22:41:05] drbrain: probably a typo
[22:41:29] bonhoeffer: is there an equivalent to * notation in python -- the ability to turn a list into arguments
[22:41:39] drbrain: bonhoeffer: in ruby we use *
[22:41:39] evansbee: has joined #ruby
[22:41:40] bonhoeffer: or ** notation, the ability to turn a dictionary into arguments
[22:41:49] drbrain: in ruby we use ** for that
[22:41:50] bonhoeffer: cool -- so exactly the same?
[22:42:04] drbrain: I think so (I don't use Python)
[22:42:14] drbrain: a = [1, 2, 3]; p(*a)
[22:43:24] drbrain: shevy: ah-ha! https://github.com/ruby/ruby/blob/trunk/string.c#L2369-L2386
[22:43:44] lupine: today I actually wrote some ruby I'm proud of. and I can't show it off!
[22:43:48] lupine: roll on 1 july
[22:43:51] lupine: no, 1 aug
[22:43:57] shevy: interesting, thanks for the link drbrain
[22:44:03] drbrain: lupine: 🙌🏻
[22:45:04] eljimmy: has joined #ruby
[22:45:08] drbrain: bonhoeffer: in ruby * for array -> arguments is called "splat"
[22:45:41] pontiki: has joined #ruby
[22:45:55] havenwood: >> -+-'shevy' << 'too cold'
[22:45:56] ruby[bot]: havenwood: # => can't modify frozen String (RuntimeError) ...check link for more (https://eval.in/597255)
[22:46:37] Es0teric: has joined #ruby
[22:48:16] shevy: the first one is used in -+- ?
[22:48:58] hahuang61: has joined #ruby
[22:49:44] xall: has joined #ruby
[22:49:52] drbrain: first one?
[22:50:39] nettoweb: has joined #ruby
[22:51:27] shevy: well one can add lots of them -------------+-'foo'
[22:52:40] al2o3-cr: >> [(-"foo").frozen?, (+"foo").frozen?]
[22:52:41] ruby[bot]: al2o3-cr: # => [true, false] (https://eval.in/597256)
[22:53:11] dasher00: has joined #ruby
[22:54:14] drbrain: all of them get called
[22:54:49] drbrain: from right to left
[22:55:16] drbrain: >> +-"foo" << "bar"
[22:55:17] ruby[bot]: drbrain: # => "foobar" (https://eval.in/597257)
[22:55:25] drbrain: >> -+"foo" << "bar"
[22:55:26] ruby[bot]: drbrain: # => can't modify frozen String (RuntimeError) ...check link for more (https://eval.in/597258)
[22:55:51] solocshaw: has joined #ruby
[22:56:06] drbrain: for +-"foo" first the string is dup'd and frozen, then the frozen string is dup'd, then "bar" is appended
[22:56:46] drbrain: for -+"foo" first the string is returned (because it isn't frozen), then the string is dup'd and frozen, then you get the RuntimeError because you can't append to a frozen "foo"
[22:56:48] wrkrcoop: has joined #ruby
[22:56:56] drbrain: chaining them is just for looks
[22:57:50] mfb2: has joined #ruby
[23:01:20] al2o3-cr: >> class String; define_method(:-@) { "bar" } end; -"foo" << "bar" << ?a
[23:01:21] ruby[bot]: al2o3-cr: # => "barbara" (https://eval.in/597259)
[23:01:26] Jardayn: has joined #ruby
[23:02:09] ICantCook: has joined #ruby
[23:02:28] crdpink2: has joined #ruby
[23:03:37] fclausen: has joined #ruby
[23:06:44] prestorium: has joined #ruby
[23:08:48] shadeslayer: has joined #ruby
[23:08:53] shadeslayer: has joined #ruby
[23:09:12] solocshaw1: has joined #ruby
[23:13:11] cdg: has joined #ruby
[23:13:16] pontiki: has joined #ruby
[23:13:57] crowell: has joined #ruby
[23:15:20] ThatsNotJack: has joined #ruby
[23:16:17] Azure: has joined #ruby
[23:17:09] korzybski: has joined #ruby
[23:17:14] the_drow: has joined #ruby
[23:17:15] Cohedrin: has joined #ruby
[23:18:00] binaryplease: has joined #ruby
[23:18:04] gregf: has joined #ruby
[23:18:11] sanjayu: has joined #ruby
[23:19:55] A124: has joined #ruby
[23:21:11] unvexp: has joined #ruby
[23:21:25] j416_: has joined #ruby
[23:21:38] zapata: has joined #ruby
[23:22:03] leea: has joined #ruby
[23:23:23] mfb2: has joined #ruby
[23:23:31] swills: has joined #ruby
[23:25:10] koooge: has joined #ruby
[23:27:11] sauvin: has joined #ruby
[23:27:56] mattwashere: has joined #ruby
[23:28:26] tvon: has joined #ruby
[23:29:22] jmignault: has joined #ruby
[23:29:42] ulluh: has joined #ruby
[23:30:33] arnonhongklay: has joined #ruby
[23:33:05] millerti: has joined #ruby
[23:33:16] dc4: has joined #ruby
[23:34:51] j416: has joined #ruby
[23:35:42] jenrzzz: has joined #ruby
[23:35:42] jenrzzz: has joined #ruby
[23:35:57] j416: has joined #ruby
[23:36:59] nankyokusei: has joined #ruby
[23:40:44] Rodya_: has joined #ruby
[23:45:03] pragmatism: has joined #ruby
[23:45:23] xall: has joined #ruby
[23:46:16] rkazak: has joined #ruby
[23:48:23] blandflakes: has joined #ruby
[23:48:38] electrostat: has joined #ruby
[23:49:28] nettoweb: has joined #ruby
[23:49:45] hahuang61: has joined #ruby
[23:50:44] blackmesa: has joined #ruby
[23:52:13] gusrub: has joined #ruby
[23:57:32] mistermocha: has joined #ruby
[23:59:10] jenrzzz: has joined #ruby
[23:59:52] djbkd: has joined #ruby