« Back to channel list

#ruby - 14 May 2016

« Back 1 day Forward 1 day »
[00:00:32] rrichard_: has joined #ruby
[00:03:19] dikaio: has joined #ruby
[00:04:06] pawnbox: has joined #ruby
[00:05:05] tohuw: has joined #ruby
[00:08:22] Devalo: has joined #ruby
[00:10:16] riobe_: has joined #ruby
[00:11:27] johnmilton: has joined #ruby
[00:12:54] Azure: has joined #ruby
[00:13:39] idefine: has joined #ruby
[00:14:26] charliesome: has joined #ruby
[00:15:45] idefine_: has joined #ruby
[00:16:37] stardiviner: has joined #ruby
[00:17:37] davedev24: has joined #ruby
[00:18:52] idefine: has joined #ruby
[00:19:52] SCHAAP137: has joined #ruby
[00:22:20] SilverKey: has joined #ruby
[00:24:09] idefine: has joined #ruby
[00:24:33] mistermocha: has joined #ruby
[00:28:19] mistermocha: has joined #ruby
[00:31:38] adamhess: has joined #ruby
[00:33:25] adamhess: has left #ruby: ()
[00:33:29] sp4rrow: has joined #ruby
[00:35:21] ledestin: has joined #ruby
[00:36:29] _blizzy_: has joined #ruby
[00:37:00] sdothum: has joined #ruby
[00:37:07] jenrzzz: has joined #ruby
[00:37:14] _blizzy_: has left #ruby: ()
[00:38:09] rrichardsr3: has joined #ruby
[00:40:11] moeabdol: has joined #ruby
[00:47:20] Vile`: has joined #ruby
[00:49:13] austinprog: has joined #ruby
[00:50:08] xall: has joined #ruby
[00:51:57] millerti: has joined #ruby
[00:56:57] kies: has joined #ruby
[01:01:33] ItSANgo: has joined #ruby
[01:04:13] ur5us: has joined #ruby
[01:05:28] yfeldblum: has joined #ruby
[01:06:21] dikaio: has joined #ruby
[01:07:05] joneshf-laptop: has joined #ruby
[01:08:46] gizless: has joined #ruby
[01:08:59] startupality: has joined #ruby
[01:09:07] jancel: has joined #ruby
[01:12:12] Vile`: has joined #ruby
[01:13:24] papachan: has joined #ruby
[01:13:54] _blizzy_: has joined #ruby
[01:14:54] casp: has joined #ruby
[01:18:06] dikaio: has joined #ruby
[01:18:39] |ifei5g00d: has joined #ruby
[01:21:03] davedev24: has joined #ruby
[01:21:27] solocshaw: has joined #ruby
[01:21:52] Madplatypus: has joined #ruby
[01:24:01] roamingdog: has joined #ruby
[01:24:22] flashpoint9: has joined #ruby
[01:24:59] _blizzy_: has left #ruby: ("Leaving")
[01:26:42] quakephil: has joined #ruby
[01:29:55] Dimik: has joined #ruby
[01:32:22] mostlybadfly: has joined #ruby
[01:34:15] dikaio: has joined #ruby
[01:37:11] jancel: has joined #ruby
[01:37:53] gizless: has joined #ruby
[01:40:33] agent_white: has joined #ruby
[01:41:00] moeabdol: has joined #ruby
[01:41:52] mooe: has joined #ruby
[01:42:44] oetjenj: has joined #ruby
[01:43:02] peterhu: has joined #ruby
[01:43:12] JoshGlzBrk: has joined #ruby
[01:48:15] CloCkWeRX: has joined #ruby
[01:50:04] diegoviola: I have 500 MB of zip files that contain XML data, I need to fetch all that and unzip/parse the xml and load the data into redis, I need to script this, but I was wondering if Ruby's net::http will do fine or I'll have to use rsync?
[01:50:14] jimism: has left #ruby: ("Leaving")
[01:51:14] GriffinHeart: has joined #ruby
[01:52:01] diegoviola: I'm undecided because I don't want to have to re-run my script if a download fails
[01:52:19] zacts: I would assume there would be a gem solution that is better than rsync, but I'm still a newbie
[01:52:22] vdamewood: has joined #ruby
[01:52:39] zacts: so I'll let others answer
[01:52:50] zacts: but I would avoid system() calls at least
[01:53:07] diegoviola: just looking for some ideas about how I can implement this
[01:53:26] zacts: I think there is a module for Redis
[01:53:27] zacts: let me find it
[01:53:32] zacts: s/module/gem/
[01:53:52] dopamean_: has joined #ruby
[01:53:54] diegoviola: yeah I know that part
[01:54:34] jenrzzz: has joined #ruby
[01:54:35] diegoviola: my trouble is how to handle the download bulk of data
[01:54:35] jenrzzz: has joined #ruby
[01:54:40] diegoviola: but I'm afraid we're getting offtopic with this
[01:54:43] zacts: https://rubygems.org/gems/resque
[01:54:54] zacts: sorry, I'll let others answer
[01:55:35] bazzy: i don't see how that gem has anything to do with this problem
[01:55:36] startupality: has joined #ruby
[01:56:00] bazzy: the general purpose redis gem is just called 'redis' IIRC
[01:56:09] diegoviola: I'll just do the parser and load of data in ruby and handle the download as a separate script with bash+rsync or something :)
[01:56:18] zacts: bazzy: sorry, my newbieness
[01:56:34] zacts: ACTION idles
[01:57:05] bazzy: sounds like a plan diegoviola
[01:58:13] rrichardsr3: has joined #ruby
[01:59:20] rrichardsr3: has joined #ruby
[01:59:56] nanoz: has joined #ruby
[02:00:30] sneakerhax: has joined #ruby
[02:02:12] Es0teric: has joined #ruby
[02:03:12] pawnbox: has joined #ruby
[02:03:41] `tim`: has joined #ruby
[02:10:07] robbyoconnor: has joined #ruby
[02:17:38] theRoUS: has joined #ruby
[02:19:47] croberts: has joined #ruby
[02:20:30] mistermocha: has joined #ruby
[02:21:52] jolamb: has joined #ruby
[02:22:55] govg: has joined #ruby
[02:23:24] idefine: has joined #ruby
[02:24:37] quakephil: has joined #ruby
[02:24:58] wilbert: has joined #ruby
[02:31:48] idefine: has joined #ruby
[02:33:37] dionysus69: has joined #ruby
[02:33:58] croberts_: has joined #ruby
[02:34:19] theRoUS`: has joined #ruby
[02:37:18] jancel: has joined #ruby
[02:37:24] jdm: has joined #ruby
[02:37:54] jolamb: has joined #ruby
[02:38:56] PatJ: has joined #ruby
[02:39:25] Es0teric: has joined #ruby
[02:39:45] jdmark: has joined #ruby
[02:40:48] roamingdog: has joined #ruby
[02:44:53] idefine: has joined #ruby
[02:46:08] jancel: has joined #ruby
[02:51:49] PatJ: has left #ruby: ("Leaving")
[02:52:23] PatJ: has joined #ruby
[02:55:04] quazimodo: has joined #ruby
[02:55:23] quazimodo: is it possible to subprocess out another binary, in my case phantomjs, then fork that?
[02:55:29] roamingdog: has joined #ruby
[02:56:24] startupality: has joined #ruby
[02:57:52] idefine: has joined #ruby
[03:02:17] j_mcnally: has joined #ruby
[03:05:03] kareeoleez: has joined #ruby
[03:05:16] eam: quazimodo: could you explain the process you're imagining in a bit more detail?
[03:07:39] johnmilton: has joined #ruby
[03:08:15] quazimodo: eam: ok so when I run my tests i use guard, each time it starts over, forking from something called zeus that preloads my rails environment. That makes the tests start almost immediately. But at some point i need phantomjs for a test, and it's not on. The test runner turns it out and sets up a socket to interact with it. That got me thinking if it's possible to preload phnatomjs like that. Ignoring the
[03:08:21] quazimodo: socket stuff, can it even be done?
[03:09:30] eam: possibly, it depends on how phantomjs works
[03:09:55] eam: in the abstract, yes you can call fork and make a copy of any process. But the devil's in the details
[03:10:23] eam: the runtime needs to be structured with this kind of behavior in mind
[03:11:17] jancel: has joined #ruby
[03:12:01] eam: there are even things you can do in your rails environment which can make the zeus approach fail
[03:12:42] braincrash: has joined #ruby
[03:13:40] quazimodo: can you give me an example so I get it?
[03:14:34] eam: of how forking like this might fail?
[03:17:26] eam: quazimodo: does zeus connect to your database in the preloaded rails environment in the pristine parent copy?
[03:17:52] eam: if so, something like this can occur: https://github.com/brianmario/mysql2/pull/463
[03:18:13] Es0teric: has joined #ruby
[03:18:24] eam: in general, shared file descriptors, threads, signals, and assumptions about sequencing are what will screw stuff up
[03:19:03] gix: has joined #ruby
[03:19:23] quazimodo: i need to think about it more
[03:19:25] idefine: has joined #ruby
[03:19:39] quazimodo: i *think* zeus establishes conns after forking
[03:20:02] quazimodo: I see what you mean
[03:20:21] eam: most issues can be worked around, the real question is what phantomjs is behaving like under the hood. The details suddenly matter
[03:20:44] quazimodo: i guess what I'd really like is if i could just turen on phantomjs at the start and keep it on
[03:20:50] quazimodo: i was just curious
[03:21:05] eam: I don't really know phantomjs so I can't offer a real opinion about it in particular :)
[03:21:13] roamingdog: has joined #ruby
[03:21:17] s2013: has joined #ruby
[03:21:44] SilverKey: has joined #ruby
[03:21:44] ByronJohnson: has joined #ruby
[03:22:22] ByronJohnson: has joined #ruby
[03:22:38] idefine: has joined #ruby
[03:23:57] idefine: has joined #ruby
[03:24:51] charliesome: has joined #ruby
[03:28:04] skolman_: has joined #ruby
[03:28:48] idefine: has joined #ruby
[03:29:02] moeabdol: has joined #ruby
[03:29:27] RegulationD: has joined #ruby
[03:33:05] safe: has joined #ruby
[03:33:52] Yiota: has joined #ruby
[03:37:12] zapata: has joined #ruby
[03:38:18] safe: has joined #ruby
[03:39:08] lewis1711: has joined #ruby
[03:39:22] lewis1711: is there anyway to do something like "has_next?" on an enumerator?
[03:40:11] Es0teric: has joined #ruby
[03:40:26] joneshf-laptop: has joined #ruby
[03:40:56] ramfjord: has joined #ruby
[03:41:01] moeabdol: has joined #ruby
[03:42:47] lewis1711: or, I guess to re-phrase - nothing wrong with exceptions-as-control-flow in ruby, i guess? judging by the way this API has been written
[03:45:23] Ropeney: has joined #ruby
[03:46:14] robbyoconnor: has joined #ruby
[03:49:56] flashpoint9: has joined #ruby
[03:49:57] lxsameer: has joined #ruby
[03:51:23] jancel: has joined #ruby
[03:56:14] d0lph1n98: has joined #ruby
[04:00:15] bronson: has joined #ruby
[04:01:24] s2013: has joined #ruby
[04:04:40] crystal77: has joined #ruby
[04:05:09] shinnya: has joined #ruby
[04:07:42] Es0teric: has joined #ruby
[04:08:03] mwlang: has joined #ruby
[04:09:04] kgrz: has joined #ruby
[04:09:22] pawnbox: has joined #ruby
[04:09:43] pawnbox: has joined #ruby
[04:11:39] aldodelgado: has joined #ruby
[04:18:29] xall: has joined #ruby
[04:20:49] noService: has joined #ruby
[04:22:57] rbennacer: has joined #ruby
[04:23:49] sp4rrow: has joined #ruby
[04:25:36] jdmark: has joined #ruby
[04:29:18] Caerus: has joined #ruby
[04:30:14] Caerus: hello #ruby :)
[04:36:51] mistermocha: has joined #ruby
[04:37:08] hk238: has joined #ruby
[04:37:52] darkxploit: has joined #ruby
[04:38:10] smathy: has joined #ruby
[04:38:53] jobewan: has joined #ruby
[04:39:53] wnd: has joined #ruby
[04:41:11] Yiota: has joined #ruby
[04:41:50] ramfjord: has joined #ruby
[04:43:12] yfeldblum: has joined #ruby
[04:45:16] Yeomra: has joined #ruby
[04:45:23] pawnbox: has joined #ruby
[04:48:44] paradisaeidae_: has joined #ruby
[04:51:54] oetjenj: has joined #ruby
[04:53:08] sauvin: has joined #ruby
[04:54:07] kareeoleez: has joined #ruby
[04:56:00] bronson: has joined #ruby
[05:03:39] jancel: has joined #ruby
[05:06:16] terminalrecluse: has joined #ruby
[05:08:45] crystal77: has joined #ruby
[05:09:21] kareeole_: has joined #ruby
[05:10:49] d0nn1e: has joined #ruby
[05:12:41] kareeoleez: has joined #ruby
[05:13:31] kareeole_: has joined #ruby
[05:13:32] nisstyre: has joined #ruby
[05:14:08] crystal77: has joined #ruby
[05:15:16] codecop: has joined #ruby
[05:18:12] darkxploit: has joined #ruby
[05:19:18] darkxploit: has joined #ruby
[05:19:34] jenrzzz: has joined #ruby
[05:23:04] Es0teric: has joined #ruby
[05:30:33] RegulationD: has joined #ruby
[05:31:58] tax: has joined #ruby
[05:34:04] Es0teric: has joined #ruby
[05:34:42] yfeldblum: has joined #ruby
[05:35:04] fantasticsid: has joined #ruby
[05:35:05] paradisaeidae: has joined #ruby
[05:35:18] yfeldblum: has joined #ruby
[05:35:31] jdmark: has joined #ruby
[05:35:37] Ishido: has joined #ruby
[05:38:08] Vile`: has joined #ruby
[05:38:46] jdmark: has left #ruby: ()
[05:43:06] ramfjord: has joined #ruby
[05:49:34] pawnbox: has joined #ruby
[05:49:45] antgel: has joined #ruby
[05:49:48] tildes: has joined #ruby
[05:56:42] sdothum: has joined #ruby
[05:56:58] janebootydoe: has joined #ruby
[06:03:20] d0lph1n98: has joined #ruby
[06:06:11] mistermocha: has joined #ruby
[06:14:16] czerasz: has joined #ruby
[06:15:07] kareeoleez: has joined #ruby
[06:15:31] czerasz: has joined #ruby
[06:16:42] angseus: has joined #ruby
[06:17:54] austinprog: I dont know why but I just understand ruby compared to python
[06:18:32] czerasz: has joined #ruby
[06:18:33] angseus: has joined #ruby
[06:20:17] angseus: has joined #ruby
[06:30:23] fantasticsid: has joined #ruby
[06:33:47] kareeoleez: has joined #ruby
[06:36:56] djbkd: has joined #ruby
[06:38:00] lewis1711: has joined #ruby
[06:42:00] bazzy: is it generally better practice to use self.instance in class methods rather than @instance ???
[06:42:08] bazzy: in class instance methods*
[06:44:19] bazzy: I assume it's better because it allows the opportunity to "API" it rather than force it to be a variable..
[06:45:04] lewis1711: I never thought about doing that. seems legit
[06:50:49] rippa: has joined #ruby
[06:52:25] pawnbox: has joined #ruby
[06:52:43] sinkensabe: has joined #ruby
[06:52:46] brianpWins: has joined #ruby
[06:53:49] bazzy: if I have a class A with @instance ... and @instance.func exists... how do I represent @instance.func as a symbol from the scope of A's definition
[06:55:27] yfeldblum: has joined #ruby
[06:56:43] crameth: has joined #ruby
[06:57:00] zyzioziom: has joined #ruby
[06:57:41] bazzy: forget it (seriously)
[06:58:42] brianpWins_: has joined #ruby
[07:00:12] angseus: has joined #ruby
[07:00:16] Yeomra: has joined #ruby
[07:01:45] jgt1: has joined #ruby
[07:03:08] nhhc: has joined #ruby
[07:06:26] bronson: has joined #ruby
[07:07:43] skolman_: has joined #ruby
[07:08:13] brianpWins_: has joined #ruby
[07:08:30] sp4rrow: has joined #ruby
[07:10:24] riddley: has joined #ruby
[07:11:19] the_drow: has joined #ruby
[07:14:48] Devalo: has joined #ruby
[07:17:17] yfeldblum: has joined #ruby
[07:19:01] firstdayonthejob: has joined #ruby
[07:19:52] brianpWins_: has joined #ruby
[07:20:35] ramfjord: has joined #ruby
[07:27:54] Devalo: has joined #ruby
[07:31:43] the_drow: has joined #ruby
[07:34:22] blackgoat: has joined #ruby
[07:37:35] Vile`: has joined #ruby
[07:37:52] epistrephein: has joined #ruby
[07:39:14] ur5us: has joined #ruby
[07:39:31] pawnbox: has joined #ruby
[07:41:04] konsolebox: has joined #ruby
[07:43:26] epistrephein: hello there, question: Regexp.union(["word1", "word2", "word3"]) conveniently returns /word1|word2|word3/
[07:43:31] epistrephein: is there an equally quick way to get /^word1$|^word2$|^word3$/ ?
[07:44:04] kareeoleez: has joined #ruby
[07:47:41] tAn: has joined #ruby
[07:49:21] PatJ: would "Regexp.union(["word1", "word2", "word3"].map { |s| "^" + s + "$" })" work?
[07:49:28] shinnya: has joined #ruby
[07:50:30] epistrephein: pat_ i tried, but it escapes ^ and $, so they become literal ^ and $
[07:51:44] epistrephein: i also tried Regexp.new(["word1", "word2", "word3"].map{|x| "^#{x}$"}.join('|')) which is close to the end result, but it doesn't do escaping
[07:51:55] PatJ: oh replace " with '
[07:53:00] epistrephein: still escaping: Regexp.union(["word1", "word2", "word3"].map { |s| '^' + s + '$' }) => /\^word1\$|\^word2\$|\^word3\$/
[07:53:16] Hanmac: >> /^#{Regexp.union(["word1", "word2", "word3"])}$/
[07:53:18] ruby[bot]: hanmac: # => /^(?-mix:word1|word2|word3)$/ (https://eval.in/571437)
[07:54:07] the_drow: has joined #ruby
[07:55:13] xall: has joined #ruby
[07:55:20] epistrephein: thanks, that's perfect :)
[07:56:21] PatJ: >> Regexp.union(["word1", 'word2', 'word3'].map { |s| /^#{s}$/ })
[07:57:05] PatJ: Sorry I'm new to ruby too. both seem to work
[07:57:31] SegFaultAX: has joined #ruby
[07:57:51] epistrephein: it does pat_ , but you should be careful on your input, because if you replace "word1" with "word$" it won't escape the $
[07:59:29] PatJ: I see. Thanks
[08:01:29] startupality: has joined #ruby
[08:05:07] quazimodo: has joined #ruby
[08:05:22] Vile`: has joined #ruby
[08:06:28] skade: has joined #ruby
[08:12:27] zyzioziom: has joined #ruby
[08:13:47] PaulCapestany: has joined #ruby
[08:17:14] kareeoleez: has joined #ruby
[08:17:44] djbkd: has joined #ruby
[08:18:13] jalnt_: has joined #ruby
[08:20:39] the_drow: has joined #ruby
[08:21:37] the_drow: has joined #ruby
[08:22:39] dsea11: has joined #ruby
[08:23:33] qwkguo: has joined #ruby
[08:24:01] SCHAAP137: has joined #ruby
[08:25:35] CloCkWeRX: has joined #ruby
[08:29:59] sinkensabe: has joined #ruby
[08:30:18] neanderslob: has joined #ruby
[08:33:11] isxek: has joined #ruby
[08:34:31] detbyv: has joined #ruby
[08:36:03] hilo: has joined #ruby
[08:37:41] toretore: has joined #ruby
[08:39:28] the_drow: has joined #ruby
[08:43:25] kareeoleez: Has anyone issues in OSX with rvm to make the version persistent ? I've used --default and "global" but on a new session the version is lost
[08:43:57] Sembei: has joined #ruby
[08:46:19] lyshmk: has joined #ruby
[08:46:20] tatsuo: has joined #ruby
[08:49:38] sinkensabe: has joined #ruby
[08:58:32] Caerus: rvm --default use 2.2.5 ?
[09:01:11] xall: has joined #ruby
[09:02:02] kgrz: has joined #ruby
[09:04:08] Caerus: does the same on linux, latches on to the latest version... although the selected defaults just appears so upon doing ruby list
[09:05:18] the_drow: has joined #ruby
[09:05:22] coffeecupp: has joined #ruby
[09:08:47] spider-mario: has joined #ruby
[09:09:24] skade: has joined #ruby
[09:09:27] kareeoleez: Caerus: not working for some reason
[09:09:36] kareeoleez: works for this terminal session
[09:09:48] kareeoleez: If I open a new one it fails with the old version
[09:10:00] kareeoleez: then I must re-run --default
[09:10:33] Caerus: kareeoleez, tried on linux, behaves the same
[09:11:10] kareeoleez: it doesn't on osx
[09:11:28] Caerus: upon opening a new console, rvm list shows desired default marked with *
[09:12:00] startupality: has joined #ruby
[09:12:03] Caerus: but latests is shown as => (current)
[09:12:40] Caerus: so we're forced to re-run rvm use (desiredversion)
[09:13:30] Jackneill: has joined #ruby
[09:13:48] Caerus: my point being, it's not only on mac, maybe we're using the --default flag wrong? doubt it though, rvm doesn't complain about it :(
[09:14:44] sinkensabe: has joined #ruby
[09:15:09] neanderslob: has joined #ruby
[09:16:11] ferr: has joined #ruby
[09:17:52] kareeoleez: Caerus: maybe I should add it to .profile
[09:18:44] djbkd: has joined #ruby
[09:19:37] startupality: has joined #ruby
[09:23:59] startupality: has joined #ruby
[09:26:10] Caerus: kareeoleez, I suppose thats the dirty fix
[09:26:11] troulouliou_div2: has joined #ruby
[09:26:16] sdothum: has joined #ruby
[09:28:10] startupality: has joined #ruby
[09:31:07] blaxter: has joined #ruby
[09:31:38] pulkit4tech: has joined #ruby
[09:36:43] the_drow: has joined #ruby
[09:37:58] skade: has joined #ruby
[09:38:44] sinkensa_: has joined #ruby
[09:42:41] blackmesa: has joined #ruby
[09:44:19] platzhirsch: has joined #ruby
[09:46:17] yfeldblum: has joined #ruby
[09:47:30] madgen: has joined #ruby
[09:56:38] sinkensabe: has joined #ruby
[10:01:22] d0lph1n98: has joined #ruby
[10:01:53] jinie: has joined #ruby
[10:04:08] the_drow: has joined #ruby
[10:04:41] sinkensabe: has joined #ruby
[10:05:48] millerti: has joined #ruby
[10:07:48] bronson: has joined #ruby
[10:10:26] jinie: has joined #ruby
[10:12:16] jinie: has joined #ruby
[10:12:41] dvycuo: has joined #ruby
[10:16:00] lessless: has joined #ruby
[10:16:50] jinie: has joined #ruby
[10:18:44] KINGSABRI: has joined #ruby
[10:19:34] djbkd: has joined #ruby
[10:19:41] der-landgraf: has joined #ruby
[10:24:11] Ropeney: has joined #ruby
[10:24:28] ykewmi: has joined #ruby
[10:27:57] xall: has joined #ruby
[10:32:06] Masonn: has joined #ruby
[10:32:27] browndawg: has joined #ruby
[10:34:39] ur5us: has joined #ruby
[10:36:13] itguru: has joined #ruby
[10:38:36] ferr: has joined #ruby
[10:39:26] browndawg: Take a look at this. https://pastee.org/m9w2x
[10:39:54] sinkensabe: has joined #ruby
[10:40:11] browndawg: even though I froze the instance (I know I didn't freeze the class), from the POV of the user, the instance still got "mutated", right?
[10:41:20] browndawg: Is there a good reason for this?
[10:42:06] browndawg: Like everytime I have to be reasonably sure that an object will behave, I have to freeze both the class and object...
[10:42:52] browndawg: The documentation is also misleading. "Prevents further modifications to an object". If I shadow a method on the class, from my POV the instance starts throwing out different output. From my POV it got mutated.
[10:42:57] browndawg: Any comments?
[10:44:12] browndawg: This is one of those things in ruby that don't 'just work'. I call freeze on a string expecting it to always print the same thing, but someone monkey patches the String class to annoy me.
[10:44:28] d0lph1n98: has joined #ruby
[10:47:54] browndawg: I mean, I know it's *technically* correct. I'm only freezing the instance, not the class. But I'm still able to simulate modifications by patching methods on the class...
[10:48:10] browndawg: DAE feel the documentation should mention this...
[10:49:59] moeabdol1: has joined #ruby
[10:51:38] jhass: I feel it's pretty obvious, besides wide use of .freeze is not very common in the community IME
[10:51:49] jhass: but feel free to send a doc patch to point it out
[10:53:45] browndawg: jhass: It *is* obvious... to a rubyist.
[10:54:24] browndawg: but it will trip up a lot of people coming to ruby, like my friend who pointed it out 10 minutes ago
[10:54:28] browndawg: he comes from python
[10:56:04] kam270: has joined #ruby
[11:01:04] Kus: has joined #ruby
[11:02:56] pawnbox: has joined #ruby
[11:04:14] sepp2k: has joined #ruby
[11:08:35] tAn: has joined #ruby
[11:09:04] quazimodo: has joined #ruby
[11:16:15] hadronzoo: has joined #ruby
[11:16:15] Kruppe: has joined #ruby
[11:16:44] Devalo: has joined #ruby
[11:20:02] edwinvdgraaf: has joined #ruby
[11:21:18] djbkd: has joined #ruby
[11:23:31] startupality: has joined #ruby
[11:24:00] sinkensabe: has joined #ruby
[11:26:02] leitz: has joined #ruby
[11:26:13] startupality: has joined #ruby
[11:32:41] nando293921: has joined #ruby
[11:32:49] RegulationD: has joined #ruby
[11:38:34] sinkensabe: has joined #ruby
[11:39:00] gheegh: has joined #ruby
[11:39:04] tildes: has joined #ruby
[11:42:14] codeurge: has joined #ruby
[11:42:26] trinaldi: has joined #ruby
[11:43:06] Kus: has joined #ruby
[11:43:22] madgen: has joined #ruby
[11:44:38] jancel: has joined #ruby
[11:45:21] platzhirsch: has joined #ruby
[11:46:55] codeurge: has joined #ruby
[11:53:42] d0lph1n98: has joined #ruby
[11:54:11] |ifei5g00d: has joined #ruby
[11:54:13] |2701: has joined #ruby
[11:54:21] lxsameer: has joined #ruby
[11:55:35] startupality: has joined #ruby
[11:57:00] noobsu: has joined #ruby
[11:59:08] kgrz: has joined #ruby
[12:00:32] pawnbox: has joined #ruby
[12:01:02] thesheff17: has joined #ruby
[12:02:24] Vile`: has joined #ruby
[12:02:40] chipotle: has joined #ruby
[12:03:02] Hanmac: has joined #ruby
[12:03:05] charliesome: has joined #ruby
[12:03:49] leitz: Well, another drat. Started thinking about how to refactor a class and began with mild edits to the code. Then realized there was an older git branch where I had started the same thing.
[12:09:19] lomex: has joined #ruby
[12:10:00] pawnbox: has joined #ruby
[12:11:43] mistermocha: has joined #ruby
[12:14:42] todd: has joined #ruby
[12:16:05] sinkensabe: has joined #ruby
[12:18:39] shevy: 90% perfection is acceptable too leitz!
[12:19:31] lgrabh: has joined #ruby
[12:19:34] leitz: Yeah. Still, my classes are pretty messed up and I've coded to an unsure plan. Trying to fix that.
[12:19:50] leitz: And Good Morning shevy!
[12:20:50] startupality: has joined #ruby
[12:22:05] djbkd: has joined #ruby
[12:30:43] sinkensabe: has joined #ruby
[12:31:38] kam270: has joined #ruby
[12:32:29] jancel: has joined #ruby
[12:35:21] jancel: has joined #ruby
[12:36:02] Madmanden: has joined #ruby
[12:38:12] flashpoint9: has joined #ruby
[12:39:15] rbennacer: has joined #ruby
[12:39:23] nankyokusei: has joined #ruby
[12:39:46] xall: has joined #ruby
[12:40:30] davedev24: has joined #ruby
[12:42:34] moeabdol2: has joined #ruby
[12:42:38] dopamean_: has joined #ruby
[12:45:31] araujo_: has joined #ruby
[12:47:47] araujo_: has joined #ruby
[12:49:45] araujo_: has joined #ruby
[12:51:38] KINGSABRI_: has joined #ruby
[12:52:59] moeabdol: has joined #ruby
[12:55:00] sinkensa_: has joined #ruby
[12:59:59] jancel: has joined #ruby
[13:02:09] aries_liuxueyang: has joined #ruby
[13:02:21] kgrz: has joined #ruby
[13:02:50] aries_liuxueyang: anyone can help me with this question? http://stackoverflow.com/questions/37226521/change-rbenv-download-mirrors
[13:03:11] oetjenj: has joined #ruby
[13:04:38] kgrz: aries_liuxueyang: what's the value of RUBY_BUILD_SKIP_MIRROR in your env?
[13:06:31] aries_liuxueyang: I echo that and it's in the quesion.
[13:06:33] symm-: has joined #ruby
[13:06:41] pulkit4tech: has joined #ruby
[13:06:50] aries_liuxueyang: aries@mac-book-air: echo $RUBY_BUILD_MIRROR_URL
[13:06:50] aries_liuxueyang: https://ruby.taobao.org/
[13:06:57] shevy: leitz yeah I have that also, for big projects
[13:07:12] shevy: for instance, I have one subdirectory for a fairly large project that has about 30 classes or so, just in that subdirectory alone
[13:07:37] shevy: the classes are, counting documentation and empty newlines, about 100 lines each (so perhaps... 50 lines of code or so)
[13:07:55] shevy: just feels too much to check on so much code, just for one project
[13:08:05] shevy: I like small projects and small gems though
[13:08:44] leitz: shevy, I'm trying to kill a few birds with one stone; learn Ruby, make some useful tools for a game, and have fun.
[13:08:44] shevy: leitz you can see similar philosophies e. g. in manveru's innate https://github.com/Ramaze/innate
[13:08:57] shevy: games rule
[13:08:59] aries_liuxueyang: kgrz: seen that?
[13:10:19] leitz: shevy, I like the idea of rcov! Didn't know it was there.
[13:10:47] leitz: Testing, mostly rspec, is on my agenda as well. I've done a little but not made sure everything was there.
[13:11:19] leitz: The other advantage is that the game I play lends itself to small coding projects.
[13:13:55] leitz: The other other advantage is that Ruby is fun.
[13:14:00] aries_liuxueyang: hello? anyone can help me?
[13:14:36] sergey_makagon: has joined #ruby
[13:15:58] kam270: has joined #ruby
[13:16:28] mdw: has joined #ruby
[13:16:36] startupality: has joined #ruby
[13:17:10] TheCubeLord: has joined #ruby
[13:17:10] TheCubeLord: has joined #ruby
[13:17:55] Vile`: has joined #ruby
[13:18:21] toretore: >> 'RUBY_BUILD_SKIP_MIRROR' == 'RUBY_BUILD_MIRROR_URL' # aries_liuxueyang
[13:18:22] ruby[bot]: toretore: # => false (https://eval.in/571556)
[13:22:10] aries_liuxueyang: toretore: sorry, it's a typo.. ;-( That should be RUBY_BUILD_MIRROR_URL.
[13:22:31] aries_liuxueyang: toretore: I updated the question.
[13:22:52] toretore: so what is the value of RUBY_BUILD_SKIP_MIRROR ?
[13:22:59] djbkd: has joined #ruby
[13:23:38] aries_liuxueyang: toretore: it's nothing.
[13:23:49] aries_liuxueyang: I didn't set that variable.
[13:24:24] aries_liuxueyang: kgrz: sorry, I misled your question... ;-( that variable is not defined in my env.
[13:25:42] beast: has joined #ruby
[13:25:44] duoi: has joined #ruby
[13:26:10] aries_liuxueyang: toretore: Should I set that?
[13:26:23] rkoller: has joined #ruby
[13:27:17] blackmesa: has joined #ruby
[13:28:00] sinkensabe: has joined #ruby
[13:30:49] toretore: aries_liuxueyang: no
[13:31:12] dfinninger: has joined #ruby
[13:32:14] toretore: aries_liuxueyang: do you have the latest version of ruby-build?
[13:33:06] aries_liuxueyang: toretore: I installed that just now. it's the latest version.
[13:34:37] LoneHerm_: has joined #ruby
[13:35:44] leitz: Any idea why Line 6 prints "edu is 0" instead of "edu is 8"? https://gist.github.com/LeamHall/3ec62cfbee9144927763b8d7ac117822#file-student-rb-L6
[13:36:22] `tim`: has joined #ruby
[13:37:34] jhass: >> [777787[4], 777787[4].chr, 777787[4].chr.to_i(16)]
[13:37:35] ruby[bot]: jhass: # => [1, "\x01", 0] (https://eval.in/571559)
[13:37:40] jhass: no idea why it should print 8
[13:37:54] jhass: @upp isn't a string
[13:39:47] tildes: has joined #ruby
[13:39:49] toretore: aries_liuxueyang: then i don't know
[13:40:11] aries_liuxueyang: toretore: thank you all the same. ;-)
[13:40:54] zyzioziom: has joined #ruby
[13:42:15] duoi: has joined #ruby
[13:43:40] lxsameer: has joined #ruby
[13:44:55] pawnbox: has joined #ruby
[13:45:32] leitz: jhass, thanks! In my head it was a hex number but it should generally be treated as a string.
[13:45:44] leitz: Quotes around the declaration solved the issue.
[13:46:44] nanoz: has joined #ruby
[13:49:54] jancel: has joined #ruby
[13:50:37] b|ackwolf: has joined #ruby
[13:51:04] rbennacer: has joined #ruby
[13:51:10] b|ackwolf: would suggest a ruby web framework for a pomodoro app?
[13:52:29] apeiros: https://www.ruby-toolbox.com/categories/web_app_frameworks
[13:52:56] b|ackwolf: apeiros: I did look through that.
[13:53:12] jhass: mh, not sure what a pomodoro app would need a backend for at all?
[13:53:18] jhass: for the base functionality at least
[13:53:39] b|ackwolf: jhass: I know.
[13:54:13] b|ackwolf: jhass: but RoR is far from that.
[13:54:17] b|ackwolf: how about hanamirb?
[13:55:16] jhass: I still don't get what you need Ruby for here, static site and some JS should do?
[13:55:54] b|ackwolf: jhass: would you mind if I describe?
[13:56:12] jhass: that's what I'm trying to get you to do all along
[13:56:58] b|ackwolf: I'm going to write a pomodoro web application that has simple front-end (timer,subject, button, etc)
[13:57:35] ltd: has joined #ruby
[13:59:03] b|ackwolf: and in the back-end I need simple routing system to manage timestamps.
[13:59:22] Yiota: has joined #ruby
[13:59:34] jhass: elaborate on the last part please, "simple routing system to manage timestamps" means nothing to me
[14:01:29] b|ackwolf: sorry, I couldn't describe it well
[14:01:39] eatsfoobars: has joined #ruby
[14:02:31] kgrz: aries_liuxueyang: Not sure then :/ may be this might help? https://github.com/rbenv/ruby-build/issues/803
[14:03:04] jhass: try to describe the usecases, which usecase do you want to implement that requires any kind of client / server interaction?
[14:03:34] jinie: has joined #ruby
[14:04:19] aries_liuxueyang: kgrz: thanks, I will check that.
[14:04:58] idle_task: has joined #ruby
[14:05:03] madgen: has joined #ruby
[14:05:24] adavia: has joined #ruby
[14:05:47] pawnbox: has joined #ruby
[14:07:08] adavia: why does 100001100111.split(/1+/) returns ["", "0000", "00"] with a space in the beginning?
[14:07:31] zyzioziom: has joined #ruby
[14:07:52] jhass: it should return a NoMethodError :P
[14:08:02] toretore: >> 100001100111.split(/1+/)
[14:08:03] ruby[bot]: toretore: # => undefined method `split' for 100001100111:Bignum (NoMethodError) ...check link for more (https://eval.in/571563)
[14:08:19] toretore: >> '100001100111'.split(/1+/)
[14:08:20] ruby[bot]: toretore: # => ["", "0000", "00"] (https://eval.in/571564)
[14:08:38] jhass: anyway, assuming you actually got a string there, because the first split point is the first 1 so to the left side of the first 1 is the empty string
[14:08:58] davedev24: has joined #ruby
[14:09:08] bronson: has joined #ruby
[14:09:11] jhass: >> "100001100111".scan(/0+/)
[14:09:12] ruby[bot]: jhass: # => ["0000", "00"] (https://eval.in/571565)
[14:09:57] adavia: sorry i meant "100001100111".split(/1+/)
[14:11:02] tAn: has joined #ruby
[14:12:08] adavia: yeah scan is what i need
[14:12:57] sinkensabe: has joined #ruby
[14:16:29] jinie: has joined #ruby
[14:18:55] lax: has joined #ruby
[14:20:49] wrkrcoop: has joined #ruby
[14:22:04] tonini_: has joined #ruby
[14:22:06] avdi_: has joined #ruby
[14:22:10] rfv_: has joined #ruby
[14:22:13] nyandoge_: has joined #ruby
[14:23:50] djbkd: has joined #ruby
[14:24:43] liu: has joined #ruby
[14:24:49] halfdan: has joined #ruby
[14:25:03] skmp: has joined #ruby
[14:25:05] bcavileer: has joined #ruby
[14:25:07] mrfooo: has joined #ruby
[14:25:08] chrisseaton: has joined #ruby
[14:25:09] adambeynon: has joined #ruby
[14:25:13] zzak___: has joined #ruby
[14:25:25] liu: has joined #ruby
[14:25:58] davidmichaelkarr: has joined #ruby
[14:26:19] brianpWins: has joined #ruby
[14:26:39] the_drow: has joined #ruby
[14:27:19] liu: has joined #ruby
[14:27:21] idletask: has joined #ruby
[14:27:55] xall: has joined #ruby
[14:28:21] rumia: has joined #ruby
[14:28:41] liulantao: has joined #ruby
[14:31:58] the_drow: has joined #ruby
[14:34:01] RegulationD: has joined #ruby
[14:36:05] the_drow_: has joined #ruby
[14:37:00] kgrz: has joined #ruby
[14:37:26] sauvin: has joined #ruby
[14:38:12] rvchangue: has joined #ruby
[14:38:43] foucist: has joined #ruby
[14:38:53] madgen: has joined #ruby
[14:39:25] j_mcnally: has joined #ruby
[14:39:43] DuoDuo: has joined #ruby
[14:41:21] CoderPuppy: has joined #ruby
[14:41:53] j_mcnally: has joined #ruby
[14:42:59] kirun: has joined #ruby
[14:43:45] casp: has joined #ruby
[14:44:42] roamingdog: has joined #ruby
[14:45:45] casp: puts 'hello'
[14:47:13] shevy: he got it!
[14:50:17] Devalo: has joined #ruby
[14:52:47] cdg: has joined #ruby
[14:53:32] skingsbu: has joined #ruby
[14:55:08] sinkensabe: has joined #ruby
[14:58:04] b|ackwolf: how can I convert html to erb?
[14:58:44] Arcaire: HTML is Erb.
[14:58:45] jancel: has joined #ruby
[14:59:46] nadir: has joined #ruby
[15:00:22] SilverKey: has joined #ruby
[15:01:08] the_drow: has joined #ruby
[15:02:08] the_drow: has joined #ruby
[15:05:48] madgen: has joined #ruby
[15:06:19] hk238: has joined #ruby
[15:07:12] pawnbox: has joined #ruby
[15:11:55] Tahr64-user: has joined #ruby
[15:12:15] jgt1: has joined #ruby
[15:14:29] Vile`: has joined #ruby
[15:14:59] houhoulis: has joined #ruby
[15:15:54] s00pcan: has joined #ruby
[15:18:44] mtkd: has joined #ruby
[15:19:41] edwinvdgraaf: has joined #ruby
[15:22:42] the_drow: has joined #ruby
[15:23:39] the_drow: has joined #ruby
[15:24:32] the_drow: has joined #ruby
[15:24:36] djbkd: has joined #ruby
[15:24:51] SilverKey: has joined #ruby
[15:24:56] Es0teric: has joined #ruby
[15:25:15] matp: has joined #ruby
[15:26:19] Elvin: has joined #ruby
[15:28:55] zacts: when should I use mixins, and when should I use inheritance? I assume the former much more than the latter.
[15:29:05] zacts: how should I think about this metaphorically?
[15:29:20] zacts: I realize mixins should be named like adjectives
[15:30:40] |2701: you should read POODR by Sandi Metz
[15:31:02] |2701: a whole book about organization-related questions
[15:31:20] |2701: especially in OOP, it's important to get the design aspect of your application correct
[15:31:28] zacts: ah ok, coolio
[15:31:31] |2701: super especially important if other people are going to work on it also
[15:31:44] aswen: has joined #ruby
[15:32:10] zacts: thanks, I'll check it out
[15:33:33] the_drow: has joined #ruby
[15:35:07] platzhirsch: has joined #ruby
[15:38:11] platzhir1: has joined #ruby
[15:39:34] sinkensabe: has joined #ruby
[15:40:11] alxgsv: has joined #ruby
[15:41:31] mr_robot_: has joined #ruby
[15:42:50] kgrz: has joined #ruby
[15:43:20] ctrlrsf: has joined #ruby
[15:45:24] kgrz: has joined #ruby
[15:46:55] crameth: has joined #ruby
[15:47:18] platzhirsch: has joined #ruby
[15:48:29] zel: has joined #ruby
[15:49:05] flopsec: has joined #ruby
[15:50:47] kgrz: has joined #ruby
[15:51:14] jancel: has joined #ruby
[15:51:49] Tahr64-user: has joined #ruby
[15:52:52] Tahr64-user: has joined #ruby
[15:53:40] Tahr64-user: has joined #ruby
[15:54:29] matp: has joined #ruby
[15:55:14] ponga: has joined #ruby
[15:55:29] djbkd: has joined #ruby
[15:56:56] banister: has joined #ruby
[15:57:54] mr_robot_: has joined #ruby
[16:01:37] nischay1989: has joined #ruby
[16:05:00] the_drow: has joined #ruby
[16:06:01] the_drow: has joined #ruby
[16:06:51] pawnbox: has joined #ruby
[16:10:06] sinkensabe: has joined #ruby
[16:10:23] foucist: any other good books on OOD or ways to practice OOD specifically?
[16:12:06] zacts: Is the Ruby Design Patterns book any good?
[16:12:25] zacts: by Obie Fernandez
[16:12:35] zacts: by Russ Olsen
[16:12:41] tAn: has joined #ruby
[16:13:00] zacts: http://designpatternsinruby.com/
[16:13:53] zeroDi: has joined #ruby
[16:16:17] xall: has joined #ruby
[16:16:26] foucist: yeah i heard it is, haven't read it yet
[16:16:37] kgrz: has joined #ruby
[16:17:34] kgrz: has joined #ruby
[16:19:28] firstdayonthejob: has joined #ruby
[16:20:04] startupality: has joined #ruby
[16:22:06] dmr8: has joined #ruby
[16:22:09] laska: has joined #ruby
[16:22:38] nankyokusei: has joined #ruby
[16:26:43] sepp2k1: has joined #ruby
[16:29:32] the_drow: has joined #ruby
[16:29:41] xall: has joined #ruby
[16:29:49] jancel: has joined #ruby
[16:30:57] Biopandemic: has joined #ruby
[16:31:46] kgrz: has joined #ruby
[16:32:51] smathy: has joined #ruby
[16:33:16] madgen: has joined #ruby
[16:33:30] madgen: has joined #ruby
[16:35:21] jaguarmagenta: has joined #ruby
[16:37:17] shevy: zacts will end up as the one who has read the most ruby books here
[16:38:45] davedev24: has joined #ruby
[16:39:11] ponga: that book looks good
[16:41:37] kgrz: has joined #ruby
[16:41:52] shevy: hey ponga - long time no see
[16:43:45] aries_liuxueyang: has joined #ruby
[16:45:54] banister: has joined #ruby
[16:46:37] zacts: shevy: lol
[16:47:27] startupality: has joined #ruby
[16:47:34] zacts: I <3 tech books (I admit it I'm a bit of a bibliophile)
[16:47:47] pawnbox: has joined #ruby
[16:48:13] shakes: has joined #ruby
[16:48:54] rkazak: has joined #ruby
[16:51:02] ponga: shevy: i was away from ruby these days
[16:51:07] kgrz: has joined #ruby
[16:51:10] ponga: means i was away from coding
[16:52:05] skade: has joined #ruby
[16:53:06] kgrz: has joined #ruby
[16:54:20] lxsameer: has joined #ruby
[16:54:50] Nanuq: has joined #ruby
[16:56:27] startupality: has joined #ruby
[16:56:37] ponga: damn it , a couple month away from ruby and I already forgot how to use rbenv entirely
[16:56:58] the_drow: has joined #ruby
[16:57:20] wigust: has joined #ruby
[16:57:44] Cohedrin: has joined #ruby
[16:58:26] shakes: has joined #ruby
[16:59:31] giz|work: has joined #ruby
[16:59:49] Cohedrin: has joined #ruby
[17:00:33] brianpWins_: has joined #ruby
[17:00:47] sharkman: has joined #ruby
[17:01:17] sharkman: whats the best way to match from a group of a couple of words? right now i do =~ /((G1)|(G2))/ but i suspect there is something that looks better?
[17:03:02] ruby[bot]: Please show your real code to illustrate your problem. Using fake code often hides it or won't bring up the best possible solution.
[17:04:06] startupality: has joined #ruby
[17:06:46] sinkensabe: has joined #ruby
[17:07:34] bluOxigen: has joined #ruby
[17:07:46] QORRiE: has joined #ruby
[17:09:41] zyzioziom: has joined #ruby
[17:11:06] jancel: has joined #ruby
[17:13:22] tAn: has joined #ruby
[17:13:57] pawnbox: has joined #ruby
[17:14:20] edwinvdgraaf: has joined #ruby
[17:15:16] jaguarmagenta: has joined #ruby
[17:20:08] whiteline: has joined #ruby
[17:20:18] RenatoSilva: has joined #ruby
[17:23:16] mdw: has joined #ruby
[17:23:38] vF3hNGxc47h8: has joined #ruby
[17:24:01] mdw: has joined #ruby
[17:24:13] madgen: has joined #ruby
[17:24:46] mdw: has joined #ruby
[17:25:33] mdw: has joined #ruby
[17:25:49] zacts: ponga: I personally prefer rbenv over rvm
[17:26:02] ponga: everyone says that so i tried it
[17:26:14] zacts: ponga: what issue are you having?
[17:26:18] ponga: i learnt to use it, and forgot it completely
[17:26:28] zacts: oh, lol... yeah.
[17:26:30] ponga: zacts: i simply forgot the entirety of how to use it
[17:26:31] mdw: has joined #ruby
[17:26:37] ponga: rvm is too easy for me
[17:26:40] ponga: back to rvm
[17:26:46] noobsu: has joined #ruby
[17:26:50] Yzguy: has joined #ruby
[17:26:59] ponga: zacts: i even had to google search "basic vi commands'
[17:27:03] ponga: im shit now
[17:27:06] bruno-: has joined #ruby
[17:27:19] ponga: don't giggle shev
[17:27:29] mdw: has joined #ruby
[17:28:06] Coldblackice: has joined #ruby
[17:28:12] shevy: I pity them all!
[17:28:42] mercerist: has joined #ruby
[17:29:25] jancel: has joined #ruby
[17:29:29] RenatoSilva: patches, bug fixes and the like, please https://github.com/renatosilva/easyoptions :)
[17:30:25] zacts: renatosilva: that looks really cool
[17:31:41] mdw7: has joined #ruby
[17:33:50] mtkd: has joined #ruby
[17:33:52] shakes: has joined #ruby
[17:35:28] RegulationD: has joined #ruby
[17:36:55] elomatreb: has joined #ruby
[17:37:26] terlar: has joined #ruby
[17:38:31] whiteline: has joined #ruby
[17:42:44] zitruk: has joined #ruby
[17:51:42] Axy: has joined #ruby
[17:51:42] Axy: has joined #ruby
[17:52:24] noobsu: has joined #ruby
[17:55:16] Mia: has joined #ruby
[17:55:17] Mia: has joined #ruby
[17:56:42] the_drow: has joined #ruby
[17:57:15] SilverKey: has joined #ruby
[17:58:15] dsea: has joined #ruby
[17:58:35] laska: has joined #ruby
[18:00:43] ferr: has joined #ruby
[18:01:14] pyramid: has joined #ruby
[18:01:19] ellisTAA: has joined #ruby
[18:01:39] ellisTAA: when i write unit tests, do i only want to test input and output since i’m testing for behavior not implementation?
[18:01:51] ellisTAA: so i dont really care what the internal is doing?
[18:01:58] jhass: most of time, sometimes side effects
[18:02:08] laska: is there a more convenient way to create a gui than shoes?
[18:02:37] leitz: has joined #ruby
[18:03:10] pyramid: has left #ruby: ()
[18:04:07] yfeldblum: has joined #ruby
[18:04:24] sinkensabe: has joined #ruby
[18:07:02] ellisTAA: jhass: was that an answer to my question? or someone elses i just came in the room.
[18:07:06] ellisTAA: side effects?
[18:07:37] mbreedlove: has joined #ruby
[18:07:58] jhass: yes and yes side effects, like it added a record to some database table or so
[18:08:53] ellisTAA: so if i had a method Person.new, i would test the incoming params, the output, and then i’d check to see if the db got a new person or something?
[18:09:26] jhass: if you implemented Person.new on your own, yeah
[18:09:38] jhass: don't test third party libs doing what they're supposed to do
[18:09:45] ellisTAA: cool … thank you
[18:09:56] Yzguy: has joined #ruby
[18:10:31] d0nn1e: has joined #ruby
[18:10:57] the_drow: has joined #ruby
[18:11:27] bronson: has joined #ruby
[18:11:51] flashpoint9: has joined #ruby
[18:13:14] codeurge: has joined #ruby
[18:13:30] nankyokusei: has joined #ruby
[18:14:22] knaesig: has joined #ruby
[18:14:40] troulouliou_dev: has joined #ruby
[18:16:19] cpup: has joined #ruby
[18:17:01] wnd: has joined #ruby
[18:18:02] Axy: has joined #ruby
[18:18:02] Axy: has joined #ruby
[18:18:50] codecop: has joined #ruby
[18:19:25] griffindy: has joined #ruby
[18:19:53] lomex: has joined #ruby
[18:20:26] alxgsv: has joined #ruby
[18:20:30] Dimik: has joined #ruby
[18:22:15] jhack: has joined #ruby
[18:22:59] austinprog: has joined #ruby
[18:24:01] CoderPuppy: has joined #ruby
[18:24:19] Lomex_: has joined #ruby
[18:26:32] Mia: has joined #ruby
[18:26:32] Mia: has joined #ruby
[18:28:28] InfraRuby: has joined #ruby
[18:29:56] jancel: has joined #ruby
[18:32:03] ctrlrsf: has joined #ruby
[18:32:34] s00pcan: has joined #ruby
[18:32:49] rubyrubyruby: has joined #ruby
[18:35:55] the_drow: has joined #ruby
[18:36:21] diegoviola: has joined #ruby
[18:36:50] zel: has joined #ruby
[18:36:53] the_drow: has joined #ruby
[18:37:36] flopsec: has joined #ruby
[18:39:05] lomex: has joined #ruby
[18:42:44] araujo_: has joined #ruby
[18:42:50] elifoster: has joined #ruby
[18:44:41] Mia: has joined #ruby
[18:48:40] aphprentice: has joined #ruby
[18:49:59] pawnbox: has joined #ruby
[18:51:03] diego1: has joined #ruby
[18:51:50] LoneHermit: has joined #ruby
[18:52:25] ur5us: has joined #ruby
[18:53:35] mercerist: has joined #ruby
[18:53:39] RenatoSilva: has left #ruby: ("http://renatosilva.net - Renato Silva")
[18:53:59] diego1: has joined #ruby
[18:56:21] madgen: has joined #ruby
[18:58:46] sinkensabe: has joined #ruby
[18:58:46] the_drow: has joined #ruby
[19:01:07] Yiota: has joined #ruby
[19:03:24] diego1: has joined #ruby
[19:05:02] symm-: has joined #ruby
[19:05:19] diego1: has joined #ruby
[19:05:22] dmr8: has joined #ruby
[19:06:39] whiteline: has joined #ruby
[19:11:06] tAn: has joined #ruby
[19:12:07] roamingdog: has joined #ruby
[19:13:44] Devalo: has joined #ruby
[19:13:50] pwnd_nsfw: has joined #ruby
[19:13:57] zacts: shevy: ch 10 of HF Ruby book is done \o/... Anyway, /me idles for a bit...
[19:14:37] dsea: has joined #ruby
[19:15:05] brianpWins: has joined #ruby
[19:15:27] thesheff17: has left #ruby: ()
[19:15:47] jaguarmagenta: has joined #ruby
[19:19:55] ebbflowgo: has joined #ruby
[19:20:22] rapha: has joined #ruby
[19:20:41] mherold: has joined #ruby
[19:21:29] rapha: Is there a neat way of writing `something ||= something_else` where `something` could be an empty string and still be set to `something_else`?
[19:22:16] noobineer: has joined #ruby
[19:22:50] rapha: (`something.blank? && something = something_else` works with Rails ofc but doesn't really look pretty)
[19:23:15] noobsu: has joined #ruby
[19:24:00] smathy: rapha, no operator sort of thing like ||=, no. I usually use postfix conditional in this situation: something = something_else if something.blank?
[19:24:08] blackmesa: has joined #ruby
[19:24:23] rapha: smathy: hmm, at least that's more readable than my version :)
[19:24:41] antgel: has joined #ruby
[19:25:18] yfeldblum: has joined #ruby
[19:25:29] the_drow: has joined #ruby
[19:26:06] beatdown_: has joined #ruby
[19:27:00] mherold: has joined #ruby
[19:28:19] jhass: if we're talking activesupport/rails another version would be something = something.presence || something_else, not sure I prefer it over the modifer-if here though
[19:28:39] Oclair: has joined #ruby
[19:29:49] Fridtjof: has joined #ruby
[19:30:36] flashpoint9: has joined #ruby
[19:31:24] astrobunny: has joined #ruby
[19:32:29] cpup: has joined #ruby
[19:37:26] rubyrubyruby: has joined #ruby
[19:37:45] shevy: something
[19:38:04] mtkd: has joined #ruby
[19:38:16] codeurge: has joined #ruby
[19:38:26] bhegel: has joined #ruby
[19:41:43] Devalo: has joined #ruby
[19:42:45] wnd: has joined #ruby
[19:43:47] chepoweon: has joined #ruby
[19:44:17] roamingdog: has joined #ruby
[19:44:26] mr_robot_: has joined #ruby
[19:45:43] CoderPuppy: has joined #ruby
[19:46:00] Azure: has joined #ruby
[19:47:19] madgen: has joined #ruby
[19:48:00] kirillow: has joined #ruby
[19:49:29] the_drow: has joined #ruby
[19:51:19] Ocratech: has joined #ruby
[19:53:02] sinkensabe: has joined #ruby
[19:54:14] Kus: has joined #ruby
[19:55:58] yqt: has joined #ruby
[19:55:59] brianpWins_: has joined #ruby
[19:56:30] zyzioziom: has joined #ruby
[19:57:24] bronson: has joined #ruby
[19:57:26] kirillow: how do I tell slim what path the template files are in?
[19:59:08] roamingdog: has joined #ruby
[20:00:15] edwinvdgraaf: has joined #ruby
[20:00:44] pawnbox: has joined #ruby
[20:05:11] Yiota: has joined #ruby
[20:06:51] roamingdog: has joined #ruby
[20:08:52] smathy: kirillow, you pass a full path to the Slim::Template.new method (or to Tilt.new).
[20:09:58] xue: has joined #ruby
[20:14:25] diego1: has joined #ruby
[20:15:24] foucist: has joined #ruby
[20:16:05] diego1: has joined #ruby
[20:16:32] kirillow: smathy, thanks! I looked in a completely wrong place
[20:16:59] Xaitec: has joined #ruby
[20:19:46] xall: has joined #ruby
[20:20:27] `tim`: has joined #ruby
[20:21:07] Oclair_: has joined #ruby
[20:22:38] s00pcan: has joined #ruby
[20:25:55] kirillow: has joined #ruby
[20:26:14] ramfjord: has joined #ruby
[20:28:03] ctp: has joined #ruby
[20:28:21] kirillow: another question: i've got a file helpers.rb with some methods. I want those methods to be available in all *.slim files. How, roughly, do I go about doing this? This is for a static website
[20:30:33] bruno-: has joined #ruby
[20:32:23] xall: has joined #ruby
[20:33:23] czerasz: has joined #ruby
[20:36:58] RegulationD: has joined #ruby
[20:37:25] Mon_Ouie: has joined #ruby
[20:37:27] jancel: has joined #ruby
[20:39:36] leitz: has joined #ruby
[20:41:51] pawnbox: has joined #ruby
[20:42:54] LoneHerm_: has joined #ruby
[20:43:50] jancel: has joined #ruby
[20:44:25] jhack: has joined #ruby
[20:44:58] jaguarmagenta: has joined #ruby
[20:45:52] KINGSABRI_: has joined #ruby
[20:46:39] flashpoint9: has joined #ruby
[20:47:13] skade: has joined #ruby
[20:47:15] futilegames: has joined #ruby
[20:47:43] sinkensabe: has joined #ruby
[20:55:40] codeurge: has joined #ruby
[20:57:45] A124: has joined #ruby
[20:58:47] Kus: has joined #ruby
[21:03:08] KINGSABRI: has joined #ruby
[21:06:51] DanyC: has joined #ruby
[21:07:11] DanyC: has left #ruby: ()
[21:07:58] swerwath: has joined #ruby
[21:08:06] nofxx: has joined #ruby
[21:08:06] nofxx: has joined #ruby
[21:09:06] chipotle: has joined #ruby
[21:09:11] mosh: has joined #ruby
[21:10:56] aries_liuxueyang: has joined #ruby
[21:11:04] Azure: has joined #ruby
[21:12:39] futilegames_: has joined #ruby
[21:14:59] yaw: has joined #ruby
[21:18:29] rapha: jhass: oops, saw your second suggestion just now. What is it you dislike about it?
[21:20:39] jhass: I think the if reads more naturally here
[21:20:57] futilegames: has joined #ruby
[21:21:11] noobsu: has joined #ruby
[21:22:57] bronson: has joined #ruby
[21:22:58] codeurge: has joined #ruby
[21:24:12] roamingdog: has joined #ruby
[21:26:02] rapha: jhass: Hmm ... okay, the .presence is admittedly weird.
[21:27:59] Es0teric: has joined #ruby
[21:28:33] Es0teric: has joined #ruby
[21:29:19] whathappens: has joined #ruby
[21:31:35] aeterne: has joined #ruby
[21:31:48] bruno-: has joined #ruby
[21:32:00] noobsu: has joined #ruby
[21:35:47] blaxter: has joined #ruby
[21:37:16] marr: has joined #ruby
[21:40:52] bluOxigen_: has joined #ruby
[21:47:30] codeurge: has joined #ruby
[21:53:11] wigust: has joined #ruby
[21:53:29] Cohedrin: has joined #ruby
[21:54:11] LoneHerm_: has joined #ruby
[21:55:50] austinprog: has joined #ruby
[21:59:12] jancel: has joined #ruby
[21:59:32] yfeldblum: has joined #ruby
[22:03:07] sepp2k: has joined #ruby
[22:03:52] noobsu: has joined #ruby
[22:04:06] solars: has joined #ruby
[22:08:53] Jet4Fire: has joined #ruby
[22:10:49] mr_robot_: has joined #ruby
[22:10:54] sauvin: has joined #ruby
[22:13:28] tAn: has joined #ruby
[22:14:39] Nawn: has joined #ruby
[22:16:47] nerium: has joined #ruby
[22:17:21] bruno-: has joined #ruby
[22:18:29] SilverKey: has joined #ruby
[22:21:05] nawn`: has joined #ruby
[22:23:15] ruby-lang653: has joined #ruby
[22:24:34] ruby-lang653: hey, I’m supposed to write a program that allows a user to input A, B, C, D or E as many times as they would like. If they hit any other character, the program should display the sum of the purchase. Here are the prices of the items (some have special SALE prices) A - 0.50 or 3 for $1.00 B - 1.25 C - 0.75 or 4 for $2.50 D - 1.00 E - 0.69
[22:24:46] ruby-lang653: I'm a beginner so any help is much appreciated
[22:25:07] nawn`: has joined #ruby
[22:26:53] mooe: has joined #ruby
[22:27:53] `tim`: has joined #ruby
[22:28:15] Nawn: What kind of code do you have so far?
[22:30:20] nawn`: has joined #ruby
[22:31:09] nawn`: ruby-lang653: ?
[22:31:40] nawn`: Oh... okay, haha.
[22:33:36] flashpoint9: has joined #ruby
[22:34:41] mosh: has joined #ruby
[22:35:30] sthns: has joined #ruby
[22:35:44] sinkensabe: has joined #ruby
[22:36:42] xall: has joined #ruby
[22:37:13] zenlot: has joined #ruby
[22:38:11] RegulationD: has joined #ruby
[22:40:10] Devalo: has joined #ruby
[22:41:52] tAn: has joined #ruby
[22:48:00] jancel: has joined #ruby
[22:51:44] Nawn: has joined #ruby
[22:55:27] ledestin: has joined #ruby
[22:57:53] Gasher: has joined #ruby
[22:57:59] jaguarmagenta: has joined #ruby
[23:00:37] roamingdog: has joined #ruby
[23:04:16] TomyLobo: has joined #ruby
[23:05:12] sarlalian: has joined #ruby
[23:05:18] duncannz: has joined #ruby
[23:06:20] sinkensabe: has joined #ruby
[23:06:30] diegoaguilar: has joined #ruby
[23:07:09] jancel: has joined #ruby
[23:08:40] jancel: has joined #ruby
[23:12:08] Elvin: has joined #ruby
[23:15:17] roamingdog: has joined #ruby
[23:22:11] skingsbu: has joined #ruby
[23:26:11] CloCkWeRX: has joined #ruby
[23:26:15] SCHAAP137: has joined #ruby
[23:28:05] Trynemjoel: has joined #ruby
[23:29:30] atrom: has joined #ruby
[23:30:15] crystal77: has joined #ruby
[23:33:16] yaw: has joined #ruby
[23:35:38] pawnbox: has joined #ruby
[23:38:17] TomyLobo: has joined #ruby
[23:39:50] sarlalian: has joined #ruby
[23:41:44] LoneHermit: has joined #ruby
[23:43:30] rubyrubyruby: what should I use for the "platform" attribute in a gemspec for a gem that runs on all windows platforms (mswin{32,64}, mingw{32,64}, etc.)
[23:43:33] diegoviola: has joined #ruby
[23:44:38] quazimodo: has joined #ruby
[23:44:50] sinkensa_: has joined #ruby
[23:46:09] kareeoleez: has joined #ruby
[23:47:15] sneakerhax: has joined #ruby
[23:48:00] kam270: has joined #ruby
[23:48:02] akiTendo: has joined #ruby
[23:48:38] SilverKey: has joined #ruby
[23:49:23] Azure: has joined #ruby
[23:50:24] kareeole_: has joined #ruby
[23:51:00] ellisTAA: has joined #ruby
[23:55:36] squigz: has joined #ruby
[23:56:11] kareeoleez: has joined #ruby
[23:59:49] Gasher: has joined #ruby