« Back to channel list

#ruby - 07 June 2019

« Back 1 day Forward 1 day »
[00:01:02] Swyper: has joined #ruby
[00:02:20] bambanxx: has joined #ruby
[00:10:42] cerulean: has joined #ruby
[00:13:18] Nicmavr: has joined #ruby
[00:16:27] amjam: has joined #ruby
[00:16:49] amjam: Hi ruby. I just tried to install two gems (bundler and vimgolf) -- both were successful, but I can't seem to locate them in my path. Am i doing something wrong?
[00:17:06] amjam: running "gem list" shows vimgolf, but "which vimgolf" shows nothing.
[00:18:32] bradleyprice: has joined #ruby
[00:20:34] amjam: this is my gem environment: https://pastebin.com/Nvtis8k3
[00:20:35] ruby[bot]: amjam: we in #ruby do not like pastebin.com, it loads slowly for most, has ads which are distracting and has terrible formatting. Please use https://gist.github.com
[00:28:37] StarLord__: has joined #ruby
[00:28:52] SeepingN: should vimgolf be a full executable??
[00:29:08] SeepingN: you're installing a gem, but looking for a *nix executable
[00:29:50] a7d7p7: has joined #ruby
[00:33:54] wallace_mu: has joined #ruby
[00:34:50] CCDelivery: has joined #ruby
[00:37:26] adam12: amjam: Did you look in /home/f/.gem/ruby/2.4.0/bin ?
[00:40:37] cerulean: has joined #ruby
[00:44:12] Swyper: has joined #ruby
[00:50:05] fphilipe: has joined #ruby
[00:59:55] amjam: adam12: thank you! that did the trick.
[01:00:12] amjam: I added $HOME/.gem/ruby/2.4.0/bin to my $PATH and we're all good to go now.
[01:00:17] Swyper: has joined #ruby
[01:00:20] amjam: SegFaultAX: vimgolf is an executable.
[01:02:04] DaRock: has joined #ruby
[01:02:31] DaRock: I'm having some trouble with test::unit
[01:02:59] adam12: amjam: Great news.
[01:03:09] DaRock: I'm a newb to ruby and testing, and I'm trying to debug these test I've written
[01:03:37] ur5us: has joined #ruby
[01:04:20] DaRock: I've tried using ruby-debug, but that appears to be deprecated, I've tried with byebug, but that also isn't working - it can't import the module or something
[01:04:27] adam12: DaRock: Did you choose test::unit for a reason?
[01:04:47] DaRock: It seems to have issue in one of my switch cases
[01:05:03] DaRock: but I can't figure out what exactly as the code works normally
[01:05:36] DaRock: it seemed logical? I don't know - wikipedia books had a good example for it. Why?
[01:06:07] adam12: DaRock: Don't quote me on it, but I don't know how maintained it is. Most people have moved on to minitest or rspec... so I was curious if it was chosen for a specific reason.
[01:06:27] DaRock: All I'm getting in the test runs is: NoMethodError: undefined method `include?' for nil:NilClass
[01:06:39] adam12: DaRock: That said. The easiest thing to do is to paste the backtrace/error you get, and the code that's erroring. Use Github Gist preferably but any paste tool is fine.
[01:07:08] DaRock: and I can't seem to just do a puts to output a quick debug output
[01:07:32] jenrzzz: has joined #ruby
[01:07:39] adam12: DaRock: Maybe puts is working, but because it's nil you're getting no output.
[01:08:19] DaRock: no, puts is in the test itself - I'm trying to figure out if the code I'm testing is getting all the right arguments
[01:08:35] adam12: DaRock: Share some code. Anything else we'll just be speculating.
[01:08:56] DaRock: Ideally some form of debug is really going to help here, but the testing framework doesn't seem to allow it
[01:09:23] ur5us: has joined #ruby
[01:09:25] adam12: DaRock: If you're on a recent version of Ruby, put binding.irb before the line you're getting an error on, and it should drop you into a REPL that will let you poke at some of the variables.
[01:09:59] adam12: DaRock: If you're not, install the `pry` gem and use binding.pry instead.
[01:10:26] laaron: has joined #ruby
[01:10:48] DaRock: agreed. But what I'd really like to know is how to accurately debug in the test framework, so any ideas along that line would be a good idea - as in what devs are using themselves in this situation
[01:10:58] dbugger__: has joined #ruby
[01:11:28] DaRock: what docs are there on binding?
[01:12:21] laaron: has joined #ruby
[01:12:29] adam12: DaRock: Byebug should just work fine, tho I'll admit I normally just use binding.pry and the REPL it provides.
[01:13:03] adam12: DaRock: Binding is a context for all things in Ruby. pry and irb are methods on that context, and going into the detail on why those methods are on binding is likely more than you need to know at this point.
[01:13:19] AJA4350: has joined #ruby
[01:13:57] adam12: DaRock: If you're curious why I suggested pry and binding.pry, there are some good videos on the Pry website that explain it. It's not a real debugger, but it gives you a breakpoint at the place you insert the call, and let's you poke around inside the context of the call.
[01:14:12] adam12: DaRock: https://pryrepl.org/screencasts.html
[01:14:28] DaRock: thx adam12
[01:15:14] DaRock: I'm wondering how I've not come across this binding before in ruby if its is a common debug tool...
[01:15:21] adam12: DaRock: Use 'p' or 'pp' instead of 'puts' when "print debugging" can help too.
[01:15:41] adam12: DaRock: It's not. Binding is just a context that gets past around with methods/etc.
[01:15:47] DaRock: I've heard (and use) pp, but not 'p' yet
[01:16:08] comet23: has joined #ruby
[01:16:16] DaRock: I've still got to investigate it - it looks like it could be extremely useful :-)
[01:16:30] comet23: my word censor isn't censoring the o char
[01:16:41] comet23: https://repl.it/repls/ProfitableReliableObjects
[01:19:40] esp32_prog: has joined #ruby
[01:19:43] adam12: comet23: You have an issue with case. You check if 'Gosh' is in the curse word list but it's not, because it's actually in the list as 'gosh'.
[01:20:24] comet23: i spotted the error :/
[01:20:36] comet23: sometimes i can't code
[01:29:18] cloaked1: has joined #ruby
[01:30:04] laaron-: has joined #ruby
[01:35:41] adam12: comet23: is that homework or something else?
[01:37:32] Swyper: has joined #ruby
[01:40:38] adam12: comet23: I rewrote it in 7 lines, if you want' to see it. But I don't want to spoil homework.
[01:44:16] Talion: has joined #ruby
[01:47:17] jenrzzz: has joined #ruby
[01:50:38] tdy: has joined #ruby
[01:50:47] duderonomy: has joined #ruby
[01:52:28] laaron: has joined #ruby
[01:54:23] Swyper: has joined #ruby
[02:01:47] Swyper: has joined #ruby
[02:04:27] wallace_mu: has joined #ruby
[02:04:40] laaron: has joined #ruby
[02:04:47] comet23: holy smokes adam12
[02:04:59] comet23: i bet i can get it down to 7 lines, but i don't feel like thinking that hard lol
[02:05:17] wallace_mu: has joined #ruby
[02:06:05] wallace_mu: has joined #ruby
[02:06:28] Swyper: has joined #ruby
[02:06:40] exmortus: has joined #ruby
[02:06:43] staticx: has joined #ruby
[02:06:53] wallace_mu: has joined #ruby
[02:07:40] wallace_mu: has joined #ruby
[02:08:27] wallace_mu: has joined #ruby
[02:10:02] wallace_mu: has joined #ruby
[02:22:31] havenwood: &>> words = %w[gosh darn shoot]; 'Gosh darn it'.gsub(/#{words.join('|')}/i) { |match| match.gsub /[aeiou]/, '*' }
[02:22:33] rubydoc: # => "G*sh d*rn it" (https://carc.in/#/r/71jw)
[02:25:56] bradleyprice: has joined #ruby
[02:33:57] a7d7p7: has joined #ruby
[02:34:18] jenrzzz: has joined #ruby
[02:37:07] havenwood: &>> words = %w[gosh darn shoot]; 'Gosh darn it'.gsub(/\b(#{Regexp.union(words).source})\b/i) { |match| match.tr 'aeiou', '*' }
[02:37:08] rubydoc: # => "G*sh d*rn it" (https://carc.in/#/r/71jx)
[02:38:26] esrse: has joined #ruby
[02:41:58] wallace_mu: has joined #ruby
[02:45:16] cd: has joined #ruby
[02:46:12] bambanxx: has joined #ruby
[02:50:32] jenrzzz: has joined #ruby
[02:52:02] fphilipe: has joined #ruby
[03:02:30] polyidus: has joined #ruby
[03:03:11] laaron: has joined #ruby
[03:07:57] esp32_prog: has joined #ruby
[03:09:50] braincrash: has joined #ruby
[03:12:41] dar123: has joined #ruby
[03:12:42] code_zombie: has joined #ruby
[03:15:06] octos: has joined #ruby
[03:16:48] wallace_mu: has joined #ruby
[03:32:51] mochiyoda: has left #ruby: ("Konversation terminated!")
[03:41:55] weteamsteve: has joined #ruby
[03:45:38] klarrimore: has joined #ruby
[03:49:22] wallace_mu: has joined #ruby
[03:53:28] StarLord__: has joined #ruby
[03:54:49] tdy: has joined #ruby
[03:58:55] code_zombie_: has joined #ruby
[03:59:54] tdy1: has joined #ruby
[04:03:16] laaron: has joined #ruby
[04:10:32] code_zombie: has joined #ruby
[04:16:26] prometheus_falli: has joined #ruby
[04:17:31] nowhere_man: has joined #ruby
[04:22:14] hutch: has joined #ruby
[04:27:14] wallace_mu: has joined #ruby
[04:40:17] duderonomy: has joined #ruby
[04:44:08] dellavg_: has joined #ruby
[04:49:08] matheusmoreira: has joined #ruby
[04:49:11] cerulean: has joined #ruby
[04:55:16] fphilipe: has joined #ruby
[04:56:10] esp32_prog: has joined #ruby
[05:14:46] wallace_mu: has joined #ruby
[05:17:46] conta: has joined #ruby
[05:22:20] kyrylo: has joined #ruby
[05:22:53] sauvin: has joined #ruby
[05:24:28] ur5us_: has joined #ruby
[05:34:35] conta: has joined #ruby
[05:40:13] laaron: has joined #ruby
[06:01:13] conta: has joined #ruby
[06:07:12] schne1der: has joined #ruby
[06:17:26] Emmanuel_Chanel: has joined #ruby
[06:19:07] deimos: has joined #ruby
[06:21:10] bambanxx: has joined #ruby
[06:22:25] bambanxx: has joined #ruby
[06:23:09] havenwood: https://gist.github.com/havenwood/13d0edd9d3d6e0fca60a2761228c27e2
[06:23:29] fphilipe: has joined #ruby
[06:23:43] deimos: has joined #ruby
[06:24:08] ctp: has joined #ruby
[06:24:39] afisher: has joined #ruby
[06:28:25] bambanxx: has joined #ruby
[06:29:48] bambanxx: has joined #ruby
[06:34:53] bambanx: has joined #ruby
[06:41:18] matthewd: has joined #ruby
[06:41:24] andikr: has joined #ruby
[06:44:24] esp32_prog: has joined #ruby
[06:47:10] xco: has joined #ruby
[06:51:37] bambanxx: has joined #ruby
[06:53:04] marz_d`ghostman: has joined #ruby
[06:53:41] tjj: has joined #ruby
[06:53:41] marz_d`ghostman: I'm storing a set in redis and wants to add/remove a value from the set every now and then. The set is quite big, is set.delete() the best way to pop a value/element from the set? or is there a more efficient way to do it?
[06:54:07] rippa: has joined #ruby
[06:57:16] bradleyprice: has joined #ruby
[07:06:43] aupadhye: has joined #ruby
[07:15:37] wallace_mu: has joined #ruby
[07:17:55] hightower2: has joined #ruby
[07:20:36] dminuoso: has joined #ruby
[07:21:40] dminuoso: Im on nix and I have a bundle application picking up gems from `/home/dminuoso/.gem/...` which I cant figure out why.
[07:22:15] dminuoso: GEM_PATH is set correctly. What controls where ruby looks up gems?
[07:24:27] marz_d`ghostman: dminuoso: echo $GEM_PATH
[07:24:41] marz_d`ghostman: It may contain multiple paths separated by ':'
[07:25:00] dminuoso: Like I said, GEM_PATH is set correctly, it doesn't list the above path.
[07:25:29] dminuoso: https://gist.github.com/dminuoso/c59efb68136b6f8e1f665125d709bfab
[07:25:51] dminuoso: Or mmm. Wait.
[07:27:06] havenwood: dminuoso: Is path set?: bundle config list
[07:27:22] dminuoso: havenwood: Nope
[07:27:25] havenwood: dminuoso: Or is BUNDLE_PATH set?: printenv BUNDLE_PATH
[07:27:27] bambanxx: has joined #ruby
[07:27:35] dminuoso: havenwood: Also nope.
[07:27:50] havenwood: dminuoso: ruby -e "p Gem.dir"
[07:28:06] dminuoso: havenwood: That prints the wrong directory indeed.
[07:28:32] havenwood: dminuoso: Do you have path.system (BUNDLE_PATH__SYSTEM) set?
[07:30:08] dminuoso: havenwood: Mmm no, but I probably *should* use it.
[07:31:04] havenwood: dminuoso: Do you have $GEM_HOME set?
[07:31:25] dminuoso: havenwood: Nope.
[07:31:32] dminuoso: Let me ask this differently.
[07:31:49] dminuoso: If I want to perfectly sandbox this application, no strings attached to global directories in `~/.gem` etc
[07:31:53] dminuoso: What's the canonical way?
[07:33:08] havenwood: dminuoso: You want to vendor gems in your app directory? Or you mean you want them in your home directory?
[07:33:35] dminuoso: havenwood: I want them in some directory. Say the app directory.
[07:33:41] dminuoso: havenwood: Assume I have no global gem installed whatsoever.
[07:33:51] havenwood: dminuoso: Bundler has a "remembered" --path flag.
[07:33:53] havenwood: dminuoso: --path: Specify a different path than the system default ($BUNDLE_PATH or $GEM_HOME). Bundler will remember this value for future installs on this machine
[07:34:01] dminuoso: havenwood: How exactly is it "remembered"?
[07:34:07] dminuoso: Does it emit some local file?
[07:34:13] havenwood: dminuoso: In a config file.
[07:34:38] havenwood: dminuoso: .bundle/config
[07:36:23] dminuoso: havenwood: Mmm, how much breakage would deleting all of ~/.gem cause?
[07:36:41] havenwood: dminuoso: You can: gem uninstall --all
[07:36:52] dminuoso: havenwood: No I actually mean deleting that directory ;)
[07:36:58] Furai: has joined #ruby
[07:37:09] wallace_mu: has joined #ruby
[07:39:18] havenwood: dminuoso: https://github.com/rubygems/rubygems/pull/584/files
[07:40:14] havenwood: dminuoso: I added the --all flag :)
[07:40:36] marz_d`ghostman: havenwood: Is there a way for me to define a Set that doesn't get garbage collected? I want it to exist as long as my app is running.
[07:41:01] dminuoso: marz_d`ghostman: keep a reference to it.
[07:41:07] havenwood: marz_d`ghostman: If you keep a reference to the set, it wont get garbage collected. Why do you want it to exist, unreferenced?
[07:41:33] dminuoso: marz_d`ghostman: Once an element is unreachable, you might as well delete it because you cant refer to it anyway
[07:42:57] esp32_prog: has joined #ruby
[07:43:16] havenwood: marz_d`ghostman: Say more about what you're wanting to do?
[07:43:47] marz_d`ghostman: I'm playing around redis, instead of a database(postgres, mysql, etc.). I'm trying to store my data as hashes in redis. But I have to manually keep an index for all data like having a set "Customers" "#{comma separated ids}".
[07:44:00] dminuoso: havenwood: Deleting the directory would have been faster..
[07:44:05] mayurvpatil: has joined #ruby
[07:44:09] dminuoso: But it matters not.
[07:44:24] marz_d`ghostman: So I want to have a persistent set to add and remove the ids instead of invoking redis each time an id gets added or removed.
[07:45:28] dminuoso: havenwood: Okay, so deleting all gems seems to have improved the situation. invoking bundle brings it into an unkillable state now.
[07:46:37] dminuoso: This is even more interesting now.
[07:48:52] havenwood: marz_d`ghostman: Ruby's GC will note that the Set has been around a while and check it less often. There's nothing special you need to do to make sure it won't get GCed. It wont.
[07:49:46] dminuoso: havenwood: Is there a way to install a gem locally without bundler?
[07:50:02] dminuoso: I think I found the core issue here.
[07:50:13] havenwood: dminuoso: gem install gem-name-here
[07:50:34] dminuoso: havenwood: But that would install it into the global gem store at ~/.gem/, no?
[07:50:46] dminuoso: By locally I mean in a sandbox sense.
[07:50:51] marz_d`ghostman: use path --path
[07:51:06] vondruch: has joined #ruby
[07:51:12] havenwood: marz_d`ghostman: If you're deleting multiple entries, #subtract is more efficient. If it's just one, #delete is right.
[07:51:36] marz_d`ghostman: dminuoso: If it helps, I use `bundle install --path .bundle` to install all app specific gems under the same directory of the app
[07:51:36] laaron: has joined #ruby
[07:51:44] dminuoso: So here is the problem
[07:51:53] dminuoso: I need to figure out how to install bundler appropriately.
[07:52:13] havenwood: dminuoso: gem install bundler
[07:52:20] havenwood: dminuoso: --install-dir
[07:52:43] marz_d`ghostman: havenwood: thanks, now I just need to think of the best place to define this set.
[07:52:52] havenwood: dminuoso: Or usually you'd want to set GEM_HOME rather than the --install-dir flag.
[07:57:05] dminuoso: This fucking garbage piece of shit spring.
[07:57:11] dminuoso: 30 minutes wasted again.
[07:57:27] dminuoso: Thank you havenwood, as always.
[07:58:01] dminuoso: (Turns out the issue was long fixed, just had some spring running in the background..)
[07:58:28] havenwood: dminuoso: you're welcome. ouch!
[07:58:53] dminuoso: so you still doing ruby instead of law stuff?
[07:58:58] dminuoso: Where did apeiros go to?
[07:59:22] sameerynho: has joined #ruby
[07:59:46] laaron: has joined #ruby
[08:01:29] bradleyprice: has joined #ruby
[08:11:49] mikecmpbll: has joined #ruby
[08:13:17] DTZUZO: has joined #ruby
[08:14:40] tjj: has joined #ruby
[08:18:06] conta: has joined #ruby
[08:18:37] jasmin: has joined #ruby
[08:20:59] laaron-: has joined #ruby
[08:23:06] deepreds1: has joined #ruby
[08:30:34] evdubs: has joined #ruby
[08:38:05] mayurvpatil: has joined #ruby
[08:41:50] tjj: has joined #ruby
[08:42:54] salerace: has joined #ruby
[08:50:19] cerulean: has joined #ruby
[08:50:22] jasmin: has joined #ruby
[08:55:09] prestorium: has joined #ruby
[08:56:56] bradleyprice: has joined #ruby
[08:58:27] a7d7p7: has joined #ruby
[09:01:19] dh3: has joined #ruby
[09:06:59] meinside: has joined #ruby
[09:08:16] mayurvpatil_: has joined #ruby
[09:10:39] marz_d`ghostman: With inheritance, how do I force all subclasses to set a value to inherited attributes?
[09:12:42] dminuoso: marz_d`ghostman: What?
[09:12:51] dminuoso: marz_d`ghostman: I do not understand the question. Please rephrase.
[09:14:20] marz_d`ghostman: dminuoso: Say I have a class named Animal. Then I have a subclass Dog. Dog inherits from Animal. Animal has an attribute :name, which will be inherited by Dog. I want force Dog to set a value to :name or raise an error when it doesn't
[09:15:55] dminuoso: marz_d`ghostman: What do you mean by "when it doesn't"?
[09:16:55] ellcs: has joined #ruby
[09:17:25] marz_d`ghostman: dminuoso: hmm, say when an instance of Dog is created, but the inherited :name attribute isn't set.
[09:18:26] dminuoso: marz_d`ghostman: In my experience its best to not rely on this behavior.
[09:18:33] marz_d`ghostman: In Java, there's this mechanism where at compile time, it throws an error because an inherited method or attribute isn't defined.
[09:18:47] dminuoso: marz_d`ghostman: Have the initialize of Dog require everything needed.
[09:18:58] dminuoso: marz_d`ghostman: Ah I see what you mean.
[09:19:25] dminuoso: marz_d`ghostman: Ruby has no compile time mechanisms telling you that your code is bad, other than a grammar check.
[09:19:40] dminuoso: You have to encode it into runtime checks and/or tests.
[09:21:54] marz_d`ghostman: dminuoso: I see. It's a bit of work to require everything inside initialize() when there's a couple of subclasses already. Hmmm, should look into Mixins, perhaps I could set it there with: https://gist.github.com/marzdgzmn/5e6771bcf4f44451c854ed3ada018bca
[09:24:53] Bish: has joined #ruby
[09:25:09] Bish: can i make nokogiri NOT encode node attributes?
[09:27:12] clemens3: has joined #ruby
[09:33:11] esp32_pr1g: has joined #ruby
[09:35:37] apparition: has joined #ruby
[09:38:02] wallace_mu: has joined #ruby
[09:38:10] esp32_prog: has joined #ruby
[09:38:37] salerace: has joined #ruby
[09:38:53] bradleyprice: has joined #ruby
[09:55:46] jasmin: has joined #ruby
[09:59:39] Jonopoly: has joined #ruby
[09:59:58] bradleyprice: has joined #ruby
[10:07:53] mhlei: has joined #ruby
[10:11:43] mayurvpatil_: has joined #ruby
[10:11:56] mhlei: anyone who used the RSpec to do unit test. Is there some document for introduce it. as the official website hasn't a integral manual。
[10:13:01] BH23: has joined #ruby
[10:13:36] _joes_: has joined #ruby
[10:14:42] jasmin: has joined #ruby
[10:23:02] jasmin: has joined #ruby
[10:31:07] lord4163: has joined #ruby
[10:32:33] Ai9zO5AP: has joined #ruby
[10:38:29] AJA4350: has joined #ruby
[10:41:05] bradleyprice: has joined #ruby
[10:41:08] dellavg_: has joined #ruby
[10:42:31] marz_d`ghostman: What minitest hook does a code get triggered after every test, not after every suite? def after; code end doesn't seem to be invoked every after test
[10:43:28] Nicmavr: has joined #ruby
[10:44:09] conta: has joined #ruby
[10:51:14] Bish: (s="accca").gsub(/a(.*)a/) { "{#{$1}}" }
[10:51:33] Bish: why isn't this working as i expected :o
[10:51:42] Bish: do i get the return value of the block?
[10:51:55] Bish: no doesn't seem like it
[11:00:59] ruslan: has joined #ruby
[11:02:16] bradleyprice: has joined #ruby
[11:02:44] ryakh: has joined #ruby
[11:10:32] wallace_mu: has joined #ruby
[11:11:24] leitz: has joined #ruby
[11:11:45] mcgee-io: has joined #ruby
[11:12:33] kyrylo: has joined #ruby
[11:18:18] mayurvpatil_: has joined #ruby
[11:22:55] bradleyprice: has joined #ruby
[11:23:19] matchaw: has joined #ruby
[11:26:21] conta: has joined #ruby
[11:31:55] ytti: Bish, what is expectation?
[11:32:19] ytti: it works like i expect
[11:34:23] phaul: &>> (s="accca").gsub(/a(.*)a/) { "{#{$1}}" }
[11:34:24] rubydoc: # => "{ccc}" (https://carc.in/#/r/71ld)
[11:36:13] ytti: Bish, if you want s to be return value of the block remove the parenthesis
[11:36:28] ytti: Bish, with parenthesis you are working on the return value of the assingment and you're disregarding that return value
[11:41:10] esp32_prog: has joined #ruby
[11:42:09] Bish: ytti: where are the as ?
[11:42:28] Bish: thats what i would expect that only the ccc get surrounded
[11:42:44] Bish: ah okay, it does replace the full match, i get it.
[11:52:49] BH23: has joined #ruby
[12:04:05] bradleyprice: has joined #ruby
[12:13:02] Swyper: has joined #ruby
[12:16:19] laaron: has joined #ruby
[12:18:46] laaron: has joined #ruby
[12:18:51] esp32_prog: has joined #ruby
[12:24:44] flak: has joined #ruby
[12:25:08] bradleyprice: has joined #ruby
[12:25:23] laaron: has joined #ruby
[12:26:03] mahlon_: has joined #ruby
[12:26:59] dionysus69_: has joined #ruby
[12:27:08] yurii: has joined #ruby
[12:27:42] hays: has joined #ruby
[12:28:14] r3m: has joined #ruby
[12:30:15] aupadhye: has joined #ruby
[12:35:48] Inline: has joined #ruby
[12:39:52] mozzarella: has joined #ruby
[12:53:34] wallace_mu: has joined #ruby
[12:59:31] cerulean: has joined #ruby
[12:59:32] jcalla: has joined #ruby
[13:00:04] Swyper: has joined #ruby
[13:03:12] iNs: has joined #ruby
[13:05:38] bradleyprice: has joined #ruby
[13:10:35] Swyper: has joined #ruby
[13:14:56] octos: has joined #ruby
[13:23:41] agrecascino: has joined #ruby
[13:24:46] AJA4350: has joined #ruby
[13:28:48] bradleyprice: has joined #ruby
[13:34:44] iffraff: has joined #ruby
[13:36:19] iffraff: Hello, I know nothing about ruby :( but my question is, is there a command for bundler that will look at what is installed and look at the gem list, and update, rmove and add, the diff while not installing all the things that are already there?
[13:36:32] iffraff: Or does it do this by default :)
[13:42:53] iNs: has joined #ruby
[13:43:41] wallace_mu: has joined #ruby
[13:44:50] laaron: has joined #ruby
[13:45:14] m27frogy: has joined #ruby
[13:48:19] laaron: has joined #ruby
[13:52:15] mhlei: iffraff, `gem list` command can work.
[13:52:45] iffraff: I don't know but is sounds like that will just list the gems?
[13:54:03] Inline_: has joined #ruby
[13:55:04] mhlei: bundle show --paths
[13:55:08] mhlei: can this work ?
[13:55:57] iffraff: so I don't want to do it manually :) I wonder if there is a command that can just update to current gem file.
[13:56:31] iffraff: or christ at least make it multi threaded, this install takes like 8 minutes!
[13:57:46] iffraff: aha there is! I want to test it out but I don't want to stop the current install damn it! well, nothing ventured nothing gained
[13:59:11] matchaw_: has joined #ruby
[13:59:12] adam12: iffraff: bundler supports the --jobs (or -j) argument to do things in parallel.
[13:59:37] iffraff: yes I'm trying that now. I wonder what a reasonable upper limit would be
[13:59:52] adam12: iffraff: If you're on Linux, sometimes `bundle install -j $(nproc)` can give you a bit of speed bump.
[14:00:21] iffraff: what's -j do?
[14:00:22] adam12: iffraff: You can configure it as a global option too, to always use a number of jobs.
[14:00:34] adam12: iffraff: It's the short version of --jobs, which is how many things to do in parallel.
[14:00:54] queip: has joined #ruby
[14:01:29] iffraff: and nproc list how many procs are available? or are running or something?
[14:01:52] iffraff: I just set it to 8 and am hoping for the best. but I can tell you, just watching it it doesn't seem any faster
[14:02:42] cornfeedhobo: has joined #ruby
[14:03:13] iffraff: do you/anybody, use ruby in docker? that's my issue, I have to rebuild the ruby container whenever the gems change which means between branch changes and everything
[14:03:22] cornfeedhobo: I am probably going to ask this incorrectly, but is there a way to get all possible modules available for 'require'?
[14:04:58] iffraff: well, yes that was abit faster.
[14:05:17] iffraff: cornfeedhobo: is there a require in ruby ( i'm ruby noob but I know node)
[14:05:41] jrafanie: has joined #ruby
[14:06:18] cornfeedhobo: iffraff: https://stackoverflow.com/questions/318144/what-is-the-difference-between-include-and-require-in-ruby
[14:06:37] iffraff: k, just wondering :)
[14:06:52] cornfeedhobo: np. i'm coming from python and completely lost right now
[14:07:21] adam12: iffraff: I don't use Docker, but if you're using ADD during development maybe you want VOLUME. It allows you to bind-mount instead of copy.
[14:07:54] laaron-: has joined #ruby
[14:08:41] iffraff: ya, I know, in node I find that to be a very bad practive, because it makes what's on your local machine trump what's in the container. so it may still "works on my machine"
[14:08:48] adam12: cornfeedhobo: No easy way. You can iterate through $LOAD_PATH which is where require looks for files. What are you trying to achieve?
[14:09:28] mayurvpatil_: has joined #ruby
[14:10:04] bradleyprice: has joined #ruby
[14:11:48] adam12: iffraff: It sucks but I'm not sure of anything better :\
[14:12:08] wallace_mu: has joined #ruby
[14:12:53] Esa_: has joined #ruby
[14:14:59] iffraff: has joined #ruby
[14:20:47] jeremycw: has joined #ruby
[14:21:16] Inline: has joined #ruby
[14:28:07] miskatonic: has joined #ruby
[14:30:35] AJA4351: has joined #ruby
[14:32:14] wallace_mu: has joined #ruby
[14:35:38] queip: has joined #ruby
[14:40:13] weteamsteve: has joined #ruby
[14:40:31] bradleyprice: has joined #ruby
[14:42:42] bradleyprice: has joined #ruby
[14:51:16] bradleyprice: has joined #ruby
[14:52:17] hutch: has joined #ruby
[14:52:56] charon77: has joined #ruby
[14:55:37] ryakh: has joined #ruby
[14:58:18] Dysp: has joined #ruby
[15:04:10] cthulchu_: has joined #ruby
[15:07:31] dar123: has joined #ruby
[15:22:30] DaRock: has joined #ruby
[15:24:15] iffraff: has joined #ruby
[15:27:10] queip: has joined #ruby
[15:36:49] iffraff: has joined #ruby
[15:41:31] Iarfen: has joined #ruby
[15:45:44] AJA4350: has joined #ruby
[16:04:03] ljarvis: has joined #ruby
[16:15:43] doodlebug: has joined #ruby
[16:15:49] duderonomy: has joined #ruby
[16:20:03] fphilipe: has joined #ruby
[16:23:17] bradleyprice: has joined #ruby
[16:27:54] laaron: has joined #ruby
[16:29:20] code_zombie: has joined #ruby
[16:31:40] w1zeman1p: has joined #ruby
[16:32:30] Renich: has joined #ruby
[16:33:39] tdy1: has joined #ruby
[16:34:40] themsay: has joined #ruby
[16:37:28] Eiam_: has joined #ruby
[16:39:33] s2013: has joined #ruby
[16:42:39] matchaw: has joined #ruby
[16:43:37] orbyt_: has joined #ruby
[16:45:31] AJA4351: has joined #ruby
[16:54:35] exmortus: has joined #ruby
[16:56:01] Swyper: has joined #ruby
[16:58:41] duderonomy: has joined #ruby
[16:59:26] Swyper: has joined #ruby
[17:00:02] octos: has joined #ruby
[17:05:43] cerulean: has joined #ruby
[17:06:11] matheusmoreira: has joined #ruby
[17:06:50] bradleyprice_: has joined #ruby
[17:08:45] octos: has joined #ruby
[17:13:40] splifpuf: has joined #ruby
[17:14:04] mikecmpbll: has joined #ruby
[17:14:09] bradleyprice: has joined #ruby
[17:16:00] queip: has joined #ruby
[17:20:52] fphilipe: has joined #ruby
[17:20:55] ravenousmoose: has joined #ruby
[17:21:20] weteamsteve1: has joined #ruby
[17:22:00] jrafanie_: has joined #ruby
[17:27:14] dar123: has joined #ruby
[17:27:40] laaron: has joined #ruby
[17:27:56] fphilipe: has joined #ruby
[17:30:45] Emmanuel_Chanel: has joined #ruby
[17:32:23] Cthulu201: has joined #ruby
[17:34:42] nowhere_man: has joined #ruby
[17:37:52] SeepingN: has joined #ruby
[17:40:27] doodleb16: has joined #ruby
[17:41:08] weteamsteve: has joined #ruby
[17:49:38] reber: has joined #ruby
[17:51:32] Emmanuel_Chanel: has joined #ruby
[17:54:03] matheusmoreira: has joined #ruby
[17:59:19] octos: has joined #ruby
[18:01:19] loses: has joined #ruby
[18:02:23] doodlebug: has joined #ruby
[18:06:23] gix: has joined #ruby
[18:09:15] laaron: has joined #ruby
[18:11:24] bradleyprice: has joined #ruby
[18:16:26] weteamsteve1: has joined #ruby
[18:25:04] weteamsteve1: has joined #ruby
[18:26:23] doodlebug: has joined #ruby
[18:27:04] Dbugger: has joined #ruby
[18:34:38] gix-: has joined #ruby
[18:36:13] Xiti: has joined #ruby
[18:38:16] weteamsteve: has joined #ruby
[18:40:30] robotcars: has left #ruby: ()
[18:41:37] orbyt_: has joined #ruby
[18:46:25] weteamsteve1: has joined #ruby
[18:48:31] FastJack: has joined #ruby
[18:49:02] matheusmoreira: has joined #ruby
[18:50:23] doodlebug: has joined #ruby
[18:51:24] queip: has joined #ruby
[18:55:30] matheusmoreira: has joined #ruby
[18:56:04] polishdub: has joined #ruby
[18:58:14] weteamsteve: has joined #ruby
[18:58:59] ravenousmoose: has joined #ruby
[19:01:31] weteamsteve2: has joined #ruby
[19:04:56] laaron: has joined #ruby
[19:10:49] cloaked1: has joined #ruby
[19:10:49] cloaked1: has joined #ruby
[19:13:07] yousef_: has joined #ruby
[19:14:24] weteamsteve: has joined #ruby
[19:14:28] doodlebug: has joined #ruby
[19:15:16] s2013: has joined #ruby
[19:18:20] octos: has joined #ruby
[19:20:25] weteamsteve1: has joined #ruby
[19:20:28] doodlebug: has joined #ruby
[19:20:46] kyrylo: has joined #ruby
[19:22:48] charon77: has joined #ruby
[19:23:41] weteamsteve2: has joined #ruby
[19:26:28] doodlebug: has joined #ruby
[19:29:10] laaron: has joined #ruby
[19:32:10] fredmorcos: has joined #ruby
[19:32:28] doodlebug: has joined #ruby
[19:36:54] cloaked1: has joined #ruby
[19:36:54] cloaked1: has joined #ruby
[19:38:28] doodlebug: has joined #ruby
[19:41:05] queip: has joined #ruby
[19:43:39] doodlebug: has joined #ruby
[19:44:06] doodlebug: has joined #ruby
[19:44:36] doodlebug: has joined #ruby
[19:45:07] doodlebug: has joined #ruby
[19:45:22] laaron: has joined #ruby
[19:45:32] donofrio: has joined #ruby
[19:51:43] Swyper: has joined #ruby
[19:53:30] fphilipe: has joined #ruby
[20:02:08] shellk1d: has joined #ruby
[20:03:17] jefffrails35: has joined #ruby
[20:07:16] queip: has joined #ruby
[20:19:10] shellk1d: has left #ruby: ()
[20:32:07] orbyt_: has joined #ruby
[20:34:43] fphilipe: has joined #ruby
[20:36:52] octos: has joined #ruby
[20:38:07] Kilo`byte: has joined #ruby
[20:50:44] bradleyprice: has joined #ruby
[20:51:46] staticx: has joined #ruby
[20:53:40] FrankDW2: has joined #ruby
[20:56:43] _dbugger: has joined #ruby
[21:02:45] relyks: has joined #ruby
[21:05:51] ljarvis_: has joined #ruby
[21:13:43] tsrt^: has joined #ruby
[21:13:58] tsrt^: has joined #ruby
[21:14:13] cerulean: has joined #ruby
[21:14:13] tsrt^: has joined #ruby
[21:14:31] tsrt^: has joined #ruby
[21:14:48] tsrt^: has joined #ruby
[21:15:03] tsrt^: has joined #ruby
[21:16:13] bradleyprice: has joined #ruby
[21:21:33] octos: has joined #ruby
[21:23:34] laaron: has joined #ruby
[21:24:40] Nicmavr: has joined #ruby
[21:30:44] r3m: has joined #ruby
[21:33:10] bradleyprice: has joined #ruby
[21:34:43] nowhere_man: has joined #ruby
[21:35:50] tdy1: has joined #ruby
[21:36:53] r3m: has joined #ruby
[21:53:38] orbyt_: has joined #ruby
[22:10:47] bradleyprice_: has joined #ruby
[22:16:13] nowhereman: has joined #ruby
[22:18:44] laaron: has joined #ruby
[22:19:09] gfawcett: has joined #ruby
[22:27:14] lawrence: has joined #ruby
[22:35:37] dviola: has joined #ruby
[22:38:35] phaul: has joined #ruby
[22:38:45] hutch: has joined #ruby
[22:40:22] doodleb8: has joined #ruby
[22:53:20] codefriar: has joined #ruby
[22:55:52] bradleyprice: has joined #ruby
[22:56:26] matheusmoreira: has joined #ruby
[22:58:57] eugenn: has joined #ruby
[23:00:22] bradleyprice: has joined #ruby
[23:04:21] doodlebug: has joined #ruby
[23:21:41] brool: has joined #ruby
[23:28:22] doodlebug: has joined #ruby
[23:29:44] fphilipe: has joined #ruby
[23:34:24] doodlebug: has joined #ruby
[23:40:23] doodlebug: has joined #ruby
[23:41:36] bradleyprice: has joined #ruby
[23:46:24] doodlebug: has joined #ruby
[23:52:24] doodlebug: has joined #ruby
[23:54:08] doodlebug: has joined #ruby
[23:54:36] doodlebug: has joined #ruby
[23:54:56] doodlebug: has joined #ruby
[23:55:16] doodlebug: has joined #ruby
[23:55:37] doodlebug: has joined #ruby
[23:56:06] doodlebug: has joined #ruby
[23:56:15] hutch: has joined #ruby
[23:56:32] doodlebug: has joined #ruby
[23:56:59] doodlebug: has joined #ruby
[23:57:28] doodlebug: has joined #ruby
[23:57:33] havenwood: break the_wheel;
[23:58:07] doodlebug: has joined #ruby
[23:58:27] doodlebug: has joined #ruby
[23:58:48] doodlebug: has joined #ruby