« Back to channel list

#ruby - 02 January 2018

« Back 1 day Forward 1 day »
[00:00:58] jtdoncas_: has joined #ruby
[00:03:39] despai: has joined #ruby
[00:08:15] cschneid_: has joined #ruby
[00:10:50] belmoussaoui: has joined #ruby
[00:12:02] namho: Happy New Years everyone. I'm new to Ruby and was hoping for some guidance. I went through the Codecademy Ruby lesson - would the Pickaxe book, Well-Grounded, and Eloquent good places to go next?
[00:12:41] t0adst00l: has joined #ruby
[00:14:37] alfiemax: has joined #ruby
[00:17:58] elphe: has joined #ruby
[00:19:27] Radar: namho: welcome :) Yes all of those places are good to go through after codecademy's course.
[00:20:42] namho: Radar: any recommendation on which of the 3 to start with? or any of them good?
[00:21:06] Radar: namho: I usually recommend Well-Grounded to people
[00:22:08] namho: cool, thank you!
[00:22:30] cschneid_: has joined #ruby
[00:22:34] Radar: namho: I'm usually around about this time until ~7 hours from now so if you've got any questions just ask
[00:22:45] Radar: There's usually a bunch more people here too who can help outside of those hours
[00:26:46] jtdoncas_: has joined #ruby
[00:27:27] belmoussaoui: has joined #ruby
[00:28:45] paddy_: has joined #ruby
[00:28:52] k0mpa: has joined #ruby
[00:37:54] ResidentBiscuit: has joined #ruby
[00:40:09] zwliew: has joined #ruby
[00:40:26] jtdoncas_: has joined #ruby
[00:41:35] paddy_: has joined #ruby
[00:42:20] cremes: has joined #ruby
[00:43:35] ResidentBiscuit: has joined #ruby
[00:48:55] randomstrangerb: has joined #ruby
[00:52:45] guardianx: has joined #ruby
[00:56:29] cschneid_: has joined #ruby
[01:04:30] alfiemax: has joined #ruby
[01:06:00] yokel: has joined #ruby
[01:11:22] garyserj: has joined #ruby
[01:37:50] alfiemax: has joined #ruby
[01:38:43] cschneid_: has joined #ruby
[01:39:46] ResidentBiscuit: has joined #ruby
[01:40:17] darkhanb: has joined #ruby
[01:41:04] nerium: has joined #ruby
[01:42:27] jrafanie: has joined #ruby
[01:45:41] mtkd: has joined #ruby
[01:50:10] yosafbridge: has joined #ruby
[02:05:11] gizmore|2: has joined #ruby
[02:18:33] nerium: has joined #ruby
[02:18:57] cschneid_: has joined #ruby
[02:19:50] eightlimbed: has joined #ruby
[02:34:58] woodruffw: has joined #ruby
[02:34:58] woodruffw: has joined #ruby
[02:40:20] alfiemax: has joined #ruby
[02:43:42] jtdoncas_: has joined #ruby
[02:55:18] cschneid_: has joined #ruby
[03:07:43] obzidian: has joined #ruby
[03:09:45] theo_: has joined #ruby
[03:14:17] minimalism: has joined #ruby
[03:27:33] alfiemax: has joined #ruby
[03:33:24] uZiel: has joined #ruby
[03:33:41] ResidentBiscuit: has joined #ruby
[03:40:58] cschneid_: has joined #ruby
[03:46:43] minimalism: has joined #ruby
[03:50:43] mtkd: has joined #ruby
[03:59:18] alfiemax: has joined #ruby
[04:02:29] gix-: has joined #ruby
[04:22:10] cschneid_: has joined #ruby
[04:30:28] leafyleong: has joined #ruby
[04:32:05] SirFunk: has joined #ruby
[04:56:43] EXCHGR: has joined #ruby
[04:59:27] elphe: has joined #ruby
[04:59:59] gix: has joined #ruby
[05:01:20] xcesariox: has joined #ruby
[05:01:36] xcesariox: guys i need help
[05:02:06] xcesariox: when i did `rails s' to run server i keep getting Could not find rake-12.3.0 in any of the sources
[05:02:08] xcesariox: Run `bundle install` to install missing gems.
[05:02:24] xcesariox: anyone knows how to fix this?
[05:02:33] xcesariox: i already have rake 12.3.0
[05:04:36] cschneid_: has joined #ruby
[05:05:22] kculpis: has joined #ruby
[05:06:36] Radar: xcesariox: Did you try running `bundle install`?
[05:10:50] iamarun: has joined #ruby
[05:22:59] capin: has joined #ruby
[05:24:28] anisha: has joined #ruby
[05:25:32] capin: has joined #ruby
[05:29:16] capin1: has joined #ruby
[05:29:45] cloaked1: has joined #ruby
[05:29:45] cloaked1: has joined #ruby
[05:31:48] ledestin: has joined #ruby
[05:32:33] elphe: has joined #ruby
[05:36:52] mikhael_k33hl: has joined #ruby
[05:38:27] mikhael_k33hl: I have a class that creates a database object for sqlite3, should I make it a singleton since it will be used by multiple threads?
[05:40:24] howdoi: has joined #ruby
[05:41:08] ur5us: has joined #ruby
[05:48:41] cschneid_: has joined #ruby
[05:48:53] elomatreb: The class is already a singleton object, which you can use for this
[05:48:58] elomatreb: mikhael_k33hl: ^
[05:50:52] mikhael_k33hl: elomatreb: you mean sqlite3?
[05:51:18] elomatreb: Your class that creates the connection. Classes in Ruby are also objects
[05:52:10] mikhael_k33hl: elomatreb: can you elaborate on that one? I'm a bit confused with "The class is already a singleton object
[05:52:47] aupadhye: has joined #ruby
[05:54:11] elomatreb: See this: https://gist.github.com/elomatreb/926ebfb99aa06ca8a8153c57e2183302
[05:55:04] mtkd: has joined #ruby
[06:02:16] KeyJoo: has joined #ruby
[06:02:29] cloaked1: has joined #ruby
[06:02:29] cloaked1: has joined #ruby
[06:04:24] mikhael_k33hl: elomatreb: I see, thanks I'll try that one
[06:08:41] jrp93: has joined #ruby
[06:15:47] milardovich: has joined #ruby
[06:17:52] DmitryBochkarev: has joined #ruby
[06:20:18] rippa: has joined #ruby
[06:21:07] milardovich: has joined #ruby
[06:44:58] mikhael_k33hl: elomatreb: Do I really need to make the class a singleton though? hmmm
[06:45:12] elphe: has joined #ruby
[06:45:59] elomatreb: That really depends on your usecase
[06:46:20] abraham_: has joined #ruby
[06:47:39] darkhanb: has joined #ruby
[06:52:37] mikhael_k33hl: elomatreb: say I use the Ruby SIngleton Module, how do I change the value of the database during unit tests?
[06:52:40] mikhael_k33hl: since the new method is now private
[06:53:27] elomatreb: You can bypass access restrictions with #send (e.g. `some_instance.send(:private_method, "some_arg")`)
[06:56:51] cschneid_: has joined #ruby
[07:00:54] t0adst00l: has joined #ruby
[07:03:38] jtdoncas: has joined #ruby
[07:05:34] r3kz: has joined #ruby
[07:05:50] capin1: has joined #ruby
[07:08:02] jtdoncas_: has joined #ruby
[07:09:36] ur5us: has joined #ruby
[07:11:57] capin1: has joined #ruby
[07:20:03] bokayio: has joined #ruby
[07:21:12] mikhael_k33hl: elomatreb: I got a symbol in my class that I need to change during unit test, is there any way to do it or do I have to define a getter?
[07:21:43] elomatreb: Depends on where you assigned it, there is instance_variable_set for instance variables
[07:23:10] rabajaj: has joined #ruby
[07:23:52] mikhael_k33hl: elomatreb: i'm not sure if I'm doing this right though: https://gist.github.com/marzdgzmn/9bf6ccf1ab85c2a5ae652e8390a9d40b
[07:25:14] amatas: has joined #ruby
[07:25:37] elomatreb: That assignment on line 11 doesn't look right, doesn't that give a syntax error?
[07:25:48] elomatreb: You can't assign to a symbol like that
[07:26:11] TinkerTyper: has joined #ruby
[07:28:21] mikhael_k33hl: oh yeah, I really should just use constant then hehe
[07:34:00] Freshnuts: has joined #ruby
[07:37:07] knightblader: has joined #ruby
[07:40:39] conta: has joined #ruby
[07:41:56] jnyw: has joined #ruby
[07:47:50] jenrzzz: has joined #ruby
[07:48:25] treat217: has joined #ruby
[07:52:55] randomstrangerb: has joined #ruby
[07:56:34] treat217: has left #ruby: ()
[07:58:20] jinie: has joined #ruby
[07:59:12] mtkd: has joined #ruby
[08:04:26] cschneid_: has joined #ruby
[08:04:47] Illianthe: has joined #ruby
[08:07:38] mikhael_k33hl: How do I initialize the instance inside the singleton for testing?
[08:08:31] mikhael_k33hl: oh okay just have to invoke Class.instance
[08:08:44] livcd: any promos/discounts/sales going on for recommended Ruby books ?
[08:16:37] pwnd_nsfw`: has joined #ruby
[08:19:15] elphe: has joined #ruby
[08:19:40] c0ncealed: has joined #ruby
[08:20:21] mikhael_k33hl: Since I have a singleton for database access, how do I ensure that the database get's closed when the program is closed since that connection will always be open as long as the program is runjning
[08:24:11] LocaMocha: has joined #ruby
[08:26:23] InfinityFye: has joined #ruby
[08:27:53] InfinityFye: has left #ruby: ()
[08:35:26] nowhere_man: has joined #ruby
[08:43:09] tAn: has joined #ruby
[08:46:28] MrSparkle: has left #ruby: ()
[08:48:49] claudiuinberlin: has joined #ruby
[08:53:51] cschneid_: has joined #ruby
[08:54:03] randomstrangerb: has joined #ruby
[08:55:09] nathani: has joined #ruby
[08:56:49] dionysus69: has joined #ruby
[08:57:55] dionysus69: has joined #ruby
[08:57:57] Gabemo: has joined #ruby
[08:59:40] cschneid_: has joined #ruby
[09:01:44] randomstrangerb: has joined #ruby
[09:05:34] mikecmpbll: has joined #ruby
[09:08:23] nerium: has joined #ruby
[09:10:57] jenrzzz: has joined #ruby
[09:11:19] vondruch: has joined #ruby
[09:11:22] t0adst00l: has joined #ruby
[09:13:14] ur5us: has joined #ruby
[09:20:00] marr: has joined #ruby
[09:20:12] mikhael_k33hl: what's the best way to ensure a method is run when program terminates?
[09:43:01] m0x00: has joined #ruby
[09:44:23] elphe: has joined #ruby
[09:46:27] bkxd: has joined #ruby
[09:46:37] cschneid_: has joined #ruby
[09:47:37] Beams: has joined #ruby
[09:49:14] guardian: has joined #ruby
[09:55:17] reber: has joined #ruby
[09:57:53] ren0v0: has joined #ruby
[09:57:54] bkxd: has joined #ruby
[09:58:32] ren0v0: Hi, i'm trying to install ruby via RVM, but its just freezing on "Installing required packages: gawk, libyaml-dev, libsqlite3-dev," ?
[09:58:43] bkxd: has joined #ruby
[10:00:39] drewmcmillan: has joined #ruby
[10:11:28] qba73: has joined #ruby
[10:12:11] apeiros: mikhael_k33hl: there's Kernel#at_exit
[10:13:00] apeiros: ren0v0: uh, maybe run it with `set -x` (I hope that's the right command). i.e. `set -x` then `rvm install your_ruby`
[10:13:19] ren0v0: apeiros, that's for interactive stuff right?
[10:13:36] apeiros: that's for your shell
[10:13:38] ren0v0: because i found the issue and it was related, in the logfile it had a popup for another package that needed confirmation
[10:13:46] ren0v0: so, RVM doesn't handle this well at all
[10:14:02] heliumk: has joined #ruby
[10:14:22] apeiros: it's quite possible that rvm doesn't properly shield one from interactive sections, yes. I'd ask over in #rvm what to do about that
[10:16:29] tvw: has joined #ruby
[10:17:39] banisterfiend: has joined #ruby
[10:19:55] beauby: has joined #ruby
[10:22:02] cschneid_: has joined #ruby
[10:22:26] ur5us: has joined #ruby
[10:23:07] jaruga: has joined #ruby
[10:27:15] beauby: has left #ruby: ()
[10:27:19] beauby: has joined #ruby
[10:30:36] beauby: has joined #ruby
[10:33:03] t0adst00l: has joined #ruby
[10:33:44] Cavallari: has joined #ruby
[10:40:26] clemens3: has joined #ruby
[10:42:18] beauby: has left #ruby: ()
[10:42:21] beauby: has joined #ruby
[10:44:15] amatas: has joined #ruby
[10:45:00] qba73: has joined #ruby
[10:45:30] t0adst00l: has joined #ruby
[10:47:26] tastygradient: has joined #ruby
[10:47:47] marens: has joined #ruby
[10:47:47] marens: has joined #ruby
[10:51:00] guardianx: has joined #ruby
[10:55:02] mikhael_k33hl: apeiros: what if the program get closed unexpectedly will theh at_exit still run?
[10:55:47] apeiros: depending on how unexpectedly a program terminates, there's little to nothing you can do anyway
[10:56:21] apeiros: you can set up a global begin/rescue/end to rescue all ruby related exceptions and with rescue Interrupt, also a ctrl-c termination
[10:56:30] nchambers: has joined #ruby
[10:56:38] apeiros: the latter can be caught via trap("SIGINT") as well
[10:57:36] biberu: has joined #ruby
[10:57:52] apeiros: I'm actually mistaken. at_exit will also be run in case of unhandled exceptions.
[10:58:16] Mortomes|Work: has joined #ruby
[10:58:16] apeiros: but that's still only one kind of "unexpected termination"
[11:00:57] zwliew: has joined #ruby
[11:02:47] guardian: has joined #ruby
[11:05:09] drewmcmillan: has joined #ruby
[11:07:49] elphe: has joined #ruby
[11:10:11] bkxd_: has joined #ruby
[11:11:07] bkxd_: has joined #ruby
[11:19:24] guardian: has joined #ruby
[11:20:51] elphe: has joined #ruby
[11:22:40] dionysus69: has joined #ruby
[11:24:45] ferr: has joined #ruby
[11:28:34] ferr: has left #ruby: ()
[11:29:22] guardian: has joined #ruby
[11:30:03] cschneid_: has joined #ruby
[11:31:21] oleo: has joined #ruby
[11:31:32] nowhere_man: has joined #ruby
[11:37:25] qba73: has joined #ruby
[11:45:36] zautomata: has joined #ruby
[12:02:01] paddy_: has joined #ruby
[12:02:36] drewmcmillan: has joined #ruby
[12:02:36] TomyWork: has joined #ruby
[12:05:07] randomstrangerb: has joined #ruby
[12:06:03] AJA4350: has joined #ruby
[12:07:33] heliumk: has joined #ruby
[12:10:37] plexigras: has joined #ruby
[12:14:58] cschneid_: has joined #ruby
[12:16:31] Pierreb|home: has joined #ruby
[12:21:31] alfiemax: has joined #ruby
[12:21:44] randomstrangerb: has joined #ruby
[12:22:14] Psybur: has joined #ruby
[12:22:24] banisterfiend: has joined #ruby
[12:27:52] bruce_lee: has joined #ruby
[12:27:54] ur5us: has joined #ruby
[12:28:08] InfinityFye: has joined #ruby
[12:35:54] qba73: has joined #ruby
[12:39:17] qba73: has joined #ruby
[12:41:01] InfinityFye: has joined #ruby
[12:44:38] t0adst00l: has joined #ruby
[12:50:14] SirFunk: has joined #ruby
[12:50:21] tcopeland: has joined #ruby
[12:54:02] cschneid_: has joined #ruby
[12:55:16] drewmcmillan: has joined #ruby
[12:59:50] alfiemax: has joined #ruby
[13:09:50] crova: has joined #ruby
[13:12:13] randomstrangerb: has joined #ruby
[13:14:33] paddy_: has joined #ruby
[13:14:47] k0mpa: has joined #ruby
[13:15:44] jeffreylevesque: has joined #ruby
[13:18:37] cremes: has joined #ruby
[13:21:15] alfiemax: has joined #ruby
[13:25:17] bmurt: has joined #ruby
[13:31:55] cschneid_: has joined #ruby
[13:40:35] pastorinni: has joined #ruby
[13:41:31] paddy_: has joined #ruby
[13:53:09] beauby: has joined #ruby
[13:57:24] sunya7a: has joined #ruby
[13:58:10] zwliew: has joined #ruby
[14:02:15] jnollette: has joined #ruby
[14:05:12] iamarun: has joined #ruby
[14:07:46] uZiel: has joined #ruby
[14:08:44] cschneid_: has joined #ruby
[14:09:34] qba73: has joined #ruby
[14:11:48] qba73: has joined #ruby
[14:12:16] gnufied: has joined #ruby
[14:12:46] AgentVenom: has joined #ruby
[14:14:48] ltem: has joined #ruby
[14:18:30] qba73: has joined #ruby
[14:20:40] cdg: has joined #ruby
[14:28:24] ur5us: has joined #ruby
[14:28:46] jeffreylevesque: has joined #ruby
[14:28:52] jobewan: has joined #ruby
[14:29:22] Psybur_: has joined #ruby
[14:30:30] Azure|dc: has joined #ruby
[14:31:00] MrArton: has joined #ruby
[14:31:22] Psybur: has joined #ruby
[14:31:27] alfiemax: has joined #ruby
[14:31:47] MrArton: Do you know how to but labels in ruby's code pls? (sorry for my english)
[14:32:14] apeiros: MrArton: what do you mean by labels? C goto style labels?
[14:32:30] RealFrimaire: has joined #ruby
[14:32:45] apeiros: ruby does not have goto
[14:32:45] MrArton: *put, not but
[14:33:03] apeiros: the closest you can have is Kernel#throw and #catch
[14:33:07] apeiros: &ri Kernel#throw
[14:33:07] `derpy: http://ruby-doc.org/core-2.4.1/Kernel.html#method-i-throw
[14:33:12] yqt: has joined #ruby
[14:33:21] apeiros: &ri Kernel#catch
[14:33:22] `derpy: http://ruby-doc.org/core-2.4.1/Kernel.html#method-i-catch
[14:33:34] apeiros: the latter link is better. contains an example.
[14:35:53] MrArton: Ok, thanks you apeiros and derpy
[14:35:59] sawdustofmind: has joined #ruby
[14:36:42] apeiros: derpy is a bot ;-)
[14:37:02] nowhere_man: has joined #ruby
[14:39:52] MrArton: Thanks you bot
[14:43:05] EXCHGR: has joined #ruby
[14:43:24] sawdustofmind: has left #ruby: ()
[14:47:13] dviola: has joined #ruby
[14:49:08] sawdustofmind: has joined #ruby
[14:50:05] c-c: I'm back to working on my little game engine. I'm in the process of making it into a open source project. I've tested the simple base and its run over 20 billion fames without crashing (52 hours of processor time). I'm convinced that to get anything happening I need +4 times more velocity for the project. I'm considering things like rewards for best contributors, seen any ruby projects that do that?
[14:51:26] Ishido: has joined #ruby
[14:51:45] sawdustofmind: has left #ruby: ()
[14:52:23] sawdustofmind: has joined #ruby
[14:53:35] sawdustofmind: has left #ruby: ()
[15:01:43] LightStalker: has joined #ruby
[15:03:44] bmurt: has joined #ruby
[15:06:07] dionysus69: has joined #ruby
[15:07:16] chocoelho: has joined #ruby
[15:08:10] jrafanie: has joined #ruby
[15:11:16] cschneid_: has joined #ruby
[15:12:54] krawchyk: has joined #ruby
[15:14:04] sawdustofmind1: has joined #ruby
[15:14:09] sawdustofmind1: has left #ruby: ()
[15:14:41] sawdustofmind1: has joined #ruby
[15:17:02] jrafanie: has joined #ruby
[15:17:56] deafscribe: has joined #ruby
[15:18:34] wennefer0_: has joined #ruby
[15:18:35] wennefer0_: has joined #ruby
[15:19:40] pastorinni: has joined #ruby
[15:19:58] miskatonic: has joined #ruby
[15:20:17] polishdub: has joined #ruby
[15:20:40] jobewan: has joined #ruby
[15:20:46] voker57: has joined #ruby
[15:20:46] voker57: has joined #ruby
[15:21:47] qba73: has joined #ruby
[15:23:23] polishdub: has left #ruby: ()
[15:24:37] xfbs: has joined #ruby
[15:24:42] fifty05: has joined #ruby
[15:26:48] MrArton: Can someone explain me how catch and throw works, I do not understand.
[15:28:53] MrArton: Et si quelqu'un peut le faire en francais ca serait cool
[15:30:34] banisterfiend: has joined #ruby
[15:30:57] mikecmpbll: has joined #ruby
[15:31:15] apeiros: MrArton: there's a french ruby channel
[15:31:28] apeiros: https://ruby-community.com/pages/channels -> #ruby.fr
[15:31:59] apeiros: basically you set up a catch, and within the block of that catch, you can throw. throw will return to the catch.
[15:32:19] apeiros: if you know begin/rescue/end + raise - exactly the same. just slightly different syntax. and you can throw about anything, not just exceptions.
[15:33:13] miskaton`: has joined #ruby
[15:36:07] miskatonic: has joined #ruby
[15:43:05] havenwood: c-c: Share a link to the code?
[15:43:58] cschneid_: has joined #ruby
[15:48:10] c-c: havenwood: I need to clean it up still and make the github
[15:48:20] havenwood: c-c: ah, cool
[15:48:25] c-c: I'm 95% certain on the license, too
[15:49:01] c-c: Hm, need to make sure its ok to have rewards with github and this GPL 3 license, too
[15:49:56] c-c: havenwood: ever contributed for reward, or "competed" for a reward in a open source project?
[15:53:42] alfiemax: has joined #ruby
[15:55:39] kculpis: has joined #ruby
[15:56:18] havenwood: c-c: Nope, I've never had a reward.
[15:56:51] havenwood: c-c: I've won stuff at hackathons, but never around open source.
[15:57:15] dminuoso: havenwood never had a reward!
[15:57:18] havenwood: c-c: I know folk who did the Github challenge for a shirt - that's the only example I can think of.
[15:57:23] havenwood: dminuoso: Never. ;-)
[15:57:36] dminuoso: Not sure whether that speaks for his skills, or just his lack of participation in such adventures.
[15:57:59] mikecmpb_: has joined #ruby
[15:58:02] havenwood: ACTION demands a reward
[15:58:28] dminuoso: I'd send you a cookie, but I'd eat it before it gets wrapped.
[15:59:58] apeiros: and damn, the emoji search is localized. searched for "cookie", turned up empty. searched manually until I figured I should have searched for "keks" :-S
[16:00:15] dminuoso: apeiros: You too should get Karabiner
[16:00:40] c-c: ACTION hands havenwood a medal
[16:01:09] c-c: havenwood: You are hereby heralded with an irc medal as a reward for your help and services.
[16:01:13] dminuoso: apeiros: https://gist.github.com/dminuoso/f6e244772ed4776f8e83acf67a367250
[16:01:39] dminuoso: Super easy to use :)
[16:01:44] dminuoso: Or customize
[16:01:53] apeiros: dminuoso: |H hilbert numbers? is that a thing?
[16:02:38] dminuoso: apeiros: quaternions
[16:02:55] apeiros: oh, hamilton
[16:03:17] apeiros: or at least I guess that's the source for the symbol resembling an H
[16:04:23] tlaxkit: has joined #ruby
[16:10:50] Dimik: has joined #ruby
[16:10:51] Tempesta: has joined #ruby
[16:11:05] jobewan: has joined #ruby
[16:13:22] yeticry: has joined #ruby
[16:14:53] dminuoso: apeiros: Thats my assumption as well, but I think its a safe bet.
[16:15:25] chocoelho: has joined #ruby
[16:15:32] vipaca: has joined #ruby
[16:15:47] whippythellama: has joined #ruby
[16:16:27] dminuoso: I guess since ℚ was taken already, ℍ was a logical choice
[16:18:58] vipaca: has joined #ruby
[16:20:19] dminuoso: And next one added apeiros
[16:20:21] dminuoso: ¯\_(ツ)_/¯
[16:20:29] dminuoso: karabiner-elements is awesome.
[16:21:13] InfinityFye: has joined #ruby
[16:27:20] kristian_on_linu: has joined #ruby
[16:27:54] kristian_on_linu: I installed rvm and jekyll, now jekyll does not seem installed?
[16:28:09] kristian_on_linu: I know this is probably something really simple that I must do
[16:29:25] kapil___: has joined #ruby
[16:29:52] apeiros: kristian_on_linu: some possible reasons: a) you installed jekyll under a different ruby than you try to run it, b) you are in a directory with a Gemfile
[16:30:09] qba73: has joined #ruby
[16:30:23] zautomata: has joined #ruby
[16:30:31] bmurt: has joined #ruby
[16:30:38] Azure: has joined #ruby
[16:32:24] kristian_on_linu: I found two Gemfiles and renamed them both ... the problem persists
[16:32:45] kristian_on_linu: and I'm 90% sure I ran jekyll in that exact directory
[16:34:51] apeiros: kristian_on_linu: can you please do the following and gist the session? `cd ~; rvm list; gem install jekyll; jekyll -v`
[16:34:52] pastorinni: has joined #ruby
[16:35:46] pastorinni: has joined #ruby
[16:38:12] kristian_on_linu: is paste.ee okay?
[16:38:39] apeiros: yes. generally gist.github.com is preferred
[16:38:56] kristian_on_linu: https://paste.ee/p/buCkC
[16:39:26] nadir: has joined #ruby
[16:39:27] kristian_on_linu: I understand that gist is cool, but I never used it ... and I don't want you to spend time on helping with that too ;)
[16:39:47] apeiros: it'd be pretty bad if you'd need help with it :-p
[16:40:38] apeiros: ok, output of these commands please: `which ruby`, `which gem`, `gem env`
[16:40:54] apeiros: rvm installations usually don't want to install into global dirs
[16:41:06] apeiros: but your gem command does. and without sudo, you can't.
[16:41:39] havenwood: Yeah, something is amiss because that's a 2.3 ABI gem command and a 2.4 Ruby selected.
[16:42:06] apeiros: that too. didn't even look at that :D
[16:42:12] bmurt: has joined #ruby
[16:42:19] havenwood: kristian_on_linu: Also show us?: echo $PATH
[16:42:43] raynold: has joined #ruby
[16:42:49] havenwood: kristian_on_linu: And: which -a gem
[16:43:07] apeiros: oh, nice. TIL -a
[16:44:11] cagomez: has joined #ruby
[16:52:31] kristian_on_linu: both are here: https://paste.ee/p/rrKdF
[16:52:50] Barrt: has joined #ruby
[16:53:04] paddy_: has joined #ruby
[16:53:57] apeiros: kristian_on_linu: your rvm bin is too late in the path
[16:54:03] apeiros: you use system ruby, not rvm ruby.
[16:54:57] cloaked1: has joined #ruby
[16:56:35] kristian_on_linu: so what should I do?
[16:57:04] apeiros: fix your PATH. which is usually defined in ~/.profile, ~/.bash_profile or similar
[17:04:17] kristian_on_linu: this is my .profile: https://paste.ee/p/Kg55b
[17:07:40] darkhanb: has joined #ruby
[17:10:40] apeiros: line 24 adds the rvm bin dir *after* all other. PATH is search left to right. first wins.
[17:12:56] dminuoso: And another day with RVM being a problem!
[17:13:23] dminuoso: This should be a thing for a doctor: "You have a headache? Have you tried uninstalling RVM?"
[17:13:30] john__: has joined #ruby
[17:15:44] zautomata1: has joined #ruby
[17:21:29] cdg: has joined #ruby
[17:21:33] rubycoder37: has joined #ruby
[17:21:48] rubycoder37: does ruby 2.5.0 ships with bundler now?
[17:22:16] ski7777: has joined #ruby
[17:22:50] kristian_on_linu: this updated .profile seems to do the trick: https://paste.ee/p/k20Iu
[17:23:14] kristian_on_linu: dminuoso: you don't recommend using rvm?
[17:24:26] dminuoso: kristian_on_linu: I dont have anything against rvm, but if you dont have any good reasons to use rvm or rbenv specifically, you are almost always better off with ruby-install for installing ruby versions, and chruby for switching between multiple ruby versions.
[17:24:40] apeiros: dminuoso: so rbenv and co don't have a problem when you b0rk your PATH? how?
[17:24:53] dminuoso: apeiros: Heh =P
[17:25:15] tcopeland: rubycoder37: no, you still need to install bundler after installing ruby 2.5.0
[17:26:50] marxarelli: has joined #ruby
[17:27:03] tcopeland: it was going to be in there but that was reverted shortly before the release https://bugs.ruby-lang.org/projects/ruby-trunk/repository/revisions/61416
[17:28:13] heliumk: has joined #ruby
[17:30:52] kristian_on_linu: dminuoso: I'm a very low level user ... I just do jekyll and related task
[17:31:10] kristian_on_linu: every guide I've seen says rvm makes it all easier ... but if that's not the case, I will avoid it next time
[17:31:32] kristian_on_linu: apeiros: I think it works now, thanks
[17:32:18] dminuoso: kristian_on_linu: Dont worry too much about it, rvm is fine until you start using rvm commands that do.. things.
[17:32:26] vipaca: has joined #ruby
[17:33:05] romankapitonov: has joined #ruby
[17:33:34] rubycoder37: what a shame, I was expecting bundler to be included on 2.5.0
[17:33:39] guille-moe: has joined #ruby
[17:34:12] dminuoso: apeiros: So did you manage a release by the way?
[17:34:37] apeiros: refresh my memory - a release of what?
[17:34:41] beauby: has joined #ruby
[17:34:48] dinfuehr: has joined #ruby
[17:34:59] alfiemax: has joined #ruby
[17:35:04] dminuoso: Of some mysterious framework.
[17:35:15] sspreitz: has joined #ruby
[17:35:26] vichib: has joined #ruby
[17:35:26] dminuoso: I kept fireworks from 3 days ago extra for this.
[17:35:34] apeiros: postponed in favor of doing a mobile website for the spa I do spare time work
[17:35:43] dminuoso: You give massages?
[17:35:48] apeiros: I get massages
[17:36:04] apeiros: saves me a couple grand a year doing their web stuff :)
[17:36:07] dminuoso: I have a spa right next to my apartment.
[17:36:30] apeiros: ok, granted, I wouldn't go that often if I didn't get it for free.
[17:36:38] dminuoso: Just wordpress it up and use the rest of the time to get.. a massage...
[17:36:49] TomyLobo: has joined #ruby
[17:37:47] apeiros: no, hand crafted. target for the mobile site is to have it <200KB for initial load and viewable with low-res images. post-load is high-res images and probably webfont. maybe sound, not sure on that one though, since I hate websites with sound :)
[17:38:31] oetjenj: has joined #ruby
[17:38:56] rubycoder37: are they going to rewrite the bundler tests for merging into ruby?
[17:39:19] conta: has joined #ruby
[17:39:58] rubycoder37: bundler uses rspec for tests
[17:40:11] [Butch]: has joined #ruby
[17:40:22] tcopeland: hm, interesting, I don’t know
[17:41:35] [Butch]_: has joined #ruby
[17:41:53] eckhardt: has joined #ruby
[17:45:51] vipaca: has joined #ruby
[17:46:12] cdg: has joined #ruby
[17:47:13] zautomata2: has joined #ruby
[17:49:57] nofxx: has joined #ruby
[17:50:38] [Butch]: has joined #ruby
[17:54:36] karu_: has joined #ruby
[17:55:01] karu_: has left #ruby: ()
[17:57:12] workmad3: has joined #ruby
[17:59:26] zautomata3: has joined #ruby
[18:00:06] nowhere_man: has joined #ruby
[18:00:27] nwm: has joined #ruby
[18:00:28] vipaca: has joined #ruby
[18:01:08] nwm: is there a way to have a rspec RakeTask with prereqs in a Rakefile?
[18:01:34] alfiemax: has joined #ruby
[18:01:36] randomstrangerb: has joined #ruby
[18:01:55] rubycoder37: has left #ruby: ()
[18:05:55] hahuang65: has joined #ruby
[18:06:54] dminuoso: nwm: what kind of prereqs are you talking about?
[18:08:24] nwm: run a task before the RakeTask
[18:09:05] dminuoso: nwm: You can use Rake::Task#enhance
[18:09:08] orbyt_: has joined #ruby
[18:11:06] jamesaxl: has joined #ruby
[18:11:21] hahuang65: has joined #ruby
[18:12:04] zautomata4: has joined #ruby
[18:16:14] vipaca: has joined #ruby
[18:24:06] SeepingN: has joined #ruby
[18:27:34] ur5us: has joined #ruby
[18:32:00] tAn: has joined #ruby
[18:32:43] beauby: has joined #ruby
[18:35:17] sent-hil: has joined #ruby
[18:35:40] vipaca: has joined #ruby
[18:41:45] tAn: has joined #ruby
[18:42:09] nit3rid3: has joined #ruby
[18:43:00] vipaca: has joined #ruby
[18:43:29] [Butch]: has joined #ruby
[18:44:14] tAn: has joined #ruby
[18:45:06] ledestin: has joined #ruby
[18:47:49] sameerynho: has joined #ruby
[18:47:51] mtkd: has joined #ruby
[18:50:26] orbyt_: has joined #ruby
[18:51:32] alfiemax_: has joined #ruby
[18:55:07] alex1: has joined #ruby
[18:55:14] DmitryBochkarev: has joined #ruby
[18:55:52] chrisgopher: has joined #ruby
[18:56:10] drewmcmillan: has joined #ruby
[18:58:18] chocoelho: has joined #ruby
[19:01:19] alfiemax: has joined #ruby
[19:01:56] alex```: has joined #ruby
[19:02:40] alex```: has joined #ruby
[19:06:24] DaniG2k: has joined #ruby
[19:09:44] vipaca: has joined #ruby
[19:10:07] cdg: has joined #ruby
[19:14:41] mikecmpbll: has joined #ruby
[19:17:13] xfbs: has joined #ruby
[19:19:57] vipaca: has joined #ruby
[19:21:57] cdg: has joined #ruby
[19:22:15] jenrzzz: has joined #ruby
[19:22:41] codepete: has joined #ruby
[19:27:01] hahuang65: has joined #ruby
[19:28:14] mikecmpb_: has joined #ruby
[19:30:37] Azure: has joined #ruby
[19:31:41] tectonic: has joined #ruby
[19:33:39] mikecmpbll: has joined #ruby
[19:36:43] nerium: has joined #ruby
[19:41:50] vipaca: has joined #ruby
[19:42:20] heliumk: has joined #ruby
[19:42:38] jenrzzz: has joined #ruby
[19:42:38] jenrzzz: has joined #ruby
[19:45:15] lytol_: has joined #ruby
[19:50:01] vipaca: has joined #ruby
[19:50:09] ctp_: has joined #ruby
[20:00:53] vipaca: has joined #ruby
[20:01:38] jenrzzz: has joined #ruby
[20:01:38] jenrzzz: has joined #ruby
[20:06:53] pilne: has joined #ruby
[20:09:37] helpa: has joined #ruby
[20:11:29] DLSteve_: has joined #ruby
[20:12:37] ur5us: has joined #ruby
[20:13:39] t0adst00l: has joined #ruby
[20:13:43] Vapez: has joined #ruby
[20:16:13] leitz: has joined #ruby
[20:17:29] desperek: has joined #ruby
[20:18:17] desperek: i have a problem
[20:18:33] desperek: i want to use mysql2 but bundler keeps installing mysql2 for mingw (windows; x64)
[20:19:15] desperek: mingw version doesn't work and produces and error with require (rails so i think it may be different thing)
[20:21:33] desperek: https://github.com/brianmario/mysql2/issues/861#issuecomment-313312487
[20:21:38] desperek: is that still a thing?
[20:22:36] desperek: yea it seems :/
[20:24:02] drewmcmillan: has joined #ruby
[20:33:44] conta: has joined #ruby
[20:40:12] Kilo`byte: has joined #ruby
[20:40:44] drewmcmi_: has joined #ruby
[20:40:46] banisterfiend: has joined #ruby
[20:46:09] drewmcmillan: has joined #ruby
[20:47:20] cagomez: has joined #ruby
[20:50:23] orbyt_: has joined #ruby
[20:55:37] jenrzzz: has joined #ruby
[20:55:37] jenrzzz: has joined #ruby
[21:04:43] jnyw: has joined #ruby
[21:04:54] cagomez: has joined #ruby
[21:05:57] tomphp: has joined #ruby
[21:06:58] Riddell: has joined #ruby
[21:07:18] dionysus69: has joined #ruby
[21:08:09] mikecmpb_: has joined #ruby
[21:10:17] alfiemax: has joined #ruby
[21:13:13] randomstrangerb: has joined #ruby
[21:15:07] jenrzzz: has joined #ruby
[21:15:07] jenrzzz: has joined #ruby
[21:16:21] DrCode: has joined #ruby
[21:16:49] nofxx1: has joined #ruby
[21:17:33] tAn: has joined #ruby
[21:17:37] jtdoncas_: has joined #ruby
[21:17:47] DaniG2k: has joined #ruby
[21:19:03] Kilo`byte: has joined #ruby
[21:19:31] Riddell: has joined #ruby
[21:19:39] DrCode: has joined #ruby
[21:20:49] tAn: has joined #ruby
[21:29:18] tAn: has joined #ruby
[21:29:45] tomphp: has joined #ruby
[21:30:05] cagomez: has joined #ruby
[21:37:21] banisterfiend: has joined #ruby
[21:38:03] Psybur: has joined #ruby
[21:43:26] pastorinni: has joined #ruby
[21:46:35] mtkd: has joined #ruby
[21:47:39] kinduff: has joined #ruby
[21:48:31] samort7: has joined #ruby
[21:48:55] samort7: What does it mean if a hash is initialized like this: def api_hash locale=Locale.first ?
[21:49:09] chocoelho: has joined #ruby
[21:49:13] samort7: What's the locale=Locale.first part doing?
[21:51:05] tomphp: has joined #ruby
[21:54:36] bmurt: has joined #ruby
[21:56:48] sammi`_: has joined #ruby
[21:57:24] DaniG2k: has joined #ruby
[21:59:09] despai: has joined #ruby
[22:01:54] banisterfiend: has joined #ruby
[22:02:04] tcopeland: has joined #ruby
[22:06:42] async_prince: has joined #ruby
[22:07:37] bmurt: has joined #ruby
[22:08:11] talntid: has joined #ruby
[22:09:57] jokke: has joined #ruby
[22:15:17] tAn: has joined #ruby
[22:15:18] alfiemax: has joined #ruby
[22:16:06] DaniG2k: has joined #ruby
[22:16:25] havenwood: samort7: Check: Locale.method(:first).source_location
[22:17:30] havenwood: samort7: Not sure what you mean by "what does it mean" but it seems you're saying the Locale::first returns a Hash? Are you wondering how that gem implements ::first?
[22:18:25] kith: has joined #ruby
[22:20:20] tAn: has joined #ruby
[22:20:59] samort7: I'm very new to Ruby, are those optional parameters being passed to the Hash?
[22:21:36] samort7: def some_hash words_I_don't_know { . . . }
[22:21:50] samort7: What does the words_I_don't_know part do?
[22:22:08] nwm: it sets an param/arg
[22:22:15] nwm: like foo=bar
[22:22:50] nwm: Locale is a class as you can tell by the capital L
[22:23:01] nwm: (should be anyways)
[22:23:03] samort7: nvm: is it like a default key-value pair for the hash?
[22:27:54] tAn: has joined #ruby
[22:35:25] ewaters: has joined #ruby
[22:38:02] sawdustofmind1: has left #ruby: ()
[22:45:34] vipaca: has joined #ruby
[22:45:44] tAn: has joined #ruby
[22:46:49] QualityAddict: has joined #ruby
[22:49:56] byte512: has joined #ruby
[22:55:56] mikecmpbll: has joined #ruby
[23:01:48] alex```: has joined #ruby
[23:06:36] nerium: has joined #ruby
[23:07:12] jobewan: has joined #ruby
[23:07:28] InfinityFye: has joined #ruby
[23:11:20] Guest78497: has joined #ruby
[23:14:39] john__: has joined #ruby
[23:14:43] iszak: has joined #ruby
[23:14:43] iszak: has joined #ruby
[23:18:09] despai: has joined #ruby
[23:19:46] paulrf: has joined #ruby
[23:21:57] nfsnobody: has joined #ruby
[23:22:35] cremes: has joined #ruby
[23:26:59] r3kz: has joined #ruby
[23:29:29] beauby: has joined #ruby
[23:31:13] clemens3: has joined #ruby
[23:54:50] jtdoncas_: has joined #ruby