« Back to channel list

#ruby - 22 September 2017

« Back 1 day Forward 1 day »
[00:00:35] jrabe: has joined #ruby
[00:00:42] kn-928: has joined #ruby
[00:00:42] cdg: has joined #ruby
[00:00:47] Psy-Q: has joined #ruby
[00:01:12] mikeiniowa: has joined #ruby
[00:01:54] rgr: has joined #ruby
[00:07:08] minimalism: has joined #ruby
[00:10:57] dysfigured: has joined #ruby
[00:20:53] QualityAddict: has joined #ruby
[00:22:17] cagomez: has joined #ruby
[00:23:32] aurelien: has joined #ruby
[00:26:00] Cohedrin_: has joined #ruby
[00:31:23] milardovich: has joined #ruby
[00:31:46] teatime: Algebr`: yes, i386 (through i686) always means 32-bit, aka IA-32; 64-bit is usually called x86_64 (or amd64) (but never IA-64, which is completely different.)
[00:32:25] harai: has joined #ruby
[00:34:20] johnny56: has joined #ruby
[00:36:36] pilne: has joined #ruby
[00:40:32] ivanskie: has joined #ruby
[00:46:03] SuperLag: has joined #ruby
[00:51:32] herbmillerjr: has joined #ruby
[00:52:44] jenrzzz: has joined #ruby
[00:56:44] johnny56: has joined #ruby
[01:00:12] gnufied: has joined #ruby
[01:00:55] Azure: has joined #ruby
[01:01:04] Algebr`: now getting: error: size of array 'ruby_check_sizeof_voidp' is negative, which I guess means my devkit and ruby install are out of wack. How should I test what version devkit I am and if I'm compatibile with running ruby install
[01:04:28] roadt: has joined #ruby
[01:10:04] jenrzzz_: has joined #ruby
[01:11:21] Cohedrin_: has joined #ruby
[01:11:45] gizmore|2: has joined #ruby
[01:12:33] uneeb: has joined #ruby
[01:15:20] vb333: has joined #ruby
[01:15:28] brent__: has joined #ruby
[01:15:52] ivanskie: has joined #ruby
[01:18:31] juggler: has joined #ruby
[01:19:22] charliesome: has joined #ruby
[01:24:42] knight33: has joined #ruby
[01:25:07] lektrik: has joined #ruby
[01:26:06] johnny56: has joined #ruby
[01:34:07] charliesome: has joined #ruby
[01:35:21] jphase: has joined #ruby
[01:35:53] ivanskie: has joined #ruby
[01:37:03] jphase_: has joined #ruby
[01:43:09] selim: has joined #ruby
[01:43:59] ozialien: has joined #ruby
[01:45:18] roadt: has joined #ruby
[01:45:35] charliesome: has joined #ruby
[01:45:40] ozialien: has joined #ruby
[01:46:32] jphase: has joined #ruby
[01:48:20] orbyt_: has joined #ruby
[01:50:32] malcomX9: has joined #ruby
[01:54:28] FahmeF: has joined #ruby
[01:56:30] gr33n7007h: has joined #ruby
[01:59:17] mim1k: has joined #ruby
[01:59:59] jphase: has joined #ruby
[02:02:43] d^sh: has joined #ruby
[02:03:41] astrobunny: has joined #ruby
[02:05:42] cagomez: has joined #ruby
[02:07:06] Jameser: has joined #ruby
[02:11:29] Jameser: has joined #ruby
[02:15:12] knight33: has joined #ruby
[02:18:40] ivanskie: has joined #ruby
[02:18:49] jenrzzz: has joined #ruby
[02:18:49] jenrzzz: has joined #ruby
[02:23:47] Silthias: has joined #ruby
[02:25:48] cagomez: has joined #ruby
[02:26:05] DarkBushido: has joined #ruby
[02:26:06] DarkBushido: has joined #ruby
[02:26:25] aphelion: has joined #ruby
[02:35:19] cagomez: has joined #ruby
[02:35:22] ivanskie: has joined #ruby
[02:43:29] jobewan: has joined #ruby
[02:47:32] enki_: has joined #ruby
[02:53:21] orbyt_: has joined #ruby
[02:56:01] cagomez: has joined #ruby
[03:00:09] cadillac_: has joined #ruby
[03:02:58] nobitanobi: has joined #ruby
[03:07:13] beilabs: has joined #ruby
[03:24:22] orbyt_: has joined #ruby
[03:24:43] mkali: has joined #ruby
[03:29:03] sarbs: has joined #ruby
[03:35:34] goyox86_: has joined #ruby
[03:40:54] gix: has joined #ruby
[03:41:38] nowhereman: has joined #ruby
[03:45:18] jdawgaz: has joined #ruby
[03:46:49] Jameser`: has joined #ruby
[03:48:05] bronson: has joined #ruby
[03:51:29] orbyt_: has joined #ruby
[03:53:12] Algebr`: has joined #ruby
[03:53:48] RickHull: Algebr`: how goes it?
[03:54:23] beilabs: has joined #ruby
[03:54:38] Algebr`: RickHull: Hey, so far actually made progress
[03:54:59] Algebr`: Now new thing. How can I take an installed gem and repackage it, so that someone else can just gem instll my precompiled version
[03:55:40] RickHull: building a gem is pretty easy
[03:55:51] RickHull: and/or unpacking repacking
[03:56:07] Algebr`: building I've done, with the .gemspec
[03:56:11] Algebr`: now just my use case need
[03:56:18] claw: has joined #ruby
[03:56:19] RickHull: it gets a little tricky with C extensions and fat gems maybe
[03:56:28] Algebr`: yea, looking for words about that
[03:56:53] RickHull: i won't be much help with windows trickery. and I'm pretty shaky with C extensions
[03:57:28] Algebr`: a hero will come along
[03:58:08] RickHull: you can unpack an existing gem. but can't you just start with e.g `git clone` ?
[03:58:41] Algebr`: I don't follow
[03:58:56] RickHull: "take an installed gem and repackage it" ...
[03:59:47] mim1k: has joined #ruby
[03:59:48] RickHull: i am more oriented towards starting with source code and building a gem
[04:01:35] RickHull: just want to make sure I am understanding the problem. i doubt it is very tough
[04:01:36] Algebr`: prebuilt windows binaries are special exemption
[04:01:56] RickHull: are we just building? or is it necessary to unpack something or other?
[04:03:38] uZiel: has joined #ruby
[04:04:30] Algebr`: just so that when I deploy i don't need to have client build this by themselves and I can just provide the precompiled things.
[04:05:19] Algebr`: I might have found something...
[04:05:20] RickHull: ok, sounds like we are just building
[04:05:58] RickHull: are you starting with (more or less) `git clone the_utf_thingie` ?
[04:06:14] RickHull: and you have altered some stuff, and maybe part of the build process?
[04:07:04] ts_: has joined #ruby
[04:07:18] RickHull: you can build a .gem file that can be distributed and installed easily
[04:07:52] RickHull: furthermore, you could host it on an internal gem server and point your ruby machines at your internal server and it would get installed like most public gems
[04:09:35] Algebr`: its an existing project
[04:10:01] RickHull: so you've cloned it locally and made some edits
[04:10:11] RickHull: you can build a .gem from that
[04:10:14] Algebr`: distributing via gem server also sounds good,
[04:10:32] jphase: has joined #ruby
[04:10:32] Algebr`: but I don't need to make just a gem, I need it to also include the compiled code
[04:10:44] RickHull: i don't know the specifics on including binaries
[04:10:52] RickHull: but there are good docs for gem building, generally
[04:10:56] RickHull: let me see...
[04:11:15] duckpupp1: has joined #ruby
[04:11:41] RickHull: aha! http://guides.rubygems.org/
[04:12:20] RickHull: you may have already reviewed. in that case, I am not much further help
[04:13:33] ruby[bot]: has joined #ruby
[04:13:33] ChanServ: +o ruby[bot]
[04:13:58] RickHull: RIP corundum
[04:23:38] cdg: has joined #ruby
[04:26:06] arescorpio: has joined #ruby
[04:31:13] duckpupp1: has joined #ruby
[04:32:26] Algebr`: if anyone happens to use this project: https://github.com/luislavena/gem-compiler/issues/25
[04:34:25] RickHull: this seems kinda weird: `gem 'unf_ext', :path => './'` the :path
[04:34:49] RickHull: I have not needed a :path specifier, and yours in particular looks odd
[04:35:35] RickHull: I mean in general, with a `gem` statement -- I have not needed a :path specifier
[04:35:47] RickHull: I have never touched unf_ext
[04:37:59] RickHull: maybe a windows thing? I am pretty exclusively linux (working in a vagrant VM on Windows 7 at the moment...)
[04:40:14] RickHull: Algebr`: incidentally, as an Ocaml hacker, have you looked at Elixir?
[04:45:33] govg: has joined #ruby
[04:46:43] Algebr`: its like a syntax layer for ruby?
[04:48:16] bronson: has joined #ruby
[04:49:47] Yzguy: has joined #ruby
[04:53:05] RickHull: it's actually a syntax layer for Erlang that looks kinda like ruby if you squint
[04:53:42] RickHull: functional paradigm rather than object oriented
[04:55:40] RickHull: may I recommend https://github.com/rickhull/conway_deathmatch/tree/master versus https://github.com/rickhull/conway_deathmatch/tree/elixir
[04:55:58] RickHull: the elixir branch is old and relatively undocumented, so YMMV
[04:56:00] jphase: has joined #ruby
[04:57:05] jphase_: has joined #ruby
[04:58:12] mim1k: has joined #ruby
[04:58:29] _aeris_: has joined #ruby
[04:59:30] uZiel: has joined #ruby
[05:03:11] Algebr`: interesting
[05:08:33] cschneid: has joined #ruby
[05:10:56] sarbs: has joined #ruby
[05:11:46] jphase: has joined #ruby
[05:12:12] raynold: has joined #ruby
[05:13:01] jphase: has joined #ruby
[05:13:25] anisha: has joined #ruby
[05:17:11] jinie: has joined #ruby
[05:19:55] guacamole: has joined #ruby
[05:22:48] jphase: has joined #ruby
[05:24:18] jphase_: has joined #ruby
[05:26:21] cschneid: has joined #ruby
[05:26:54] ledestin: has joined #ruby
[05:30:12] kies: has joined #ruby
[05:30:45] mtkd: has joined #ruby
[05:31:35] aupadhye: has joined #ruby
[05:39:08] brent__: has joined #ruby
[05:50:33] harai: has joined #ruby
[05:53:05] banisterfiend: has joined #ruby
[05:54:09] aufi: has joined #ruby
[06:00:47] nickjj: has joined #ruby
[06:01:17] elsevero: has joined #ruby
[06:07:34] ur5us: has joined #ruby
[06:11:06] paranoicsan: has joined #ruby
[06:14:00] mostlybadfly: has joined #ruby
[06:20:12] rabajaj: has joined #ruby
[06:36:52] elsevero: has joined #ruby
[06:39:48] roadt: has joined #ruby
[06:39:50] cdg: has joined #ruby
[06:41:22] beilabs: has joined #ruby
[06:43:13] vondruch: has joined #ruby
[06:43:37] Mon_Ouie: has joined #ruby
[06:43:56] dextrey: has joined #ruby
[06:44:38] Cohedrin_: has joined #ruby
[06:45:16] gusrub_: has joined #ruby
[06:47:10] s2013: has joined #ruby
[06:49:11] bronson: has joined #ruby
[06:50:39] FahmeF: has joined #ruby
[06:51:58] vb333: has joined #ruby
[06:57:06] r7c: has joined #ruby
[06:59:28] anas: has joined #ruby
[07:01:13] Ag3nt: has joined #ruby
[07:01:56] anas: has joined #ruby
[07:03:48] DTZUZO: has joined #ruby
[07:04:39] nobitanobi: has joined #ruby
[07:07:31] Pisuke: has joined #ruby
[07:07:36] beilabs: has joined #ruby
[07:11:39] tAn: has joined #ruby
[07:15:21] jaruga: has joined #ruby
[07:17:21] TomyWork: has joined #ruby
[07:19:05] claudiuinberlin: has joined #ruby
[07:20:34] webguynow: has joined #ruby
[07:21:18] beilabs: has joined #ruby
[07:24:09] BTRE: has joined #ruby
[07:28:10] rgr: has joined #ruby
[07:29:01] mark_66: has joined #ruby
[07:29:59] phaul: has joined #ruby
[07:30:51] pwnd_nsfw`: has joined #ruby
[07:31:07] nickjj_: has joined #ruby
[07:32:04] nobitanobi: has joined #ruby
[07:32:26] workmad3: has joined #ruby
[07:33:43] jamesaxl: has joined #ruby
[07:37:00] biberu: has joined #ruby
[07:38:22] electrostat: has joined #ruby
[07:40:36] andikr: has joined #ruby
[07:41:32] uZiel: has joined #ruby
[07:42:19] Silthias1: has joined #ruby
[07:42:30] jamesaxl: has joined #ruby
[07:42:34] phaul_: has joined #ruby
[07:43:40] Silthias: has joined #ruby
[07:43:42] TheBrayn: has joined #ruby
[07:44:23] beilabs: has joined #ruby
[07:59:20] Beams: has joined #ruby
[08:01:26] dionysus69: has joined #ruby
[08:02:07] Beams_: has joined #ruby
[08:02:49] kaibro: has joined #ruby
[08:03:05] p0p0pr37: has joined #ruby
[08:03:05] p0p0pr37: has joined #ruby
[08:03:31] pskosinski_: has joined #ruby
[08:04:14] Asher: has joined #ruby
[08:05:10] Hackbinary: has joined #ruby
[08:05:16] nowhere_man: has joined #ruby
[08:06:15] uZiel: has joined #ruby
[08:06:22] ur5us: has joined #ruby
[08:06:26] vdl: has joined #ruby
[08:06:30] swills: has joined #ruby
[08:06:50] manveru: has joined #ruby
[08:06:52] _aeris_: has joined #ruby
[08:06:56] rgs: has joined #ruby
[08:07:12] mtkd: has joined #ruby
[08:07:45] TvL2386: has joined #ruby
[08:07:46] joelroa: has joined #ruby
[08:08:04] bwq: has joined #ruby
[08:09:49] Gadgetoid: has joined #ruby
[08:10:08] mikecmpbll: has joined #ruby
[08:10:36] priodev: has joined #ruby
[08:10:44] flips: has joined #ruby
[08:10:49] naitian: has joined #ruby
[08:10:50] robnester: has joined #ruby
[08:10:51] TheBrayn: has joined #ruby
[08:10:55] psmolen: has joined #ruby
[08:11:03] segy: has joined #ruby
[08:11:15] romain_t: has joined #ruby
[08:11:26] woodruffw: has joined #ruby
[08:11:26] woodruffw: has joined #ruby
[08:11:35] Sirecote: has joined #ruby
[08:11:48] timmow: has joined #ruby
[08:11:57] sinduck: has joined #ruby
[08:11:57] dminuoso: has joined #ruby
[08:12:12] perry: has joined #ruby
[08:12:12] perry: has joined #ruby
[08:12:12] Radar: has joined #ruby
[08:18:13] Immune_: has joined #ruby
[08:18:37] gizmore|2: has joined #ruby
[08:19:44] octomancer: has joined #ruby
[08:21:18] VladGh: has joined #ruby
[08:23:56] r7c: has joined #ruby
[08:23:57] chmurifree: has joined #ruby
[08:24:53] Emmanuel_Chanel: has joined #ruby
[08:25:45] elsevero: has joined #ruby
[08:27:04] fullstack: has joined #ruby
[08:27:18] conta: has joined #ruby
[08:30:20] AlexRussia: has joined #ruby
[08:35:11] j0rdj0rd: has joined #ruby
[08:35:30] jphase: has joined #ruby
[08:37:33] claudiuinberlin: has joined #ruby
[08:37:59] mim1k: has joined #ruby
[08:38:00] cadillac_: has joined #ruby
[08:40:29] cdg: has joined #ruby
[08:44:20] mim1k: has joined #ruby
[08:44:40] jphase: has joined #ruby
[08:45:04] lxsameer: has joined #ruby
[08:50:05] bronson: has joined #ruby
[08:50:20] marr: has joined #ruby
[08:51:07] bruce_lee: has joined #ruby
[08:54:40] aswen: has joined #ruby
[08:58:24] jphase: has joined #ruby
[09:01:39] claudiuinberlin: has joined #ruby
[09:12:11] jphase: has joined #ruby
[09:18:12] _whitelogger: has joined #ruby
[09:25:53] jphase: has joined #ruby
[09:27:46] phinxy: has joined #ruby
[09:32:22] Bish: has joined #ruby
[09:33:53] claudiuinberlin: has joined #ruby
[09:39:40] jphase: has joined #ruby
[09:41:49] ams__: has joined #ruby
[09:43:44] Bish: has joined #ruby
[09:48:10] opekktar: has joined #ruby
[09:48:54] jphase: has joined #ruby
[09:50:22] harfangk: has joined #ruby
[09:51:13] quobo: has joined #ruby
[09:52:23] Serpent7776: has joined #ruby
[09:53:45] dionysus69: has joined #ruby
[09:55:10] paranoicsan: has joined #ruby
[09:57:09] dinfuehr: has joined #ruby
[09:57:25] yosafbridge: has joined #ruby
[09:58:14] harfangk: has joined #ruby
[10:00:09] elsevero: has joined #ruby
[10:02:04] elsevero_: has joined #ruby
[10:02:39] jphase: has joined #ruby
[10:04:10] rgr_: has joined #ruby
[10:06:39] bruno-: has joined #ruby
[10:07:19] Beams: has joined #ruby
[10:10:00] garyserj: has joined #ruby
[10:11:50] jphase: has joined #ruby
[10:12:11] garyserj: hi i'm having trouble installing ruby on windows. I downloaded rubyinstaller-2.4.2-2-x64.exe from rubyinstaller.com and I get this error when trying to run ruby https://pastebin.com/raw/gKjgAcc6
[10:12:11] ruby[bot]: garyserj: we in #ruby do not like pastebin.com, it loads slowly for most, has ads which are distracting and has terrible formatting. Please use https://gist.github.com
[10:12:19] Beams_: has joined #ruby
[10:12:45] pskosinski: has joined #ruby
[10:12:45] pskosinski: has joined #ruby
[10:13:30] garyserj: hi i'm having trouble installing ruby on windows. I downloaded rubyinstaller-2.4.2-2-x64.exe from rubyinstaller.com and I get this error when trying to run ruby https://gist.github.com/anonymous/aac7d0c9902607bce97183ffabd33a4c
[10:16:14] workmad3: has joined #ruby
[10:16:31] aupadhye: has joined #ruby
[10:18:05] paolog: has joined #ruby
[10:21:00] jphase: has joined #ruby
[10:30:09] jphase: has joined #ruby
[10:32:44] ejsf: has joined #ruby
[10:32:47] Immune: has joined #ruby
[10:33:19] ferr: has joined #ruby
[10:35:33] tlaxkit: has joined #ruby
[10:37:55] Yolie: has joined #ruby
[10:39:36] mostlybadfly: has joined #ruby
[10:50:37] scatterp: has joined #ruby
[10:50:49] matthewd: garyserj: Don't know, sorry... that sounds like a very Windows-specific error :/
[10:51:02] matthewd: garyserj: Do you have a C:/msys64/mingw64/bin ?
[10:51:23] bronson: has joined #ruby
[10:52:54] garyserj: no I don't have that
[10:53:05] jphase: has joined #ruby
[10:53:07] garyserj: I have a c:\ming64
[10:53:22] garyserj: maybe i could make a junction or whatever to it.
[10:54:35] matthewd: I was hoping maybe it was tripping on a coincidental mingw64 installation, but that seems unlikely if it's not in the mentioned path
[10:56:53] scatterp: hi can any one suggest a more beginner level ruby chat ?
[10:57:33] matthewd: scatterp: Ask away
[10:57:48] matthewd: garyserj: https://github.com/oneclick/rubyinstaller2/blob/8fedf03e1a2dfd1a338be1088766e276d4aedfff/lib/ruby_installer/build/msys2_installation.rb#L82
[10:58:46] matthewd: garyserj: Sounds like it looks in various places for msys (https://github.com/oneclick/rubyinstaller2/blob/8fedf03e1a2dfd1a338be1088766e276d4aedfff/lib/ruby_installer/build/msys2_installation.rb#L32), then blindly assumes mingw lives inside it
[11:01:38] scatterp: matthewd ok this might sound a little silly but i am trying to implement FIX (api) 4.2 in to peatio (open source exchange) starting from zero knowledge of ruby ... so far my theory is .. a GEM is a library and quickfix gem is the best soloution i am wondering if i simply add this code https://github.com/quickfix/quickfix/blob/master/examples/executor/ruby/executor.rb to the api folder of peatio
[11:01:38] scatterp: and do a gem install quickfix and simply move the existing action [if THEN] from the existing peatio api https://github.com/peatio/peatio/tree/master/app/api/api_v2 well basiclly i am wondering if this is correct
[11:01:42] matthewd: garyserj: If your msys installation is pre-existing and unrelated to the ruby install, a possible quick experiment might be to temporarily rename C:\msys64 to something else, and see what ruby does without that one there
[11:03:09] scatterp: matthewd i want to support FIX for https://github.com/ctubio/Krypto-trading-bot/ which only requires "logon" and 4 other commands so i only need a partial implementation right now..
[11:06:52] jphase: has joined #ruby
[11:08:13] matthewd: scatterp: Sorry, that's more a question about how to extend that particular program. I can't help with that.
[11:08:47] scatterp: matthewd but does the logic sound correct?
[11:10:04] matthewd: I really don't know
[11:11:07] garyserj: matthewd: thanks, that helped
[11:11:48] claudiuinberlin: has joined #ruby
[11:11:52] garyserj: in ruby do people tend to create their own http server like people do in node, or do they tend to use apache?
[11:13:59] matthewd: garyserj: There are a few popular HTTP-serving options; one of them is Phusion Passenger, which can operate as an Apache or nginx plugin
[11:14:50] belmoussaoui: has joined #ruby
[11:15:09] matthewd: The others generally listen on a local TCP port for themselves, and are often (but not always) then reverse-proxied from a "real" webserver process
[11:16:45] JD2020X: has joined #ruby
[11:18:13] belmoussaoui: has joined #ruby
[11:20:37] jphase: has joined #ruby
[11:31:21] charliesome: has joined #ruby
[11:31:54] anisha: has joined #ruby
[11:34:25] cdg: has joined #ruby
[11:36:25] ur5us: has joined #ruby
[11:38:48] scatterp: has joined #ruby
[11:47:57] tcopeland: has joined #ruby
[11:51:29] Jameser: has joined #ruby
[11:52:27] ShalokShalom_: has joined #ruby
[11:54:07] charliesome: has joined #ruby
[11:58:56] synthroid: has joined #ruby
[12:00:37] Jameser: has joined #ruby
[12:02:00] belmoussaoui: has joined #ruby
[12:02:40] claudiuinberlin: has joined #ruby
[12:06:27] dionysus69: has joined #ruby
[12:10:26] Jameser`: has joined #ruby
[12:18:02] truenito: has joined #ruby
[12:18:09] leah2: i use ruby since 2001 and have used $\ for the first time now i think :D
[12:19:07] claudiuinberlin: has joined #ruby
[12:20:25] sepp2k: has joined #ruby
[12:26:25] webguynow: has joined #ruby
[12:30:14] Bhootrk_: has joined #ruby
[12:32:34] vondruch: has joined #ruby
[12:36:24] harfangk: has joined #ruby
[12:38:54] dinfuehr: has joined #ruby
[12:39:29] bmurt: has joined #ruby
[12:42:43] marr: has joined #ruby
[12:43:14] claudiuinberlin: has joined #ruby
[12:43:35] harfangk: has joined #ruby
[12:48:32] brent__: has joined #ruby
[12:49:47] vondruch: has joined #ruby
[12:52:14] milardovich: has joined #ruby
[12:52:35] bronson: has joined #ruby
[12:52:49] truenito: has joined #ruby
[12:56:17] garyserj: matthewd: what if I just want an http server where people access http://myip/blah and the http server displays the string 'abcd' or I go to http://myip/add?4&5 and my http server displays 9?
[12:56:42] gnufied: has joined #ruby
[12:56:52] jphase: has joined #ruby
[12:57:03] garyserj: is there a ruby plugin that just creates a plain http server and lets me define what the http server sends to the http client, happens when people make various requests?
[12:57:40] cdg: has joined #ruby
[12:58:14] havenwood: garyserj: Take a look at Rack. Here are some "Hello, World" examples in pure Rack and various Rack adapters: https://github.com/luislavena/bench-micro/tree/master/apps
[12:58:39] havenwood: garyserj: Roda is one nice option: http://roda.jeremyevans.net/
[12:58:48] mson: has joined #ruby
[12:59:04] jphase: has joined #ruby
[13:00:13] DipoleHourglass: has joined #ruby
[13:00:44] matthewd: Puma is (one of) the thing(s) that will create the actual HTTP server; Rack etc is the nicer (and universal) way you tell it what to do when it gets a request.
[13:00:49] Kilo`byte: has joined #ruby
[13:02:25] synthroid: has joined #ruby
[13:04:32] cdg_: has joined #ruby
[13:05:54] hfp_work: has joined #ruby
[13:09:53] oleo: has joined #ruby
[13:11:47] selim: has joined #ruby
[13:13:08] claudiuinberlin: has joined #ruby
[13:17:42] apparition: has joined #ruby
[13:21:15] jphase_: has joined #ruby
[13:22:39] ornerymoose: has joined #ruby
[13:27:26] nowhere_man: has joined #ruby
[13:27:45] lapinferoce: has joined #ruby
[13:30:29] DLSteve: has joined #ruby
[13:30:42] claudiuinberlin: has joined #ruby
[13:33:38] reu: has joined #ruby
[13:36:00] Jameser: has joined #ruby
[13:37:58] darix: i wonder if Mr Neukirchen expected the lib to become such a huge success
[13:40:03] amosbird: has left #ruby: ("WeeChat 1.9")
[13:41:37] milardovich: has joined #ruby
[13:45:48] belmoussaoui: has joined #ruby
[13:47:32] hoangtg: has joined #ruby
[13:50:22] theunraveler: has joined #ruby
[13:52:27] cagomez: has joined #ruby
[13:56:31] omnibus: has joined #ruby
[13:56:33] omnibus: has left #ruby: ()
[13:59:49] truenito: has joined #ruby
[14:01:15] marahin: has joined #ruby
[14:03:44] EminenceHC: has joined #ruby
[14:04:29] hfp_work: has joined #ruby
[14:06:04] Jameser`: has joined #ruby
[14:09:41] Rapture: has joined #ruby
[14:10:06] webguynow: has joined #ruby
[14:14:34] pagios: hi i am running my ruby script like: /usr/bin/ruby /var/www/localhost/html/backend.rb & in a rc.local but it doesnt fire on boot why ?
[14:17:56] maryo: has joined #ruby
[14:18:07] herbmillerjr: has joined #ruby
[14:20:01] darix: pagios: more a question for your distro/OS
[14:20:36] rippa: has joined #ruby
[14:26:40] charliesome: has joined #ruby
[14:27:31] SirOliver: has joined #ruby
[14:29:43] SirOliver: has joined #ruby
[14:34:01] chouhoulis: has joined #ruby
[14:36:05] cagomez: has joined #ruby
[14:36:13] s2013: has joined #ruby
[14:38:46] orbyt_: has joined #ruby
[14:47:50] milardovich: has joined #ruby
[14:53:22] bronson: has joined #ruby
[14:54:35] yeticry_: has joined #ruby
[14:56:18] polishdub: has joined #ruby
[15:00:47] beilabs: has joined #ruby
[15:02:21] knight33: has joined #ruby
[15:03:47] cdg: has joined #ruby
[15:06:11] cdg_: has joined #ruby
[15:08:09] beilabs: has joined #ruby
[15:09:15] troys: has joined #ruby
[15:09:44] paolog: has joined #ruby
[15:12:12] bruno-: has joined #ruby
[15:12:43] patientplatypus: has joined #ruby
[15:12:55] patientplatypus: Intro rails question: https://hastebin.com/awomemomey.rails
[15:14:44] havenwood: patientplatypus: you're missing an `end` between line 36 and 37
[15:16:01] beilabs: has joined #ruby
[15:17:02] cschneid: has joined #ruby
[15:19:24] jottr: has joined #ruby
[15:20:35] nowhere_man: has joined #ruby
[15:24:44] cagomez: has joined #ruby
[15:26:53] Bacta: has joined #ruby
[15:27:04] beilabs: has joined #ruby
[15:28:31] Bacta: Really struggling to find good guides on how to upgrade from Ruby 1.8.7 to something more modern like 2.3.0. Any good guides out there?
[15:28:49] cjohnson: Do you use a version manager
[15:29:08] belmoussaoui: has joined #ruby
[15:30:07] beilabs_: has joined #ruby
[15:31:20] cjohnson: Cool then just install the latest version alongside the old one, switch versions, and run your code and see what breaks
[15:32:06] Bacta: I could do that but was hoping for something more concrete ;) we're talking 500K LOC here
[15:33:10] [Butch]: has joined #ruby
[15:33:23] TomyLobo: has joined #ruby
[15:33:26] synthroid: has joined #ruby
[15:33:46] baweaver: Ah, so actually upgrading the code then. That's more fun.
[15:34:20] baweaver: Basically look for the deprecations between 1.8.6 and 1.9.2/3, that's where you'll find most all of the fun Bacta
[15:34:44] baweaver: 1.9.3 -> 2.4 is a remarkably straight shot from there
[15:35:49] baweaver: http://www.mobalean.com/blog/2016/12/05/ruby-upgrade
[15:35:55] baweaver: That's handy
[15:36:15] baweaver: Bacta ^ Looks like someone wrote a guide on it
[15:36:20] Bacta: The thing that really bothers me is I can't determine whether => still works in hashes for 2.3 and up. Basic information but nothing out there
[15:36:22] guardian: hello, is there a way to do something like self&.foo('bar') that would call a method #foo() only if it exists?
[15:36:40] guardian: with ruby >= 2.3
[15:36:52] Bacta: baweaver: That's much better
[15:37:24] baweaver: To be fair RVM and the like make it easier to make transitions because you can switch versions more cleanly
[15:38:35] __Yiota: has joined #ruby
[15:39:07] baweaver: guardian: who says the lonely op takes only one argument? :)
[15:40:14] beilabs: has joined #ruby
[15:42:12] baweaver: >> nil&.[] :foo
[15:42:13] ruby[bot]: baweaver: # => nil (https://eval.in/866553)
[15:42:25] baweaver: >> {foo: :bar}&.[](:foo)
[15:42:26] ruby[bot]: baweaver: # => :bar (https://eval.in/866554)
[15:42:54] baweaver: As [] is technically a method, yes, it'll work
[15:42:55] gregf_: has joined #ruby
[15:43:21] beilabs: has joined #ruby
[15:43:39] guardian: I don't get it
[15:43:47] baweaver: [], +, -, (and other math ops) are all methods
[15:43:53] matthewd: guardian: No, there isn't
[15:44:24] guardian: what I want is something nicer than (self.respond_to?(:foo) && foo()) || ...
[15:44:31] guardian: I just discovered respond_to?
[15:45:03] baweaver: ACTION needs to get coffee
[15:45:04] bmurt: has joined #ruby
[15:45:06] guardian: the example is contrieved but basically I want to tentatively call a method
[15:45:15] havenwood: guardian: return foo if respond_to? :foo
[15:45:22] guardian: and if it doesn't exist, it should yield so I can chain
[15:45:22] matthewd: Sorry, yes: no, there isn't a nice/syntactical way to do it
[15:45:28] baweaver: Read that as can you call a method on an object that you're not sure if it exists or not
[15:45:49] baweaver: ACTION wonders if there's a way to make sugar
[15:45:51] havenwood: speaking of coffee!
[15:46:30] matthewd: If you happen to be in Rails, there's #try
[15:48:19] baweaver: >>class Object;def tries(m,*a);respond_to?(m)?send(m,*a):nil;end;end; [nil.tries(:first), [1].tries(:first)]
[15:48:21] ruby[bot]: baweaver: # => [nil, 1] (https://eval.in/866561)
[15:48:23] rubyn00b: has joined #ruby
[15:48:37] baweaver: ACTION still forgets on occasion what's Rails and what's not
[15:48:40] rubyn00b: hello. need some assistance implementing a stable sort on my array
[15:48:55] guardian: no, I'm not using Rails
[15:48:59] guardian: thanks for the help anyways
[15:49:09] cdg_: has joined #ruby
[15:49:12] baweaver: rubyn00b: define stable sort
[15:49:29] cdg_: has joined #ruby
[15:50:04] rubyn00b: baweaver: it doesnt change the order that the data came in, if the data is identical
[15:50:08] cdg__: has joined #ruby
[15:50:09] matthewd: rubyn00b: sort_by.with_index {|value, idx| [f(value), idx] }
[15:50:12] teatime: a stable sort doesn't re-order items that have the same sort value
[15:50:20] rubyn00b: 1506008392 +12015146088
[15:50:20] rubyn00b: 1506008392 +12035806336
[15:50:20] rubyn00b: 1506008392 +12016901834
[15:50:20] rubyn00b: 1506008392 +12013808495
[15:50:20] rubyn00b: 1506008365 +17326466678
[15:50:39] rubyn00b: all those epoch times are identical (out of my control)
[15:50:52] rubyn00b: sorting by epoch time will yeild an unstable result
[15:52:35] rubyn00b: matthewd: how would I apply that to my current data set
[15:53:35] astrobunny: has joined #ruby
[15:54:03] havenwood: rubyn00b: if you have `sort_by { |value| f(value) }` change it to what matthewd said
[15:56:03] ledestin: has joined #ruby
[16:00:58] Tatey: has joined #ruby
[16:03:03] jackjackdripper: has joined #ruby
[16:03:22] uZiel: has joined #ruby
[16:07:43] noobineer: has joined #ruby
[16:10:57] noobineer: has joined #ruby
[16:11:45] FahmeF: has joined #ruby
[16:12:07] naught: has joined #ruby
[16:12:59] devyn: has joined #ruby
[16:13:13] orbyt_: has joined #ruby
[16:16:12] DanKnox: has joined #ruby
[16:18:38] Orbixx[m]: has joined #ruby
[16:20:25] jackjackdripper: has joined #ruby
[16:20:39] mim1k_: has joined #ruby
[16:20:53] knight33: has joined #ruby
[16:22:49] ResidentBiscuit: has joined #ruby
[16:23:58] maryo_: has joined #ruby
[16:25:40] mim1k: has joined #ruby
[16:31:09] SirOliver: has joined #ruby
[16:32:26] astronavt: has joined #ruby
[16:36:50] SirOliver: has joined #ruby
[16:44:41] fullstack: has joined #ruby
[16:45:28] dionysus69: has joined #ruby
[16:45:33] bruno-_: has joined #ruby
[16:47:29] machinewar: has joined #ruby
[16:49:00] brent__: has joined #ruby
[16:49:00] zachk: has joined #ruby
[16:51:19] mtkd: has joined #ruby
[16:54:10] piss: has joined #ruby
[16:54:12] piss: has left #ruby: ()
[16:55:01] bronson: has joined #ruby
[16:56:46] __Yiota: has joined #ruby
[16:59:30] milardovich: has joined #ruby
[17:09:10] t-recx: has joined #ruby
[17:09:33] brendan-: has joined #ruby
[17:09:53] raynold: has joined #ruby
[17:10:09] oleo: has joined #ruby
[17:11:09] jinie: has joined #ruby
[17:18:08] ornerymoose_: has joined #ruby
[17:21:21] agrecascino: has joined #ruby
[17:26:54] SeepingN: has joined #ruby
[17:30:07] Alina-malina: has joined #ruby
[17:30:23] uZiel: has joined #ruby
[17:31:05] mim1k: has joined #ruby
[17:34:41] Alina-malina: has joined #ruby
[17:34:47] oleo: has joined #ruby
[17:36:08] beilabs: has joined #ruby
[17:39:03] dd_: has joined #ruby
[17:39:51] dionysus69: has joined #ruby
[17:42:15] dd_: has left #ruby: ()
[17:42:43] beilabs: has joined #ruby
[17:43:10] HashNuke: has joined #ruby
[17:44:42] Cohedrin_: has joined #ruby
[17:48:05] synthroid: has joined #ruby
[17:51:26] rfoust: has joined #ruby
[17:53:16] orbyt_: has joined #ruby
[17:53:50] cdg: has joined #ruby
[17:59:05] jackjackdripper: has joined #ruby
[18:03:28] t-recx: has joined #ruby
[18:12:41] DarkSeid: has joined #ruby
[18:12:44] DarkSeid: has left #ruby: ()
[18:14:42] jottr: has joined #ruby
[18:16:08] chaugiang: has joined #ruby
[18:16:16] chaugiang: has left #ruby: ()
[18:19:53] quobo: has joined #ruby
[18:22:24] milardovich: has joined #ruby
[18:25:09] Dimik: has joined #ruby
[18:32:53] enterprisey: has joined #ruby
[18:33:32] JD2020X: has joined #ruby
[18:36:49] mikecmpbll: has joined #ruby
[18:37:17] balazs_: has joined #ruby
[18:42:39] jphase: has joined #ruby
[18:50:49] nobitanobi: has joined #ruby
[18:55:58] bronson: has joined #ruby
[18:56:18] Sembei: has joined #ruby
[18:56:30] elsevero: has joined #ruby
[19:01:34] Xeago: has joined #ruby
[19:04:05] phaul_: has joined #ruby
[19:06:26] gauravgoyal: has joined #ruby
[19:07:09] weaksauce: has joined #ruby
[19:07:30] _aeris_: has joined #ruby
[19:15:27] jottr: has joined #ruby
[19:17:18] flak: has joined #ruby
[19:17:43] tAn: has joined #ruby
[19:18:26] elcontrastador: has joined #ruby
[19:26:22] bmurt: has joined #ruby
[19:26:43] milardovich: has joined #ruby
[19:31:22] ur5us: has joined #ruby
[19:39:25] jackjackdripper: has joined #ruby
[19:40:52] bmurt: has joined #ruby
[19:46:09] uZiel: has joined #ruby
[19:46:53] milardovich: has joined #ruby
[19:48:17] ResidentBiscuit: has joined #ruby
[19:54:33] jackjackdripper: has joined #ruby
[19:56:47] daed: has joined #ruby
[19:59:27] voiceftp: has joined #ruby
[20:00:43] SirOliver: has joined #ruby
[20:01:50] ayonkhan: has joined #ruby
[20:03:03] oleo: has joined #ruby
[20:06:42] orbyt_: has joined #ruby
[20:09:38] cdg: has joined #ruby
[20:15:54] Algebr`: has joined #ruby
[20:16:11] jottr: has joined #ruby
[20:21:00] ur5us: has joined #ruby
[20:21:30] minimalism: has joined #ruby
[20:23:00] dviola: has joined #ruby
[20:32:02] Psy-Q: has joined #ruby
[20:36:58] milardovich: has joined #ruby
[20:38:48] synthroid: has joined #ruby
[20:39:15] cadillac_: has joined #ruby
[20:39:28] chouhoul_: has joined #ruby
[20:40:41] wald0: has joined #ruby
[20:42:04] Mon_Ouie: has joined #ruby
[20:43:03] milardovich: has joined #ruby
[20:49:18] Rapture: has joined #ruby
[20:51:34] nobitanobi: has joined #ruby
[20:54:06] duckpupp1: has joined #ruby
[20:54:47] vb333: has joined #ruby
[20:56:54] bronson: has joined #ruby
[20:57:41] s3nd1v0g1us: has joined #ruby
[20:59:45] mostlybadfly: has joined #ruby
[21:01:23] knight33: has joined #ruby
[21:02:21] Cohedrin_: has joined #ruby
[21:07:26] imode: has joined #ruby
[21:07:44] daydream: has joined #ruby
[21:09:27] jottr: has joined #ruby
[21:12:23] chouhoulis: has joined #ruby
[21:28:43] moei: has joined #ruby
[21:28:57] nofxx: has joined #ruby
[21:33:34] lxsameer: has joined #ruby
[21:33:36] maryo: has joined #ruby
[21:34:35] hinbody: has joined #ruby
[21:42:04] SeepingN: has joined #ruby
[21:44:26] Azure: has joined #ruby
[21:48:19] milardovich: has joined #ruby
[21:54:10] _whitelogger: has joined #ruby
[21:55:58] orbyt_: has joined #ruby
[21:58:08] xuanrui: has joined #ruby
[22:03:39] milardovich: has joined #ruby
[22:09:00] claudiuinberlin: has joined #ruby
[22:10:08] dionysus69: has joined #ruby
[22:11:41] iszak: has joined #ruby
[22:11:41] iszak: has joined #ruby
[22:13:08] Hanmac: has joined #ruby
[22:21:15] iszak: has joined #ruby
[22:22:02] zapata: has joined #ruby
[22:22:57] quobo: has joined #ruby
[22:26:43] selim: has joined #ruby
[22:27:10] Cohedrin_: has joined #ruby
[22:30:18] patientplatypus: has joined #ruby
[22:32:39] Cohedrin_: has joined #ruby
[22:34:30] Cohedrin_: has joined #ruby
[22:36:47] orbyt_: has joined #ruby
[22:38:18] cdg: has joined #ruby
[22:38:34] chouhoul_: has joined #ruby
[22:40:59] patientplatypus: im having issues on a rspec test in ruby on rails. the error is here https://hastebin.com/ajagohanok.rails. The git is here: https://github.com/patientplatypus/Rubyplay. Can someone let me know what is going wrong? I've looked online without any luck.
[22:42:30] Cohedrin_: has joined #ruby
[22:43:52] patientplatypus: if anyone has any ideas please let me know
[22:46:09] elomatreb: patientplatypus: You never require the gem that code block is configuring, so its constants are not defined ("shoulda-matchers")
[22:46:15] charliesome: has joined #ruby
[22:46:35] patientplatypus: wait can you show me where im not including the gem? im new to rails and i followed the tutorial
[22:47:46] elomatreb: You need to tell Ruby to actually load the gem, usually with a `require "shoulda-matchers"` at the top of rails_helper.rb
[22:49:02] patientplatypus: woooowwwww.....the tutorial is broken.
[22:49:11] patientplatypus: what a shithead
[22:49:18] patientplatypus: let me try that
[22:49:37] elomatreb: If you have "uninitialized constant" errors checking if you have all your gems required is a good first step
[22:49:47] tcopeland: has joined #ruby
[22:50:02] patientplatypus: ok...thanks - totally new to rails
[22:51:41] patientplatypus: do you have any other ideas elomatreb?
[22:51:55] elomatreb: Do you still get the same error, or did it change?
[22:52:19] nobitanobi: has joined #ruby
[22:53:32] patientplatypus: https://github.com/patientplatypus/Rubyplay
[22:53:40] patientplatypus: it just cant see the shoulda files
[22:53:53] patientplatypus: different error
[22:54:14] patientplatypus: uninitialized constant ActiveSupport::TestCase
[22:55:25] yaewa: has joined #ruby
[22:56:15] elomatreb: Ah, looking at one of my own repos using this gem and their README, the released versions apparently do not support Rails 5 yet, I'm installing it from git
[22:56:38] patientplatypus: the tutorial i am following is based on rails 5
[22:56:46] patientplatypus: so i dont think that is correct
[22:57:05] patientplatypus: https://scotch.io/tutorials/build-a-restful-json-api-with-rails-5-part-one
[22:57:10] elomatreb: Look at the readme: https://github.com/thoughtbot/shoulda-matchers
[22:58:11] bronson: has joined #ruby
[22:58:46] Paraxial: has joined #ruby
[22:59:25] patientplatypus: elomatreb what part of the readme are you referring to
[23:00:25] elomatreb: The second paragraph, but it's even clearer when you select the docs from the version you specify in your gemfile (3.1.2): https://github.com/thoughtbot/shoulda-matchers/tree/v3.1.2#getting-started
[23:01:58] patientplatypus: hmm ok let me try that
[23:02:20] patientplatypus: still doesnt work....same error
[23:02:30] patientplatypus: uninitialized constant ActiveSupport::TestCase
[23:02:55] nchambers: does ruby have a concept of enums like what C has?
[23:02:59] patientplatypus: An error occurred while loading ./spec/models/todo_spec.rb.
[23:02:59] patientplatypus: config.integrate do |with|
[23:03:02] patientplatypus: with.test_framework :rspec
[23:03:04] patientplatypus: with.library :rails
[23:03:09] patientplatypus: uninitialized constant ActiveSupport::TestCase
[23:03:11] patientplatypus: # ./spec/rails_helper.rb:8:in `block in <top (required)>'
[23:03:12] enterprisey: has joined #ruby
[23:03:13] patientplatypus: # ./spec/rails_helper.rb:7:in `<top (required)>'
[23:03:16] patientplatypus: # ./spec/models/todo_spec.rb:2:in `require'
[23:03:18] patientplatypus: # ./spec/models/todo_spec.rb:2:in `<top (required)>'
[23:03:19] patientplatypus: No examples found.
[23:03:23] patientplatypus: that was a little big sorry
[23:03:24] Cohedrin_: has joined #ruby
[23:03:38] elomatreb: If you just paste that many lines you may end up getting autobanned for flooding, don't do that on IRC
[23:05:03] patientplatypus: sorry but do you have any idea - im completely lost
[23:05:48] elomatreb: I don't, it works like that for me, sorry. But there's this: https://github.com/thoughtbot/shoulda-matchers/issues/1036
[23:07:06] goyox86_: has joined #ruby
[23:07:26] goyox86_: has joined #ruby
[23:07:31] charliesome: has joined #ruby
[23:14:13] naprimer: has joined #ruby
[23:17:48] Puffball: has joined #ruby
[23:22:33] milardovich: has joined #ruby
[23:29:41] charliesome: has joined #ruby
[23:31:24] bronson: has joined #ruby
[23:38:46] r3QuiEm_cL: has joined #ruby
[23:43:05] johnny56: has joined #ruby
[23:45:16] mson: has joined #ruby
[23:50:52] dionysus69: has joined #ruby
[23:53:00] jackjackdripper: has joined #ruby