« Back to channel list

#ruby - 02 August 2018

« Back 1 day Forward 1 day »
[00:00:01] eckhardt: has joined #ruby
[00:04:40] patr0clus: has joined #ruby
[00:07:16] r29v: has joined #ruby
[00:09:35] oz: has joined #ruby
[00:10:13] redlegion: has joined #ruby
[00:15:03] patr0clus: has joined #ruby
[00:15:56] n13z: has joined #ruby
[00:15:59] vonfry: has joined #ruby
[00:22:48] patr0clus: has joined #ruby
[00:25:47] trinaldi: has joined #ruby
[00:28:48] vonfry_: has joined #ruby
[00:30:26] zyxtant: has joined #ruby
[00:32:38] white_lilies: has joined #ruby
[00:40:25] balr0g: has joined #ruby
[00:43:01] cagomez: has joined #ruby
[01:00:37] meinside: has joined #ruby
[01:13:43] mikhael_k33hl_: has joined #ruby
[01:14:27] mikhael_k33hl_: I'm trying to use this gem: https://github.com/jbussdieker/ruby-rsync and want to extract only the change containing the total size, I can't seem to follow the code specially when the module Change#changed? is called
[01:14:55] mikhael_k33hl_: It has this if/else statement that return :no_change, but that return value isn't even one of the option though
[01:15:50] GodFather: has joined #ruby
[01:27:54] ur5us: has joined #ruby
[01:33:02] cagomez: has joined #ruby
[01:35:11] ur5us: has joined #ruby
[01:36:12] Guest83186: has joined #ruby
[01:44:03] n13z: has joined #ruby
[02:10:22] n13z: has joined #ruby
[02:12:17] havenwood: mikhael_k33hl_: You are correct.
[02:13:19] havenwood: mikhael_k33hl_: :no_update != :no_change
[02:13:26] havenwood: mikhael_k33hl_: the author made a mistake and it's not tested
[02:14:01] havenwood: mikhael_k33hl_: as it's written, #changed? always returns true.
[02:15:11] havenwood: mikhael_k33hl_: They *meant*: update_type != :no_update
[02:15:51] havenwood: mikhael_k33hl_: Do a PR and close this issue: https://github.com/jbussdieker/ruby-rsync/issues/15
[02:16:12] havenwood: mikhael_k33hl_: def changed?; update_type != :no_update end
[02:18:15] mikhael_k33hl_: havenwood: thanks for confirming that one
[02:22:32] jp: has joined #ruby
[02:49:33] alfiemax: has joined #ruby
[02:50:58] tty: has joined #ruby
[02:54:07] alyptik: has joined #ruby
[02:55:53] jp: has joined #ruby
[02:59:12] kapil___: has joined #ruby
[03:00:31] cadillac_: has joined #ruby
[03:05:16] nowhere_man: has joined #ruby
[03:11:13] braincrash: has joined #ruby
[03:35:55] orbyt_: has joined #ruby
[03:36:49] Guest83186: has joined #ruby
[04:16:42] patr0clus: has joined #ruby
[04:18:15] patr0clus: has joined #ruby
[04:21:53] patr0clus: has joined #ruby
[04:32:26] alfiemax: has joined #ruby
[04:35:37] Guest83186: has joined #ruby
[04:37:26] Puffball: has joined #ruby
[04:37:27] voiceftp: has joined #ruby
[04:37:33] voice_ftp: has joined #ruby
[05:01:43] duderonomy: has joined #ruby
[05:07:19] sauvin: has joined #ruby
[05:08:25] iMadper: has joined #ruby
[05:10:10] s3nd1v0g1us: has joined #ruby
[05:43:44] cagomez: has joined #ruby
[05:48:09] bak1an: has joined #ruby
[05:54:24] howdoi: has joined #ruby
[06:03:11] zenspider: I *might* be starting to grok haskell... who knew?!?
[06:03:17] venmx: has joined #ruby
[06:10:47] biberu: has joined #ruby
[06:14:41] Nicmavr: has joined #ruby
[06:16:33] snickers: has joined #ruby
[06:22:28] jp: has joined #ruby
[06:53:06] tristanp: has joined #ruby
[06:56:53] Arahael: zenspider: Lost, are you? :)
[06:59:19] nowhere_man: has joined #ruby
[07:01:54] yohji: has joined #ruby
[07:16:45] mtkd: has joined #ruby
[07:17:29] sysvalve: has joined #ruby
[07:18:39] conta: has joined #ruby
[07:22:37] clemens3_: has joined #ruby
[07:26:14] dionysus69: has joined #ruby
[07:35:36] vondruch_: has joined #ruby
[07:36:55] Liothen: has joined #ruby
[07:37:36] jmcgnh_: has joined #ruby
[07:39:04] devyn: has joined #ruby
[07:40:59] Alina-malina: has joined #ruby
[07:43:19] avelldiroll: has joined #ruby
[07:44:22] za1b1tsu: has joined #ruby
[07:48:31] za1b1tsu: has joined #ruby
[07:48:31] edwardly: has joined #ruby
[07:48:31] gsingh93: has joined #ruby
[07:48:31] spider-mario: has joined #ruby
[07:48:31] thinkpad: has joined #ruby
[07:48:31] jmcgnh: has joined #ruby
[07:48:32] havenwood: has joined #ruby
[07:49:40] CrazyEddy: has joined #ruby
[07:50:34] shortdudey123: has joined #ruby
[08:11:52] Alina-malina: has joined #ruby
[08:16:06] alfiemax: has joined #ruby
[08:20:46] georgie: has joined #ruby
[08:22:56] User458764: has joined #ruby
[08:28:27] alfiemax: has joined #ruby
[08:28:32] Dbugger: has joined #ruby
[08:37:35] wildermind: has joined #ruby
[08:38:54] tristanp: has joined #ruby
[08:39:34] Blaguvest: has joined #ruby
[08:39:47] venmx: has joined #ruby
[08:41:38] dr3wo: has joined #ruby
[08:44:22] Guest83186: has joined #ruby
[08:45:10] reber: has joined #ruby
[08:47:19] Beams: has joined #ruby
[08:49:20] apeiros: has joined #ruby
[08:52:21] bak1an: has joined #ruby
[09:34:19] InfinityFye: has joined #ruby
[09:45:16] arekushi: has joined #ruby
[10:11:03] alfiemax: has joined #ruby
[10:12:17] mikecmpbll: has joined #ruby
[10:21:28] alex-kid: has joined #ruby
[10:21:42] alex-kid: Is there a way to implement function signature?
[10:22:05] alex-kid: or have to handle different behaviours in single one function :|
[10:23:06] ineb: any way wo write this shorter? (1..5).map{|x| h = {}; h[1] = x; h[2] = x*x; h } ?
[10:23:35] leah2: >> (1..5).map { |x| {1=>x,2=>x*x} }
[10:23:58] ciro: has joined #ruby
[10:23:58] leah2: hm, no evalbot
[10:24:10] ineb: >> p 'thx'
[10:26:55] ineb: alex-kid: not in an easy/convienient way.
[10:27:10] ineb: it makes no sense in a typeless language if you think about it
[10:30:20] alfiemax: has joined #ruby
[10:30:33] konsolebox: has joined #ruby
[10:31:22] Sylario: has joined #ruby
[10:32:25] elomatreb: alex-kid: Generally you approach this kind of thing in Ruby by using default values for arguments, and selecting these so that all different behaviors are special cases of one general behavior
[10:32:57] alex-kid: The function can becomes really biggy
[10:33:21] alex-kid: instead of separating the behaviour in different implementation
[10:33:29] alex-kid: / signature
[10:33:49] elomatreb: This sadly is the downside of non-strict typing, as there is no consistent concept of signature in Ruby
[10:33:56] alex-kid: Crystal looks great in that regard
[10:34:09] alex-kid: "Fast as C, slick as Ruby"
[10:34:17] apeiros: alex-kid: if it's different behaviors, it should be different methods IMO
[10:34:34] apeiros: after all, a method should say what it does. and if it does different things, then it can't possibly do that.
[10:34:56] alex-kid: Is there inner / outer named parameters?
[10:36:07] elomatreb: There are keyword arguments that work basically like named parameters, not sure what you mean by inner/outer
[10:37:10] hahuang65: has joined #ruby
[10:37:20] alex-kid: https://crystal-lang.org/docs/syntax_and_semantics/default_values_named_arguments_splats_tuples_and_overloading.html
[10:37:28] alex-kid: # External names
[10:38:28] elomatreb: No, Ruby does not have this
[10:39:17] alex-kid: and to know if a method takes named arguments?
[10:39:40] tristanp: has joined #ruby
[10:39:51] alex-kid: I forget how to do
[10:41:05] elomatreb: You can't differentiate between named parameters and positionals (and optional vs. required) at runtime, you need to look at the source
[10:41:27] alex-kid: I’m sure there is some hacky way
[10:41:52] dionysus69: has joined #ruby
[10:42:27] alex-kid: method, parameters = case message
[10:42:38] elomatreb: For methods that are defined in Ruby (i.e. not a native extension) you can look at Method#source to get their source code, and interpret that. But don't.
[10:42:47] alex-kid: [:method, { a: 1 }]
[10:43:55] alfiemax: has joined #ruby
[10:46:01] alex-kid: #parameters can help
[10:46:40] ineb: when in ruby mindset, there is rarely a situation where you need function signatures
[10:48:12] ineb: at least thats what iam experiencing.
[10:48:24] ineb: if you really need a distinction then you must do type checking one way or another
[10:48:45] AJA4350: has joined #ruby
[10:48:52] alex-kid: ineb: https://gist.github.com/alexherbo2/a34cfc5029b203d827bed2538badad4a#file-tmux-msg-L113-L118
[10:49:22] alex-kid: I would like to call the function rightly
[10:49:30] alex-kid: something like
[10:49:55] alex-kid: command.positional?
[10:50:18] cschneid_: has joined #ruby
[10:50:18] alex-kid: ? command.call *arguments
[10:50:24] alex-kid: : command.call **arguments
[10:50:43] livcd: alex-kid: i would assume this would be possible with sorbet.rb
[10:50:52] ineb: the issue is the case statement before which returns symbols or procs
[10:52:59] ineb: one stupid way to fix the case for Symbol or Proc is to return a Proc in every case with needed actions inside that Proc
[10:53:16] ineb: lots of code duplication of course
[10:56:36] ineb: i dont know the code but in your example you only have one case which returns a Proc and it has empty arguments anyway
[10:57:06] ineb: why not [:inspect, Commands.to_h ] or something like that
[10:57:58] ineb: anyway.. all i want to say is that a requirement for function signatures in ruby is often a design smell
[10:59:05] alex-kid: What is the method name for "foo".match ['foo','bar'] ?
[10:59:28] alex-kid: (not ['foo','bar'].include? 'foo')
[11:01:08] ineb: "foo".match(%r{foo|bar}) ?
[11:01:47] alex-kid: I would the equivalent of: arrayOfValues.includes? value
[11:02:14] alex-kid: but calling on value.{name} arrayOfValues
[11:03:06] alex-kid: def positional?
[11:03:08] alex-kid: parameters.length.zero? or [:req, :rest].include? parameters.first.first
[11:04:02] alex-kid: foo = -> { 1 }
[11:04:14] alex-kid: foo.positional? # true
[11:04:28] alex-kid: foo = -> { |a, b| a + b }
[11:04:29] alex-kid: foo.positional? # true
[11:04:46] alex-kid: foo = -> (a:, b:) { a + b }
[11:04:50] alex-kid: foo.positional? # false
[11:07:56] Alina-malina: has joined #ruby
[11:07:57] Zinder: has joined #ruby
[11:07:57] Sylario: has joined #ruby
[11:07:57] jmhmccr: has joined #ruby
[11:08:37] alex-kid: ineb: https://dzone.com/articles/method-reverse-perspective
[11:08:50] alex-kid: I’m looking for a built-in #in? method
[11:09:28] apeiros: there is none. since there's little sense for an object to know how each collection type works.
[11:09:58] apeiros: of course you can implement it by delegating it to the collection object, as in: class Object; def in?(collection); collection.include?(self); end; end
[11:10:22] apeiros: but IMO that's pointless. just let the one which has the required knowledge do it directly.
[11:10:23] alex-kid: What do you think of the Proc#positional? implementation above
[11:10:27] alex-kid: is it robust enough?
[11:10:53] apeiros: I'm not quite sure what I'd use it for
[11:11:24] apeiros: I tend to reserve introspection for debugging
[11:11:36] alex-kid: for tmux-msg
[11:11:53] alex-kid: command, parameters
[11:12:02] alex-kid: when parsing the command-line
[11:13:45] AJA4351: has joined #ruby
[11:14:03] AndroidKitKat: has joined #ruby
[11:16:13] Alina-malina: has joined #ruby
[11:18:43] alex-kid: apeiros: found an old code
[11:20:04] alex-kid: apeiros: https://gist.github.com/alexherbo2/fe575ed40aae72f9d9f8c96ba6c2bfee
[11:21:13] apeiros: not parameters.find { |type, name| type == :key }.nil? --> parameters.any? { |type, name| type == :key }
[11:21:34] apeiros: I still don't really see the point of having that :-/
[11:22:07] mikecmpbll: has joined #ruby
[11:23:44] apeiros: looks a bit like currying to me, but not sure since I rarely use those techniques. maybe talk to baweaver.
[11:23:44] alex-kid: yep it’s currying
[11:23:44] AJA4351: has joined #ruby
[11:25:47] dr3w___: has joined #ruby
[11:30:04] ciro: has joined #ruby
[11:35:13] User458764: has joined #ruby
[11:48:02] cadillac_: has joined #ruby
[11:55:06] fmcgeough: has joined #ruby
[12:03:28] conta: has joined #ruby
[12:03:33] za1b1tsu: has joined #ruby
[12:12:22] augcesar: has joined #ruby
[12:12:24] rikkipitt: has joined #ruby
[12:24:40] ec: has joined #ruby
[12:28:24] User458764: has joined #ruby
[12:28:48] GodFather: has joined #ruby
[12:30:32] Zaab1t: has joined #ruby
[12:44:15] cagomez: has joined #ruby
[12:56:35] Blaguvest: has joined #ruby
[12:56:42] fmcgeough: has joined #ruby
[12:59:21] strmpnk: has joined #ruby
[13:01:49] apeiros__: has joined #ruby
[13:14:18] dendazen: has joined #ruby
[13:16:28] beefjoe: has joined #ruby
[13:21:25] bmurt: has joined #ruby
[13:30:16] p4p0l0: has joined #ruby
[13:31:16] mikecmpbll: has joined #ruby
[13:39:52] Rapture: has joined #ruby
[13:40:45] gnufied: has joined #ruby
[13:41:08] mgilles: has joined #ruby
[13:46:25] unshackled: has joined #ruby
[13:48:02] joast: has joined #ruby
[13:52:37] _Caerus: has joined #ruby
[13:53:25] Inline: has joined #ruby
[14:14:11] alfiemax: has joined #ruby
[14:17:28] elcuervo: has joined #ruby
[14:31:24] Mike11: has joined #ruby
[14:36:43] AJA4350: has joined #ruby
[14:38:47] Alina-malina: has joined #ruby
[14:40:57] Alina-malina: has joined #ruby
[14:44:49] Alina-malina: has joined #ruby
[14:48:19] AJA4350: has joined #ruby
[14:57:48] ivanskie: has joined #ruby
[15:00:21] Cybergeek: has joined #ruby
[15:05:39] rippa: has joined #ruby
[15:07:02] ivanskie: has joined #ruby
[15:09:19] AJA4350: has joined #ruby
[15:10:11] conta: has joined #ruby
[15:12:42] Alina-malina: has joined #ruby
[15:20:04] ivanskie: has joined #ruby
[15:27:32] ivanskie: has joined #ruby
[15:28:42] tcopeland: has joined #ruby
[15:39:39] fury: has left #ruby: ()
[15:42:03] psychicist__: has joined #ruby
[15:45:20] AJA4350: has joined #ruby
[15:48:45] qolq: has joined #ruby
[15:48:53] millerti: has joined #ruby
[15:48:55] ivanskie: has joined #ruby
[15:50:01] cajone: has joined #ruby
[15:50:20] cajone: has left #ruby: ()
[15:50:57] tristanp: has joined #ruby
[15:54:22] dviola: has joined #ruby
[15:56:55] lunarkitty7: has joined #ruby
[16:00:02] p4p0l0: has joined #ruby
[16:03:40] cagomez: has joined #ruby
[16:04:04] cagomez: has joined #ruby
[16:08:04] [Butch]: has joined #ruby
[16:08:39] maryo: has joined #ruby
[16:09:13] maryo: I have executed bundle command as root and it looks like it has broken ruby environment for all the users. Can someone guide on how to fix this issue?
[16:14:40] bak1an: has joined #ruby
[16:26:36] [Butch]: has joined #ruby
[16:27:20] havenwood: maryo: What type of issues are you running into? System gems ahead of user gems in the PATH?
[16:27:33] vutral|kali: maryo: why dont you use rvm
[16:27:51] maryo: havenwood, yep exactly
[16:28:40] havenwood: maryo: Do you want to uninstall all system gems, then? Was it just default-installed gems before you sudo bundled?
[16:30:45] eckhardt: has joined #ruby
[16:31:33] maryo: havenwood, I have managed to fix the issue. Now while trying to run the command 'gem install bundler' as non root user. I am getting this error https://dpaste.de/DuGN
[16:32:42] havenwood: maryo: Did you delete rdoc on purpose? You can switch to not build documentation to work around this, or get rdoc working. Which do you prefer?
[16:33:42] maryo: havenwood, which ever is the easies one. Probably fixing the rdoc. I hope I have deleted it by mistake
[16:33:55] havenwood: maryo: What version of Ruby?
[16:34:10] maryo: havenwood, ruby 2.0.0p648 (2015-12-16) [x86_64-linux]
[16:34:41] havenwood: Actually, rdoc is a default gem... it's not supposed to be removable!
[16:35:06] havenwood: Maybe the way Ruby was packaged?
[16:35:12] Alina-malina: has joined #ruby
[16:35:19] havenwood: maryo: Is this a Ruby 2.0 package? Which OS/distro?
[16:35:55] maryo: havenwood, CentOS 7 (ruby-2.0.0.648-33.el7_4.x86_64)
[16:37:49] havenwood: maryo: Try installing the ruby-doc package.
[16:37:54] conta: has joined #ruby
[16:38:13] havenwood: maryo: yum install ruby-doc
[16:38:40] havenwood: maryo: Or skip documentation when installing gems with the `--no-document` flag.
[16:39:13] maryo: havenwood, Package rubygem-rdoc-4.0.0-33.el7_4.noarch already installed and latest version
[16:39:13] maryo: . Hopefully reinstallation will help?
[16:40:24] dionysus69: has joined #ruby
[16:40:48] edwardly: has joined #ruby
[16:42:28] Alina-malina: has joined #ruby
[16:43:34] chouhoulis: has joined #ruby
[16:47:53] orbyt_: has joined #ruby
[16:49:23] maryo: havenwood, I have installed dashing using bundle install command as non root user. But it is not able to find the binary. Any idea what could be wrong? https://dpaste.de/2336#
[16:50:53] krawchyk: has joined #ruby
[16:54:58] Nicmavr: has joined #ruby
[16:56:10] jp: has joined #ruby
[16:57:27] maryo: in addition whenever I execute gem info gem_name I get this error https://dpaste.de/JrE4
[17:00:40] yorickpeterse: has joined #ruby
[17:11:16] InfinityFye: has left #ruby: ("Leaving")
[17:12:14] Demos: has joined #ruby
[17:13:51] jcarl43: has joined #ruby
[17:27:41] cats: has joined #ruby
[17:29:46] ivanskie: has joined #ruby
[17:30:17] lomex: has joined #ruby
[17:30:36] Pisuke: has joined #ruby
[17:36:35] conta: has joined #ruby
[17:43:48] Alina-malina: has joined #ruby
[17:43:59] g-: maryo: sounds like your PATH does not include the location of the binary.
[17:45:05] samosaphile: has joined #ruby
[17:45:40] g-: maryo: perhaps something like `export PATH="/path/to/binary/dir:$PATH"`
[17:46:31] ldepandis: has joined #ruby
[17:47:08] gnufied: has joined #ruby
[17:47:55] Demos: has joined #ruby
[17:50:40] tolland: has joined #ruby
[17:54:07] alfiemax: has joined #ruby
[17:56:36] tolland: on fedora im trying to run jekyll but I'm getting the error `Ignoring eventmachine-1.2.5 because its extensions are not built.` however it looks like there is a ~/.gem/ruby/extensions/x86_64-linux/2.5.0/eventmachine-1.2.5/rubyeventmachine.so and also a ~/.gem/ruby/gems/eventmachine-1.2.5/ext/rubyeventmachine.so
[17:57:17] tolland: presumably it's looking in the wrong place, but I don't see any options to set that path
[17:57:43] tolland: (I'm trying to run jekyll with `bundle exec jekyll serve`)
[17:58:33] biberu: has joined #ruby
[17:59:16] Alina-malina: has joined #ruby
[18:01:30] g-: tolland: was the eventmachine gem install with bundler?
[18:03:31] Eiam: has joined #ruby
[18:07:03] def_jam: has joined #ruby
[18:07:55] tolland: I ran `bundle install` in the jekyll folder before... and it tried to install eventmachine
[18:09:08] AJA4350: has joined #ruby
[18:09:26] tolland: ok, it's also missing native extensions for others... here is the output of `bundle install` https://paste.fedoraproject.org/paste/Z2h2vKmhMfLtpjZXLC7e2g
[18:10:06] tolland: if I strace running jekyll `strace -o strace.log -f -e trace=file bundle exec jekyll serve`
[18:10:26] tolland: it seems to be looking in 2 places for the gem.build_complete file
[18:10:53] tolland: https://paste.fedoraproject.org/paste/~7dxe3R6TYQ2tEQvIMsHdQ
[18:11:05] tolland: it's not looking in the local directory
[18:11:49] havenwood: maryo: You can do something like: export PATH="$(gem env gemdir)/bin:$PATH"
[18:12:25] SeepingN: has joined #ruby
[18:17:07] patr0clus: has joined #ruby
[18:17:21] tolland: actually, there is a system eventmachine native extension here - /usr/share/gems/gems/eventmachine-1.2.5/ext/rubyeventmachine.so
[18:19:02] [Butch]: has joined #ruby
[18:20:06] apeiros: has joined #ruby
[18:21:41] tolland: ok. so if I install them manually using `sudo gem install xxxx --version 1.2.3` then those native extensions are put under /usr/lib64/gems/ruby/ and `bundle exec` will run.
[18:22:14] tolland: but it would be nice to get bundler to look in the ~/.gem/ folder for gem.build_complete
[18:22:24] tolland: as this makes a mess of things
[18:25:32] \void: has joined #ruby
[18:27:33] maryo_: has joined #ruby
[18:31:14] qolq: i've just seen an instance method named 'new' in production ruby code
[18:31:21] qolq: i'm inclined to think this is badly named
[18:31:26] qolq: is it? or is this normal in ruby?
[18:31:59] s3nd1v0g1us: has joined #ruby
[18:37:59] orbyt_: has joined #ruby
[18:38:53] [Butch]: has joined #ruby
[18:38:57] havenwood: qolq: I'm curious, on a module or class?
[18:39:06] havenwood: Oh, instance method.
[18:40:22] z64: yeah. i would be inclined to argue that should be named more explicitly
[18:40:52] havenwood: I don't see problems beyond naming.
[18:41:52] havenwood: qolq: The ::new that #initialize uses won't mind if there's a #new.
[18:42:55] qolq: yeah. i played around with it on irb and it works fine
[18:43:13] qolq: my concern was potential confusion with the class method
[18:44:03] qolq: but then i thought maybe it could be a common thing ruby
[18:44:12] z64: i mean you can very well do `klass = Foo`, `klass.new #=> <Foo ..>`. does it actually return a new instance of T?
[18:44:53] z64: i.e. some sort of custom .dup?
[18:45:45] qolq: that would return a new instance of Foo
[18:46:09] qolq: but if you did klass.new.new, it would call the instance method you defined
[18:46:23] z64: yeah i get you. i'm just curious about the code in question
[18:46:32] z64: like, what does this #new actually do
[18:46:49] qolq: i don't really remember
[18:47:06] qolq: i don't have the code on hand
[18:47:21] qolq: but it was something that could very easily have been named something else
[18:47:30] qolq: something less confusing
[18:48:05] z64: my point of `klass = Foo` is that you could write code that might look like its an instance method, so i think its a reason for a double-take for sure
[18:50:25] qolq: definitely
[18:50:32] qolq: just wanted to make sure
[19:00:05] sameerynho: has joined #ruby
[19:12:17] maryo_: havenwood, as of now when I do "gem install dashing". the binary by default gets installed in this path /usr/bin/dashing and this is a global path.. Not sure why its happening like this. any idea?
[19:15:12] havenwood: maryo_: Where were you expecting it to install?
[19:15:32] havenwood: maryo_: Sanity check that you're using the `gem` you're expecting: command -v gem
[19:15:49] Demos: honestly gem should just never install in /usr/bin
[19:16:06] Demos: unless gem calls out to the system package manager
[19:16:15] havenwood: maryo_: Is GEM_HOME set?: printenv GEM_HOME
[19:16:19] Demos: but yes try `type gem`
[19:16:51] havenwood: maryo_: I'm kinda curious what all Rubies you have installed. What do you get for?: which -a gem
[19:16:55] maryo_: havenwood, GEM_HOME is not set
[19:17:12] Demos: my gem (from rubygems-2.7.6-93.fc28.noarch) installs to /home/<me>/bin by defaulkt
[19:17:30] maryo_: havenwood, $ which -a gem
[19:17:38] maryo_: /usr/bin/gem
[19:18:26] maryo_: Demos, $ type gem
[19:18:27] maryo_: gem is hashed (/usr/bin/gem)
[19:19:02] maryo_: Demos, yep that location seems to be perfect. I am also expecting that it should go under /home/<me>/bin
[19:20:02] havenwood: maryo_: You can set GEM_HOME for an alternate installation location. There's also a --user-install flag for installing in your home dir rather than GEM_HOME.
[19:20:14] havenwood: There's also an --install-dir flag.
[19:21:09] Demos: distros love to patch install locations for these sorts of tools <glares>
[19:21:16] Demos: <directly at debian>
[19:21:19] havenwood: maryo_: You can set --user-install to be persisted by adding it to your ~/.gemrc: gem: "--user-install"
[19:23:25] nowhere_man: has joined #ruby
[19:23:34] maryo_: havenwood, thank you. Can you also please guide me in setting the PATH for the executables? This is what I get -> https://dpaste.de/7SJ5
[19:24:13] dionysus69: has joined #ruby
[19:27:36] havenwood: maryo: export PATH="$(gem env gemdir)/bin:$PATH"
[19:28:02] havenwood: maryo_: Or if you want to hardcode it: export PATH="/home/maryo/.gem/ruby/2.1.0/bin:$PATH"
[19:29:14] maryo_: havenwood, gem env gemdir shows "/usr/lib/ruby/gems/2.1.0" instead of "/home/maryo/.gem/ruby/2.1.0/bin:$PATH" why so?
[19:29:51] havenwood: maryo_: I guess gemdir isn't --user-install aware.
[19:30:15] havenwood: There should also be a gembindir, or whatever it should be called.
[19:30:47] trinaldi: has joined #ruby
[19:35:23] lytol_: has joined #ruby
[19:36:09] trinaldi: has joined #ruby
[19:38:12] trinaldi: has joined #ruby
[19:39:20] orbyt_: has joined #ruby
[19:41:30] trinaldi: has joined #ruby
[19:41:55] gnufied: has joined #ruby
[19:42:12] mondz: has joined #ruby
[19:42:51] sticaz: has joined #ruby
[19:43:10] Dbugger: has joined #ruby
[19:45:55] giraffe: has joined #ruby
[19:51:00] bmurt: has joined #ruby
[19:53:47] AJA4350: has joined #ruby
[20:05:06] chouhoulis: has joined #ruby
[20:05:08] AJA4351: has joined #ruby
[20:06:58] lomex: has joined #ruby
[20:21:58] DTZUZO: has joined #ruby
[20:22:32] machinewar: has joined #ruby
[20:22:42] machinewar: anyone know what the FI is on the end of this unicode code point? \u0000FI
[20:26:00] AJA4351: has joined #ruby
[20:32:05] orbyt_: has joined #ruby
[20:35:26] zenspider: machinewar: that's a rather vague question... but I suggest you puts it
[20:35:49] machinewar: yes it just prints FI because its not part of the codeponit
[20:35:51] machinewar: I'm getting this value from Redis
[20:35:56] machinewar: I wonder if redis has a custom encoding?
[20:38:21] r29v: has joined #ruby
[20:41:20] AJA4351: has joined #ruby
[20:44:44] weaksauce: has joined #ruby
[20:48:45] s3nd1v0g1us: has joined #ruby
[20:50:19] AJA4351: has joined #ruby
[20:51:47] ivanskie: has joined #ruby
[20:56:16] DarthGandalf: has joined #ruby
[20:58:25] GodFather: has joined #ruby
[21:04:51] beowuff: has joined #ruby
[21:08:06] eddof13: has joined #ruby
[21:11:58] dr3wo: has joined #ruby
[21:23:27] weaksauce: has joined #ruby
[21:26:53] r29v: has joined #ruby
[21:27:11] akaiiro: has joined #ruby
[21:32:16] AJA4351: has joined #ruby
[21:33:46] venmx: has joined #ruby
[21:36:39] fmcgeough: has joined #ruby
[21:40:58] sonOfRa: has joined #ruby
[21:42:17] beowuff: has joined #ruby
[21:43:01] eckhardt: has joined #ruby
[21:43:19] AJA4351: has joined #ruby
[21:45:11] ur5us: has joined #ruby
[21:47:28] ricer2: has joined #ruby
[21:47:49] dviola: has joined #ruby
[21:59:45] AJA4351: has joined #ruby
[22:12:00] apeiros: has joined #ruby
[22:24:06] ellcs: has joined #ruby
[22:25:06] eckhardt: has joined #ruby
[22:28:11] patr0clus: has joined #ruby
[22:39:36] moei: has joined #ruby
[22:59:39] apeiros: has joined #ruby
[23:06:37] bmurt: has joined #ruby
[23:09:54] Paraxial: has joined #ruby
[23:14:19] Pisuke: has joined #ruby
[23:15:15] apeiros: has joined #ruby
[23:16:38] orbyt_: has joined #ruby
[23:18:51] cyberRodent: has joined #ruby
[23:20:24] venmx: has joined #ruby
[23:22:38] white_lilies: has joined #ruby
[23:37:18] beowuff: has joined #ruby
[23:49:15] cadillac_: has joined #ruby