havenwood changed the topic of #ruby to: Rules: https://ruby-community.com | Ruby 2.7.2, 2.6.6, 3.0.0-preview1: https://www.ruby-lang.org | Paste 4+ lines of text to https://dpaste.org | Books: https://goo.gl/wpGhoQ | Logs: https://irclog.whitequark.org/ruby | BLM <3 | Can't talk? Register/identify with NickServ
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cthu| has quit [Ping timeout: 256 seconds]
howdoi has joined #ruby
orbyt_ has joined #ruby
brainfunnel has quit [Quit: whoops]
TCZ has quit [Quit: Leaving]
ur5us has quit [Remote host closed the connection]
ur5us has joined #ruby
bmurt has joined #ruby
ap4y has quit [Quit: WeeChat 2.9]
ivz_hh has quit [Remote host closed the connection]
ivz_hh has joined #ruby
chouhoulis has quit [Remote host closed the connection]
cer0 has quit [Quit: leaving]
ivz_hh has quit [Remote host closed the connection]
ivz_hh has joined #ruby
chouhoulis has joined #ruby
chouhoulis has quit [Ping timeout: 260 seconds]
_whitelogger has joined #ruby
crankharder has joined #ruby
desnudopenguino has quit [Quit: leaving]
crankharder has quit [Read error: Connection reset by peer]
crankharder has joined #ruby
crankharder has quit [Ping timeout: 260 seconds]
_whitelogger has joined #ruby
crankharder has joined #ruby
ur5us has quit [Ping timeout: 264 seconds]
sleetdrop has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ivz_hh has quit [Remote host closed the connection]
ivz_hh has joined #ruby
sleetdrop has quit [Ping timeout: 264 seconds]
duderonomy has joined #ruby
duderonomy has quit [Client Quit]
lucasb has quit [Quit: Connection closed for inactivity]
duderonomy has joined #ruby
teardown has quit [Ping timeout: 240 seconds]
StarOnD has joined #ruby
<StarOnD> Hi everyone, I am trying to use rvm, my query is what does this do >>> rvm gemdir system user <<< ?
teardown has joined #ruby
ChmEarl has quit [Quit: Leaving]
cloud69 has joined #ruby
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
duderonomy has joined #ruby
<havenwood> StarOnD: gemdir # display path to current gem directory ($GEM_HOME)
<havenwood> StarOnD: GEM_HOME is the default repository directory for gem installation.
<StarOnD> havenwood : what is the difference between >>> rvm gemdir system <<< and >>> rvm gemdir system user <<<
<havenwood> StarOnD: The former switches to the system gem directory, and the latter switches to the system user gem directory.
<StarOnD> havenwood : I do not comprehend the difference. The default ( without rvm ) gem directory is returned by former, what exactly is the latter?
<havenwood> StarOnD: Sec. Let me pull up the code.
<StarOnD> havenwood : sure
<havenwood> Lemme see, where'd it go in current.
ivz_hh has quit [Remote host closed the connection]
ivz_hh has joined #ruby
<havenwood> StarOnD: This commit looks the most helpful for seeing it all at once.
<StarOnD> havenwood : am checking out the code
ivz_hh has quit [Remote host closed the connection]
ivz_hh has joined #ruby
<StarOnD> havenwood : I did not comprehend
<StarOnD> havenwood : are there different gemdirs for different users?
<havenwood> StarOnD: The gemdir is a RubyGems thing, so both RVM and system Ruby have it.
<havenwood> StarOnD: Try just: gem env gemdir
<havenwood> StarOnD: Or: echo "$GEM_HOME"
<havenwood> StarOnD: I'd suggest just using `gem env gemdir` directly, to avoid confusion and unnecessary abstraction.
<havenwood> StarOnD: Then try: rvm system do gem env gemset
<havenwood> StarOnD: It's just trying to show $GEM_HOME, where gems are installed.
<havenwood> StarOnD: If you `rvm system` then do `gem env gemset` you'll see a different path than if you `gem env gemset` from your RVM Ruby.
<havenwood> StarOnD: These are just helpers to see paths without manually switching.
<havenwood> StarOnD: I don't find them helpful, personally.
<havenwood> StarOnD: Does that make any sense?
<StarOnD> when I do `rvm gemdir system` I get ONE directory in /var and when I do `rvm gemdir system user` I get 4 directories in my home directory
<StarOnD> hanvenwood : the former is system wide, the latter is for the user ?
<StarOnD> havenwood : I am confused
crankharder has quit [Ping timeout: 240 seconds]
<StarOnD> havenwood : also `rvm gemdir system user` and `rvm gemdir user` return the same result
<StarOnD> havenwood: https://github.com/rvm/rvm/blob/9fee260382c86fa9ed17b8c18ade0cb9d51e72ea/bash/rvm#L469-L510 ( lines 491 to 497 ) there is NO option for BOTH system and user
<StarOnD> havenwood : The latter will prevail I think/
cliluw has joined #ruby
<StarOnD> ?
<StarOnD> havenwood : now that I think about it : `rvm gemdir system` is the ruby installed using sudo and `rvm gemdir system user` is installed by the current user?
<StarOnD> is that right?
Furai has quit [Quit: WeeChat 2.9]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
teardown has quit [Remote host closed the connection]
teardown has joined #ruby
Furai has joined #ruby
Sauvin has quit [Read error: Connection reset by peer]
adu has quit [Quit: adu]
howdoi has quit [Quit: Connection closed for inactivity]
nakilon has quit [Quit: Ping timeout (120 seconds)]
nakilon has joined #ruby
Liothen has quit [Ping timeout: 264 seconds]
Liothen has joined #ruby
<Tuor> Hi, when using `shellcommand` or system('shellcommand') ruby uses a shell to run the commands. Is it possible to execute a programm without having a shell interpreting anything? I would like this to fail with a "file 'echo *' not found in $PATH" system('echo *').
Liothen has quit [Read error: Connection reset by peer]
<leftylink> IIRC if you pass a list, the first element of the list is the command and the rest are the args. so in this case you'd want 'echo *' to be the command, it appears
<leftylink> s/list/array/
<leftylink> hmm, no, my suggestion does not quite have the desired behaviour
<leftylink> too bad
<leftylink> I tried
<Tuor> I thought exactly that and found out it's not true. That's exactly the reason I'm asking. :)
<Tuor> I can use escaping so the shell does what I want it to, but I would rather prefer not having to.
Liothen has joined #ruby
bocaneri has joined #ruby
bocaneri has quit [Max SendQ exceeded]
bocaneri has joined #ruby
ur5us has joined #ruby
burgestrand has joined #ruby
Glumetu has joined #ruby
ruurd has joined #ruby
teardown_ has joined #ruby
teardown has quit [Ping timeout: 240 seconds]
Glumetu has quit [Ping timeout: 265 seconds]
cnsvc has joined #ruby
cnsvc has quit [Ping timeout: 240 seconds]
Glumetu has joined #ruby
yxhuvud has quit [Quit: No Ping reply in 180 seconds.]
yxhuvud has joined #ruby
ur5us has quit [Ping timeout: 260 seconds]
imode has quit [Ping timeout: 264 seconds]
maxmanders has joined #ruby
TomyWork has joined #ruby
dionysus69 has joined #ruby
ur5us has joined #ruby
evdubs has quit [Remote host closed the connection]
evdubs has joined #ruby
mtsd has joined #ruby
Glumetu has quit [Ping timeout: 265 seconds]
Glumetu has joined #ruby
mtsd has left #ruby ["Leaving"]
ur5us has quit [Ping timeout: 260 seconds]
al2o3-cr has quit [Quit: WeeChat 2.9]
akem has joined #ruby
burgestrand has quit [Quit: burgestrand]
Hol_La has joined #ruby
Glumetu has quit [Ping timeout: 240 seconds]
Hol_La has quit [Ping timeout: 256 seconds]
akem_ has joined #ruby
akem has quit [Ping timeout: 264 seconds]
StarOnD has quit [Ping timeout: 245 seconds]
Glumetu has joined #ruby
ruurd has joined #ruby
TCZ has joined #ruby
kindwindfall__ has joined #ruby
teardown has joined #ruby
teardown_ has quit [Remote host closed the connection]
dviola has quit [Quit: WeeChat 2.9]
Technodrome has joined #ruby
burgestrand has joined #ruby
bmurt has joined #ruby
paul0 has joined #ruby
<paul0> hello, someone here uses mongodb with ruby? Trying to figure out how to find an item by ID
<paul0> client[:user].find({_id: BSON::ObjectId.from_string(ids[0])}).to_a
TCZ has quit [Quit: Leaving]
<paul0> that's what I'm trying to do here
<paul0> did this query using the Compass app, I got the result, but trying to get via ruby doesn't return anything
fuzzface has joined #ruby
Rudd0 has quit [Ping timeout: 272 seconds]
lucasb has joined #ruby
madhatter has joined #ruby
BSaboia has joined #ruby
TCZ has joined #ruby
GodFather has quit [Ping timeout: 240 seconds]
bocaneri has quit [Ping timeout: 256 seconds]
GodFather has joined #ruby
GodFather_ has joined #ruby
dviola has joined #ruby
pienkowb has joined #ruby
BTRE has quit [Remote host closed the connection]
ChmEarl has joined #ruby
cd has quit [Quit: cd]
BTRE has joined #ruby
<Tuor> I found that IO.popen does only in one case use a shell to run the command: https://ruby-doc.org/core-2.7.1/IO.html#method-c-popen
<Tuor> If I pass an array to IO.popen, IO.popen doesn't pass it to a shell. That's good. :)
<Tuor> ah system() is the same. :) OK that is an important details. :)
adu has joined #ruby
jokester has joined #ruby
cstrahan has quit [*.net *.split]
jo-so has quit [*.net *.split]
riceandbeans has quit [*.net *.split]
bougyman has quit [*.net *.split]
mahlon has quit [*.net *.split]
jo-so has joined #ruby
mahlon has joined #ruby
cstrahan has joined #ruby
riceandbeans has joined #ruby
bougyman has joined #ruby
bougyman has quit [Max SendQ exceeded]
bougyman has joined #ruby
danielk43[m] has quit [Ping timeout: 246 seconds]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
batisi[m] has quit [Ping timeout: 246 seconds]
bmurt has joined #ruby
jo-so has quit [Ping timeout: 246 seconds]
hsiktas[m] has quit [Ping timeout: 244 seconds]
bmurt has quit [Client Quit]
turt2live has quit [Ping timeout: 244 seconds]
dionysus69 has quit [Ping timeout: 272 seconds]
pienkowb has quit [Remote host closed the connection]
fuzzface has quit [Quit: Leaving]
impermanence has joined #ruby
jordanm has quit [Ping timeout: 268 seconds]
jordanm has joined #ruby
akem has joined #ruby
akem has quit [Remote host closed the connection]
akem has joined #ruby
akem_ has quit [Ping timeout: 256 seconds]
gdonald has joined #ruby
stan has joined #ruby
dionysus69 has joined #ruby
stan has quit [Client Quit]
Furai has quit [Quit: WeeChat 2.9]
dionysus69 has quit [Ping timeout: 272 seconds]
Furai has joined #ruby
elagost has left #ruby ["WeeChat 2.8"]
turt2live has joined #ruby
Rudd0 has joined #ruby
_aeris_ has quit [Remote host closed the connection]
_aeris_ has joined #ruby
ivz_hh has quit [Remote host closed the connection]
ivz_hh has joined #ruby
e has quit [Disconnected by services]
bocaneri has joined #ruby
e has joined #ruby
imode has joined #ruby
adu has quit [Quit: adu]
adu has joined #ruby
burgestrand has quit [Quit: burgestrand]
cthu| has joined #ruby
rippa has joined #ruby
cthu| has quit [Read error: Connection reset by peer]
cthu| has joined #ruby
akem has quit [Ping timeout: 272 seconds]
cloud69 has quit [Quit: Connection closed for inactivity]
hsiktas[m] has joined #ruby
jo-so has joined #ruby
stan has joined #ruby
adu has quit [Quit: adu]
tsujp69 has quit [Ping timeout: 245 seconds]
cloud69 has joined #ruby
maryo has joined #ruby
chouhoulis has joined #ruby
TCZ has quit [Quit: Leaving]
akem has joined #ruby
orbyt_ has joined #ruby
impermanence has quit [Ping timeout: 240 seconds]
dionysus69 has joined #ruby
Glumetu has quit [Quit: Glumetu]
cnsvc has joined #ruby
fuzzface has joined #ruby
ellcs has joined #ruby
fuzzface has quit [Quit: Leaving]
FrankyCyborg has joined #ruby
maryo87 has joined #ruby
maryo has quit [Ping timeout: 256 seconds]
budonyc has quit [Ping timeout: 256 seconds]
budonyc has joined #ruby
adu has joined #ruby
<mnemon> Tuor: yeah, https://apidock.com/ruby/Kernel/system only the single string invocation uses shell.
ruurd has quit [Read error: Connection reset by peer]
ruurd has joined #ruby
ruurd has quit [Read error: Connection reset by peer]
ruurd has joined #ruby
SeepingN has joined #ruby
davispuh has joined #ruby
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ruurd has quit [Read error: Connection reset by peer]
dionysus69 has quit [Remote host closed the connection]
ruurd has joined #ruby
dionysus69 has joined #ruby
bmurt has joined #ruby
teardown has quit [Ping timeout: 240 seconds]
nakilon has quit [Quit: Ping timeout (120 seconds)]
nakilon has joined #ruby
mynameisdebian has joined #ruby
<mynameisdebian> I am on a Windows machine, trying to connect to a remote SSH server that I frequently connect to. I generated a fresh DSS key and put it into authorized_hosts on the server. When I try to connect with Ruby it tells me: "could not connect to ssh-agent: pageant process not running". I'm not clear on what an SSH agent is or why I need one here. Can't Ruby's "net/ssh" library just generate an SSH session on its own, like every SSH
<mynameisdebian> client in the world? Can someone help me understand what I'm missing here?
<mynameisdebian> I know there's only like 10 people in the world using Ruby these days, but any help is appreciated
ruurd has quit [Read error: Connection reset by peer]
ruurd has joined #ruby
ruurd has quit [Read error: Connection reset by peer]
ruurd has joined #ruby
ruurd has quit [Client Quit]
<adam12> mynameisdebian: A lot of keys have passphrases. The agent keeps the key in memory so you don't have to enter your passphrase every time.
<adam12> mynameisdebian: That's pageant (and ssh-agent from the OpenSSH tools)
<adam12> mynameisdebian: What does your net ssh connect line look like?
budonyc has quit [Ping timeout: 260 seconds]
<mynameisdebian> adam12: the whole script is here: https://pastebin.com/vVhLpnbL
<adam12> mynameisdebian: brb. gotta watch my kid for a sec.
<mynameisdebian> adam12: np, thanks for the help
teardown has joined #ruby
<adam12> mynameisdebian: I'd try passing the key you generated using the `keys` or `key_data` option. Unless you have a passphrase on the SSH key, which then I think you only really have a choice of using Pageant.
<adam12> mynameisdebian: Depending on how you're running Ruby on the Windows machine will likely determine the key location. Linux ssh clients will automatically look in ~/.ssh/id_{} for a key to use, but because Windows has both WSL and non-WSL integrations, it's too hard to say. And since you mention pageant it makes me wonder if the OpenSSH port is being used or Putty.
davispuh has quit [Ping timeout: 240 seconds]
crankharder has joined #ruby
crankharder has quit [Ping timeout: 260 seconds]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
crankharder has joined #ruby
maryo87 has quit [Quit: Leaving]
<mynameisdebian> I added this line ssh_options[:keys] = ['C:\Users\john\.ssh\id_dsa'] but I still get the Pageant error. I think I'm using "non-WSL" because I'm on Windows 7. I do have Cygwin/openssh installed. I generated my DSA key using ssh-keygen (Cygwin) and copied it from my Cygwin home folder to my Windows home folder (.ssh folder).
maryo has joined #ruby
adu has quit [Quit: adu]
adu has joined #ruby
crankharder has quit [Ping timeout: 265 seconds]
ur5us has joined #ruby
<adam12> mynameisdebian: Yeah in that case I'm not sure. I presume on Windows 7 you're using Putty and not the OpenSSH port, which makes things slightly more interesting. What about key_data? Maybe you can just key_data: File.read(your_id_dsa_path)
<adam12> mynameisdebian: net/ssh does do native SSH connections so if you can get the key data to it successfully it should _just_ work.
powerhouse has quit [Read error: No route to host]
powerhouse has joined #ruby
fippy has joined #ruby
davispuh has joined #ruby
crankharder has joined #ruby
bmurt has joined #ruby
crankharder has quit [Ping timeout: 260 seconds]
maryo has quit [Quit: Leaving]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
DTZUZU_ has joined #ruby
DTZUZU has quit [Ping timeout: 272 seconds]
TomyWork has quit [Quit: Leaving]
orbyt_ has joined #ruby
pienkowb has joined #ruby
adu has quit [Quit: adu]
ivz_hh has quit [Remote host closed the connection]
ivz_hh has joined #ruby
ur5us has quit [Remote host closed the connection]
ur5us has joined #ruby
adu has joined #ruby
dionysus69 has quit [Ping timeout: 260 seconds]
cd has joined #ruby
akem has quit [Ping timeout: 260 seconds]
akem has joined #ruby
TCZ has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
TCZ has quit [Quit: Leaving]
TheTFEF is now known as Nightmare
howdoi has joined #ruby
adu has quit [Quit: adu]
TCZ has joined #ruby
bmurt has joined #ruby
adu has joined #ruby
<mjacob> https://bundler.io/guides/creating_gem.html#testing-our-gem recommends to put the rspec dependency into the gemspec, but "bundle gem ..." puts it in the Gemfile. is there a reason to prefer one over another?
BSaboia has quit [Quit: This computer has gone to sleep]
elcontrastador has quit [Ping timeout: 256 seconds]
<nakilon> mjacob idk about "bundle gem" -- I don't like what it does
<nakilon> but basically you put the "gemspec" line to Gemfile, and rspec ans dev dependency in .gemspec
<nakilon> *as
ellcs has quit [Ping timeout: 260 seconds]
Rudd0 has quit [Ping timeout: 260 seconds]