« Back to channel list

#ruby - 03 January 2019

« Back 1 day Forward 1 day »
[00:03:54] idiocrash: has joined #ruby
[00:14:11] Swyper: has joined #ruby
[00:15:12] cd: has joined #ruby
[00:33:09] mzo: has joined #ruby
[00:53:01] nowhere_man: has joined #ruby
[00:56:46] d10n-work: has joined #ruby
[01:08:09] orbyt_: has joined #ruby
[01:17:51] tdy: has joined #ruby
[01:26:00] bmurt: has joined #ruby
[01:26:47] r29v: has joined #ruby
[01:30:11] troulouliou_div2: has joined #ruby
[01:35:49] orbyt_: has joined #ruby
[01:51:27] jottr: has joined #ruby
[01:58:24] donofrio: has joined #ruby
[01:59:16] comet23: has joined #ruby
[01:59:41] comet23: i am having trouble writing ruby code... i converted my ruby logic to javascript and it works in javascript :/
[02:01:42] comet23: okay i got it nvm sorry for false alarm
[02:03:26] jottr: has joined #ruby
[02:07:13] tdy: has joined #ruby
[02:08:40] sanscoeur: has joined #ruby
[02:18:37] houhoulis: has joined #ruby
[02:24:55] crankharder: has joined #ruby
[02:29:27] hutch: has joined #ruby
[02:42:24] jottr: has joined #ruby
[02:48:11] jcalla: has joined #ruby
[03:06:58] duderonomy: has joined #ruby
[03:09:56] esrse: has joined #ruby
[03:19:49] orbyt_: has joined #ruby
[03:21:17] sanscoeur: has joined #ruby
[03:24:37] sanscoeur: has joined #ruby
[03:38:33] hutch: has joined #ruby
[03:42:25] jottr: has joined #ruby
[03:48:38] crankhar1er: has joined #ruby
[03:50:09] Swyper: has joined #ruby
[03:51:15] orbyt_: has joined #ruby
[03:56:57] garyserj: has joined #ruby
[04:08:59] braincrash: has joined #ruby
[04:13:35] roshanavand: has joined #ruby
[04:16:26] cnsvc: has joined #ruby
[04:26:02] Nicmavr: has joined #ruby
[04:32:50] spacesuitdiver: has joined #ruby
[04:35:37] jthomas3: has joined #ruby
[04:51:48] sauvin: has joined #ruby
[04:53:38] kapil____: has joined #ruby
[05:04:18] r3m: has joined #ruby
[05:07:18] r3m: has joined #ruby
[05:14:41] hutch: has joined #ruby
[05:25:43] sanscoeur: has joined #ruby
[05:28:44] r3m: has joined #ruby
[05:32:34] crankhar1er: has joined #ruby
[05:40:13] hutch: has joined #ruby
[05:50:11] jottr: has joined #ruby
[06:02:24] hutch: has joined #ruby
[06:03:23] ur5us: has joined #ruby
[06:07:17] conta: has joined #ruby
[06:09:03] rippa: has joined #ruby
[06:22:51] conta: has joined #ruby
[06:24:49] aupadhye: has joined #ruby
[06:25:42] dinfuehr: has joined #ruby
[06:32:29] eb0t: has joined #ruby
[06:40:11] MasterAsia: has joined #ruby
[06:57:25] dinfuehr: has joined #ruby
[07:06:47] dinfuehr: has joined #ruby
[07:11:46] dinfuehr: has joined #ruby
[07:19:00] aupadhye: has joined #ruby
[07:28:30] sleetdrop: has joined #ruby
[07:32:44] dellavg_: has joined #ruby
[07:33:32] sleetdrop: has joined #ruby
[07:33:55] esrse: has joined #ruby
[07:34:46] Puffball: has joined #ruby
[07:36:06] arup_r: has joined #ruby
[07:42:37] status402: has joined #ruby
[07:46:20] dinfuehr: has joined #ruby
[07:46:32] sanscoeur: has joined #ruby
[07:51:06] jottr: has joined #ruby
[07:51:39] tiff: has joined #ruby
[08:00:06] kapil____: has joined #ruby
[08:05:32] aufi: has joined #ruby
[08:23:11] za1b1tsu: has joined #ruby
[08:32:07] sanscoeur: has joined #ruby
[08:41:09] clemens3: has joined #ruby
[09:04:06] jottr: has joined #ruby
[09:05:07] Bish: has joined #ruby
[09:05:17] Bish: & is intersect for arrays | is union
[09:05:19] Bish: is there also
[09:05:27] Bish: {a,b,c}\{b,c} == {a}
[09:07:02] Bish: im guessing - does that, but i always figured it gets the "difference"
[09:07:12] despai: has joined #ruby
[09:12:03] mikecmpbll: has joined #ruby
[09:17:56] profetes: has joined #ruby
[09:18:37] roshanavand: has joined #ruby
[09:37:55] m0w: has joined #ruby
[09:43:11] jottr: has joined #ruby
[09:50:38] lxsameer: has joined #ruby
[09:56:02] discopatrick: has joined #ruby
[10:01:05] gix: has joined #ruby
[10:09:05] cnsvc: has joined #ruby
[10:32:51] sanscoeur: has joined #ruby
[10:37:12] jthomas3: has joined #ruby
[10:40:27] phaul: has joined #ruby
[11:10:54] Bish: why does Chronic.parse("23.05.90") ā‡’ => 2019-01-03 23:06:30 +0100
[11:24:41] canton7: Looks like it's interpreting it as a time, and "5 minutes + 90 seconds" is the same as "6 minutes and 90 seconds"
[11:27:40] Bish: yeah, that sucks
[11:28:27] canton7: *is the same as "6 minutes + 30 seconds"
[11:29:14] canton7: replace . with / and it works
[11:30:23] Bish: damn americans
[11:41:05] catbusters: has joined #ruby
[11:45:47] akem: has joined #ruby
[11:49:20] jottr: has joined #ruby
[11:50:41] mutantkeyboard: has joined #ruby
[12:08:33] status402_: has joined #ruby
[12:09:31] akem: has joined #ruby
[12:12:03] Dbugger: has joined #ruby
[12:13:16] AJA4350: has joined #ruby
[12:15:55] status402: has joined #ruby
[12:22:40] nowhere_man: has joined #ruby
[12:23:11] dmgk: has joined #ruby
[12:39:17] lucasb: has joined #ruby
[12:43:21] lxsameer: has joined #ruby
[12:43:24] jottr: has joined #ruby
[12:56:37] reber: has joined #ruby
[13:23:48] Swyper: has joined #ruby
[13:24:09] Swyper: whats the difference between function(m) and function{x} ?
[13:24:18] Swyper: like what does {} signify
[13:26:09] bmurt: has joined #ruby
[13:26:47] venmx: has joined #ruby
[13:30:26] catphish: has joined #ruby
[13:31:10] catphish: is it practical to use a SIGCHLD handler to reap terminated child processes? i was thinking of doing so, but i have a million concerns about race conditions
[13:32:02] catphish: specifically, what happens if a signal arrives during a signal handler execution? will it queue another one?
[13:32:06] tbuehlmann: Swyper: that's a block you're providing as a method argument. you can run the code from the block in your method by calling `yield`. you can also reference it by having `def function(&block)` and using `block`
[13:33:16] catphish: someone writes "pending signals of the same type are not queued", so i'm not sure how this could be used :(
[13:33:29] Swyper: def reverser({string}) is this the correct syntax? catphish
[13:33:38] Swyper: of def reverser{string}
[13:33:41] Swyper: to pass a block
[13:36:24] DTZUZO: has joined #ruby
[13:38:15] tbuehlmann: well, you wouldn't pass a string as a block, that could easily be a "regular" argument
[13:39:08] tbuehlmann: example: def twice; yield; yield; end; twice { puts('foo') }
[13:39:25] Swyper: def reverser(string="hello")
[13:39:25] Swyper: yield {|word| word.reverse}
[13:39:50] Swyper: I'm trying to make it take an input block with a default value of hello if none is given, and reverse the words
[13:40:13] leftylink: why does it need to take a block? why is a string not acceptable?
[13:40:14] tbuehlmann: if you just want to reverse something, use a regular argument: def reverse(string = 'hello'); string.reverse; end
[13:40:16] Swyper: Failure/Error: expect(result).to eq("olleh yllod")
[13:40:16] Swyper: expected: "olleh yllod"
[13:40:17] Swyper: got: "yllod olleh"
[13:40:33] Swyper: I'm just doing practice problems provided to me leftylink
[13:40:36] Swyper: not really my call
[13:41:34] leftylink: this has not convinced me that a block is needed
[13:45:43] tdy: has joined #ruby
[13:50:26] leftylink: note that the "if no block is given" is likely to be done with block_given?
[13:53:18] tdy: has joined #ruby
[13:53:50] Bish: has joined #ruby
[14:06:48] status402: has joined #ruby
[14:10:57] Swyper: has joined #ruby
[14:11:08] Swyper: okay so I have a block and I can call the block with yield
[14:11:19] Swyper: how do I reverse the words in the block using the reverse method?
[14:11:52] leftylink: the same way you would reverse words anywhere else
[14:12:18] Swyper: yield {|word| word.reverse}
[14:12:32] Swyper: does not compile
[14:13:04] Swyper: yield.reverse! does, but it also reverses the order of the words, I just want the contents of each word to be reversed
[14:13:48] leftylink: and that should tell you that `yield` is evaluating to a string. so you use the variety of string methods at your disposal
[14:14:00] rubydoc: https://ruby-doc.org/core-2.6/String.html
[14:14:44] Swyper: def reverser(string="hello")
[14:14:45] Swyper: yield.split.map {|word| word.reverse!}
[14:16:17] phaul: Swyper: what's the purpose of the string argument? You are not touching it anywhere...
[14:16:37] phaul: which should thell you that something is still amiss
[14:17:08] Swyper: with or without the string argument it compiles
[14:17:11] crankharder: has joined #ruby
[14:17:20] Swyper: but it probably should not be there cause its doing nothing like you mentioned :P
[14:17:30] Swyper: (compiles, runs and passes all test cases)
[14:18:05] Swyper: I originally did not know how to work with blocs when they are passed like this so I was experimenting with different stuff and I did not take it out that is why it was there, but I took it out now
[14:18:28] arup_r: has joined #ruby
[14:18:36] status402: has joined #ruby
[14:21:36] phaul: there are issues with your code, I don't know how or why it passes or what the task actually was, but that code certainly doesn't look right, I can detail issues with it, or we can take an other approach, you show me the task and I try to give you pointers towards a good solution
[14:33:54] Swyper: Sure, the goal of the code is to reverse the contents of each word in a given bloc phaul
[14:34:10] Swyper: I like both approaches, do you have a counter example for when it would not work ?
[14:34:24] jcalla: has joined #ruby
[14:34:27] Swyper: if so let's go with counters to fix it
[14:34:31] sanscoeur: has joined #ruby
[14:34:56] phaul: Swyper: please first paste the original exercise
[14:35:15] GinoMan: has joined #ruby
[14:38:43] Swyper: has joined #ruby
[14:38:56] Swyper: sorry having net problems phaul
[14:39:11] Swyper: sec ill post it
[14:40:16] Swyper: https://dpaste.de/JVso
[14:42:07] Inline: has joined #ruby
[14:43:13] GodFather: has joined #ruby
[14:45:10] venmx: has joined #ruby
[14:48:23] phaul: well, you missed the reversed.join(' ') bit from the channel :)
[14:52:11] status402: has joined #ruby
[14:53:00] phaul: as a rule of thumb don't use self modifing or destructive methods inside a #map altough it's fine here.
[14:53:54] dinfuehr: has joined #ruby
[14:53:59] Swyper: as a rule of thumb don't use self modifing or destructive methods inside a #map altough it's fine here. - why is that a good general practice to follow? phaul
[14:55:37] leftylink: depends on how surprised you want to be
[14:55:42] phaul: #map should be about the return value, in a functional style. we call it for what it returns. #each should be about the side effect it causes, we usually don't care about what it returns but care about what it does. dont mix them
[14:56:07] leftylink: &>> a=%w(hello world); b=a.map(&:upcase!); p a + b
[14:56:08] rubydoc: # => ["HELLO", "WORLD", "HELLO", "WORLD"] ...check link for more (https://carc.in/#/r/5wyb)
[14:56:25] leftylink: that may be seen as surprising
[14:56:35] leftylink: so one would rather use just upcase in that scenario
[14:56:38] leftylink: &>> a=%w(hello world); b=a.map(&:upcase); p a + b
[14:56:38] rubydoc: # => ["hello", "world", "HELLO", "WORLD"] ...check link for more (https://carc.in/#/r/5wyc)
[14:58:30] cow[moo]: has joined #ruby
[14:58:35] Swyper: oh interesting
[14:58:47] Swyper: glad I joined this channel on IRC, I learn lots here :)
[15:00:08] maryo: has joined #ruby
[15:01:41] status402: has joined #ruby
[15:02:46] uplime: has joined #ruby
[15:05:43] polishdub: has joined #ruby
[15:05:57] Nicmavr: has joined #ruby
[15:08:59] conta: has joined #ruby
[15:12:06] phaul: rubydoc will now go offline for a bit due to electrical wiring fixes. Should be back soon #homehostingsucks
[15:13:41] roshanavand1: has joined #ruby
[15:15:59] dinfuehr_: has joined #ruby
[15:26:00] spacesuitdiver: has joined #ruby
[15:30:59] uplime: is this a bug with rubocop? https://clbin.com/uioXb it's complaining about the unused variable &block but its implicitly getting used by the yield
[15:32:10] leftylink: hmm. I think I such a situation, it's better to just omit the arg
[15:32:23] leftylink: as in, omit the `(&block)` entirely
[15:33:09] uplime: oh, i didn't realize i could do thtat
[15:35:02] dinfuehr: has joined #ruby
[15:35:52] bmurt: has joined #ruby
[15:37:24] conta: has joined #ruby
[15:38:36] brendan-: has joined #ruby
[15:40:35] conta1: has joined #ruby
[15:41:22] mspo: $thing means run to_proc on thing, right?
[15:41:47] mspo: yeah sorry- &
[15:41:55] havenwood: mspo: both to_proc and pass as a block
[15:42:04] mspo: $thing means global thing :)
[15:45:00] dinfuehr_: has joined #ruby
[15:45:54] Rapture: has joined #ruby
[15:46:46] spacesuit: has joined #ruby
[15:54:15] hutch: has joined #ruby
[15:55:30] GinoMan2440: has joined #ruby
[15:56:27] Ookma-Kyi: has joined #ruby
[15:58:57] jthomas3: has joined #ruby
[16:00:02] Swyper: has joined #ruby
[16:01:56] tdy: has joined #ruby
[16:04:21] z4phod: has joined #ruby
[16:09:59] Ookma-Kyi: has left #ruby: ()
[16:17:22] venmx: has joined #ruby
[16:18:00] h0h0h0: has joined #ruby
[16:18:02] davidw_: has joined #ruby
[16:22:25] krawchyk: has joined #ruby
[16:30:42] akaiiro: has joined #ruby
[16:31:17] trif: has joined #ruby
[16:31:19] spacesuitdiver: has joined #ruby
[16:44:26] donofrio: has joined #ruby
[16:46:33] dinfuehr: has joined #ruby
[16:47:31] \void: has joined #ruby
[16:55:52] maryo: has joined #ruby
[16:55:57] h0h0h0: has joined #ruby
[17:04:23] r29v: has joined #ruby
[17:05:44] r29v: has joined #ruby
[17:08:54] catphish: ruby 2.6 is cowardly >> RangeError (cannot convert endless range to an array)
[17:11:19] conta: has joined #ruby
[17:15:13] phaul: has joined #ruby
[17:15:22] rubydoc: has joined #ruby
[17:19:05] hell0h0la: has joined #ruby
[17:21:16] jgpawletko: has joined #ruby
[17:25:41] havenwood: catphish: haha, just trick it: (0..).to_enum.to_a
[17:28:44] catphish: havenwood: that works :D
[17:39:02] Renich: has joined #ruby
[17:44:07] dinfuehr: has joined #ruby
[17:48:25] Renich: has joined #ruby
[17:56:24] orbyt_: has joined #ruby
[17:57:29] sanscoeur: has joined #ruby
[17:59:20] despai: has joined #ruby
[18:00:50] m0w: has joined #ruby
[18:02:01] sanscoeur: has joined #ruby
[18:09:41] krawchyk_: has joined #ruby
[18:13:55] Sembei: has joined #ruby
[18:16:06] phaul: channel logger is down...
[18:16:35] sameerynho: has joined #ruby
[18:17:07] havenwood: phaul: Move to secondary channel logger!: http://logs.ryanbigg.com/ruby
[18:17:22] havenwood: phaul: Hrm, seems up to me.
[18:17:44] havenwood: phaul: Oh, down as in not logging. Yes, I see - it's down.
[18:21:51] jcalla: has joined #ruby
[18:25:18] KeyJoo: has joined #ruby
[18:30:06] ogres: has joined #ruby
[18:31:54] Aqo: has joined #ruby
[18:47:25] nowhere_man: has joined #ruby
[18:52:30] orbyt_: has joined #ruby
[18:57:11] _whitelogger: has joined #ruby
[18:58:52] bmurt: has joined #ruby
[19:06:59] orbyt_: In a case/switch statements, can only a single "when" block be executed?
[19:07:07] orbyt_: or will any and all matching when clauses be run?
[19:07:41] havenwood: orbyt_: Just one - no fall through.
[19:08:01] orbyt_: So it runs the first match and then exists the switch?
[19:12:46] orbyt_: Confirmed with irb, thanks.
[19:20:22] RougeR: has joined #ruby
[19:27:11] tdy: has joined #ruby
[19:27:48] stryek: has joined #ruby
[19:28:07] gix: has joined #ruby
[19:32:02] djdduty: has joined #ruby
[19:32:55] djdduty: Hey guys, my Ruby.framework on macOS is missing the universal-darwin18/ruby/config.h and only has universal-darwin17/ruby/config.h, I have made sure I have the most recent version of everything. Anyone else run in to this and know the solution or if I'm asking in the wrong place?
[19:33:12] djdduty: Seems more like a package management issue than ruby, but figured I'd ask here.
[19:34:20] tdy: has joined #ruby
[19:34:24] havenwood: djdduty: How are you running into the issue?
[19:34:39] djdduty: havenwood Attempting to install a gem via a bundle install that is throwing an error about it missing.
[19:35:38] AJA4350: has joined #ruby
[19:35:41] havenwood: djdduty: Most folk on macOS opt to install a newer Ruby alongside the system Ruby to use for their own projects.
[19:35:52] havenwood: djdduty: Here's an example setup: https://ryanbigg.com/2015/06/mac-os-x-ruby-ruby-install-chruby-and-you
[19:37:37] djdduty: havenwood I used rbenv to set 2.5.3 as my global version
[19:37:48] djdduty: But for whatever reason it's still trying to use 2.3 from the System when installing the bundle
[19:37:56] djdduty: ruby -v confirms that 2.5.3 is selected.
[19:38:33] nowhere_man: has joined #ruby
[19:38:42] djdduty: looks like it may be related to macOS sdk headers or something, IIRC when I upgraded to mojave I did it before the full release (it was beta), I wonder if that's it.
[19:39:16] havenwood: djdduty: Is bundler installed on Ruby 2.5?
[19:39:41] havenwood: djdduty: What do you get for?: which bundler
[19:39:42] havenwood: djdduty: gem which bundler
[19:40:04] djdduty: which bundler does show the 2.3.0 bin
[19:40:07] djdduty: Didn't think of that.
[19:40:24] havenwood: djdduty: A `gem install bundler` should do the trick.
[19:41:07] djdduty: I'll try that, thanks.
[19:42:12] djdduty: havenwood I did a `gem update --system` and `gem install bundler` which prompted an overwrite of the bundler in the 2.5.3 directory, went ahead
[19:42:20] djdduty: which bundle/which bundler still shows the 2.3.0 path
[19:43:08] havenwood: ?rbenv djdduty
[19:43:08] ruby[bot]: djdduty: Missing command under rbenv? Did you try `rbenv rehash`?
[19:43:33] djdduty: Looks like my .zshrc has something explicitly adding the ~/.gem/ruby/2.3.0 to my path
[19:44:20] djdduty: I removed that and now which bundler points to ~/.rbenv/shims/bundler
[19:45:07] djdduty: Hey, that did it.
[19:45:11] djdduty: havenwood Thanks a million.
[19:48:06] havenwood: djdduty: šŸ‘šŸ½ np
[19:53:23] h0h0h0: has joined #ruby
[20:05:52] conta: has joined #ruby
[20:10:07] sandelius: has joined #ruby
[20:14:26] sandelius: Evening Rubyists
[20:16:06] comet23: has joined #ruby
[20:16:16] comet23: how do you define a shift operator?
[20:17:06] comet23: i mean unshift
[20:17:09] comet23: the >> operator
[20:17:16] comet23: so it will work like the << operator
[20:18:04] sandelius: comet23 ruby doesn't have a "shorthand" syntax for that, you need to call arr.unshift
[20:18:17] comet23: how would you define it though
[20:18:18] sandelius: or you want to make one?
[20:18:22] comet23: yeah i want to make one
[20:18:27] comet23: it's long overdue
[20:18:54] sandelius: ahh just define a def<<(value) method on array that uses unshift, or alias it
[20:18:57] comet23: https://repl.it/repls/DarkgreyHatefulTests
[20:19:26] comet23: that's what i've done
[20:19:29] comet23: my logic is way off
[20:21:16] sandelius: comet23 https://repl.it/repls/ExcitableOccasionalRuntimes
[20:22:14] comet23: well that's differnet
[20:22:16] sandelius: comet23 can you see my repl btw?
[20:22:30] comet23: so for me to change array methods i would have to go into the array class
[20:22:31] comet23: interesting
[20:22:34] comet23: thank you :D
[20:23:12] sandelius: ok, I do not like to "monkey-patch" core classes. I would do something like this: (one sec)
[20:24:08] sandelius: can you see my changes?
[20:26:54] tdy: has joined #ruby
[20:27:32] segy: has joined #ruby
[20:28:32] comet23: but why not just change the core class?
[20:29:45] sandelius: Cause that will change it for all array in your entire program. This used pƄ be popular but then people realized bug-hunting is just not worth it. It's pretty cool tho that we can create "operators" on the fly :)
[20:30:33] sandelius: It's about "Element of surprise" when the next person is going threw the code
[20:31:10] sandelius: IMO this is one of RoR biggest flaws
[20:34:52] leftylink: well that sounds like a time for refinements doesn't it
[20:35:45] comet23: what i fail to understand is how could it introduce bugs if the code is bug free to begin with?
[20:36:39] despai: has joined #ruby
[20:37:27] phaul: comet23: imagine the chaos if everybody is randomly adding functionality to classes that everybody uses. If two gems are adding the same methods to array differently, and you depend on both, then you are in screwed
[20:37:49] comet23: i can't imagine what you're saying :/
[20:38:24] comet23: like to me having the >> operator is intuitive
[20:39:15] phaul: yeah. and I define it so that my array shifts all of its contents (numbers) by given number of bits. Because in my domain that feels intuitive
[20:39:47] phaul: point is unless there is an authority to it , it just end up in chaos
[20:40:13] sandelius: comet23 When the project gets bigger, or many people are working on it, that's when the issues occur. Not not so much about a bug in that method, more about playing detective
[20:46:53] orbyt_: has joined #ruby
[20:47:45] dmgk_: has joined #ruby
[20:48:36] Haris: has joined #ruby
[20:48:38] Haris: hello all
[20:48:52] Haris: is there a way to uninstall all rubies/gems that got installed for some app?
[20:49:04] Haris: for .e.g, I'm installing redmine
[20:49:06] GodFather: has joined #ruby
[20:49:11] krawchyk: has joined #ruby
[20:49:36] sandelius: has joined #ruby
[20:50:01] memofun: has joined #ruby
[20:50:28] woodruffw: Haris: if you user bundler, you can remove the whole vendor/ subdirectory
[20:50:40] woodruffw: i don't think there's a clean way to do it if you used `gem` directly
[20:50:45] Haris: its empty
[20:51:00] Haris: I did run bundle install for redmine
[20:51:22] Haris: I don't have mod_passenger for centos 7 that supports ruby 2.2.2 or above
[20:51:39] havenwood: Haris: Rubies don't usually get installed with an app. How to best uninstall a Ruby depends on how you installed it.
[20:51:55] Haris: http://www.redmine.org/projects/redmine/wiki/RedmineUpgrade
[20:52:06] Haris: bundle install
[20:53:05] Haris: I have to remove bundle installed rubies/gems for redmine 4.x to then be able to install rubies/gems for redmine 3.4.7
[20:53:07] havenwood: Haris: By default, Bundler installs to $BUNDLE_PATH or $GEM_HOME. Gem you install there are intermingled with your other gems in that location. You can use --path to specify a different directory.
[20:53:41] havenwood: Haris: You can uninstall all gems with: gem uninstall --all
[20:53:49] Haris: do ruby apps run in venv?
[20:54:39] havenwood: Haris: We prefix commands with `bundle exec` to limit the gems to those specified in the Gemfile.lock.
[20:54:58] hiroaki: has joined #ruby
[20:55:06] havenwood: Haris: For deployment, we typically install gems to a /vendor directory locally in the app.
[20:55:20] Haris: that's the objective. uninstall gems that were installed from gemfile
[20:55:33] Haris: ./vendor is there. but its empty
[20:55:41] tdy: has joined #ruby
[20:55:43] Haris: looks like its going in system wide, since I'm = root
[20:56:32] havenwood: Haris: The Bundler default is &GEM_HOME. Folk often use the --deployment flag in prod for a path of ./vendor.
[20:57:42] Haris: https://www.phusionpassenger.com/library/install/apache/install/oss/rubygems_rvm/#i-have-multiple-ruby-versions-or-gemsets.-does-it-matter-which-one-i-use-to-install-passenger-with?
[20:57:50] havenwood: Haris: If you'd set a --deployment flag (which you haven't) you could run: bundle clean
[20:58:58] havenwood: Haris: I'd not worry about gems you've installed. The way Bundler works it doesn't matter what system gems are installed.
[20:59:05] Fernando-Basso: has joined #ruby
[20:59:51] havenwood: Haris: What's your goal? Deploying to prod?
[21:00:00] Haris: with an older version of redmine, I have a conflict for public_suffix
[21:00:08] Haris: and nokigori
[21:00:15] Haris: and a few others
[21:00:23] havenwood: Haris: How are you running your command? What's the command you run that results in the errors?
[21:00:26] Haris: goal is to install redmine to expose to public
[21:01:38] Haris: start w/ bundle install --without development test rmagick
[21:02:10] Haris: it installs nokogiri 1.8.5. where-as redmine 3.4.7 uses 1.6.x
[21:02:39] Haris: installs public_suffix 3.0.3. where-as redmine 3.4.7 uses 2.0.5
[21:04:38] havenwood: Haris: Those are errors from your `bundle install` command?
[21:05:03] Haris: I actually ran bundle upgrade once or twice, during install. that started it
[21:05:23] havenwood: Haris: Show the command that you run that produces and error, and what that error is?
[21:06:49] uplime: has joined #ruby
[21:10:37] Haris: GEM_HOME = /usr/local/rvm/gems/ruby-2.2.2
[21:10:50] Haris: MY_RUBY_HOME = /usr/local/rvm/rubies/ruby-2.2.2
[21:20:13] krawchyk: has joined #ruby
[21:26:16] sanscoeur: has joined #ruby
[21:31:29] sanscoeur: has joined #ruby
[21:33:19] akaiiro: has joined #ruby
[21:37:39] tiff: has joined #ruby
[21:38:32] Mike11: has joined #ruby
[21:45:46] SeepingN: has joined #ruby
[21:45:57] krawchyk: has joined #ruby
[21:47:09] MasterAsia: has joined #ruby
[21:52:56] conta: has joined #ruby
[21:58:51] krawchyk: has joined #ruby
[22:00:50] postmodern: has joined #ruby
[22:12:24] memofun: hi, i good tutorial to start coding with Ruby
[22:12:43] memofun: hi a good tutorial to start coding with Ruby please
[22:14:08] lucasb: has joined #ruby
[22:18:51] reber: has joined #ruby
[22:22:56] m0w: has joined #ruby
[22:28:52] havenwood: meinside: We list some resources here: https://ruby-community.com/pages/links
[22:29:08] havenwood: meinside: And here: https://www.ruby-lang.org/en/documentation/
[22:29:23] havenwood: meinside: This is a nice site to get started: https://ruby.github.io/TryRuby/
[22:32:03] orbyt_: has joined #ruby
[22:33:57] code_zombie: has joined #ruby
[22:41:49] hiroaki: has joined #ruby
[22:42:12] cd: has joined #ruby
[22:47:38] sanscoeur: has joined #ruby
[23:16:14] conta: has joined #ruby
[23:39:32] h0h0h0: has joined #ruby
[23:40:15] Azure: has joined #ruby
[23:42:46] jottr: has joined #ruby
[23:55:05] connermcd: has joined #ruby