« Back to channel list

#ruby - 19 July 2017

« Back 1 day Forward 1 day »
[00:00:47] gusrub: has joined #ruby
[00:00:52] cagomez: has joined #ruby
[00:01:06] cagomez_: has joined #ruby
[00:03:02] hutch34: has joined #ruby
[00:10:52] cdg: has joined #ruby
[00:11:15] cam27: has joined #ruby
[00:12:45] __Yiota: has joined #ruby
[00:13:07] j0bk: has joined #ruby
[00:15:53] landon`: has joined #ruby
[00:16:18] anon: has left #ruby: ()
[00:16:52] Dimik: has joined #ruby
[00:20:55] BSaboia: has joined #ruby
[00:21:51] jdawgaz: has joined #ruby
[00:24:03] jdawgaz: has joined #ruby
[00:30:51] ansraliant: has joined #ruby
[00:30:51] ansraliant: has joined #ruby
[00:34:50] hahuang65: has joined #ruby
[00:35:02] jdawgaz: has joined #ruby
[00:37:50] bruno-: has joined #ruby
[00:39:40] impermanence: has joined #ruby
[00:42:09] eightlimbed: has joined #ruby
[00:45:07] minimalism: has joined #ruby
[00:52:10] umaaji: has joined #ruby
[00:52:39] hotpancakes: has joined #ruby
[00:54:53] charliesome: has joined #ruby
[00:58:01] hutch34: has joined #ruby
[01:03:18] Tau: has joined #ruby
[01:03:28] milardovich: has joined #ruby
[01:04:07] mim1k: has joined #ruby
[01:06:02] eljimmy: has joined #ruby
[01:06:06] rundor: has joined #ruby
[01:12:05] rfoust: has joined #ruby
[01:12:58] patarr: has joined #ruby
[01:13:19] Tau: has joined #ruby
[01:14:01] jdawgaz: has joined #ruby
[01:16:17] oaisud: has joined #ruby
[01:16:36] ascarter: has joined #ruby
[01:27:12] uZiel: has joined #ruby
[01:28:44] BSAlb: has joined #ruby
[01:31:22] gizmore|2: has joined #ruby
[01:32:10] aaa: has joined #ruby
[01:35:34] hahuang65: has joined #ruby
[01:37:01] aphprentice: has joined #ruby
[01:42:56] oaisud: has joined #ruby
[01:43:38] ecuanaso: has joined #ruby
[01:46:26] d^sh_: has joined #ruby
[01:50:18] lacuna: has joined #ruby
[01:53:20] hotpanca_: has joined #ruby
[01:55:52] jdawgaz: has joined #ruby
[01:56:28] bronson: has joined #ruby
[01:58:47] uZiel: has joined #ruby
[01:59:54] nacho: has joined #ruby
[02:00:35] nacho: has left #ruby: ("WeeChat 1.9")
[02:00:53] astrobunny: has joined #ruby
[02:03:10] shiranuidong: has joined #ruby
[02:05:38] jdawgaz: has joined #ruby
[02:06:02] ecuanaso: has joined #ruby
[02:06:08] zssshhh: has joined #ruby
[02:11:21] ElFerna: has joined #ruby
[02:14:21] cdg: has joined #ruby
[02:19:05] hotpancakes: has joined #ruby
[02:26:07] Raboo: has joined #ruby
[02:27:03] hotpancakes: has joined #ruby
[02:28:30] astrobunny: has joined #ruby
[02:29:50] zssshhh: has joined #ruby
[02:31:44] mwlang: has joined #ruby
[02:32:05] enterprisey: has joined #ruby
[02:33:57] rundor: has joined #ruby
[02:36:29] enterprisey: has joined #ruby
[02:36:33] hahuang65: has joined #ruby
[02:41:10] rundor: has joined #ruby
[02:41:50] hotpanca_: has joined #ruby
[02:44:08] s2013: has joined #ruby
[02:44:29] uZiel: has joined #ruby
[02:50:51] Jameser: has joined #ruby
[02:52:02] gothicsouth: has joined #ruby
[02:52:19] digitalnomad: has joined #ruby
[02:53:45] Jameser: has joined #ruby
[03:03:42] s2013: has joined #ruby
[03:04:40] mim1k: has joined #ruby
[03:08:45] SteenJobs: has joined #ruby
[03:11:05] astrobunny: has joined #ruby
[03:14:49] jdawgaz: has joined #ruby
[03:16:53] Curting: has joined #ruby
[03:17:21] sarmiena_: has joined #ruby
[03:18:36] kies: has joined #ruby
[03:18:47] Curting: Hello! I need help to my Ruby code found here: https://gist.github.com/Curting/22a98316598492010f993ddc4e24e3f6
[03:19:20] havenwood: Curting: What seems to be the problem? Just general refactor or a specific issue?
[03:19:22] phinxy: has joined #ruby
[03:19:33] phinxy: has joined #ruby
[03:20:30] Curting: havenwood Sorry I didn't clarify. I just updated the link with the challenge description.
[03:21:36] Curting: havenwood: My issue is that when my orange tree is @age == 3, it should have @orangeCount == 5. But no matter the @age, it has @orangeCount == 0
[03:25:13] jackjackdripper: has joined #ruby
[03:26:16] jackjackdripper: has joined #ruby
[03:31:49] Curting: Any help would really be appreciated! :)
[03:32:33] zssshhh: has left #ruby: ()
[03:34:47] hotpancakes: has joined #ruby
[03:34:49] __Yiota: has joined #ruby
[03:34:54] Curting: I'll go to bed. Have a nice evening everyone! :-)
[03:36:00] Radar: Cur... is ogne.
[03:36:06] Radar: Anyway, probably not calling oneYearPasses is the problem there.
[03:36:19] Radar: alsoWhatIsWithThisNamingConvention
[03:37:28] Radar: actually case should be an if / elsif
[03:39:37] jackjackdripper1: has joined #ruby
[03:49:46] gix: has joined #ruby
[03:57:22] bronson: has joined #ruby
[04:01:10] jdawgaz: has joined #ruby
[04:03:31] mim1k: has joined #ruby
[04:05:01] sarmiena_: has joined #ruby
[04:07:56] hotpancakes: has joined #ruby
[04:08:51] charliesome: has joined #ruby
[04:11:01] charliesome: has joined #ruby
[04:12:01] heinrich5991: has joined #ruby
[04:14:45] hotpancakes: has joined #ruby
[04:20:49] eightlimbed: has joined #ruby
[04:24:05] jtd: has joined #ruby
[04:25:38] hutch34: has joined #ruby
[04:31:19] rundor: has joined #ruby
[04:33:10] AndyNam: has joined #ruby
[04:33:31] MrBismuth: has joined #ruby
[04:35:05] Tau: has joined #ruby
[04:37:25] hahuang65: has joined #ruby
[04:37:31] AndyNam: has left #ruby: ()
[04:39:53] coenraad: has joined #ruby
[04:41:12] smulverine: has joined #ruby
[04:50:05] jenrzzz: has joined #ruby
[04:50:05] jenrzzz: has joined #ruby
[04:50:25] patrontechnosoft: has joined #ruby
[04:51:49] znz_jp: has joined #ruby
[04:52:13] charliesome: has joined #ruby
[04:52:30] gothicsouth: has joined #ruby
[04:52:34] milardovich: has joined #ruby
[04:55:18] hotpancakes: has joined #ruby
[04:56:25] govg_: has joined #ruby
[04:58:04] impermanence: has joined #ruby
[05:00:10] rundor: has joined #ruby
[05:02:25] charliesome: has joined #ruby
[05:04:54] tunaBee_: has joined #ruby
[05:05:45] brent__: has joined #ruby
[05:08:01] Bock: has joined #ruby
[05:08:41] enterprisey: has joined #ruby
[05:10:52] jphase: has joined #ruby
[05:20:52] moei: has joined #ruby
[05:21:19] empty_cup: has joined #ruby
[05:27:13] _whitelogger: has joined #ruby
[05:27:40] phate408: has joined #ruby
[05:28:11] enterprisey: has joined #ruby
[05:32:25] hotpancakes: has joined #ruby
[05:40:17] charliesome: has joined #ruby
[05:40:24] uZiel: has joined #ruby
[05:40:58] hays: has joined #ruby
[05:40:58] hays: has joined #ruby
[05:41:35] anisha: has joined #ruby
[05:42:12] aufi: has joined #ruby
[05:42:47] morfin: dminuoso, i assume clang allowed such UB before
[05:43:09] morfin: but i think 4.0 can break stuff :)
[05:45:32] armyriad: has joined #ruby
[05:47:49] leah2: has joined #ruby
[05:56:25] armyriad: has joined #ruby
[05:59:05] hightower2: has joined #ruby
[06:00:20] renchan: has joined #ruby
[06:14:57] morfin60: has joined #ruby
[06:18:27] djbkd: has joined #ruby
[06:25:19] hotpancakes: has joined #ruby
[06:25:39] jenrzzz: has joined #ruby
[06:32:21] nofxxx: has joined #ruby
[06:33:58] anisha: has joined #ruby
[06:36:04] Jameser: has joined #ruby
[06:36:11] Puffball_: has joined #ruby
[06:36:59] Hunter1: has joined #ruby
[06:37:23] roshanavand: has joined #ruby
[06:38:13] hahuang65: has joined #ruby
[06:43:42] andikr: has joined #ruby
[06:53:23] dminuoso: morfin60: What?
[06:54:21] dminuoso: morfin60: There's no defined semantics of UB. "it works" is only based on your expectation.
[06:56:03] dminuoso: morfin60: So did you run it through valgrind with a clang or pre-7.1 build?
[06:56:05] ayonkhan: has joined #ruby
[06:56:23] dminuoso: morfin60: Oh you did actually. File a bug report.
[06:57:32] Puffball: has joined #ruby
[06:59:47] bronson: has joined #ruby
[07:02:34] TomyWork: has joined #ruby
[07:06:29] coenraad: has joined #ruby
[07:08:04] Seenox: has joined #ruby
[07:18:54] Hunter1: has joined #ruby
[07:19:59] Tau: has joined #ruby
[07:21:51] aglorei: has joined #ruby
[07:22:31] mark_66: has joined #ruby
[07:26:37] hotpancakes: has joined #ruby
[07:26:59] sarbs: has joined #ruby
[07:32:17] agent_white: has joined #ruby
[07:37:21] hutch34: has joined #ruby
[07:39:41] pandaant: has joined #ruby
[07:42:55] Silthias1: has joined #ruby
[07:43:39] vondruch_: has joined #ruby
[07:44:08] bambanx: has joined #ruby
[07:44:54] vondruch_: has joined #ruby
[07:45:16] judofyr: has joined #ruby
[07:45:30] Silthias: has joined #ruby
[07:45:41] antgel: has joined #ruby
[07:51:14] vondruch: has joined #ruby
[07:56:12] nhhc_: has joined #ruby
[07:56:12] nhhc: has joined #ruby
[07:57:23] spider-mario: has joined #ruby
[08:00:20] bronson: has joined #ruby
[08:00:37] Jameser: has joined #ruby
[08:01:22] ur5us: has joined #ruby
[08:04:44] dionysus69: has joined #ruby
[08:04:52] InfinityFye: has joined #ruby
[08:09:46] mikecmpbll: has joined #ruby
[08:12:12] coenraad: has joined #ruby
[08:15:37] romankapitonov: has joined #ruby
[08:15:38] umaaji: has joined #ruby
[08:18:54] sysvalve: has joined #ruby
[08:19:31] alex``: is there a functional version of #tap?
[08:20:20] judofyr: alex``: what's the use case?
[08:20:41] marens: has joined #ruby
[08:20:46] judofyr: does it make a difference whether it's foo.tap { } or tap(foo) { } ?
[08:21:44] judofyr: hmm. maybe combined with Symbol#to_proc
[08:22:06] alex``: I want chain the methods
[08:22:12] alex``: https://github.com/alexherbo2/gist/blob/master/object.as.rb
[08:22:38] alex``: I do something like that, I would know if there is something built-in around
[08:22:44] dminuoso: alex``: What exactly is the point of a functional version of tap?
[08:22:45] judofyr: that's not tap though. tap returns `self`
[08:23:41] alex``: I want only one result without other assignments
[08:23:48] vuoto: has joined #ruby
[08:23:53] matthewd: alex``: https://bogdanvlviv.github.io/posts/ruby/new-method-kernel-yield_self-since-ruby-2_5_0.html
[08:24:25] alex``: last = document.search('.pager-last a')[0]['href'].as { <get-index-of-href-link> }
[08:24:31] alex``: with no as:
[08:24:50] alex``: last-page = document.search('.pager-last a')[0]['href']
[08:25:02] judofyr: matthewd: hah. that's very aptly named
[08:25:12] elomatreb: matthewd: Am I correct in seeing that as a map for single objects/non-enumerables? That sounds really nice
[08:25:18] alex``: last-page-index = <get-index-of> last-page
[08:25:26] ljarvis: talking about a functional version of tap is misleading, matthewd mentioned what you want in that link
[08:25:46] ljarvis: (nothing exists in current ruby versions though)
[08:25:51] alex``: I’m just caring about the number in the link
[08:26:05] judofyr: haven't been following ruby-core for years. any other new things I've missed?
[08:26:05] alex``: I need to get the last page index
[08:26:22] ljarvis: judofyr: probably 10391 more aliases
[08:26:34] judofyr: "Added by alexeymuranov (Alexey Muranov) about 5 years ago". wow it's actually a really old issue
[08:26:35] ljarvis: still: GIL
[08:27:04] judofyr: I see tenderlove is doing some GC work?
[08:27:06] matthewd: While "functional" and "inscrutable" can definitely overlap, they don't actually *have* to mean the same thing. I'd just use a variable. ¯\_(ツ)_/¯
[08:27:16] hoangtg: has joined #ruby
[08:27:18] Terens: has joined #ruby
[08:27:19] morfin60: i think i should try debug that bad code
[08:29:01] alex``: ljarvis: yield self :OOO
[08:29:13] Terens: If you have a class and at some point X thing happens. So it calls after_X_happened method.
[08:29:46] Terens: Like a callback. I have an argument that this is bad because after_X_happened doesnt describe what actually happens
[08:30:34] elomatreb: Personally I'd leave the _happened off, but that's just taste
[08:30:38] ljarvis: after_X_happened should call methods that are more descriptive about what's happening
[08:30:58] ljarvis: but hooks are a thing and it's fine
[08:31:21] elomatreb: Normally you pass an object to a handler that gives more detailed informations about the event, if necessary
[08:31:59] judofyr: if I'm in full control of the class and don't expect any subclass shenanigans I would probably drop the hook-method and invoke properly named methods directly
[08:32:04] ledestin: has joined #ruby
[08:32:24] judofyr: once you have inheritance/composition in the picture it can be quite useful to have generic hook methods
[08:32:38] aupadhye: has joined #ruby
[08:35:25] judofyr: but hey, once you have inheritance in the picture everything is a mess anyway :)
[08:39:07] hahuang65: has joined #ruby
[08:40:41] judofyr: okay. I need help naming something.
[08:40:45] judofyr: it's like a function
[08:40:47] judofyr: you can call it
[08:40:57] judofyr: but it always creates an object
[08:41:03] judofyr: so "constructor" kinda makes sense
[08:41:14] judofyr: but "constructor" is already taken
[08:41:17] elomatreb: Like a factory?
[08:41:50] judofyr: (this is a language where objects are not everything. so there is a point that this constructs an *object*)
[08:42:15] judofyr: yeah, I haven't thought about that point of view
[08:42:52] hotpancakes: has joined #ruby
[08:43:47] Beams: has joined #ruby
[08:45:11] Bish: generator?
[08:46:16] mim1k: has joined #ruby
[08:57:05] lxsameer: has joined #ruby
[08:59:34] impermanence: has joined #ruby
[09:00:43] jdawgaz: has joined #ruby
[09:01:10] bronson: has joined #ruby
[09:10:51] Siyfion: has joined #ruby
[09:12:29] mfaeh: has joined #ruby
[09:15:04] camilasan: has joined #ruby
[09:16:35] z0mbee: has joined #ruby
[09:19:03] marr: has joined #ruby
[09:23:57] coenraad: has joined #ruby
[09:30:10] judofyr: has joined #ruby
[09:31:47] eightlimbed: has joined #ruby
[09:35:39] Bish: what is a good way to spread/execute code over files
[09:35:49] Bish: i wrote something that comes close to a cronjob handler
[09:35:59] Bish: and i want my rules seperate in files
[09:36:07] Bish: code inside the file should look like
[09:36:28] Bish: with_interval(:often) { puts "something" }
[09:36:41] Bish: now, do i wrap that stuff in a method&module?
[09:37:08] Bish: do i put each of these rules in one big ass module and call all its methods?
[09:37:13] judofyr: has joined #ruby
[09:38:15] Bish: cool would be something like eval but in not dirty ;;
[09:38:23] elomatreb: I'd put them in seperate files in a subdirectory if they're at least a little more comlicated
[09:38:34] elomatreb: With a method on your class/module that registers a task
[09:38:34] Bish: sure, i did that
[09:38:46] Bish: thats the issue im having
[09:38:52] Bish: right not the whole files only consists of the rules
[09:38:57] Bish: i could File.read and eval them
[09:39:01] Bish: which would be essentially what i want
[09:39:07] Bish: but doesnt feel right
[09:39:30] Bish: so i would wrap them in a method, inside a module, and call this methods
[09:40:20] dminuoso: If only Ruby has a functional package/module system...
[09:40:41] dminuoso: require is just misnamed eval_once...
[09:41:13] stamina: has joined #ruby
[09:41:33] dminuoso: matthewd: Oh. Yeah.
[09:41:51] judofyr: a proper module system would be amazing
[09:42:10] judofyr: not sure if it's possible to bolt on top
[09:42:27] dminuoso: bolting things ontop is what ruby developers have become exceedingly good at.
[09:43:17] judofyr: I find it interesting that because JS is so limited, they have ended up with a great compiler/transpiler ecosystem
[09:43:37] dminuoso: judofyr: Actually the way that JS modules work would be patched into Ruby with ease.
[09:43:48] someuser: has joined #ruby
[09:43:59] dminuoso: Well. actually no.
[09:44:08] dminuoso: Stupid global namespace of Ruby. :(
[09:44:24] judofyr: well, couldn't you still introduce `export class Foo` ?
[09:45:04] elomatreb: I bet you could do some really funky hackery with const_missing to achieve that
[09:45:17] matthewd: dminuoso: I think it could -- just use locals instead of constants
[09:45:38] judofyr: matthewd: but locals don't cross method definitions
[09:46:31] Bish: so, i basicially have it to like that?
[09:46:36] matthewd: Ah, yeah.. so you'd have to go all-in on define_method etc
[09:46:41] Bish: since ruby doesnt have a great module system
[09:47:51] matthewd: Bish: I don't think you actually want a module system here... I think you want to do read+instance_eval, using separate instances of some appropriate class for each file
[09:48:08] elomatreb: Bish: You may want to take a look at how Rake implements its support for task directories
[09:48:38] tvw: has joined #ruby
[09:49:58] Bish: bleh that shit depresses me
[09:51:06] eightlimbed: has joined #ruby
[09:52:35] eightlimbed: has joined #ruby
[09:53:31] Serpent7776: has joined #ruby
[09:53:50] judofyr: heh. well. this works: https://gist.github.com/judofyr/0c9f4067f00622d6bd942142191d2b87
[09:54:19] hotpancakes: has joined #ruby
[09:54:26] dionysus69: has joined #ruby
[09:54:47] nowhere_man: has joined #ruby
[09:55:00] workmad3: has joined #ruby
[09:57:00] ych: has joined #ruby
[09:57:00] f1ro: has joined #ruby
[09:57:28] judofyr: the JS ecosystem has the advantage of compiling it down so that it doesn't have any runtime dependencie
[09:58:05] Bish: self.instance_eval(&module.method(:run))
[09:58:13] Bish: that sounds about right ;;
[09:58:35] dminuoso: judofyr: The issue is that it's more object oriented. When you define a class in Ruby it directly infests global namespace.
[09:58:47] Guest30859: hi, i'm tryign to upload to s3 with aws-ruby-sdk, it fails after 12hours (almost exactly) i tried to look for a configuration parameter of timeout or anything but couldn't find any. anybody familliar?
[09:58:58] judofyr: dminuoso: not in the gist I posted?
[09:59:36] judofyr: 12 hours? you sure are patient…
[09:59:45] dminuoso: judofyr: And what if the module monkey patches String?
[09:59:56] dminuoso: by using `class String; def magic; end; end`
[10:00:15] elomatreb: Can't you do something similar in JS (at least in browser context) if you fiddle with e.g. window?
[10:00:22] nowhere_man: has joined #ruby
[10:00:43] judofyr: dminuoso: yeah, then you can do that. it's similar in Node/JS as well
[10:00:58] dminuoso: judofyr: You can, that's what `import "foo"` is for.
[10:01:12] dminuoso: judofyr: importing just for the sake of side-effects, as bad as it sounds like.
[10:01:27] Bish: ACTION always writes get_const instead of const_get
[10:01:31] dminuoso: Though in reality it's used for things like custom loaders in webpack
[10:01:54] Rodya_: has joined #ruby
[10:02:05] judofyr: dminuoso: I don't quite understand your point? the idea here is that plain classes can live in their own namespace. you are still free to monkey-patch if you'd like
[10:02:21] bronson: has joined #ruby
[10:02:53] Bish: ? does instance_eval emit a parameter?
[10:03:23] dminuoso: emit a parameter?
[10:03:48] judofyr: Bish: yeah, it yields self
[10:04:02] dminuoso: Bish: *pass an argument
[10:04:22] Bish: pass argument sounds syntaktik to me
[10:05:19] Bish: while parameter in runtime would be sent?
[10:05:27] Bish: i dont know if that makes sense
[10:05:33] dminuoso: Bish: argument is what you pass, parameter is the variable arguments are put in.
[10:05:46] dminuoso: foo(1) // 1 is the argument
[10:05:52] dminuoso: def foo(arg) // arg is the parameter
[10:06:07] Bish: okey, thanks
[10:06:19] sarbs: has joined #ruby
[10:06:22] elomatreb: Great stuff to be pedantic about, friends/coworkers will love you
[10:06:24] eightlimbed: has joined #ruby
[10:06:38] dminuoso: I dont have friends.
[10:06:42] Bish: neither i do
[10:07:01] judofyr: elomatreb: that's quite a good argument
[10:07:02] jackjackdripper: has joined #ruby
[10:07:16] Bish: but my instance_eval does not work :(, could it be because the method is bound?
[10:07:26] Bish: it seems like the "self" of the method does not get changed
[10:07:52] Bish: well, what do i do?
[10:08:01] dminuoso: Well either way. JavaScript has ended up with quite an elegant module system that is fairly controllable.
[10:08:06] dminuoso: I'm jealous.
[10:08:36] matthewd: Bish: I'm unclear what you're doing at the moment (e.g., the fact you're not passing a string from a file)
[10:08:42] judofyr: Bish: is the method defined in a class or a module?
[10:08:46] Bish: ACTION is frustrated because there is not THE programming language
[10:08:48] dminuoso: It just sucks how the implementation of JavaScript is completely fragmented by partially running on node, partially running inside webpack/rollup/etc., and partially running inside the browser
[10:09:02] Bish: judofyr: it's defined like "def self.run" inside a module
[10:09:35] Bish: and im getting each submodule of a module and instance_eval its run method
[10:09:38] alex``: is there a difference between yield and block.call?
[10:09:39] Bish: to get my hacky module system
[10:09:41] judofyr: Bish: if you change it to "def run" you should be able to do this:
[10:09:46] matthewd: Bish: Full multi-file gist plz
[10:09:50] dminuoso: alex``: Semantically no.
[10:09:53] judofyr: Mod.instance_method(:run).bind(something).call
[10:10:00] judofyr: at least in recent rubies
[10:10:04] alex``: what is the preffered?
[10:10:13] dminuoso: alex``: A block is just an optimized form of a proc.
[10:10:16] Radar: all this talk about code without the code itself. I am sad.
[10:10:19] judofyr: >> module Foo; def bar; self end end; Foo.instance_method(:bar).bind(123).call
[10:10:26] Bish: why wouldnt i be able to unding the "class method"
[10:10:26] dminuoso: alex``: Or rather, a proc is a block stuffed inside an object.
[10:10:27] judofyr: do we have a bot here?
[10:10:30] elomatreb: yield if it's not necessary to use it as an object
[10:10:38] Radar: judofyr: yes, but you might not have access to it or it's shit the bed again
[10:10:40] Bish: if i call .bind on a method, will the method get copied?
[10:10:42] dminuoso: I always pass it as an object to make it more readable.
[10:10:45] Radar: >> module Foo; def bar; self end end; Foo.instance_method(:bar).bind(123).call
[10:10:47] ruby[bot]: Radar: # => 123 (https://eval.in/834429)
[10:10:57] alex``: to my point of view `block` is explicit, and yield hidden from method declaration
[10:11:03] dminuoso: alex``: Precisely.
[10:11:08] judofyr: Radar: why are you special? :((
[10:11:09] dminuoso: alex``: That's why I prefer explicitly binding blocks to procs.
[10:11:18] alex``: def foo &block
[10:11:19] Radar: judofyr: /whois Radar probably has something to do with it.
[10:11:21] alex``: block.call 2
[10:11:28] dminuoso: alex``: Consider things like block_given? and yield as tools for libraries that want to avoid unnecessary overhead.
[10:11:30] Radar: alex``: You could write that on one line ;)
[10:11:32] Bish: if i call .bind on a method, will it change/move the original method
[10:11:35] Bish: or do something like that?
[10:11:43] alex``: thus I prefer `block` rather than `yield`
[10:11:47] elomatreb: You can still call a method that has an explicit block parameter without the block though, right? As in, it will only error when it tries to call the block?
[10:11:50] judofyr: Bish: copied? nope
[10:11:54] dminuoso: alex``: I also prefer lambda over proc/block
[10:11:55] alex``: but how do the same for `block_given?`?
[10:11:57] dminuoso: Because.. `return`
[10:12:04] Bish: judofyr: so, the method vanishes from the original owner?
[10:12:23] judofyr: Bish: no. it's still there. a Method is just a reference to an UnboundMethod + an owner
[10:12:24] alex``: would `if block` work?
[10:12:33] alex``: def foo &block
[10:12:35] dminuoso: alex``: i.e. foo(-> { |arg| .... }) over foo() { |arg| }
[10:12:42] alex``: block.call
[10:12:43] matthewd: alex``: Please stop with the multi-line code
[10:12:56] dminuoso: alex``: But only because I've been writing JavaScript so much, that the value of treating these freaking functions as objects is more than the elegance of blocks.
[10:12:59] Bish: judofyr: but.. there have to be at least something twice if the original stays intact
[10:13:01] elomatreb: Yes it would, block is nil if you didn't pass a block
[10:13:06] matthewd: Bish: Please start with the [gist of] code
[10:13:39] alex``: so to resume, we can replace
[10:13:39] Bish: my questions regarding the code are already finished, just want to know the ruby behaviour now
[10:13:42] judofyr: Bish: well, yeah, the Method instance is copied, but it doesn't actually contain the code or anything
[10:13:51] alex``: yield -> block.call
[10:13:57] Bish: judofyr: great, thanks
[10:13:59] alex``: block_given? -> block
[10:14:01] dminuoso: alex``: Yes.
[10:14:05] Bish: so same method, 2 times information about the owner
[10:14:11] dminuoso: alex``: Or like me, avoid blocks entirely whenever possible!
[10:14:11] Radar: Bish: Please just show us some code that you're asking about rather than talking about it.
[10:14:18] alex``: dminuoso: why?
[10:14:25] Bish: Radar: im done already :> thanks
[10:14:32] elomatreb: But it's not the general convention, many people prefer to use yield/block_given? wherever possible
[10:14:33] Radar: Bish: Ok. Remember this for next time then
[10:14:41] Bish: sure, always do
[10:14:42] dminuoso: alex``: predicate = -> { |e| e.isSexy? && applyMagic(e).hasStyle };
[10:14:56] dminuoso: alex``: now you can take that predicate and do things with it. like. array.filter(predicate)
[10:15:27] judofyr: Bish: oh, and I should be precise: the owner of a method is *not* self. the owner is the class/module which defines it
[10:15:36] judofyr: Bish: "receiver" is self
[10:15:37] ljarvis: then slap dminuoso for using camelCase
[10:15:44] dminuoso: ljarvis: Haha!
[10:15:50] judofyr: >> 123.method(:+).receiver # => 123
[10:16:02] alex``: dminuoso: is yield and block_given? considered bad pratice? over explicit &block in method declaration?
[10:16:08] elomatreb: iNVERSEcAMELcASE is the superior naming scheme
[10:16:10] f1ro: has left #ruby: ("Leaving")
[10:16:13] judofyr: >> 123.method(:+).owner # => Integer
[10:16:14] ljarvis: yield is better than block.call
[10:16:22] dminuoso: alex``: I'm not the best person to tell you about bad and good practices.
[10:16:29] dminuoso: I'm... special.
[10:16:41] Hunter1: has joined #ruby
[10:16:57] matthewd: alex``: Performance, for one
[10:17:20] alex``: ljarvis: yield and block_given? come from no where to my point of view
[10:17:31] ljarvis: I don't understand what that means
[10:17:54] elomatreb: Also the error is better, trying to call a non-given block gives an infamous undefined method for nil
[10:18:14] dminuoso: See, yet another reason why you shouldnt procify in the parameter
[10:18:20] ljarvis: the only downside really is the method signature is less knowledgeable
[10:18:28] dminuoso: def meth(callable); callable.call(1); end
[10:18:32] dminuoso: elomatreb: ^-
[10:18:35] ljarvis: but it's ruby, so method sigs mean absolutely nothing anyway
[10:18:54] dminuoso: cant dodge that bullet!
[10:19:14] judofyr: Bish: interesting. behind the scenes a Method and an UnboundMethod stores the exact same data: https://github.com/ruby/ruby/blob/a14cb8ad5b432bcda7b6a4a0ee41a1a292d0b568/proc.c#L29
[10:19:16] elomatreb: I would like a way to specify that a method may take a block or not tbh
[10:19:53] alex``: dminuoso: def meth(&callable); callable&.call(1); end
[10:19:54] judofyr: Bish: it's just that UnboundMethod ignores the `recv`-field
[10:20:27] alex``: & ensure giving block and &.call not nil
[10:20:31] Bish: doesnt actually suprise me :o would have done it that way
[10:20:40] judofyr: but yeah, as you can see a (Unbound)Method is stores just three things: recevier, owner/class and a reference to the actual method body
[10:20:51] alex``: thanks for the clarification
[10:20:57] dminuoso: elomatreb: def meth(callable = ->{}); end
[10:20:59] elomatreb: alex``: Now you've just silenced the error?
[10:21:12] alex``: elomatreb: yep XD
[10:21:35] rgtk: has joined #ruby
[10:21:40] dminuoso: elomatreb: though "may take a block or not" now depends on what the behavior should be if no block was passed.
[10:21:48] elomatreb: dminuoso: I'd also be interested in the inverse, a method erroring if you give it a block without it being defined as taking one
[10:21:51] dminuoso: would it default to something? this makes sense for things like #sort
[10:21:55] judofyr: why does super() still automatically pass the block up? I thought that would have been cleaned up by now…
[10:22:00] Bish: judofyr: why exactly can't i do that with singleton methods?
[10:22:18] dminuoso: elomatreb: See, _yet_ another reason why passing as actual arguments is an advantage.
[10:22:18] judofyr: Bish: instance methods on modules are special
[10:22:28] Bish: special like dminuoso ?
[10:22:28] dminuoso: >> def foo; end; foo(->{}); # elomatreb
[10:22:29] ruby[bot]: dminuoso: # => wrong number of arguments (given 1, expected 0) (ArgumentError) ...check link for more (https://eval.in/834442)
[10:22:32] judofyr: Bish: you can't do it on other instance methods
[10:22:40] Bish: too bad.
[10:22:46] judofyr: Bish: and singleton methods are just instance methods on the singleton class
[10:22:49] Bish: but my code works now, thanks
[10:22:56] dminuoso: elomatreb: This whole monstreous hack of blocks just for the sake of avoiding object creation leaks in the language and leads to brittle code design.
[10:23:09] judofyr: it's because it doesn't make sense to Integer.instance_method(:+).bind("Hello")
[10:23:14] elomatreb: I do agree, but I would like it to behave like blocks do now. Avoiding the both performance and mental overhead of creating lambdas for everything
[10:23:18] Bish: ACTION wrote his own cron-job, and wheel
[10:23:26] dminuoso: elomatreb: Do you know what the price is?
[10:23:28] dminuoso: Because I do.
[10:23:31] dminuoso: lambdas are cheap as fuck.
[10:23:50] judofyr: Bish: it's actually a recent change regarding the module instance method. previously you could only bind it to an object which included the module
[10:24:09] elomatreb: Performance is less of a concern for me, but it's what people usually cite when advocating yield over explicit block calling/lambdas
[10:24:14] judofyr: or. well. I don't know how recent it is
[10:24:22] Bish: it's weird, because im sure i did that
[10:24:25] judofyr: I think it was added in 2.x something
[10:24:37] dminuoso: elomatreb: Micro-optimizations. It's fine if the standard library does it, because it can't make assumptions whether it will be in hotspots or not.
[10:24:42] dminuoso: Or for general libraries.
[10:24:50] Bish: i always used instance_eval() and expected the called method thinks self is the receiver of instance_eval
[10:24:57] Bish: amd somehow it always worked
[10:25:12] Bish: didn't know i couldnt method use completely like procs
[10:25:45] judofyr: Bish: hm. Method#to_proc creates a proc which basically ignores `self` and always uses the bound receiver
[10:26:11] Bish: i did that, and self. stayed on the owner
[10:26:16] Bish: confused the fuck out of m
[10:26:25] dminuoso: elomatreb: The price of creating a lambda over a block is essentially just a single C function `rb_data_typed_object_zalloc`
[10:27:08] elomatreb: I agree on it being a often pointless microoptimization
[10:27:41] judofyr: often? how about always?
[10:27:51] Bish: microoptimizing ruby
[10:27:54] Bish: *laughs*
[10:27:55] ljarvis: never, always microoptimize
[10:28:09] matthewd: Yeah, I'll agree that while I normally care about it, average app code needn't
[10:28:23] Bish: ruby is slow af no matter what you do </opinion>
[10:28:40] elomatreb: https://github.com/JuanitoFatas/fast-ruby#proccall-and-block-arguments-vs-yieldcode If it's in a hotspot that might be significant
[10:28:48] ljarvis: definitely untrue
[10:29:08] jaruga: has joined #ruby
[10:29:16] judofyr: elomatreb: yes, if you're just calling the same method over and over again without doing *anything* else
[10:29:24] hightower2: has joined #ruby
[10:29:36] judofyr: once you actually start doing real work, the difference in yield/block.call won't matter anymore
[10:29:40] elomatreb: As I said, "often"
[10:29:43] matthewd: Tricky micro-opts are best reserved for especially hot spots, but "free" gains have broader value in widely-used libraries
[10:30:00] dminuoso: elomatreb: ^- that. The problem with that is the main cost stems from the GC.
[10:30:13] dminuoso: elomatreb: I you avoid any object creations, the GC wont interfere with you at all.
[10:30:49] ljarvis: ACTION opens book "how to prove anything anyone says about Ruby wrong"
[10:31:20] dminuoso: ljarvis: What do you mean?
[10:31:34] Bish: chapter 1-9 GC
[10:31:42] judofyr: in what use case do you repeatedly call a method with a block, without doing any other memory- or CPU-bound work?
[10:31:44] matthewd: The one I've never actually investigated is when a block gets passed down through say 10 method calls
[10:31:54] astrobunny: has joined #ruby
[10:32:25] ljarvis: dminuoso: just kidding
[10:32:42] matthewd: If they all use &block, you pay the allocation/blockification once -- vs a bunch of calls with { |a,b| yield a, b } blocks
[10:32:45] ferr: has joined #ruby
[10:36:39] dminuoso: matthewd: I think that is an interesting point. Especially if you pre-construct the lambda once, such as `predicate = -> { |a| a.odd? }` and then pass it in, it disappears.
[10:36:48] dminuoso: The overhead I mean.
[10:38:24] matthewd: Yeah, that variant's less interesting to me, just because the outermost call is normally in user code, but it would also have a relevant impact
[10:40:12] hahuang65: has joined #ruby
[10:40:54] tvon: has joined #ruby
[10:43:57] eightlimbed: has joined #ruby
[10:48:10] pandaant: has joined #ruby
[10:49:31] mfaeh: has joined #ruby
[10:53:49] mfaeh: has joined #ruby
[10:54:53] ltem: has joined #ruby
[10:56:22] ElFerna: has joined #ruby
[10:59:53] Hunter1: has joined #ruby
[11:00:41] hotpancakes: has joined #ruby
[11:03:05] sagax: has joined #ruby
[11:03:12] bronson: has joined #ruby
[11:04:14] sagax: how to use ruby[bot] ?
[11:04:53] doublemalt_: has joined #ruby
[11:05:37] vondruch: has joined #ruby
[11:06:36] elomatreb: >> "hello world" # sagax
[11:06:41] ruby[bot]: elomatreb: I'm terribly sorry, I could not evaluate your code because of an error: NoMethodError:undefined method `[]' for nil:NilClass
[11:07:02] sagax: >> puts "test"
[11:07:03] ruby[bot]: sagax: # => test ...check link for more (https://eval.in/834470)
[11:07:16] sagax: puts 2 + 2
[11:07:20] sagax: >> puts 2 + 2
[11:07:21] ruby[bot]: sagax: # => 4 ...check link for more (https://eval.in/834471)
[11:07:48] elomatreb: Don't be too surprised if it breaks, it tends to do that
[11:09:25] tvon: has joined #ruby
[11:14:07] mim1k: has joined #ruby
[11:20:20] eightlimbed: has joined #ruby
[11:21:09] mfaeh: has joined #ruby
[11:24:05] eightlimbed: has joined #ruby
[11:25:06] Jameser: has joined #ruby
[11:29:50] judofyr: I still don't understand why it doesn't like me :(
[11:30:26] matthewd: judofyr: You're not identified with nickserv
[11:30:41] judofyr: oooh, I reconnected
[11:30:46] judofyr: I haven't setup auto-login yet
[11:31:13] ruby[bot]: judofyr: I'm terribly sorry, I could not evaluate your code because of an error: NoMethodError:undefined method `[]' for nil:NilClass
[11:31:50] Beams: has joined #ruby
[11:32:07] matthewd: Now it's just broken :P ... it does that sometimes
[11:32:24] astrobunny: has joined #ruby
[11:39:15] hutch34: has joined #ruby
[11:39:21] ruby[bot]: judofyr: # => 2 (https://eval.in/834484)
[11:39:29] judofyr: charliesome!
[11:39:31] judofyr: where are you?
[11:41:06] ldnunes: has joined #ruby
[11:44:06] Rodya_: has joined #ruby
[11:47:02] Rodya_: has joined #ruby
[11:49:25] jphase: has joined #ruby
[11:49:33] jphase: has joined #ruby
[11:51:35] dminuoso: matthewd: In JS it's often not noticeable to create tons of functions in hot spots, but then again v8 has some pretty nifty techniques to optimize highly dynamic code paths away.
[11:51:52] dminuoso: matthewd: I think if we had a proper JIT it might be even less relevant in Ruby.
[11:51:52] milardovich: has joined #ruby
[11:52:08] dminuoso: Dunno how truffle/graalvm handles such cases, perhaps chrisseaton is around?
[11:52:34] camilasann: has joined #ruby
[11:59:09] t-recx: has joined #ruby
[11:59:17] synthroid: has joined #ruby
[12:04:02] bronson: has joined #ruby
[12:04:53] judofyr: has joined #ruby
[12:07:19] hotpancakes: has joined #ruby
[12:08:45] apparition: has joined #ruby
[12:21:45] belmoussaoui: has joined #ruby
[12:23:51] belmoussaoui__: has joined #ruby
[12:26:12] GodFather: has joined #ruby
[12:27:00] nanoz: has joined #ruby
[12:27:29] apparition47: has joined #ruby
[12:29:05] belmoussaoui: has joined #ruby
[12:30:59] ledestin: has joined #ruby
[12:33:10] astrobunny: has joined #ruby
[12:34:37] mim1k: has joined #ruby
[12:34:38] judofyr: has joined #ruby
[12:35:11] take5: has joined #ruby
[12:39:23] Bish: i often ecapsulate my logic into many modules
[12:39:35] Beams: has joined #ruby
[12:39:37] Bish: i always tend to do class << self;def handle;end;end;
[12:39:50] Bish: and in the dispatcher something like handler.handle(job)
[12:39:57] milardovich: has joined #ruby
[12:40:01] Bish: should i step back from those singleton functions?
[12:40:20] Bish: and rather have instance methods which i call? or even use .new on each handler?
[12:40:36] sepp2k: has joined #ruby
[12:40:42] milardovich: has joined #ruby
[12:40:50] matthewd: Bish: I think I'd need more context to have a coherent opinion, but... maybe?
[12:41:01] hahuang65: has joined #ruby
[12:41:05] matthewd: Bish: Ultimately, it's up to whatever you find most pleasant to work with, though
[12:41:37] Bish: well its a pretty general question of you have some sort of work to be done
[12:41:41] Bish: and 12831823 ways to do it
[12:41:56] Bish: like a database event that can be handled and u have a shitton handlers for that
[12:42:00] Bish: how would you build it
[12:43:05] iceden: has joined #ruby
[12:43:45] Bish: right now im having modules with a singleton handle method
[12:43:56] Bish: if they need to capsulate complexity, they can have classes on their own
[12:44:01] Bish: that was my argumentation there
[12:44:07] shiru: has joined #ruby
[12:46:18] matthewd: I think I'd generally default to something involving instance methods
[12:47:37] matthewd: For something closer to what you described, I'd make the common method `call` instead of `handle`, so simpler ones can just be a Proc
[12:47:55] Bish: hm, that'd be clever
[12:48:27] Bish: can i has instance_eval without yielding self?
[12:49:34] matthewd: On the "instance methods" front, I think circumstances would dictate a choice between `send("handle_#{event_type}", event)` and `Handlers[event_type].new(event).call`, say
[12:50:01] Bish: i even encapsulated each event in its own module
[12:50:01] matthewd: You might want instance_exec
[12:50:04] apparition47: has joined #ruby
[12:50:10] Bish: so i have something like
[12:50:47] Bish: MessageHandler.constants.map { |x| [x.to_s.gsub(/(.)([A-Z])/,'\1_\2').downcase,MessageHandler.const_get(x)] }.to_
[12:51:05] Bish: which is a map from evnet name to handler module name
[12:52:00] Bish: (so i can just add modules and they will handle stuff)
[12:53:20] Bish: i think i will go the zombie-in-between version
[12:53:22] Bish: callable modules
[12:54:13] ych: has joined #ruby
[13:01:04] impermanence: has joined #ruby
[13:02:24] belmoussaoui: has joined #ruby
[13:04:52] bronson: has joined #ruby
[13:06:24] gnufied: has joined #ruby
[13:06:51] rgtk: has joined #ruby
[13:07:59] charliesome: has joined #ruby
[13:08:28] jaruga: has joined #ruby
[13:08:36] dviola: has joined #ruby
[13:09:10] troulouliou_dev: has joined #ruby
[13:13:25] Papierkorb: has joined #ruby
[13:14:43] hotpancakes: has joined #ruby
[13:15:21] troulouliou_dev: has joined #ruby
[13:18:04] jdawgaz: has joined #ruby
[13:20:25] Beams: has joined #ruby
[13:22:11] ShekharReddy: has joined #ruby
[13:23:05] cdg: has joined #ruby
[13:23:22] ar1a_: has joined #ruby
[13:24:34] ElFerna: has joined #ruby
[13:28:17] rfoust: has joined #ruby
[13:28:39] jdawgaz: has joined #ruby
[13:31:00] oleo: has joined #ruby
[13:31:34] charliesome: has joined #ruby
[13:33:01] paolog: has joined #ruby
[13:35:28] frmendes: has joined #ruby
[13:37:33] DLSteve: has joined #ruby
[13:40:10] coenraad: has joined #ruby
[13:42:30] __Yiota: has joined #ruby
[13:46:13] Xiti: has joined #ruby
[13:47:19] mfaeh: has joined #ruby
[13:47:44] hutch34: has joined #ruby
[13:49:45] frmendes: has joined #ruby
[13:49:46] alex``: has joined #ruby
[13:50:38] jhooker: has joined #ruby
[13:50:42] chouhoulis: has joined #ruby
[13:52:00] pwned: has joined #ruby
[13:52:05] frmendes: has joined #ruby
[13:53:34] guardianx: has joined #ruby
[13:53:56] dminuoso: 0 => [a]. 1 => [a-1, a, a+1], 2 => [a-2, a-1, a, a+1, a+2]
[13:54:10] dminuoso: I find this surprisingly difficult to nail this in an elegant fashion...
[13:54:11] ElFerna: has joined #ruby
[13:55:03] milardovich: has joined #ruby
[13:55:19] milardovich: has joined #ruby
[13:55:34] dminuoso: (-n..n).map { |q| a + q }
[13:56:29] bkxd: has joined #ruby
[13:56:31] bkxd_: has joined #ruby
[13:58:11] iMadper`: has joined #ruby
[13:58:12] kobain: has joined #ruby
[13:59:28] cam27: has joined #ruby
[14:00:02] frmendes: has joined #ruby
[14:01:32] chouhoulis: has joined #ruby
[14:02:47] Sylario: has joined #ruby
[14:04:39] impermanence: has joined #ruby
[14:05:43] bronson: has joined #ruby
[14:06:33] frmendes: has joined #ruby
[14:07:49] Rapture: has joined #ruby
[14:14:48] chouhoul_: has joined #ruby
[14:17:44] mim1k: has joined #ruby
[14:18:07] nebiros: has left #ruby: ("Textual IRC Client: www.textualapp.com")
[14:20:17] hotpancakes: has joined #ruby
[14:20:33] ansraliant: has joined #ruby
[14:22:25] shinnya: has joined #ruby
[14:24:10] ansraliant: has joined #ruby
[14:24:10] ansraliant: has joined #ruby
[14:24:23] mfaeh: has joined #ruby
[14:25:45] rundor: has joined #ruby
[14:25:59] mtkd: has joined #ruby
[14:27:11] coenraad: has joined #ruby
[14:28:08] veex: has joined #ruby
[14:29:21] apparition47: has joined #ruby
[14:30:36] guardianx: has joined #ruby
[14:30:53] mfaeh: has joined #ruby
[14:33:22] olivier__: has joined #ruby
[14:34:02] olivier__: has joined #ruby
[14:34:41] astrobunny: has joined #ruby
[14:35:02] bkxd__: has joined #ruby
[14:35:37] bkxd___: has joined #ruby
[14:36:57] bruno-: has joined #ruby
[14:41:52] hahuang65: has joined #ruby
[14:47:54] rgtk: has joined #ruby
[14:48:29] ltem: has joined #ruby
[14:53:45] enterprisey: has joined #ruby
[14:55:47] coenraad: has joined #ruby
[14:58:10] alex``: has joined #ruby
[15:04:42] hotpancakes: has joined #ruby
[15:05:31] milardovich: has joined #ruby
[15:06:34] bronson: has joined #ruby
[15:08:49] phinxy: has joined #ruby
[15:09:25] roshanavand: has joined #ruby
[15:10:21] ElFerna: has joined #ruby
[15:16:54] bkxd: has joined #ruby
[15:17:25] digitalnomad: has joined #ruby
[15:20:43] nowhere_man: has joined #ruby
[15:21:39] kies: has joined #ruby
[15:27:25] TomyLobo: has joined #ruby
[15:30:03] uZiel: has joined #ruby
[15:33:50] coenraad_: has joined #ruby
[15:33:50] bkxd: has joined #ruby
[15:35:35] astrobunny: has joined #ruby
[15:37:13] hotpancakes: has joined #ruby
[15:37:32] brent__: has joined #ruby
[15:38:56] brent__: has joined #ruby
[15:39:05] bkxd_: has joined #ruby
[15:44:42] jaruga: has joined #ruby
[15:49:40] phinxy: has joined #ruby
[15:52:28] perniciouscaffei: has joined #ruby
[15:52:41] mikecmpb_: has joined #ruby
[15:54:51] bruno-: has joined #ruby
[15:56:06] cherry-pick-2: has joined #ruby
[15:56:25] usr_share: has joined #ruby
[15:57:21] Tau: has joined #ruby
[15:58:53] usr_share: So i have this little situation on a shell server, where ruby itself is installed in the standard location, but the header files (which should be in /usr/lib/ruby/include/ruby.h) are in a different spot. i figured out that their location can be set with an rbconfig variable named "rubyhdrdir". How do I set its value?
[15:59:27] usr_share: is it an environment variable or is there a config file somewhere?
[15:59:58] Luyt: has joined #ruby
[16:03:36] digitalnomad: has joined #ruby
[16:08:29] bronson: has joined #ruby
[16:11:23] cdg: has joined #ruby
[16:12:09] troulouliou_dev: has joined #ruby
[16:12:36] psychicist__: has joined #ruby
[16:12:55] enterprisey: has joined #ruby
[16:13:52] npgm: has joined #ruby
[16:13:58] cdg_: has joined #ruby
[16:14:02] synthroid: has joined #ruby
[16:17:34] belmoussaoui: has joined #ruby
[16:22:23] digitalnomad: has joined #ruby
[16:24:16] olivier__: has joined #ruby
[16:25:07] nebiros: has joined #ruby
[16:25:16] nebiros: has left #ruby: ("Be back later...")
[16:28:10] InfinityFye: has joined #ruby
[16:28:32] roshanavand: has joined #ruby
[16:29:16] haylon: has joined #ruby
[16:30:28] haylon: Anyone have troubles with Rake saying there was an issue with teh create_shell_runner when executing a shell command, however, I can execute other shell commands just fine. When I reun the erroring shell command by hand, it works.
[16:35:38] polishdub: has joined #ruby
[16:36:36] astrobunny: has joined #ruby
[16:36:56] sarmiena_: has joined #ruby
[16:38:01] sekmo: has joined #ruby
[16:41:01] t-recx: has joined #ruby
[16:42:11] cagomez: has joined #ruby
[16:42:16] SteenJobs: has joined #ruby
[16:43:35] hahuang65: has joined #ruby
[16:45:30] gothicsouth: has joined #ruby
[16:46:36] gloscombe: has joined #ruby
[16:47:14] hotpancakes: has joined #ruby
[16:49:56] rundor: has joined #ruby
[16:50:59] gr33n7007h: has joined #ruby
[16:52:28] __Yiota: has joined #ruby
[16:52:33] rundor_: has joined #ruby
[16:55:49] cagomez: has joined #ruby
[16:56:03] z3uS: has joined #ruby
[16:59:04] cagomez: has joined #ruby
[16:59:10] cyfr0n1: has joined #ruby
[16:59:20] Miron: has left #ruby: ()
[17:00:20] Miron: has joined #ruby
[17:01:22] cyfr0n1: has left #ruby: ()
[17:02:34] dstrunk: has joined #ruby
[17:04:54] peter1: has joined #ruby
[17:07:31] TomyLobo2: has joined #ruby
[17:09:37] bronson: has joined #ruby
[17:10:05] olivier__: has joined #ruby
[17:10:20] cagomez: has joined #ruby
[17:14:45] cornfeedhobo: has joined #ruby
[17:15:47] jordanm: has joined #ruby
[17:15:51] cornfeedhobo: hello. is it possible to split a string up while interpolating?
[17:16:35] apeiros: cornfeedhobo: not sure I understand what you want to do, can you make an example?
[17:16:52] cschneid_: has joined #ruby
[17:17:10] cornfeedhobo: a more complete question would be: I have a string "foo,bar,baz" and I would like to turn it into an array
[17:17:24] apeiros: &ri String#split cornfeedhobo
[17:17:24] `derpy: cornfeedhobo: http://ruby-doc.org/core-2.4.1/String.html#method-i-split
[17:19:40] gusrub: has joined #ruby
[17:19:45] mikecmpbll: has joined #ruby
[17:20:06] hahuang65: has joined #ruby
[17:20:19] kies: has joined #ruby
[17:20:31] dstrunk: has joined #ruby
[17:20:33] ski7777: has joined #ruby
[17:23:47] eightlimbed: has joined #ruby
[17:25:44] cagomez: has joined #ruby
[17:31:38] jphase: has joined #ruby
[17:33:24] ShekharReddy: has joined #ruby
[17:34:58] cinayakoshka: has joined #ruby
[17:37:17] astrobunny: has joined #ruby
[17:37:38] rekkoha: has joined #ruby
[17:37:49] duderonomy: has joined #ruby
[17:40:54] SteenJobs: has joined #ruby
[17:40:58] romankapitonov: has joined #ruby
[17:41:49] deep-book-gk_: has joined #ruby
[17:43:36] deep-book-gk_: has left #ruby: ()
[17:44:08] rippa: has joined #ruby
[17:45:57] milardovich: has joined #ruby
[17:49:42] olivier__: has joined #ruby
[17:50:19] ski7777: has joined #ruby
[17:51:05] cam27: has joined #ruby
[17:59:15] cagomez: has joined #ruby
[17:59:16] __Yiota: has joined #ruby
[18:03:55] xt233: has joined #ruby
[18:06:11] chouhoulis: has joined #ruby
[18:06:30] lxsameer: has joined #ruby
[18:10:07] bronson: has joined #ruby
[18:10:11] sarmiena_: has joined #ruby
[18:10:17] hotpancakes: has joined #ruby
[18:14:24] hotpanca_: has joined #ruby
[18:14:43] dyjakan: has left #ruby: ()
[18:16:00] u_nuSLASHkm8: has joined #ruby
[18:16:09] roshanavand: has joined #ruby
[18:17:54] u_nuSLASHkm8: has left #ruby: ()
[18:18:58] olivier__: has joined #ruby
[18:21:22] ozcanesen: has joined #ruby
[18:24:27] romankap_: has joined #ruby
[18:36:10] chouhoulis: has joined #ruby
[18:36:35] andrzejku: has joined #ruby
[18:38:04] astrobunny: has joined #ruby
[18:38:57] uZiel: has joined #ruby
[18:39:28] petruff: has joined #ruby
[18:42:12] hotpancakes: has joined #ruby
[18:48:56] olivier__: has joined #ruby
[18:48:59] hotpancakes: has joined #ruby
[18:50:43] dionysus69: has joined #ruby
[18:52:04] rgtk: has joined #ruby
[18:52:36] _Bin4ry: has joined #ruby
[18:52:44] coenraad: has joined #ruby
[18:53:38] SeepingN: has joined #ruby
[18:54:11] VladGh: has joined #ruby
[18:54:11] theunraveler: has joined #ruby
[18:57:47] loincloth: has joined #ruby
[18:59:06] swills: has joined #ruby
[18:59:53] Luyt: How do you call Ruby code which is idiomatic? Rubyesque?
[19:03:12] havenwood: "off the Rails"
[19:03:13] whippythellama: has joined #ruby
[19:03:45] havenwood: Luyt: A Rubyist with Rubyesque code sounds pretty good.
[19:04:32] Luyt: 'Rubyonic' doesn't have that refined tone 'Rubyesque' evokes...
[19:04:58] Rapture: has joined #ruby
[19:05:15] milardovich: has joined #ruby
[19:06:16] rubycoder35: has joined #ruby
[19:06:28] swills: has joined #ruby
[19:06:29] swills: has joined #ruby
[19:06:48] arquebus: has joined #ruby
[19:08:31] ElFerna: has joined #ruby
[19:08:57] tacoboy: has joined #ruby
[19:10:13] cagomez: has joined #ruby
[19:11:00] bronson: has joined #ruby
[19:12:17] tinyurl_comSLASH: has joined #ruby
[19:12:45] ascarter: has joined #ruby
[19:13:03] ozcanesen: has joined #ruby
[19:15:44] jackjackdripper: has joined #ruby
[19:15:49] hotpanca_: has joined #ruby
[19:16:27] tinyurl_comSLASH: has joined #ruby
[19:18:06] apeiros: ACTION actually just calls it "idiomatic"
[19:18:36] tinyurl_comSLASH: has left #ruby: ()
[19:19:18] frmendes: has joined #ruby
[19:19:59] apeiros: I'd expect that from Papierkorb…
[19:20:39] gusrub: has joined #ruby
[19:22:16] jenrzzz: has joined #ruby
[19:24:00] digitalnomad: has joined #ruby
[19:25:50] gothicsouth: has joined #ruby
[19:26:58] cagomez: has joined #ruby
[19:27:50] tinyurl_comSLASH: has joined #ruby
[19:29:13] tinyurl_comSLASH: has left #ruby: ()
[19:29:14] sgen: has joined #ruby
[19:30:35] dcunit3d: has joined #ruby
[19:33:25] jenrzzz_: has joined #ruby
[19:33:51] rundor: has joined #ruby
[19:34:51] ElFerna: has joined #ruby
[19:36:53] mfaeh: has joined #ruby
[19:37:05] kobain: has joined #ruby
[19:37:24] milardov_: has joined #ruby
[19:38:21] shinnya: has joined #ruby
[19:39:01] astrobunny: has joined #ruby
[19:41:55] cagomez: has joined #ruby
[19:42:27] ascarter_: has joined #ruby
[19:43:31] hahuang65: has joined #ruby
[19:43:45] cagomez: has joined #ruby
[19:45:30] usr_share: has left #ruby: ()
[19:45:46] wilbert: has joined #ruby
[19:50:35] whippythellama: has joined #ruby
[19:54:44] gusrub: has joined #ruby
[19:54:54] ascarter: has joined #ruby
[19:55:04] ahrs: has joined #ruby
[19:55:07] cam27: has joined #ruby
[19:58:33] workmad3: has joined #ruby
[19:59:54] ltem: has joined #ruby
[20:00:33] ElFerna: has joined #ruby
[20:00:52] ascarter: has joined #ruby
[20:03:37] ascarter: has joined #ruby
[20:08:17] cagomez: has joined #ruby
[20:11:34] jenrzzz: has joined #ruby
[20:11:34] jenrzzz: has joined #ruby
[20:12:01] bronson: has joined #ruby
[20:12:54] olivier__: has joined #ruby
[20:19:18] hutch34: has joined #ruby
[20:20:46] ujjain: has joined #ruby
[20:20:46] ujjain: has joined #ruby
[20:21:39] olivier__: has joined #ruby
[20:22:22] hotpancakes: has joined #ruby
[20:25:28] frmendes: has joined #ruby
[20:27:27] perniciouscaffei: has joined #ruby
[20:29:02] cagomez: has joined #ruby
[20:29:59] hutch34: has joined #ruby
[20:36:39] dn`: has joined #ruby
[20:37:00] jenrzzz: has joined #ruby
[20:37:00] jenrzzz: has joined #ruby
[20:38:43] cornfeedhobo: has left #ruby: ("when i leave, come together like butt cheeks")
[20:39:07] uZiel: has joined #ruby
[20:39:17] belmoussaoui_: has joined #ruby
[20:40:40] ramfjord: has joined #ruby
[20:40:51] mikecmpbll: has joined #ruby
[20:41:02] milardovich: has joined #ruby
[20:41:42] kkiero: has joined #ruby
[20:42:34] cagomez: has joined #ruby
[20:42:46] tvw: has joined #ruby
[20:43:46] kkiero: is word.mb_chars.upcase the best solution when word contains some l1anguage-specific letters?
[20:43:53] TvL2386: has joined #ruby
[20:48:08] dtzuzu: has joined #ruby
[20:49:20] jenrzzz: has joined #ruby
[20:49:32] jenrzzz: has joined #ruby
[20:50:54] veex: has joined #ruby
[20:53:21] hotpancakes: has joined #ruby
[20:55:13] digitalnomad: has joined #ruby
[20:57:06] mathys: has joined #ruby
[20:59:28] Hunter1: has joined #ruby
[21:00:02] ElFerna: has joined #ruby
[21:05:49] astrobunny: has joined #ruby
[21:08:37] brent__: has joined #ruby
[21:13:02] bronson: has joined #ruby
[21:13:42] cschneid_: has joined #ruby
[21:14:44] mikecmpbll: has joined #ruby
[21:14:55] dcunit3d: has joined #ruby
[21:19:09] gusrub: has joined #ruby
[21:23:45] hotpancakes: has joined #ruby
[21:26:41] havenwood: >> 'José'.upcase
[21:26:43] ruby[bot]: havenwood: # => "JOSé" (https://eval.in/834700)
[21:27:00] havenwood: kkiero: In Ruby 2.4 that ^ returns: "JOSÉ"
[21:27:17] havenwood: kkiero: The best solution is to use Ruby 2.4 if that's available.
[21:30:05] kkiero: what if it's not possible to use ruby 2.4?
[21:30:11] kkiero: then my solution?
[21:31:32] milardovich: has joined #ruby
[21:32:52] kkiero_: has joined #ruby
[21:33:01] ledestin: has joined #ruby
[21:37:31] cagomez: has joined #ruby
[21:38:06] havenwood: kkiero_: what version of Ruby?
[21:38:29] gothicsouth: has joined #ruby
[21:38:55] havenwood: I'm assuming if you can't upgrade Ruby that patching and recompiling is also out?
[21:40:10] havenwood: kkiero_: https://bugs.ruby-lang.org/issues/10085
[21:41:21] olivier__: has joined #ruby
[21:43:06] kkiero_: unfortunatelly no
[21:43:14] kkiero_: i'm creating mac automator service
[21:43:19] kkiero_: and it uses system ruby
[21:43:23] kkiero_: which is 2.0.0
[21:44:03] havenwood: High Sierra is Ruby 2.3 fwiw.
[21:44:31] kkiero_: yep, but macOS sierra in this case
[21:45:24] havenwood: kkiero_: I don't know if anyone has backported the unicode case enhancements and made a gem of it.
[21:45:54] ur5us: has joined #ruby
[21:46:17] kkiero_: I found this: https://coderwall.com/p/b74yda/rails-upcase-downcase-for-non-ascii-strings
[21:46:31] kkiero_: but is it the best solution in my case?
[21:47:04] havenwood: kkiero_: Is this a Rails app?
[21:47:21] kkiero_: no, just ruby script
[21:47:45] havenwood: kkiero_: If you'd like you can cherry pick the method from ActiveSupport.
[21:47:54] havenwood: kkiero_: require 'active_support/core_ext/string/multibyte'
[21:48:00] havenwood: kkiero_: It's a fine solution.
[21:48:02] ascarter: has joined #ruby
[21:48:42] kkiero_: https://pastebin.com/Ky8uR9QJ
[21:48:44] ruby[bot]: kkiero_: we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/a1c1ce0dc7d1f98c4d7794d39d25300a
[21:48:44] ruby[bot]: kkiero_: pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
[21:48:47] kkiero_: it's just simple script
[21:48:56] crankharder: has joined #ruby
[21:48:57] GodFather: has joined #ruby
[21:49:12] ElFerna: has joined #ruby
[21:49:40] havenwood: kkiero_: do you need to support all accents?
[21:50:07] havenwood: kkiero_: a limited list of languages or?
[21:50:17] hutch34: has joined #ruby
[21:50:23] kkiero_: i think polish is ok for now
[21:50:31] kkiero_: maybe german and spanish later too
[21:50:46] havenwood: kkiero_: for just Polish i'd maintain a Hash with the conversion.
[21:51:27] havenwood: if that starts creeping you might consider an ActiveSupport gem dependency with cherry picking multibyte or just a smaller gem for the same purpose
[21:51:37] havenwood: it's nice you can do it in latest stable Ruby now!
[21:51:41] kkiero_: ok, but what's wrong with this mb_chars from link?
[21:52:03] havenwood: kkiero_: That's ActiveSupport. That's what I'm saying.
[21:52:28] havenwood: kkiero_: You're free to use it. Have a gem dependency on ActiveSupport and: require 'active_support/core_ext/string/multibyte'
[21:52:39] havenwood: Then use away.
[21:53:05] havenwood: kkiero_: That method is defined by the ActiveSupport gem. It's available in Rails because Rails already requires it.
[21:53:13] kkiero_: ok, I didn't understand you previously
[21:53:30] havenwood: you can cherry pick, that is just load that part of ActiveSupport, not the whole thing
[21:53:57] havenwood: if a gem dependency is allowed
[21:55:08] AxelAlex: has joined #ruby
[21:56:39] nadir: has joined #ruby
[21:57:02] mikecmpbll: has joined #ruby
[21:57:28] username1: has joined #ruby
[21:58:16] kkiero: is it fix in newer version of ruby?
[21:58:23] __Yiota: has joined #ruby
[21:58:30] kkiero: upcase of specific letter
[21:58:36] havenwood: kkiero: yes, it **just works** in Ruby 2.4.0+
[21:58:45] havenwood: kkiero: it works in latest stable Ruby 2.4.1
[21:59:41] kkiero: so I guess the best solution here will be with Hash as you wrote
[21:59:42] milardovich: has joined #ruby
[21:59:53] kkiero: so it won't require any dependencies
[22:00:27] mim1k: has joined #ruby
[22:00:58] claw: has joined #ruby
[22:04:03] hutch34: has joined #ruby
[22:04:21] aclark: has joined #ruby
[22:04:41] havenwood: >> POLISH_CONVERSION = {'ą' => 'Ą', 'ć' => 'Ć'}; 'zrobić'.upcase.gsub /[#{POLISH_CONVERSION.keys}]/, POLISH_CONVERSION # kkiero
[22:04:43] ruby[bot]: havenwood: # => "ZROBIĆ" (https://eval.in/834702)
[22:04:59] apeiros: ACTION throws havenwood a Regexp.union
[22:05:08] rundor: has joined #ruby
[22:05:13] high_fiver: has joined #ruby
[22:05:24] havenwood: ACTION bobbles and drops it
[22:05:34] havenwood: kkiero: I forgot about Regexp.union!
[22:06:17] havenwood: >> POLISH_CONVERSION = {'ą' => 'Ą', 'ć' => 'Ć'}; 'zrobić'.upcase.gsub Regexp.union(POLISH_CONVERSION.keys), POLISH_CONVERSION
[22:06:22] ruby[bot]: havenwood: I'm terribly sorry, I could not evaluate your code because of an error: NoMethodError:undefined method `[]' for nil:NilClass
[22:06:27] havenwood: #=> "ZROBIĆ"
[22:06:45] astrobunny: has joined #ruby
[22:06:48] havenwood: apeiros: much nicer :-)
[22:07:00] hotpancakes: has joined #ruby
[22:07:35] apeiros: havenwood: also more correct
[22:07:42] apeiros: remember, Array#to_s changed
[22:08:00] apeiros: s/more// :)
[22:08:07] kkiero: wow, thanks, I didn't expect whole solution
[22:08:18] _Bin4ry: has joined #ruby
[22:08:20] whippythellama: has joined #ruby
[22:08:28] havenwood: kkiero: and then a code review of the solution!
[22:08:44] kkiero: indeed ;)
[22:09:00] GodFather: has joined #ruby
[22:10:21] cagomez: has joined #ruby
[22:10:30] jenrzzz: has joined #ruby
[22:10:30] jenrzzz: has joined #ruby
[22:13:51] bronson: has joined #ruby
[22:17:23] amclain: has joined #ruby
[22:19:04] olivier__: has joined #ruby
[22:21:19] cam27: has joined #ruby
[22:23:55] mikecmpbll: has joined #ruby
[22:27:07] eightlimbed_: has joined #ruby
[22:27:09] kkiero: btw why irb cannot display polish letters? POLISH_CONVERSION = {'\U+FFC4' => '\U+FFC4', '\U+FFC4' => '\U+FFC4'}
[22:27:16] kkiero: I have readline
[22:27:54] apeiros: it can. it depends on your shell and your encoding settings.
[22:28:19] apeiros: oh, and of course you should use " not ' if you want to use escape sequences.
[22:28:51] apeiros: also in ruby it's not "\U+FFC4", it's "\uffc4"
[22:29:06] apeiros: (are you sure about the code though? that's not even remotely in the polish script…)
[22:29:24] kkiero: in shell I can type those letter correctly
[22:29:38] apeiros: bottom line: about everything wrong which can be done wrong…
[22:29:41] ColeHub: has joined #ruby
[22:29:46] nemesit|znc: has joined #ruby
[22:29:59] al2o3-cr: >> 'łęńzrobić'.codepoints.map { |cp| cp >= 127 ? cp -= 1 : cp }.pack('U*').upcase # kkiero should work for just polish
[22:30:00] ruby[bot]: al2o3-cr: # => "ŁĘŃZROBIĆ" (https://eval.in/834703)
[22:30:48] al2o3-cr: make a little method or something
[22:30:54] apeiros: interesting. I never noticed that the two are only 1 off
[22:31:04] mtkd: has joined #ruby
[22:33:15] apeiros: ACTION afk
[22:33:36] kkiero: al2o3-cr: thanks
[22:33:55] kkiero: the solution with Hash replacement is good as I can't pack letters from german too
[22:34:39] al2o3-cr: yeah, you'd have to revert back to a Hash
[22:35:04] kkiero: now i'm solving why I cannot type or paste this letter in irb
[22:42:20] MrBusiness: has joined #ruby
[22:42:26] troulouliou_dev: has joined #ruby
[22:43:37] Rodya_: has joined #ruby
[22:47:39] anuxivm: has joined #ruby
[22:49:03] ElFerna: has joined #ruby
[22:49:29] olivier__: has joined #ruby
[22:51:23] cam27: has joined #ruby
[22:51:50] postmodern: has joined #ruby
[22:54:04] hutch34: has joined #ruby
[22:57:10] skweek: has joined #ruby
[22:57:22] shinnya: has joined #ruby
[22:58:19] charliesome: has joined #ruby
[23:01:02] kkiero: hmm weird
[23:01:27] kkiero: when ruby is set to 2.3 then I can type polish letters to irb
[23:01:33] kkiero: in 2.0.0 I can't...
[23:02:34] mikecmpbll: has joined #ruby
[23:05:34] shinnya: has joined #ruby
[23:07:36] astrobunny: has joined #ruby
[23:10:21] shinnya: has joined #ruby
[23:14:26] rundor: has joined #ruby
[23:14:42] bronson: has joined #ruby
[23:15:16] rundor: has joined #ruby
[23:16:01] rundor: has joined #ruby
[23:16:08] cschneid_: has joined #ruby
[23:16:36] dstrunk: has joined #ruby
[23:16:51] rundor: has joined #ruby
[23:17:36] rundor: has joined #ruby
[23:19:11] ElFerna: has joined #ruby
[23:21:10] duderonomy: has joined #ruby
[23:21:47] cam27: has joined #ruby
[23:21:51] shinnya: has joined #ruby
[23:22:30] Radar: Time to upgrade your ruby version
[23:23:56] hahuang65: has joined #ruby
[23:26:01] kkiero: I have 2.4 from rbenv
[23:26:22] kkiero: the point is macOS system ruby version
[23:26:35] Radar: so don't use it?
[23:27:06] Rodya_: has joined #ruby
[23:27:17] hotpancakes: has joined #ruby
[23:27:44] im0nde: has joined #ruby
[23:30:27] olivier__: has joined #ruby
[23:30:40] alveric1: has joined #ruby
[23:32:17] cats: has joined #ruby
[23:36:28] Renich: has joined #ruby
[23:36:58] kkiero: Radar: unfortunatelly in mac automator I have to use it :<
[23:37:27] Radar: You can't call "rbenv use 2.4" in automator, but you can call Ruby scripts? huh?
[23:39:04] kkiero: automator runs script with /usr/bin/ruby
[23:39:07] havenwood: kkiero: you can have /usr/bin/ruby symlink point wherever you want
[23:39:15] Radar: ^ ^ ^ ^ ^
[23:39:36] kkiero: I tried this
[23:39:46] kkiero: but not /usr/bin is read only
[23:40:08] kkiero: doesn't work
[23:40:14] Radar: ?didntwork
[23:40:14] ruby[bot]: What "didn't work"? Did your server not start? Did your computer explode? Did your webpage turn bright pink? Did your client not pay your bill on time? You may have to be more specific. A Gist (http://gist.github.com) of the code that doesn't work (and the error you are getting) will be helpful.
[23:41:28] kkiero: firstly I wanted to backup system binary
[23:41:30] kkiero: mv: rename /usr/bin/ruby to /usr/bin/system_ruby: Operation not permitted
[23:41:57] Radar: ok, that doesn't work on my machine either with sudo.
[23:42:09] kkiero: I read that this is due to System Integrity Protection (SIP)
[23:42:23] troulouliou_dev: has joined #ruby
[23:42:36] kkiero: I can do this
[23:42:37] kkiero: https://stackoverflow.com/a/32661637/738150
[23:42:46] kkiero: but it's overkill
[23:42:52] dcunit3d: has joined #ruby
[23:42:58] cats: has joined #ruby
[23:44:02] havenwood: kkiero: how about a hack like: alias /usr/bin/ruby="~/.rubies/ruby-2.4.1/bin/ruby"
[23:44:31] havenwood: i'm not familiar with how automator's script-running rules
[23:45:13] frmendes: has joined #ruby
[23:46:46] Radar: kkiero: what's stopping you running the shell script as /bin/bash and then calling "rbenv use 2.4" in that shell script, then calling "ruby /path/to/script.rb" to actually run the script?
[23:47:59] digitalnomad: has joined #ruby
[23:48:34] enterprisey: has joined #ruby
[23:48:37] davidmichaelkarr: has joined #ruby
[23:49:12] knight33: has joined #ruby
[23:49:12] kkiero: that makes sense
[23:49:22] kkiero: i'm coming to this solution with every step
[23:49:23] Radar: http://imgur.com/a/VOtGk
[23:49:39] kkiero: but I don't want to keep ruby code in separate file
[23:49:56] kkiero: I will put it somehow in bash script
[23:50:43] hutch34: has joined #ruby
[23:52:18] cam27: has joined #ruby
[23:52:23] frmendes: has joined #ruby
[23:55:32] kkiero: ruby -e "puts ARGV[0].upcase" test => TEST
[23:55:53] kkiero: ruby -e "puts ARGV[0].upcase" ęóąśłżźćń => ęóąśłżźćń
[23:55:53] hutch34: has joined #ruby
[23:56:13] kkiero: ruby 2.3.1p112
[23:56:19] petruff: has joined #ruby
[23:56:32] kkiero: maybe 2.4 will be ok with this
[23:56:49] Radar: Yeah, looks like 2.3.3 locally doesn't upcase that correctly, but 2.4 does.
[23:57:09] al2o3-cr: kkiero: havenwood pointed this out you before
[23:57:41] kkiero: yep, forgot about it
[23:58:43] anuxivm: has left #ruby: ()
[23:58:51] kkiero: I didn't think that so little automator service will bring so many problems...