« Back to channel list

#ruby - 12 May 2017

« Back 1 day Forward 1 day »
[00:02:43] govg: has joined #ruby
[00:05:31] Cohedrin: has joined #ruby
[00:06:50] JeanCarloMachado: has joined #ruby
[00:07:03] gusrub: has joined #ruby
[00:12:31] JeanCarloMachado: has joined #ruby
[00:15:07] jusa: has joined #ruby
[00:18:38] zenspider: need (more) input on this structural matching thing I'm working on https://gist.github.com/db8c3e98815371748036c4ea2585cf0c
[00:19:31] zenspider: specifically not sure of the last line... should === be more like Regexp.=~ or more like == ?
[00:20:06] JeanCarloMachado: has joined #ruby
[00:20:34] jhack: has joined #ruby
[00:21:28] railsForDaiz: has joined #ruby
[00:34:22] GinoMan: has joined #ruby
[00:39:18] pankaj: has joined #ruby
[00:40:13] cajone: has joined #ruby
[00:41:34] juggler: has joined #ruby
[00:43:01] railsForDaiz: has joined #ruby
[00:46:46] cam27: has joined #ruby
[00:50:12] ozcanesen: has joined #ruby
[00:53:44] railsForDaiz: has joined #ruby
[00:54:27] railsForDaiz: has joined #ruby
[00:55:15] railsForDaiz: has joined #ruby
[00:55:20] apparition: has joined #ruby
[00:55:21] JeanCarloMachado: has joined #ruby
[00:55:33] zenspider: oooh... ribeye for $8/lb
[00:56:05] railsForDaiz: has joined #ruby
[00:56:53] railsForDaiz: has joined #ruby
[00:57:03] pb122: has joined #ruby
[00:57:43] railsForDaiz: has joined #ruby
[00:58:32] railsForDaiz: has joined #ruby
[00:58:37] pb122: has joined #ruby
[00:58:40] zenspider: !connection railsForDiaz
[00:58:41] ruby[bot]: zenspider: Could not find user with nick "railsForDiaz"
[00:58:52] zenspider: !connection railsForDaiz
[00:58:56] ruby[bot]: +bbb $a:railsForDaiz$#ruby-fix-your-connection railsForDaiz!*@*$#ruby-fix-your-connection *!*@2c0f:f8f0:ef0d:0:1cf0:26f5:4e42:8462$#ruby-fix-your-connection
[00:58:56] ruby[bot]: ruby[bot] kicked railsForDaiz: join/part detected
[01:00:01] t-recx: mmmm ribeye
[01:00:15] bronson: has joined #ruby
[01:00:19] pb122: has joined #ruby
[01:07:19] millerti: has joined #ruby
[01:07:22] graingert: has joined #ruby
[01:08:52] jaegerca_: has joined #ruby
[01:10:11] jaegerca_: Does anyone have an opinion on naming convention with files in ruby - I am considering calling some of my files like this: blog.routes.rb, simply to differentiate when I am searching for them. Any purists want to tell me that's a horrible idea?
[01:10:42] mim1k: has joined #ruby
[01:11:12] elomatreb: Why not use a directory instead? I.e. routes/blog.rb
[01:11:18] jaegerca: They are in a directory
[01:11:24] jaegerca: Here is the issue
[01:11:41] jaegerca: I have blog.rb serializer, I have blog.rb model, I have blog.rb facades etc
[01:11:57] jaegerca: I would like for once to open the right file when searching file names!!!
[01:12:37] elomatreb: I see, I never had that problem so I can't really say, sorry
[01:12:59] jaegerca: You don't have to have had the same problem as me to have an opinion though :)
[01:14:05] elomatreb: Well, my opinion would be "I never had that problem so I wouldn't feel comfortable with breaking the convention (and possibly the autoloading?)"
[01:15:28] bmurt: has joined #ruby
[01:15:57] jaegerca: elomatreb: Autoloading is a good point - although in this case these files have no class names and are being explicitly required and evaled.
[01:16:13] jaegerca: Ok - well I am going to try it and see
[01:17:21] mistym: has joined #ruby
[01:18:34] JeanCarloMachado: has joined #ruby
[01:18:57] brent__: has joined #ruby
[01:26:09] GodFather: has joined #ruby
[01:29:48] Asher: has joined #ruby
[01:31:11] milardovich: has joined #ruby
[01:31:38] __Yiota: has joined #ruby
[01:32:15] dar123: has joined #ruby
[01:33:13] dar123: hey guyz new to ruby, would be ruby equivalent of blabla | egrep ^Gi | grep up | wc -l
[01:34:33] gothicsouth: has joined #ruby
[01:37:44] ekinmur: has joined #ruby
[01:49:11] gizmore|2: has joined #ruby
[01:50:22] duderonomy: has joined #ruby
[01:51:36] patarr: has joined #ruby
[01:52:30] gothicsouth: has joined #ruby
[01:53:57] Cohedrin: has joined #ruby
[01:58:08] patr0clus: has joined #ruby
[02:00:02] nankyokusei: has joined #ruby
[02:00:53] d^sh: has joined #ruby
[02:02:37] enterprisey: has joined #ruby
[02:05:45] MarginHu: has joined #ruby
[02:07:05] zapata: has joined #ruby
[02:09:17] Cohedrin: has joined #ruby
[02:09:39] xall_: has joined #ruby
[02:13:49] agent_white: has joined #ruby
[02:16:31] raul782: has joined #ruby
[02:20:37] genpaku: has joined #ruby
[02:23:04] charliesome_: has joined #ruby
[02:28:59] cyphase: has joined #ruby
[02:29:51] hndk: has joined #ruby
[02:34:48] AndBobsYourUncle: has joined #ruby
[02:37:24] Bhootrk_: has joined #ruby
[02:40:21] ekinmur: has joined #ruby
[02:43:00] milardovich: has joined #ruby
[02:47:25] patr0clus: has joined #ruby
[02:49:21] rakm: has joined #ruby
[02:50:18] Jameser: has joined #ruby
[02:57:09] AndBobsYourUncle: has joined #ruby
[02:57:50] cyphase: has joined #ruby
[03:01:11] bronson: has joined #ruby
[03:09:24] Hunter1_: has joined #ruby
[03:09:42] jeyraof^mbpr: has joined #ruby
[03:10:37] DLSteve: has joined #ruby
[03:11:06] mim1k: has joined #ruby
[03:12:53] astrobunny: has joined #ruby
[03:13:17] Bhootrk_: has joined #ruby
[03:15:13] dar123: has joined #ruby
[03:17:08] etehtsea: has joined #ruby
[03:24:01] mgorbach: has joined #ruby
[03:31:31] milardov_: has joined #ruby
[03:33:46] KnownSyntax: has joined #ruby
[03:33:46] KnownSyntax: has joined #ruby
[03:36:04] cfec0b8d: has joined #ruby
[03:37:48] Rodya_: has joined #ruby
[03:48:48] xall_: has joined #ruby
[03:53:48] jgnagy: has joined #ruby
[03:58:44] gix: has joined #ruby
[03:59:32] milardovich: has joined #ruby
[04:00:02] GinoMan: has joined #ruby
[04:00:54] nankyokusei: has joined #ruby
[04:01:31] cyphase: has joined #ruby
[04:09:49] mim1k: has joined #ruby
[04:11:49] Bhootrk_: has joined #ruby
[04:31:48] patarr: has joined #ruby
[04:34:19] jenrzzz: has joined #ruby
[04:34:19] jenrzzz: has joined #ruby
[04:36:19] nofxx: has joined #ruby
[04:39:12] nofxxx: has joined #ruby
[04:39:21] Cohedrin: has joined #ruby
[04:45:50] jenrzzz: has joined #ruby
[04:49:15] gusrub: has joined #ruby
[04:49:20] agent_white: has joined #ruby
[04:51:56] agent_white: has joined #ruby
[04:58:17] Macaveli: has joined #ruby
[04:59:05] govg: has joined #ruby
[05:00:13] User458764: has joined #ruby
[05:00:50] User458764: has joined #ruby
[05:02:01] rakm: has joined #ruby
[05:02:35] bronson: has joined #ruby
[05:04:05] nomad101: has joined #ruby
[05:08:48] xall_: has joined #ruby
[05:12:30] brent__: has joined #ruby
[05:16:39] d^sh: has joined #ruby
[05:24:06] gusrub: has joined #ruby
[05:24:14] xall_: has joined #ruby
[05:24:18] Dimik: has joined #ruby
[05:24:55] anisha: has joined #ruby
[05:32:19] yogg-saron: has joined #ruby
[05:44:38] dcunit3d: has joined #ruby
[05:45:16] milardovich: has joined #ruby
[05:45:50] MrSamuel: has joined #ruby
[05:46:33] MrSamuel: Hello everyone
[05:47:17] nertzy: has joined #ruby
[05:47:23] xall_: has joined #ruby
[05:48:03] AndBobsYourUncle: has joined #ruby
[05:51:25] ioquatix: has left #ruby: ()
[05:52:23] ioquatix: has joined #ruby
[05:52:37] GGMethos: has joined #ruby
[05:55:12] aufi: has joined #ruby
[05:55:24] Rodya_: has joined #ruby
[05:57:32] dhollinger: has joined #ruby
[06:01:46] nankyokusei: has joined #ruby
[06:01:54] jusa: has joined #ruby
[06:02:31] xall: has joined #ruby
[06:04:54] User458764: has joined #ruby
[06:06:13] cschneid_: has joined #ruby
[06:09:31] xall_: has joined #ruby
[06:11:04] rkazak: has joined #ruby
[06:13:49] tvw: has joined #ruby
[06:19:00] ur5us: has joined #ruby
[06:22:39] vedu: has joined #ruby
[06:26:51] Hunter1_: has joined #ruby
[06:28:52] knamehost: has joined #ruby
[06:29:23] knamehost: got a problem
[06:29:34] knamehost: i have errors on install bundle
[06:31:27] astrobunny: has joined #ruby
[06:32:36] patarr: has joined #ruby
[06:34:44] tildes: has joined #ruby
[06:34:56] milardovich: has joined #ruby
[06:36:56] dminuoso: When I have errors, it's usually because I forgot a right curly brace.
[06:37:04] dminuoso: Try that and see if it fixes your problem.
[06:39:20] knamehost: this >>> Make sure that `gem install rex-core -v '0.1.10'` succeeds before bundling.
[06:42:15] patarr: has joined #ruby
[06:48:01] dionysus69: has joined #ruby
[06:50:28] jaruga: has joined #ruby
[06:54:31] Ryzokuken: has joined #ruby
[06:56:10] Rodya_: has joined #ruby
[06:56:44] AnoHito: has joined #ruby
[06:58:17] nertzy: has joined #ruby
[07:00:33] last_staff: has joined #ruby
[07:03:19] bronson: has joined #ruby
[07:07:02] dminuoso: knamehost: It's a good thing you told us the exact error you are getting.
[07:07:08] dminuoso: Imagine we'd have to guess what went wrong.
[07:07:21] dminuoso: We'd be annoyed to the point where some wont bother to look at it, or others mock you.
[07:08:52] vondruch: has joined #ruby
[07:10:10] SteenJobs: has joined #ruby
[07:12:58] vali: has joined #ruby
[07:13:11] TomyWork: has joined #ruby
[07:16:11] knamehost: cant seem to work around it
[07:16:27] davic: has joined #ruby
[07:19:58] jackjackdripper: has joined #ruby
[07:23:49] KeyJoo: has joined #ruby
[07:27:32] bronson: has joined #ruby
[07:28:04] brent__: has joined #ruby
[07:31:44] burgestrand: has joined #ruby
[07:34:16] ur5us: has joined #ruby
[07:43:31] andikr: has joined #ruby
[07:43:59] tetsu: has joined #ruby
[07:45:20] Mia: has joined #ruby
[07:45:45] milardovich: has joined #ruby
[07:48:57] conta: has joined #ruby
[07:54:43] pabs: has joined #ruby
[07:57:31] TreyG: has joined #ruby
[07:58:08] Rodya_: has joined #ruby
[08:01:12] mikecmpbll: has joined #ruby
[08:02:15] User458764: has joined #ruby
[08:02:37] nankyokusei: has joined #ruby
[08:02:39] burgestrand: has joined #ruby
[08:02:57] Silthias1: has joined #ruby
[08:04:06] Silthias2: has joined #ruby
[08:04:23] antib: has joined #ruby
[08:06:48] dionysus69: has joined #ruby
[08:07:10] DominicBurford: has joined #ruby
[08:07:34] laekur: has joined #ruby
[08:08:03] DominicBurford: has joined #ruby
[08:08:13] facest: has joined #ruby
[08:10:21] A124: has joined #ruby
[08:10:54] Guest96: has joined #ruby
[08:14:03] dionysus69: I am setting up rails dev envrironment setup script, does anyone want to help whoever is good with bash?
[08:14:18] dionysus69: actually not dev env, production env on digital ocean
[08:17:01] knamehost: has left #ruby: ("Leaving")
[08:17:12] knamehost: has joined #ruby
[08:17:44] tomphp: has joined #ruby
[08:18:43] xall_: has joined #ruby
[08:22:20] konsolebox: has joined #ruby
[08:22:27] burgestrand: has joined #ruby
[08:23:07] pycer: has joined #ruby
[08:26:48] renchan: has joined #ruby
[08:27:06] dminuoso: dionysus69: No.
[08:27:53] minimalism: has joined #ruby
[08:29:29] Guest96: has joined #ruby
[08:30:51] marr: has joined #ruby
[08:30:57] dionysus69: dminuoso: ok ;(
[08:31:11] dminuoso: dionysus69: :D
[08:35:15] jeyraof^mbpr: has joined #ruby
[08:37:34] jenrzzz: has joined #ruby
[08:37:34] jenrzzz: has joined #ruby
[08:37:58] tvw: has joined #ruby
[08:40:40] tomphp: has joined #ruby
[08:41:05] aupadhye: has joined #ruby
[08:42:40] swistak35: has joined #ruby
[08:43:05] patarr: has joined #ruby
[08:44:58] Silox|: has joined #ruby
[08:50:34] xall_: has joined #ruby
[08:51:22] Cohedrin: has joined #ruby
[08:52:15] pytuger: has joined #ruby
[08:53:27] Beams: has joined #ruby
[08:55:09] Beams: has joined #ruby
[08:57:03] kke: >> arr = ['foo']; arr.insert('bar'); arr
[08:57:05] ruby[bot]: kke: # => ["foo"] (https://eval.in/792921)
[08:57:28] kke: i don't know why it doesn't raise or something
[08:57:44] kke: (insert should require the position argument)
[08:58:08] mim1k: has joined #ruby
[08:58:42] bsartek: has joined #ruby
[08:59:08] Rodya_: has joined #ruby
[09:00:47] aupadhye: has joined #ruby
[09:01:10] lxsameer: has joined #ruby
[09:01:52] konsolebox: kke: perhaps the internal function immediately exits when no element is passed. checking for the validity of the index is bypassed. or perhaps it is handled by another function that is only called when the index is already needed. or perhaps to be exact, it is only at that time where the real value of the (VALUE) object is interpreted.
[09:02:32] konsolebox: the error you get when you pass another argument is 'TypeError: no implicit conversion of String into Integer'
[09:04:07] kke: the source seems to do pos = NUM2LONG(argv[0]);
[09:04:07] claw: has joined #ruby
[09:05:24] pandaant: has joined #ruby
[09:05:58] kke: "If x is not a Fixnum , Float , or Bignum object, it attempts to implicit type conversion by x.to_int."
[09:06:49] dminuoso: kke: You skipped over the relevant line.
[09:06:56] dminuoso: kke: if (argc == 1) return ary;
[09:08:06] kke: i wonder why that is there
[09:08:20] kke: >> [].insert(Exception.new)
[09:08:21] dminuoso: kke: "Insert nothing at somewhere" means the same as "dont do anything"
[09:08:22] ruby[bot]: kke: # => [] (https://eval.in/792933)
[09:08:38] cfec0b8d: has joined #ruby
[09:08:44] dminuoso: So it's semantically correct to return if argc == 1
[09:08:51] kke: i think it should raise something if the first arg is bogus
[09:09:02] dminuoso: kke: Only if there's actually something to be inserted
[09:09:15] konsolebox: well ruby chose to be lazy. i have no issue with it though.
[09:09:18] dminuoso: Because if there's nothing to be inserted, it's pointless to even try and compute the index.
[09:09:30] dminuoso: This is just an optimization.
[09:09:37] kke: yep but that would have catched a syntax error in my code
[09:09:48] dminuoso: kke: Welcome to lack of strong typing.
[09:09:50] konsolebox: (and i meant programmatically lazy)
[09:09:51] tvw: has joined #ruby
[09:10:37] valkyr2e: has joined #ruby
[09:11:17] ur5us: has joined #ruby
[09:11:52] Mia: has joined #ruby
[09:11:53] Mia: has joined #ruby
[09:12:42] dminuoso: kke: Also its not a syntax error.
[09:13:31] dminuoso: It's possibly just some type error. Though it's conceivable that [].insert(Exception.new, something) could be useful.
[09:14:25] mim1k: has joined #ruby
[09:15:21] flying: has joined #ruby
[09:15:47] jsaak: has joined #ruby
[09:23:22] flying: has joined #ruby
[09:25:23] khronos: has joined #ruby
[09:29:57] mim1k: has joined #ruby
[09:32:01] dhollinger: has joined #ruby
[09:33:43] oz: has joined #ruby
[09:34:06] cfec0b8d: has joined #ruby
[09:36:27] User458764: has joined #ruby
[09:44:31] xall_: has joined #ruby
[09:45:58] blackwind_123: has joined #ruby
[09:51:16] tomphp: has joined #ruby
[09:55:29] agit0: has joined #ruby
[09:56:08] mim1k: has joined #ruby
[09:59:58] Rodya_: has joined #ruby
[10:01:27] flyingX: has joined #ruby
[10:03:01] flyingX: has joined #ruby
[10:03:28] nankyokusei: has joined #ruby
[10:06:24] flying: has joined #ruby
[10:06:48] treaki: has joined #ruby
[10:09:16] tetsu: has joined #ruby
[10:13:46] workmad3: has joined #ruby
[10:14:32] cyphase: has joined #ruby
[10:18:54] GodFather: has joined #ruby
[10:21:23] ferr: has joined #ruby
[10:23:34] flying: has joined #ruby
[10:24:13] im0nde: has joined #ruby
[10:27:27] nowhereman: has joined #ruby
[10:27:34] treaki: has joined #ruby
[10:29:33] mim1k: has joined #ruby
[10:39:38] mim1k: has joined #ruby
[10:40:41] gnufied: has joined #ruby
[10:42:59] ur5us: has joined #ruby
[10:43:59] patarr: has joined #ruby
[11:00:24] cfec0b8d: has joined #ruby
[11:00:47] Rodya_: has joined #ruby
[11:01:30] benjen: has joined #ruby
[11:06:00] cschneid_: has joined #ruby
[11:06:01] millerti: has joined #ruby
[11:09:10] Beams: has joined #ruby
[11:11:05] charliesome: has joined #ruby
[11:14:05] bsartek: has joined #ruby
[11:17:21] benjen: has joined #ruby
[11:23:30] gnufied: has joined #ruby
[11:26:03] cibs: has joined #ruby
[11:28:32] brent__: has joined #ruby
[11:28:35] houhoulis: has joined #ruby
[11:32:07] patarr: has joined #ruby
[11:32:50] KeyJoo: has joined #ruby
[11:33:18] bkxd: has joined #ruby
[11:33:54] charliesome: has joined #ruby
[11:35:12] benjen: has joined #ruby
[11:36:26] nadir: has joined #ruby
[11:38:15] ldnunes: has joined #ruby
[11:40:25] nicesignal: has joined #ruby
[11:42:45] yogg-saron: has joined #ruby
[11:42:50] cryingfreeman: has joined #ruby
[11:44:03] zmoki: has joined #ruby
[11:45:10] cryingfreeman: Hi! I have a RoR webapp that uses the DAYNAMES constant to render weekday names, in english. I would like to re-define the DAYNAMES constant in my code to ugly hack translate them into another language. I know almost nothing about Ruby, so can anyone help me with how I should do this?
[11:45:47] yogg-saron: has joined #ruby
[11:47:07] AlexRussia: has joined #ruby
[11:47:20] JeanCarloMachado: has joined #ruby
[11:49:10] yogg-saron: has joined #ruby
[11:56:18] yogg-saron: has joined #ruby
[11:57:24] dcunit3d: has joined #ruby
[12:00:30] yogg-saron: has joined #ruby
[12:00:36] dminuoso: cryingfreeman: Firstly, Rails questions are best covered in #rubyonrails
[12:00:48] dminuoso: cryingfreeman: secondly the concept you are looking for is called "internationalization", or short "18n"
[12:01:56] dminuoso: cryingfreeman: For i18n there are a multitude of gems and packages available. For rails you could look into rails-i18n.
[12:04:21] nankyokusei: has joined #ruby
[12:05:13] JeanCarloMachado: has joined #ruby
[12:07:33] Silox|: has joined #ruby
[12:08:23] spiette_: has joined #ruby
[12:09:21] konsolebox: has joined #ruby
[12:10:23] bmurt: has joined #ruby
[12:11:48] mim1k: has joined #ruby
[12:12:16] GinoMan: has joined #ruby
[12:13:20] synthroid: has joined #ruby
[12:15:47] GinoMan2440: has joined #ruby
[12:16:26] hashrocket: has joined #ruby
[12:17:51] synthroid: has joined #ruby
[12:19:05] interki: has joined #ruby
[12:23:33] xall_: has joined #ruby
[12:23:56] synthroid: has joined #ruby
[12:26:21] bmurt: has joined #ruby
[12:28:32] millerti: has joined #ruby
[12:30:13] synthroid: has joined #ruby
[12:31:45] pankaj_: has joined #ruby
[12:31:48] ledestin: has joined #ruby
[12:33:23] jenrzzz: has joined #ruby
[12:38:46] minimalism: has joined #ruby
[12:41:05] Vingador: has joined #ruby
[12:42:10] HoierM: has joined #ruby
[12:42:51] Archrover: has joined #ruby
[12:42:55] oleo: has joined #ruby
[12:47:17] cryingfreeman: dminuoso, sorry for a late reply, but thanks for your help :) I'll post the question in the right channel!
[12:47:58] dminuoso: Don't worry, we expect patience from the folks that come in here, it's only fair to be patient outselves.
[12:51:56] pratch: has joined #ruby
[12:51:58] synthroid: has joined #ruby
[12:53:08] mim1k: has joined #ruby
[12:53:54] millerti: has joined #ruby
[12:53:57] pankaj_: has joined #ruby
[12:56:46] nertzy: has joined #ruby
[12:56:59] pratch: has joined #ruby
[12:57:27] dviola: has joined #ruby
[12:57:52] yogg-saron: has joined #ruby
[12:59:45] kke: args = args.first if args.first.is_a?(Array) <-- i find myself doing a lot of something like this with methods that take splats
[12:59:53] kke: maybe i'm doing it wrong.
[13:04:21] yogg-saron: has joined #ruby
[13:05:18] ramortegui: has joined #ruby
[13:07:24] cam27: has joined #ruby
[13:07:34] ljarvis: kke: sounds like bad documentation :)
[13:08:27] bgray: has joined #ruby
[13:08:44] ljarvis: foo([1,2,3], 4) # here you'll ignore 4
[13:09:01] ljarvis: if you want args to be [1,2,3,4] there, then you want to just args.flatten(1)
[13:09:20] andrew9184: has joined #ruby
[13:09:35] ljarvis: but really you should just accept either foo([1,2,3,4]) or foo(1,2,3,4)
[13:10:19] fmcgeough: has joined #ruby
[13:10:55] canton7: yeah, the caller can splat / convert to array as necessary to match your method
[13:12:11] bmurt: has joined #ruby
[13:12:22] andrew9184: i need to do recursion with a json array, what’s the valid constructor to use in the argument? ie get_items(nextpage, jsonArray= ?)
[13:13:38] ljarvis: andrew9184: could you elaborate? in Ruby, what is your json array? is it json, or a ruby array?
[13:13:46] rodd: has joined #ruby
[13:13:54] andrew9184: it’s a faraday response. which i assume i need to parse into a json array
[13:14:20] andrew9184: it’s from a json api
[13:14:29] ljarvis: right, JSON.parse(json) is what you want, then
[13:14:40] ljarvis: faraday probably has some sort of auto-parsing, but I'm not sure
[13:14:47] rodd: I'm trying to set the value of a variable to a return from a shell command in rake, i.e.: composer = execute('which composer'), what's the right way to do this?
[13:14:55] andrew9184: hmm, but i think faraday has a middleware that attaches to response.body such that you can do response.body.to_json
[13:14:57] rodd: to the return value*
[13:15:02] ljarvis: rodd: x = `cmd`
[13:15:16] rodd: ljarvis: nice, let me try
[13:17:46] cdg: has joined #ruby
[13:18:08] jane_booty_doe: has joined #ruby
[13:18:20] rippa: has joined #ruby
[13:22:25] govg: has joined #ruby
[13:23:21] alazred: has joined #ruby
[13:23:21] alazred: has joined #ruby
[13:23:47] Rodya_: has joined #ruby
[13:25:06] rodd: has left #ruby: ()
[13:26:04] Vircung: has joined #ruby
[13:31:10] DLSteve: has joined #ruby
[13:34:17] charliesome: has joined #ruby
[13:35:03] jenrzzz: has joined #ruby
[13:36:30] chouhoulis: has joined #ruby
[13:39:07] jrafanie: has joined #ruby
[13:40:38] zmoki: has joined #ruby
[13:43:09] Hunter1_: has joined #ruby
[13:44:57] ledestin: has joined #ruby
[13:46:33] mim1k: has joined #ruby
[13:47:46] synthroid: has joined #ruby
[13:49:40] fmccann: has joined #ruby
[13:52:31] patarr: has joined #ruby
[13:54:11] cfec0b8d: has joined #ruby
[13:55:01] pankaj_: has joined #ruby
[13:58:13] segy: has joined #ruby
[14:02:37] rdw200169__: has joined #ruby
[14:03:58] dar123: has joined #ruby
[14:05:12] nankyokusei: has joined #ruby
[14:06:19] synthroid: has joined #ruby
[14:08:05] synthroid: has joined #ruby
[14:09:33] synthroid: has joined #ruby
[14:12:02] t-recx: has joined #ruby
[14:17:52] jordanm: has joined #ruby
[14:22:14] bauruine: has joined #ruby
[14:29:14] Rodya_: has joined #ruby
[14:31:07] bsartek: has joined #ruby
[14:31:28] cfec0b8d: has joined #ruby
[14:31:51] last_staff: has joined #ruby
[14:31:53] chouhoulis: has joined #ruby
[14:34:14] patr0clus: has joined #ruby
[14:35:10] oded: has joined #ruby
[14:35:29] ltem: has joined #ruby
[14:40:23] shinnya: has joined #ruby
[14:41:43] theunraveler: has joined #ruby
[14:42:08] duderonomy: has joined #ruby
[14:44:53] rakm: has joined #ruby
[14:45:53] SteenJobs: has joined #ruby
[14:53:25] thoolihan: has left #ruby: ("Leaving")
[14:55:54] chouhoulis: has joined #ruby
[14:56:43] blackwind_123: has joined #ruby
[14:59:22] jamesaxl: has joined #ruby
[15:03:49] GinoMan1423: has joined #ruby
[15:06:22] ioquatix: has joined #ruby
[15:07:33] GinoMan2440: has joined #ruby
[15:09:17] GodFather: has joined #ruby
[15:09:21] cam27: has joined #ruby
[15:11:18] bauruine: has joined #ruby
[15:13:18] GodFather: has joined #ruby
[15:14:19] nhhc: has joined #ruby
[15:14:52] hobodave: has joined #ruby
[15:15:11] ruppdog: has joined #ruby
[15:16:18] valkyrka: has joined #ruby
[15:16:41] cschneid_: has joined #ruby
[15:16:57] Beams_: has joined #ruby
[15:17:56] valkyrka: hi guys, I’m struggling with a regex and I can’t seem to get it right, I have the strings - ‘test-valkyrka-web-croncom’ and ‘test-valkyrka-web-cronuk’ what regex should I use to match cron*?
[15:20:05] valkyrka: aaaaand I found it, lol
[15:20:11] valkyrka: thanks anyway guys :)
[15:21:38] Beams: has joined #ruby
[15:22:41] unsymbol: has joined #ruby
[15:23:42] daed: valkyr2e: have you ever used rubular.com
[15:23:57] daed: valkyr2e: or even http://regexr.com/
[15:26:43] Lucky_ABA: has joined #ruby
[15:27:54] Beams_: has joined #ruby
[15:28:13] ascarter: has joined #ruby
[15:29:12] ascarter: has joined #ruby
[15:31:06] __Yiota: has joined #ruby
[15:31:06] raspado: has joined #ruby
[15:31:08] brent__: has joined #ruby
[15:31:58] mim1k: has joined #ruby
[15:32:51] cam27: has joined #ruby
[15:33:49] xall_: has joined #ruby
[15:37:13] jenrzzz: has joined #ruby
[15:38:17] dx7: has joined #ruby
[15:40:55] pratch: has joined #ruby
[15:44:07] jrafanie: has joined #ruby
[15:45:43] milardovich: has joined #ruby
[15:46:06] pratch: has joined #ruby
[15:46:22] amoeba_: has joined #ruby
[15:50:03] polishdub: has joined #ruby
[15:52:28] [Butch]: has joined #ruby
[15:54:26] amclain: has joined #ruby
[15:56:29] quobo: has joined #ruby
[16:02:33] tetsu: has joined #ruby
[16:06:54] Vingador_: has joined #ruby
[16:06:54] dar123: has joined #ruby
[16:06:56] rakm: has joined #ruby
[16:07:18] tildes: has joined #ruby
[16:10:13] Vingador: has joined #ruby
[16:10:53] mim1k: has joined #ruby
[16:13:56] TomyLobo: has joined #ruby
[16:14:09] rkazak: has joined #ruby
[16:15:49] milardovich: has joined #ruby
[16:16:49] hobodave: has joined #ruby
[16:17:47] Vingador_: has joined #ruby
[16:21:02] KeyJoo: has joined #ruby
[16:21:43] hobodave_: has joined #ruby
[16:25:35] A124: has joined #ruby
[16:26:05] jrafanie: has joined #ruby
[16:27:23] gusrub: has joined #ruby
[16:27:36] Rodya_: has joined #ruby
[16:27:38] Hunter1_: has joined #ruby
[16:30:57] GinoMan: has joined #ruby
[16:30:58] Silthias2: has left #ruby: ()
[16:32:37] burgestrand: has joined #ruby
[16:33:00] txjoe_: has joined #ruby
[16:33:48] pupsicle: has joined #ruby
[16:34:49] nitric: has joined #ruby
[16:36:19] tomphp: has joined #ruby
[16:36:27] dar123: has joined #ruby
[16:37:22] davidmichaelkarr: has joined #ruby
[16:44:46] duderonomy: has joined #ruby
[16:45:44] gothicsouth: has joined #ruby
[16:49:26] xall_: has joined #ruby
[16:50:07] dacod: has joined #ruby
[16:52:09] AndBobsYourUncle: has joined #ruby
[16:52:34] patarr: Hello - why does an error thrown when I do enumerator.next only have a one line stack trace? I have no idea where to start debugging this issue
[16:53:00] dar123: has joined #ruby
[16:58:02] tomphp: has joined #ruby
[16:58:09] xco: has joined #ruby
[16:58:47] AlexRussia: has joined #ruby
[16:58:52] xco: can someone point me in reject some string from an array. think i forgot something. i’m getting “Undefind method `reject` for "three":String” in this https://gist.github.com/siaw23/0275d3d54c1edeaf1c01f0083f57fe09
[16:59:02] xco: trying to get only items that match “search”
[17:00:34] baweaver: y'mean regex?
[17:02:35] vuoto: has joined #ruby
[17:04:31] baweaver: besides that's an odd way to do this
[17:04:35] vali: has joined #ruby
[17:04:40] baweaver: What does list.each do?
[17:05:38] xenops: has joined #ruby
[17:05:57] baweaver: What does list.reject do?
[17:06:24] baweaver: Make sure to look up their documentation as well
[17:06:32] baweaver: &ri Enumerable#reject
[17:06:33] `derpy: http://ruby-doc.org/core-2.4.1/Enumerable.html#method-i-reject
[17:06:38] baweaver: &ri Array#each
[17:06:38] `derpy: http://ruby-doc.org/core-2.4.1/Array.html#method-i-each
[17:07:26] xco: baweaver: ah i change the method…
[17:07:39] baweaver: patarr: stack trace?
[17:08:29] Cohedrin: has joined #ruby
[17:08:54] al2o3-cr: xco: i think you want Enumerable#select
[17:10:11] xco: al2o3-cr: riiiiiight! just wrote this complicated less elegant one :( https://gist.github.com/siaw23/0275d3d54c1edeaf1c01f0083f57fe09 but work. but #select is what i wanted
[17:10:33] xco: baweaver: i meant regex too. haven’t had sleep in 48hrs :/
[17:10:36] ljarvis: it = list.each # dont do this
[17:10:53] xco: baweaver: what should i do instead?
[17:11:04] ljarvis: it's confusion, because .each returns the list anyway, so you're just doing `it = list`
[17:11:08] ljarvis: confusing*
[17:11:18] xco: ljarvis: what should i do instead? what’s a good practice?
[17:11:23] baweaver: well, find is the wrong term
[17:11:32] baweaver: you're finding all elements
[17:11:34] baweaver: instead of one
[17:11:57] baweaver: list.find { |(name, value)| name == search }
[17:12:06] ljarvis: list.select { |item| item[0] == search }
[17:12:09] baweaver: parens allow for list deconstruction in params
[17:12:18] baweaver: find gets one item
[17:12:23] baweaver: select gets all
[17:12:33] baweaver: find returns nil if it fails, select an empty array
[17:12:34] al2o3-cr: baweaver: you don't need parens
[17:12:46] baweaver: ACTION goes to try
[17:12:55] _DanN_: has joined #ruby
[17:13:17] Hunter1_: has joined #ruby
[17:13:23] baweaver: Well I'll be
[17:13:28] baweaver: wonder where I got that idea
[17:13:41] ljarvis: it kinda makes sense that you'd think that
[17:14:55] xco: baweaver: wait… where did #find come from?
[17:15:05] ljarvis: &ri Array.find
[17:15:05] `derpy: http://ruby-doc.org/core-2.4.1/Enumerable.html#method-i-find
[17:15:09] baweaver: your method is named find
[17:15:20] baweaver: which I saw as counterintuitive in Ruby
[17:15:24] baweaver: so I mentioned it
[17:15:51] xco: baweaver: ok. i didn’t know about #find. never saw it in the documentation
[17:16:04] xco: is it new?
[17:16:34] xco: it’s not in the documentation. awesome :D
[17:16:53] baweaver: ACTION points at the above derpy link
[17:16:58] baweaver: that kinda looks like documentation
[17:17:13] milardovich: has joined #ruby
[17:18:06] xco: baweaver: i know. i saw that link. but it’s not here: https://ruby-doc.org/core-2.4.0/Array.html
[17:18:16] ljarvis: that's because it's no an Array method
[17:18:26] xco: enumerable
[17:18:26] baweaver: Enumerable is where most of those live
[17:18:27] xco: got that
[17:18:29] baweaver: read over it
[17:18:30] ljarvis: there's lot of stuff that can be used on Array that's inside Enumerable
[17:18:35] ljarvis: best to glance over that
[17:18:36] baweaver: definitely worth a few looks over
[17:18:42] xco: baweaver: yeap…
[17:18:44] baweaver: it's probably one of my most read documentation sections
[17:18:49] ljarvis: because it can be used on Hash also
[17:19:05] baweaver: and any other collection that implements it
[17:19:05] ljarvis: and other stuff (e.g. your own custom classes can include Enumerable and merely implement #each)
[17:19:09] milardovich: has joined #ruby
[17:21:41] milardov_: has joined #ruby
[17:26:46] khronos: has joined #ruby
[17:27:47] ascarter: has joined #ruby
[17:28:21] jenrzzz: has joined #ruby
[17:28:21] jenrzzz: has joined #ruby
[17:29:37] Rodya_: has joined #ruby
[17:39:45] anisha: has joined #ruby
[17:41:40] Dimik: has joined #ruby
[17:44:07] rdackam: has joined #ruby
[17:46:34] oleo: has joined #ruby
[17:52:08] andrew9184: has joined #ruby
[17:55:25] tomphp: has joined #ruby
[17:56:04] evenix: Would it be a good thing to use a class variable to store an Object that will be accessible to every subclass; but where the value might need to be updated when the parent context changes?
[18:00:14] dcunit3d: has joined #ruby
[18:01:15] quiller: has joined #ruby
[18:03:54] PatrikasZvaigzde: has joined #ruby
[18:08:09] khronos: has joined #ruby
[18:08:16] brent__: has joined #ruby
[18:08:35] anomaly: has joined #ruby
[18:08:45] haylon: has joined #ruby
[18:12:41] mostlybadfly: has joined #ruby
[18:14:57] VladGh: has joined #ruby
[18:20:40] Renich: has joined #ruby
[18:20:53] bmurt: has joined #ruby
[18:21:39] workmad3: has joined #ruby
[18:23:25] khronos: has joined #ruby
[18:24:54] anomaly: using books like The well grounded Rubyist and Ruby from Beginner to Professional cite 1.8/9. will that translate with current Ruby or best to find another book?
[18:26:20] matthewd: I'd say 1.9 should be near enough, with a few missing features; 1.8 you're more likely to see things that are actively different
[18:26:52] anomaly: thank you.
[18:33:30] VladGh: has joined #ruby
[18:33:34] ascarter: has joined #ruby
[18:34:08] haylon: has joined #ruby
[18:36:04] ledestin: has joined #ruby
[18:45:09] gothicsouth: has joined #ruby
[18:48:08] hobodave: has joined #ruby
[18:49:30] bmurt: has joined #ruby
[18:53:58] jrafanie: has joined #ruby
[18:56:04] bkxd: has joined #ruby
[18:57:12] lxsameer: has joined #ruby
[19:00:56] ascarter: has joined #ruby
[19:04:57] jenrzzz: has joined #ruby
[19:04:57] jenrzzz: has joined #ruby
[19:05:01] haylon: has joined #ruby
[19:07:07] mikecmpbll: has joined #ruby
[19:07:41] patr0clus: has joined #ruby
[19:08:35] milardovich: has joined #ruby
[19:08:46] Lucky_ABA: has joined #ruby
[19:10:12] __Yiota: has joined #ruby
[19:13:00] hobodave: has joined #ruby
[19:15:00] dionysus69: has joined #ruby
[19:16:12] jackjackdripper: has joined #ruby
[19:25:52] tetsu_: has joined #ruby
[19:27:42] baweaver: anomaly: see the channel topic
[19:27:44] mim1k: has joined #ruby
[19:27:47] baweaver: we hid a booklist up there
[19:28:33] haylon: has joined #ruby
[19:28:59] webopsx: has joined #ruby
[19:29:04] anomaly: baweaver, I had seen it yes. problem was the books I could have at hand were using 1.8/9 which prompted my question.
[19:29:39] baweaver: fair fair, figured I'd mention it
[19:31:10] Rodya_: has joined #ruby
[19:34:46] sspreitz: has joined #ruby
[19:41:04] Rodya_: has joined #ruby
[19:41:14] Hunter1_: has joined #ruby
[19:41:42] ahrs: has joined #ruby
[19:42:24] cryingfreeman: has joined #ruby
[19:43:35] BTRE: has joined #ruby
[19:45:47] Xiti: has joined #ruby
[19:49:13] JeanCarloMachado: has joined #ruby
[19:52:05] anomaly: baweaver, kind of you to do so. thank you.
[19:59:12] haylon: has joined #ruby
[20:07:27] gothicsouth: has joined #ruby
[20:09:04] dar123: has joined #ruby
[20:13:42] enterprisey: has joined #ruby
[20:15:40] cdg: has joined #ruby
[20:20:04] pupsicle: has joined #ruby
[20:20:44] d5sx43: has joined #ruby
[20:23:40] workmad3: has joined #ruby
[20:25:21] xdexter: has joined #ruby
[20:26:33] xdexter: Hello, i'm trying use a script to download a log file with aws api but i have a error when i run, https://pastebin.com/4VWEXgQk, someone can help me please?
[20:26:33] ruby[bot]: xdexter: as I told you already, please use https://gist.github.com
[20:26:46] jaruga: has joined #ruby
[20:27:04] xdexter: https://gist.github.com/anonymous/71e88b40546f8a19ec20fc8c8e371d06
[20:29:52] nobodyzxc: has joined #ruby
[20:30:17] tvw: has joined #ruby
[20:35:50] preyalone: has joined #ruby
[20:37:51] Jamdaman: has joined #ruby
[20:43:14] ascarter: has joined #ruby
[20:48:17] jusa: has joined #ruby
[20:51:12] JeanCarloMachado: has joined #ruby
[20:54:38] xdexter: Hello, i'm trying use a script to download a log file with aws api but i have a error when i run, https://gist.github.com/anonymous/71e88b40546f8a19ec20fc8c8e371d06, someone can help me please?
[20:55:53] khronos: has joined #ruby
[21:01:37] enterprisey: has joined #ruby
[21:05:59] gusrub: has joined #ruby
[21:07:43] Cohedrin: has joined #ruby
[21:07:58] dar123: has joined #ruby
[21:15:29] Ishido: has joined #ruby
[21:26:13] dmtd: has joined #ruby
[21:26:43] al2o3-cr: has joined #ruby
[21:27:51] mim1k: has joined #ruby
[21:31:31] ascarter: has joined #ruby
[21:33:38] workmad3: has joined #ruby
[21:36:29] gusrub: has joined #ruby
[21:42:39] Rodya_: has joined #ruby
[21:42:41] HoierM: has joined #ruby
[21:42:42] jenrzzz: has joined #ruby
[21:42:43] jenrzzz: has joined #ruby
[21:43:04] gnufied: has joined #ruby
[21:43:44] gusrub: has joined #ruby
[21:44:05] gusrub: has joined #ruby
[21:45:47] Ishido: has joined #ruby
[21:46:14] Pierreb: trying to fetch info from db and want to use in a array and print parts of it, anyone know how to do it? https://paste.linux.community/view/a3b545dc
[21:46:23] postmodern: has joined #ruby
[21:47:16] workmad3: has joined #ruby
[21:49:47] rkazak: has joined #ruby
[21:57:27] d5sx43: has joined #ruby
[22:06:29] dtzuzu: has joined #ruby
[22:06:34] GodFather: has joined #ruby
[22:09:40] gusrub: has joined #ruby
[22:18:17] GinoMan: has joined #ruby
[22:19:25] enterprisey: has joined #ruby
[22:21:31] gusrub: has joined #ruby
[22:29:52] cschneid_: has joined #ruby
[22:33:13] bkxd: has joined #ruby
[22:35:08] pb122: has joined #ruby
[22:35:21] volty: has joined #ruby
[22:43:25] Rodya_: has joined #ruby
[22:45:32] Irina6161: has joined #ruby
[22:48:37] __Yiota: has joined #ruby
[22:49:09] jusa: has joined #ruby
[22:57:06] zenspider: Pierreb: so make them arrays?
[22:57:30] gusrub: has joined #ruby
[22:59:13] zenspider: how would you want this (=~ vs ===) to work? https://gist.github.com/zenspider/db8c3e98815371748036c4ea2585cf0c
[22:59:22] bronson: has joined #ruby
[22:59:34] zenspider: baweaver: ^^ (and anyone else)
[23:01:23] fmcgeough: has joined #ruby
[23:02:16] alveric1: has joined #ruby
[23:08:26] zenspider: xco: if you look at the sidebar on the Array doco there is a section for "Included Modules"... Always poke at those.
[23:10:28] Archrover: has joined #ruby
[23:14:41] nowhereman: has joined #ruby
[23:17:14] oleo: has joined #ruby
[23:18:45] horus_: has joined #ruby
[23:19:31] snockerton: has joined #ruby
[23:20:38] PaulCape_: has joined #ruby
[23:21:30] Cohedrin: has joined #ruby
[23:27:19] horus_: has left #ruby: ("Leaving")
[23:27:31] ascarter: has joined #ruby
[23:28:20] mim1k: has joined #ruby
[23:29:49] jhack: has joined #ruby
[23:29:50] jhack: has joined #ruby
[23:30:02] assembledbits: has joined #ruby
[23:30:46] assembledbits: Can someone help me refactor this? https://gist.github.com/j0ntsang/1871e29cef04cb246a7bf7fce5918dcc
[23:30:49] assembledbits: I am new to ruby
[23:32:13] dar123: has joined #ruby
[23:35:30] gothicsouth: has joined #ruby
[23:38:04] im0nde: has joined #ruby
[23:41:04] ascarter: has joined #ruby
[23:41:15] shinnya: has joined #ruby
[23:42:06] gnufied: has joined #ruby
[23:46:04] Rodya_: has joined #ruby
[23:49:26] Cohedrin: has joined #ruby
[23:49:59] coderphive: has joined #ruby
[23:51:49] BubonicPestilenc: has joined #ruby
[23:52:09] charliesome: has joined #ruby
[23:59:13] bronson: has joined #ruby
[23:59:52] Cohedrin: has joined #ruby