« Back to channel list

#ruby - 05 January 2019

« Back 1 day Forward 1 day »
[00:07:03] nchambers: has joined #ruby
[00:08:33] h0h0h0: has joined #ruby
[00:11:09] bob_dino: has joined #ruby
[00:14:54] RougeR: has joined #ruby
[00:15:36] ur5us: has joined #ruby
[00:16:13] h0h0h0: has joined #ruby
[00:16:24] ivanskie: has joined #ruby
[00:23:01] code_zombie: has joined #ruby
[00:25:16] krawchyk: has joined #ruby
[00:25:39] apparition: has joined #ruby
[00:26:27] atrusofthefuture: has joined #ruby
[00:27:09] rkazak: has joined #ruby
[00:27:49] rrichardsr3: has joined #ruby
[00:28:18] dostoyevsky: has joined #ruby
[00:28:38] CrazyEddy: has joined #ruby
[00:29:39] bmurt: has joined #ruby
[00:35:02] waheedi: has joined #ruby
[00:36:16] h0h0h0: has joined #ruby
[00:40:39] cd: has joined #ruby
[00:50:20] postmodern: has joined #ruby
[00:55:03] orbyt_: has joined #ruby
[01:10:30] tdy: has joined #ruby
[01:30:04] orbyt_: has joined #ruby
[01:34:31] ausmat: has joined #ruby
[01:39:22] GodFather: has joined #ruby
[02:07:56] johnny56_: has joined #ruby
[02:13:12] bob_dino: has joined #ruby
[02:17:15] JJonah: The docs for Enumerator::Lazy#flat_map offer this example: `["foo", "bar"].lazy.flat_map {|i| i.each_char.lazy}.force` but I can't find the method `force` documented anywhere in Lazy or elsewhere: https://ruby-doc.org/core-2.5.3/Enumerator/Lazy.html. What am I missing?
[02:17:58] phaul: has joined #ruby
[02:21:19] h0h0h0: has joined #ruby
[02:22:41] h0h0h0: has joined #ruby
[02:29:42] hutch: has joined #ruby
[02:32:15] cschneid: has joined #ruby
[02:45:22] h0h0h0: has joined #ruby
[02:48:39] rexmie: has joined #ruby
[02:49:11] Swyper: has joined #ruby
[02:49:17] rexmie: does anyone know any ruby gem for newbie to learn reading code?
[02:52:41] tkdonut: has joined #ruby
[03:04:15] tdy1: has joined #ruby
[03:04:26] h0h0h0: has joined #ruby
[03:08:27] rexmie: has joined #ruby
[03:16:50] drale2k_: has joined #ruby
[03:20:48] maryo: has joined #ruby
[03:22:29] yokel: has joined #ruby
[03:23:07] orbyt_: has joined #ruby
[03:27:24] h0h0h0: has joined #ruby
[03:38:57] s3nd1v0g1us: has joined #ruby
[03:41:21] maryo: has joined #ruby
[03:51:53] nfk: has joined #ruby
[03:52:31] nfk: Argh, just to be sure, if File.rename "foo", variable_that_is_undefined is called
[03:52:41] nfk: it successfully eats the data by renaming it to nil, yes/
[03:53:03] nfk: oh, wait, phew
[03:53:07] nfk: it's not undefined
[03:53:27] nfk: i may have clobbered something but the data might be still here
[04:01:20] hurricanehrndz: has joined #ruby
[04:04:38] moei: has joined #ruby
[04:09:05] braincrash: has joined #ruby
[04:29:04] cnsvc: has joined #ruby
[04:49:44] sauvin: has joined #ruby
[04:53:09] cnsvc: hi everyone
[04:55:52] cnsvc: I need some help on Ruby installation on FreeBSD. Tried to make from source or rbenv/ruby-build, and i have the errors ld: error: section type mismatch for .eh_frame
[04:56:31] cnsvc: details here https://dpaste.de/Lbgn
[04:56:41] cnsvc: anybody has a clue? Thanks.
[05:04:19] Renich_: has joined #ruby
[05:08:50] johnny56_: has joined #ruby
[05:11:36] Renich_: has joined #ruby
[05:21:11] _whitelogger: has joined #ruby
[06:03:32] ogres: has joined #ruby
[06:14:16] kapil____: has joined #ruby
[06:16:57] cthulchu: has joined #ruby
[06:18:00] rippa: has joined #ruby
[06:28:37] havenwood: rexmie: Here's a example, very simple gem to get oriented: https://github.com/qrush/hola
[06:31:08] havenwood: JJonah: https://docs.ruby-lang.org/en/2.6.0/Enumerator/Lazy.html#method-i-force
[06:31:17] havenwood: JJonah: https://docs.ruby-lang.org/en/2.6.0/Enumerator/Lazy.html#method-i-to_a
[06:51:10] _whitelogger: has joined #ruby
[06:56:52] maryo: has joined #ruby
[07:29:14] Renich: has joined #ruby
[07:36:26] cnsvc: has joined #ruby
[07:52:41] Dbugger: has joined #ruby
[07:56:19] RougeR: has joined #ruby
[08:06:10] _whitelogger: has joined #ruby
[08:09:58] rkazak: has joined #ruby
[08:14:46] johnny56_: has joined #ruby
[08:24:22] dellavg_: has joined #ruby
[08:28:12] Aqo: has joined #ruby
[08:30:20] Swyper: has joined #ruby
[08:30:27] MAL_9001: has joined #ruby
[08:36:23] conta: has joined #ruby
[08:41:50] Swyper: has joined #ruby
[08:44:32] mikecmpbll: has joined #ruby
[08:59:22] za1b1tsu: has joined #ruby
[09:05:11] evdubs: has joined #ruby
[09:10:40] johnny56_: has joined #ruby
[09:11:19] armyriad: has joined #ruby
[09:16:00] clemens3: has joined #ruby
[09:33:55] Fernando-Basso: has joined #ruby
[09:38:36] reber: has joined #ruby
[09:39:06] rubydoc: has joined #ruby
[09:45:42] Nicmavr: has joined #ruby
[09:47:21] conta1: has joined #ruby
[09:57:20] apparition: has joined #ruby
[09:57:58] phaul: has joined #ruby
[10:11:15] dellavg_: has joined #ruby
[10:11:20] phaul: has joined #ruby
[10:18:41] phaul: has joined #ruby
[10:31:59] cnsvc: has joined #ruby
[10:35:31] tdy: has joined #ruby
[10:39:09] _whitelogger: has joined #ruby
[10:39:53] MasterAsia: has joined #ruby
[10:44:13] hiroaki: has joined #ruby
[11:01:00] irdr: has joined #ruby
[11:08:49] Demos[m]: has joined #ruby
[11:09:30] gix: has joined #ruby
[11:18:32] hiroaki: has joined #ruby
[11:30:48] hiroaki: has joined #ruby
[11:30:52] bastilian: has joined #ruby
[11:30:52] turt2live: has joined #ruby
[11:30:52] sepp2k: has joined #ruby
[11:30:52] jonjitsu: has joined #ruby
[11:41:51] Emmanuel_Chanel: has joined #ruby
[12:03:59] hays: my ruby-install is not working with a command not found
[12:04:11] hays: i tried reinstalling from source
[12:05:05] hays: chruby itself seems ok
[12:06:19] hays: -bash: ruby-install: command not found
[12:07:56] Emmanuel_Chanel: has joined #ruby
[12:09:34] hays: im using PREFIX=$HOME/.local make install
[12:24:45] phaul: is it in your $HOME/.local/bin? if so is that in your PATH?
[12:33:25] hays: ./.local/bin/ruby-install
[12:34:23] rexmie: havenwood thank you
[12:35:06] hays: phaul: wow. somehow my path wasn't set??? duh
[12:37:21] Fernando-Basso: has joined #ruby
[12:46:58] reber: has joined #ruby
[12:52:23] r3m: has joined #ruby
[13:03:26] despai: has joined #ruby
[13:04:15] rubydoc: has joined #ruby
[13:10:09] lucasb: has joined #ruby
[13:29:55] Dbugger: has joined #ruby
[13:31:02] troulouliou_div2: has joined #ruby
[13:53:36] nebg: has joined #ruby
[13:54:05] nebg: hello all it seems i have two versions of bundler installed if i do gem list
[13:54:20] nebg: but only one is default... how can i switch to the other version ?
[13:58:58] nebg: i have this message "Warning: the running version of Bundler (1.16.6) is older than the version that created the lockfile (1.17.1). We suggest you upgrade to the latest version of Bundler by running `gem install bundler`."
[13:59:10] nebg: but still i did a gem install bundler and it installed a 2.0.x version
[13:59:22] nebg: but i don't understand why it is still using version 1.16.6
[14:05:16] nebg: can somebody help me?
[14:08:39] despai: has joined #ruby
[14:10:42] Iambchop: nebg: how is your ruby installed? vendor package, rvm, self compiled. etc?
[14:12:01] nebg: Iambchop, my ruby is instaleld from rvm
[14:12:17] nebg: and i'm insidde the metasploit-framework gemset
[14:15:14] mspo: use docker
[14:18:43] nebg: mspo, why ?
[14:29:32] Iambchop: nebg: "rvm @global do gem install bundler"?
[14:35:48] despai: has joined #ruby
[14:35:56] bmurt: has joined #ruby
[14:42:21] catbusters: has joined #ruby
[14:43:09] rubydoc: has joined #ruby
[14:43:09] phaul: has joined #ruby
[14:54:57] manakanapa: has joined #ruby
[15:04:32] rkoller: has joined #ruby
[15:16:16] AJA4350: has joined #ruby
[15:23:45] houhoulis: has joined #ruby
[15:35:04] rkazak: has joined #ruby
[15:48:04] dviola: has joined #ruby
[15:49:26] h0h0h0: has joined #ruby
[15:51:47] Mike11: has joined #ruby
[15:54:42] h0h0h0: has joined #ruby
[16:15:57] davidw_: has joined #ruby
[16:25:42] za1b1tsu: has joined #ruby
[16:32:05] drale2k_: has joined #ruby
[16:43:03] rkazak: has joined #ruby
[16:45:57] davidw_: has joined #ruby
[16:58:44] despai: has joined #ruby
[17:05:58] rkazak: has joined #ruby
[17:10:48] uplime: has joined #ruby
[17:15:32] despai: has joined #ruby
[17:20:56] TvL2386: has joined #ruby
[17:22:25] bmurt: has joined #ruby
[17:24:17] rkazak: has joined #ruby
[17:25:30] h0h0h0: has joined #ruby
[17:30:57] Exagone313: has joined #ruby
[17:57:40] orbyt_: has joined #ruby
[18:10:02] tdy: has joined #ruby
[18:13:18] rkazak: has joined #ruby
[18:21:03] houhoulis: has joined #ruby
[18:31:13] cthulchu: has joined #ruby
[18:32:14] cthulchu_: has joined #ruby
[18:37:16] despai: has joined #ruby
[18:39:50] despai_: has joined #ruby
[18:47:43] orbyt_: has joined #ruby
[18:52:29] conta: has joined #ruby
[18:57:09] Fernando-Basso: has joined #ruby
[19:01:02] cschneid: has joined #ruby
[19:04:02] mikecmpbll: has joined #ruby
[19:19:18] \void: has joined #ruby
[19:29:36] Scriptonaut: has left #ruby: ()
[19:32:59] BTRE: has joined #ruby
[19:34:28] cthulchu_: has joined #ruby
[19:36:20] cthu|: has joined #ruby
[19:40:05] tiff: has joined #ruby
[19:47:31] clemens3: has joined #ruby
[19:57:36] cnsvc: has joined #ruby
[20:00:20] Swyper: has joined #ruby
[20:05:57] tdy: has joined #ruby
[20:21:38] MasterAsia: has joined #ruby
[20:23:43] cthu|: has joined #ruby
[20:25:52] Nicmavr: has joined #ruby
[20:29:00] conta: has joined #ruby
[20:31:24] tiff: has joined #ruby
[20:37:33] reber: has joined #ruby
[20:41:05] gigetoo: has joined #ruby
[20:52:38] uplime: has joined #ruby
[20:52:40] hays: any opinions on ruby web frameworks in here? i'm leaning towards learning roda
[20:52:40] Swyper: has joined #ruby
[20:52:54] hays: but am a little worried its userbase is too small
[20:53:15] cschneid: has joined #ruby
[20:53:18] hays: and i still don't have a clear understanding of how to deploy an app vs. running it locally
[20:59:18] conta: has joined #ruby
[21:00:34] dviola: you can't go wrong with any of the tools jeremyevans maintains :P
[21:02:24] tdy: has joined #ruby
[21:03:00] Swyper: has joined #ruby
[21:04:30] Swyper: has joined #ruby
[21:06:22] havenwood: hays: I'd suggest making a simple Rack app, so you can how it works and why routing becomes a pain.
[21:08:14] hutch: has joined #ruby
[21:09:29] havenwood: hays: Roda is just a routing tree on top of Rack, along with plugins that you cherry pick to compose a framework.
[21:10:06] havenwood: hays: I just go through each of the plugins and decide if I need it for the app at hand: https://github.com/jeremyevans/roda/tree/master/lib/roda/plugins
[21:11:59] havenwood: hays: Run `rackup` to run it in development and `rackup -p $PORT` to run it in prod. :P
[21:12:43] hays: maybe i do need to do that, because i don't even see instructions to run this config.ru file in the roda project
[21:12:52] havenwood: hays: Type: rackup
[21:13:04] havenwood: hays: Have you ever made a pure Rack app?
[21:14:07] havenwood: hays: You can create one with a one-liner config.ru file: echo "run -> _ { [200, {'Content-Type' => 'text/plain'}, ['Hello hays']] }" > config.ru
[21:14:17] havenwood: hays: Then run that app: rackup
[21:14:27] mozzarella: has joined #ruby
[21:14:39] havenwood: hays: So the only contents of config.ru are:
[21:14:40] havenwood: run -> _ { [200, {'Content-Type' => 'text/plain'}, ['Hello hays']] }
[21:15:35] havenwood: hays: You pass an argument to #run that responds to #call with one argument, which is the env. I'm ignoring env with the _.
[21:16:05] havenwood: hays: The response is three things, the response code, headers and body:
[21:16:07] havenwood: [200, {'Content-Type' => 'text/plain'}, ['Hello hays']]
[21:17:06] havenwood: hays: To start doing routing, you need to look at env:
[21:17:15] havenwood: run -> env { if env[...
[21:17:35] havenwood: hays: https://rack.github.io/
[21:18:11] havenwood: hays: Roda, Hanami, Rails, Sinatra etc are all frameworks built as Rack adapters. They just provide Rack these three things as well.
[21:18:15] stooj: has joined #ruby
[21:18:23] hays: is .ru ruby?
[21:18:36] hays: or is it a ruby like DSL?
[21:18:45] havenwood: hays: .ru is rack up
[21:18:54] havenwood: config dot rackup
[21:19:11] hays: yeah, but this looks a lot like ruby
[21:19:16] havenwood: hays: it is Ruby
[21:19:29] hays: with i guess some assumptions about where self is pointing
[21:20:16] havenwood: hays: https://github.com/rack/rack/blob/master/bin/rackup
[21:20:21] hays: ok, i'll check out rack first. seems necessary to get an understanding of whats happening
[21:21:09] havenwood: hays: Yes, it's quite helpful - and Rack and Rack middleware are still there when you have a framework on top - so still very useful to understannd.
[21:28:46] hays: so def start &blk
[21:29:45] hays: server.run wrapped_app, options, &blk
[21:32:33] rkoller: has joined #ruby
[21:33:03] cschneid: has joined #ruby
[21:33:26] hays: it seems like rackup just runs Rack::Server.start, which is a class method that just creates a Server object and returns the value of #start
[21:33:59] hays: that method itself takes a block..
[21:36:14] hutch: has joined #ruby
[21:38:53] hays: im trying to figure out why "run" does anything in the config.ru file
[21:40:53] cschneid: has joined #ruby
[21:42:16] rkoller: has joined #ruby
[21:45:14] millerti: has joined #ruby
[21:45:19] code_zombie: has joined #ruby
[21:48:37] cschneid: has joined #ruby
[21:58:11] \void: has joined #ruby
[22:01:22] exchgr`: has joined #ruby
[22:01:42] szulak_: has joined #ruby
[22:01:58] rkoller: has joined #ruby
[22:06:39] houhoulis: has joined #ruby
[22:09:19] rkoller: has joined #ruby
[22:13:09] hutch: has joined #ruby
[22:19:16] jcalla: has joined #ruby
[22:21:17] rkoller: has joined #ruby
[22:36:18] connermcd: has joined #ruby
[22:37:16] CrazyEddy: has joined #ruby
[22:38:32] hays: weird. roda's redirect seems to just cause an infinite loop of POST requests (at least when I use curl)
[22:38:57] hays: i think the intended behavior is that the redirect changes to a 'GET'
[22:50:52] tiff: has joined #ruby
[23:02:41] EXCHGR: has joined #ruby
[23:02:48] Iambchop: hays: RFC2616 said that (most) redirects should keep the same request method, most browsers ignored that and switch to GET https://trac.ietf.org/trac/httpbis/ticket/160
[23:05:48] hays: i hate the web
[23:07:14] hays: hm.. curl appears to also do this.. interesting
[23:07:42] hays: at least with 301, 302, or 303
[23:08:52] hays: except that its not doing this. maybe this is a curl issue
[23:10:06] hays: ahh, there we go. apparently curl -X is not what i wanted
[23:15:31] ruby[bot]: -bbbb $a:laaron$#ruby-fix-your-connection laaron!*@*$#ruby-fix-your-connection laaron-!*@*$#ruby-fix-your-connection *!*@gateway/tor-sasl/laaron$#ruby-fix-your-connection
[23:16:53] garyserj: has joined #ruby
[23:22:58] garyserj: has left #ruby: ()
[23:26:51] duderonomy: has joined #ruby
[23:47:45] cschneid: has joined #ruby