<havenwood>
quuxman: You're not expecting the values, you're expecting the whole hash, right?
<havenwood>
If you're passing the method the whole Hash: with(EXAMPLE_DICT)
SeepingN has quit [Quit: The system is going down for reboot NOW!]
<havenwood>
quuxman: Show a bit more code or further explain why you're expecting multiple arguments for each value in the Hash, like the test you pasted shows?
kn-928 has quit [Ping timeout: 246 seconds]
bruce_lee has quit [Ping timeout: 240 seconds]
bruce_lee has joined #ruby
bruce_lee has joined #ruby
bruce_lee has quit [Changing host]
r3QuiEm_cL has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
safe has joined #ruby
imode has quit [Ping timeout: 264 seconds]
ascarter has joined #ruby
A124 has quit [Quit: '']
A124 has joined #ruby
twillkens has joined #ruby
brent__ has quit [Remote host closed the connection]
brent__ has joined #ruby
wald0 has quit [Quit: Lost terminal]
quobo has quit [Quit: Connection closed for inactivity]
Alina-malina has quit [Ping timeout: 240 seconds]
brent__ has quit [Ping timeout: 240 seconds]
Alina-malina has joined #ruby
mkroman has joined #ruby
ashZ_ is now known as ashZ
twillkens has quit [Ping timeout: 252 seconds]
coderphive has joined #ruby
<mkroman>
can anyone recommend a still maintained RPC library for Ruby?
twillkens has joined #ruby
kn-928 has joined #ruby
marr has quit [Ping timeout: 246 seconds]
ascarter has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<mkroman>
havenwood: that's the format google uses to describe its APIs, right?
<havenwood>
mkroman: yeah, it's Google
twillkens has quit [Ping timeout: 240 seconds]
<mkroman>
it's not exactly lightweight, but I'll check it out. Thanks.
nobitanobi has joined #ruby
<havenwood>
mkroman: Whatcha making?
bronson has joined #ruby
twillkens has joined #ruby
<mkroman>
I'm running a server that manages data across JBODs from an application, right now I'm using redis to do most of the work, but it's not easy to verify that it's doing what it's supposed to
<mkroman>
another solution would be a HTTP API, but I think I'll try with RPC instead
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bronson has quit [Ping timeout: 240 seconds]
__Yiota has quit [Ping timeout: 246 seconds]
<havenwood>
mkroman: I do love Roda for HTTP APIs.
ascarter has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
astrobunny has quit [Remote host closed the connection]
astrobunny has joined #ruby
<mkroman>
yeah, that's what I figured
<mkroman>
was wondering what Sinatra and Rails might do to fix that
<havenwood>
nothing anytime soon
<havenwood>
HTTP2 from CDN proxy for multiplexing is already very nice.
mostlybadfly has quit [Quit: Connection closed for inactivity]
silverdust has joined #ruby
ascarter has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<silverdust>
Is there a way to run ruby inline like `ruby -i "puts 'hello'"` ?
<havenwood>
silverdust: ruby -e
<silverdust>
Great! Thanks
ascarter has joined #ruby
<havenwood>
silverdust: In case you're not aware, Ruby also ships with a REPL called irb and there's a popular gem alternative called pry.
<havenwood>
?pry
<ruby[bot]>
Pry, the better IRB, provides easy object inspection `ls`, `history`, viewing docs `?`, viewing source `$`, syntax highlighting and other features (see `help` for more). Put `binding.pry` in your source code for easy debugging. Install Pry (https://pryrepl.org/): gem install pry pry-doc
<havenwood>
The irb command ships with Ruby so just: irb
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
wbnns has left #ruby [#ruby]
ascarter has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
carnegie has quit [Quit: Leaving...]
griffindy has joined #ruby
ascarter has joined #ruby
juggler has joined #ruby
<silverdust>
Oh I'm aware of all that havenwood . Thanks
pilne has joined #ruby
<silverdust>
I just needed the inline version
jenrzzz has quit [Ping timeout: 248 seconds]
gizmore|2 has joined #ruby
gizmore has quit [Ping timeout: 240 seconds]
marcux has joined #ruby
jokester has quit [Quit: kernel dump]
ascarter has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Silthias1 has joined #ruby
ascarter has joined #ruby
nofxxx has joined #ruby
Silthias has quit [Ping timeout: 255 seconds]
brent__ has joined #ruby
jokester has joined #ruby
brent__ has quit [Ping timeout: 248 seconds]
swankier has joined #ruby
maum has quit [Remote host closed the connection]
ascarter has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cschnei__ has joined #ruby
Blackpajamas has joined #ruby
<swankier>
Hi! I’m writing some ruby code for metasploit. In the module I have a loop that tries to be resistent to timeouts. The end result, though, is that the next iteration of the loop exits prematurely. https://pastebin.com/UiNm9XMn
dionysus69 has quit [Remote host closed the connection]
justache has quit [Remote host closed the connection]
hsiktas has quit [Remote host closed the connection]
dionysus69 has joined #ruby
hsiktas has joined #ruby
justache has joined #ruby
t-recx has joined #ruby
charliesome has joined #ruby
milardovich has joined #ruby
milardovich has quit [Ping timeout: 260 seconds]
belmoussaoui has quit [Quit: belmoussaoui]
belmoussaoui_ has joined #ruby
roshanavand has joined #ruby
tcopeland has joined #ruby
dionysus69 has quit [Remote host closed the connection]
dionysus69 has joined #ruby
belmoussaoui_ has quit [Client Quit]
kn-928 has joined #ruby
belmoussaoui has joined #ruby
devil_tux has joined #ruby
kn-928 has quit [Ping timeout: 246 seconds]
ldnunes has joined #ruby
Slinky_Pete has joined #ruby
Siyfion has joined #ruby
ShalokShalom_ has joined #ruby
ShalokShalom has quit [Ping timeout: 248 seconds]
Slinky_Pete has quit [Ping timeout: 240 seconds]
belmoussaoui has quit [Ping timeout: 252 seconds]
nobitanobi has joined #ruby
roshanavand has quit [Quit: Leaving]
roshanavand has joined #ruby
marcux has joined #ruby
snickers has joined #ruby
__Yiota has joined #ruby
mson has joined #ruby
synthroid has joined #ruby
raynold has quit [Quit: Connection closed for inactivity]
smp_dup has joined #ruby
sajinmp has joined #ruby
smp_dup has quit [Client Quit]
<sajinmp>
Hi, Is there a way to reverse symbolization of json hash? I was trying to pass it to an api, but it doesn't accept symbolized hash, ruby hash or json string
<dminuoso>
"reverse symbolization" ?
<michael_mbp>
sounds like JSON.parse?
<michael_mbp>
sajinmp: are you using Hash#to_json doesn't work?
<sajinmp>
michael_mbp, Doesn't happen. JSON.parse converts it to ruby hash which the third-party api doesn't accept
bmurt has joined #ruby
InfinityFye has joined #ruby
<dminuoso>
sajinmp: What is your input and your desired output?
<sajinmp>
michael_mbp, dminuoso : Let me first write a fiddle. I will give the info there
<michael_mbp>
sounds like a 3rd party API issue. You should be able to send Hash#to_json to that API without any issues.
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bmurt has joined #ruby
kapil___ has quit [Quit: Connection closed for inactivity]
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Slinky_Pete has quit [Ping timeout: 248 seconds]
milardovich has joined #ruby
MarkBilk has quit [Ping timeout: 255 seconds]
phaul has quit [Ping timeout: 264 seconds]
cabotto has joined #ruby
iMadper has joined #ruby
__Yiota has joined #ruby
apparition has joined #ruby
cabotto has quit [Client Quit]
bronson has joined #ruby
InfinityFye has joined #ruby
dviola has joined #ruby
bronson has quit [Ping timeout: 240 seconds]
bovis has joined #ruby
dviola has quit [Client Quit]
cdg has joined #ruby
spt0 has joined #ruby
mim1k has quit [Quit: Reconnecting]
mim1k has joined #ruby
marcux has quit [Ping timeout: 264 seconds]
<sajinmp>
I am using httparty to post it. I generated the code from postman and tried, still the same issue. I have asked the third party if the could check the log and find what the issue is. This is a payment gateway api
snickers has quit [Ping timeout: 240 seconds]
oleo has joined #ruby
roadt has quit [Ping timeout: 240 seconds]
FrostCandy has joined #ruby
uZiel has quit [Ping timeout: 248 seconds]
ldnunes has quit [Ping timeout: 240 seconds]
AlexRussia has joined #ruby
rippa has joined #ruby
GodFather_ has quit [Remote host closed the connection]
r7c has quit [Quit: Leaving]
GodFather has joined #ruby
kn-928 has joined #ruby
nobitanobi has quit [Remote host closed the connection]
nobitanobi has joined #ruby
chouhoulis has joined #ruby
GodFather has quit [Read error: No route to host]
GodFather_ has joined #ruby
Burgestrand has quit [Quit: Closing time!]
GodFather_ has quit [Remote host closed the connection]
DLSteve has joined #ruby
ldnunes has joined #ruby
oleo has quit [Remote host closed the connection]
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
GodFather has joined #ruby
devil_tux has quit [Ping timeout: 255 seconds]
nobitanobi has quit [Ping timeout: 246 seconds]
oleo has joined #ruby
ledestin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Slinky_Pete has joined #ruby
rawste has quit [Quit: (ー。ー) zzz...]
dionysus69 has quit [Ping timeout: 252 seconds]
devil_tux has joined #ruby
bruno-_ has joined #ruby
t-recx has quit [Quit: t-recx]
phaul has joined #ruby
VladGh has quit [Remote host closed the connection]
duckpuppy has joined #ruby
devil_tux has quit [Client Quit]
Slinky_Pete has quit [Ping timeout: 246 seconds]
VladGh has joined #ruby
t-recx has joined #ruby
guille-moe has joined #ruby
jrm has quit [Quit: ciao]
jrm has joined #ruby
rawste has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
darix has quit [Quit: may the packets be with you...]
brent__ has joined #ruby
rabajaj has quit [Remote host closed the connection]
chouhoulis has quit [Remote host closed the connection]
ta_ has quit [Remote host closed the connection]
brent__ has quit [Ping timeout: 248 seconds]
millerti has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
LastWhisper____ has joined #ruby
bairyn is now known as ByronJohnson
chouhoulis has joined #ruby
kn-928 has quit [Ping timeout: 248 seconds]
harfangk has quit [Ping timeout: 252 seconds]
chouhoulis has quit [Remote host closed the connection]
chouhoulis has joined #ruby
jackjackdripper has joined #ruby
nofxx has quit [Ping timeout: 240 seconds]
kn-928 has joined #ruby
GrimGrim has joined #ruby
GrimGrim has quit [Quit: Leaving]
ResidentBiscuit has joined #ruby
ur5us has joined #ruby
synthroid has quit [Remote host closed the connection]
jackjackdripper has quit [Quit: Leaving.]
Rapture has joined #ruby
chouhoul_ has joined #ruby
eputnam has quit [Ping timeout: 260 seconds]
eputnam has joined #ruby
chouhoulis has quit [Ping timeout: 240 seconds]
millerti has joined #ruby
frozengeek has quit [Quit: frozengeek]
frozengeek has joined #ruby
millerti has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mark_66 has quit [Quit: Leaving.]
ams__ has quit [Quit: Connection closed for inactivity]
mark_66 has joined #ruby
Slinky_Pete has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
BSaboia has quit [Read error: Connection reset by peer]
tvw has quit [Remote host closed the connection]
phinxy has joined #ruby
Slinky_Pete has quit [Ping timeout: 240 seconds]
bruno-_ has quit [Ping timeout: 240 seconds]
bmurt has joined #ruby
bruno- has quit [Ping timeout: 240 seconds]
tvw has joined #ruby
ur5us has quit [Remote host closed the connection]
anisha_ has quit [Quit: This computer has gone to sleep]
arup_r has joined #ruby
phinxy has left #ruby ["Leaving"]
mkali has quit [Quit: mkali]
<arup_r>
I want to review one of my regex code as I am noob in Regex. s = 'https://www.google.co.in/search?q=123';; s[/\?q=(\d+)/, 1] # 123 which is what I want. Does my regex matcher is correct has no bug?
millerti has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<vivus>
I need to run: bundle exec puma -C config/puma.rb
<vivus>
but this command fails
<vivus>
bundler: command not found: puma
baroquebobcat has quit [Ping timeout: 248 seconds]
baroquebobcat_ is now known as baroquebobcat
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bmurt has joined #ruby
millerti has joined #ruby
kculpis has joined #ruby
<adaedra>
Did you `bundle install`?
roonsauce has joined #ruby
conta has quit [Ping timeout: 240 seconds]
TomyLobo has joined #ruby
jackjackdripper has joined #ruby
iMadper has quit [Read error: Connection reset by peer]
kn-928 has quit [Ping timeout: 240 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
RedNifre has joined #ruby
arup_r has quit [Remote host closed the connection]
quobo has quit [Quit: Connection closed for inactivity]
polishdub has joined #ruby
millerti has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ashZ_ has joined #ruby
PaulCapestany has quit [Quit: .]
[Butch] has joined #ruby
brent__ has joined #ruby
cahoots_ has joined #ruby
ashZ has quit [Ping timeout: 252 seconds]
<vivus>
adaedra: I first need to run bundle install?
<adaedra>
Yes, you need to install dependencies
PaulCapestany has joined #ruby
<vivus>
oh I understand now. bundle is the package manager
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jamesaxl has quit [Read error: Network is unreachable]
Slinky_Pete has joined #ruby
jamesaxl has joined #ruby
rawste has quit [Quit: See ya later!]
bmurt has joined #ruby
millerti has joined #ruby
dionysus69 has quit [Remote host closed the connection]
dionysus69 has joined #ruby
<RedNifre>
JSON.parse returns arrays and hashes which I can access like["this"]. Is it also possible to parse it to arrays and structs so I can access it like.this ? The keys in the json already look like_this.
al2o3-cr has quit [Ping timeout: 260 seconds]
im0nde has joined #ruby
Serpent has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
drale2k_ has joined #ruby
scootaloo has joined #ruby
t-recx_ has joined #ruby
bmurt has joined #ruby
kn-928 has joined #ruby
MrBusiness3 has joined #ruby
bogdanteleaga has quit [Ping timeout: 246 seconds]
adaedra has quit [Ping timeout: 246 seconds]
drale2k has quit [Ping timeout: 246 seconds]
t-recx has quit [Quit: t-recx]
SirFunk has quit [Ping timeout: 246 seconds]
swills has quit [Read error: Connection reset by peer]
mkaito has quit [Ping timeout: 246 seconds]
ghormoon has quit [Ping timeout: 246 seconds]
gf3 has quit [Ping timeout: 246 seconds]
ghormoon_ has joined #ruby
mkaito_ has joined #ruby
mkaito_ is now known as mkaito
mkaito has quit [Changing host]
mkaito has joined #ruby
Serpent7776 has quit [Ping timeout: 246 seconds]
MrBismuth has quit [Ping timeout: 246 seconds]
swills has joined #ruby
swills has joined #ruby
daveomcd has quit [Remote host closed the connection]
t-recx_ is now known as t-recx
<ule>
I asked there on RubyOnRails, so I'm gonna ask here as well just in case someone can help. I have an ActiveRecord result object. How can I simple pick one element having it's id? Something like: users[1234]. Currently, I'm doing a users.select { |u| u.id == 1234 }.first It works but it's very slow... do you guys know whats the fastest way to do this?
daveomcd has joined #ruby
<adam12>
Why not just select it the first time
<adam12>
User.find(1234)
bogdanteleaga has joined #ruby
SirFunk has joined #ruby
<ule>
long story.. but basically Im working on an optimiation... if I do what you're suggesting I need to make 6k calls to pick some info for each user.. the way I'm doing here, Im grabbing groups "chunks" of users and then filtering via ruby..
<ule>
It's complicated because I'm dealing with different data sources.. I can't just do what you suggested
gf3 has joined #ruby
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<adam12>
Well, instead of using `select`, maybe you can use `find` or `detect` which returns first element that matches
<adam12>
instead of iterating over the entire group just to return the first one found.
bokayio has quit [Ping timeout: 240 seconds]
<adam12>
users.find { |u| u.id == 1234 }
<ule>
adam12: because that .find will trigger another call do my db, and I'm truing to avoid that since I already have the result object in memory. I just need to pick based on the id
<adam12>
Then convert it to an array first
<Papierkorb>
isn't there a `#to_a`?
<adam12>
users.to_a.find { |u| u.id == 1234 }
<ule>
adam12: what might work.. let me try here
<ule>
so since its an array I can't I just do users[1234] then ?
baroquebobcat has quit [Quit: baroquebobcat]
bokayio has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<adam12>
ule: That would return the user at array position 1234, and not with the id of 1234, so no
<Papierkorb>
ule, if it's such a common use, convert it to an hash first for quick&easy lookup
<adam12>
That would work aswell.
<ule>
I'd love to see the index with the same user id, then it would perform super fast BigO(1)
<Papierkorb>
users.map{|u| [u.id, u]}.to_h and done
<ule>
Papierkorb: then how can I find having a hash?
<Papierkorb>
huh?
<Papierkorb>
Like you do with a hash?
<ule>
ohh I see..
<ule>
cool, let me try here
__Yiota has joined #ruby
duckpuppy has quit [Ping timeout: 240 seconds]
<Papierkorb>
And if you need to iterate over the whole thing still, either store the array too, or #each_value over it.
bmurt has joined #ruby
Serpent has quit [Quit: Leaving]
<ule>
Boom worked like a charm
<ule>
amosbird: Papierkorb thanks guys
<ule>
ops adam12
<ule>
:)
<adam12>
yw.
<Papierkorb>
cheers
Beams has quit [Quit: .]
AlexRussia_ has joined #ruby
AlexRussia has quit [Ping timeout: 240 seconds]
charliesome has joined #ruby
mim1k has quit [Ping timeout: 240 seconds]
roonsauce has quit [Remote host closed the connection]
chouhoul_ has quit [Remote host closed the connection]
<ycyclist>
Say, anybody know what this is about??? cannot load such file -- minitest/spec (LoadError)
griffindy has joined #ruby
<ycyclist>
Usually, on Ubuntu, I get no problem with minitest just being there. I thought that it was the default test framework for almost 10 years now for Ruby.
<ycyclist>
But now it appears I need to install it as a gem? That is a bit of a kick in the teeth for a devotee who just told his boss it comes default.
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
michael4 has joined #ruby
cagomez has joined #ruby
bmurt has joined #ruby
duckpuppy has quit [Ping timeout: 255 seconds]
duckpupp1 has joined #ruby
<ycyclist>
Wow. I didn't realize this place was so dead.
<SeepingN>
it's Friday
<SeepingN>
programmers' day off
Guest39719 has joined #ruby
milardovich has quit []
cagomez has quit [Ping timeout: 240 seconds]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Guest39719 has quit [Ping timeout: 240 seconds]
griffindy has quit [Ping timeout: 246 seconds]
synthroid has quit [Remote host closed the connection]
<ycyclist>
I'm a programmer.
<ycyclist>
Whew.
<Papierkorb>
Friday evening. people may be doing something else for a change
duckpupp1 has quit [Ping timeout: 246 seconds]
<ycyclist>
Say, I seem to be getting yum install of ruby on centos7 just fine, but no require 'minitest/spec' require 'minitest/autorun'.
<ycyclist>
I wonder if centos has some known brokenness where I can just yum or gem install that. It should just be there I think.
bmurt has joined #ruby
bmurt has quit [Client Quit]
mson has joined #ruby
tsia has joined #ruby
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
milardovich has joined #ruby
__Yiota has joined #ruby
jamesaxl has quit [Quit: WeeChat 1.8]
jenrzzz has quit [Ping timeout: 255 seconds]
orbyt_ has joined #ruby
brent__ has quit []
Slinky_Pete has quit [Remote host closed the connection]
Slinky_Pete has joined #ruby
jenrzzz has joined #ruby
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tsia has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
[Butch] has quit [Quit: I'm out . . .]
cdg has joined #ruby
kn-928 has joined #ruby
benlieb has joined #ruby
cdg has quit [Read error: Connection reset by peer]
Slinky_Pete has quit [Ping timeout: 240 seconds]
cdg has joined #ruby
cagomez has joined #ruby
ozcanesen has joined #ruby
cdg has quit [Remote host closed the connection]
cdg has joined #ruby
BSAlb has joined #ruby
<havenwood>
ycyclist: What Ruby are you on?
<havenwood>
ycyclist: You can, and should update minitest independently from Ruby.
bronson has quit [Remote host closed the connection]
BSaboia has quit [Ping timeout: 246 seconds]
maryo has quit [Ping timeout: 264 seconds]
milardovich has quit [Remote host closed the connection]
<sami>
I'm having some trouble with the ruby version of elasticsearch-dsl, would this be the right channel to ask?
<ycyclist>
However, when I try to use minitest/autorun and minitest/spec it similarly does not see them.
<sami>
For some reason this is what my query looks like, client doesn't extract the hash: curl -X GET 'http://localhost:9200/_search?pretty'; -d '"#<Elasticsearch::DSL::Search::Search:0x007fdb6086ff40>"'
<ycyclist>
I would like to use the minitest I can see down in this ruby 2.3 install, but it does not see it.
<havenwood>
sami: need a #to_s or something on that Elasticsearch::DSL::Search::Search instance?
sepp2k has quit [Quit: Leaving.]
twillkens has quit [Ping timeout: 240 seconds]
<ycyclist>
Is there some kind of include qualifier I can give in ruby to make it see it?
<havenwood>
ycyclist: Usually Ruby version switchers get you the Ruby and Gem to match the Ruby you've selected.
<sami>
havenwood: Let me gist the example code. Just a sec
<matthewd>
ycyclist: Run it with that ruby
<havenwood>
ycyclist: Maybe on CentOS you could use update-alternatives to select it.
<havenwood>
ycyclist: It's quite possible to remove bundled gems like minitest (default gems on the other hand can't be removed).
<ycyclist>
That works:
<ycyclist>
xeno@xcalatestvm1h:~/shop$ /opt/microsoft/omsagent/ruby/bin/ruby -rminitest -e "puts 'it worked...'" it worked...
<havenwood>
Okay, then you're good.
<havenwood>
Somehow you uninstalled the minitest gem, which you can do.
<havenwood>
Or they did.
<havenwood>
Someone did.
<ycyclist>
Is there some way to include the gem from the net just for the script execution rather than gem installing it?
<havenwood>
ycyclist: It's described here why it can be uninstalled: https://stdgems.org/
<havenwood>
ycyclist: It's presumed to be there, since it's a bundled gem. Almost nobody uninstalls it.
bovis has quit [Ping timeout: 240 seconds]
<ycyclist>
Okay, well it is sure simple to re-install, but it stinks as it changes the install area.
milardovich has quit [Remote host closed the connection]
<havenwood>
ycyclist: You can always have a Gemfile and add the line: gem 'minitest'
<havenwood>
Then when people `bundle` it will get installed.
<ycyclist>
yes, well, I'd say it won't hurt too bad to install it for testing. Better than using the OS ruby.
<havenwood>
Or for a gem, include the dep in the gemspec.
milardovich has joined #ruby
Slinky_Pete has joined #ruby
<ycyclist>
Best for me to just install for now, then bring it up in meetings that it is the recommended standard and that their use of test unit is strongly deprecated legacy.
<ycyclist>
I have already done that partly, but the fact that they have chopped it out makes it a little more ticklish.
<ycyclist>
Seems to me a sane engineer would have chopped out test unit and forced use of minitest, but well...
marcux has joined #ruby
<havenwood>
ycyclist: Maybe they `gem uninstall --all` in their setup or something. Dunno.
<havenwood>
It's not normal to uninstall bundled gems.
lagweezle is now known as lagweezle_away
<ycyclist>
Well, we are living in a day and age of expansive fatuousness. Ahem.
<ycyclist>
Anyway, this is very helpful havenwood. Thank you.
<havenwood>
ycyclist: You're welcome.
eckhardt has quit [Ping timeout: 246 seconds]
milardovich has quit [Remote host closed the connection]
cahoots has quit [Ping timeout: 246 seconds]
milardovich has joined #ruby
Xeago has joined #ruby
milardovich has quit [Remote host closed the connection]
milardovich has joined #ruby
al2o3-cr has joined #ruby
ShalokShalom has quit [Ping timeout: 248 seconds]
milardovich has quit [Remote host closed the connection]
coderphive has joined #ruby
Slinky_Pete has quit [Remote host closed the connection]
Slinky_Pete has joined #ruby
Guest39719 has joined #ruby
Slinky_Pete has quit [Ping timeout: 252 seconds]
Seenox has quit [Quit: Connection closed for inactivity]
jenrzzz has quit [Ping timeout: 240 seconds]
eyeris has joined #ruby
chouhoul_ has quit [Ping timeout: 248 seconds]
michael4 has quit [Ping timeout: 260 seconds]
Guest39719 has quit [Ping timeout: 248 seconds]
<eyeris>
Is there any way to make a method yield to a block that yields back to the function, which yields to the block once again?
cahoots has joined #ruby
<Papierkorb>
You could pass a Proc to the block. Though, why?
<Papierkorb>
Sounds kinda scary
<eyeris>
I'd want that proc to be the remainder of the method though.
_aeris_ has quit [Remote host closed the connection]
_aeris_ has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
millerti has joined #ruby
Guest39719 has quit [Ping timeout: 240 seconds]
milardovich has quit [Ping timeout: 252 seconds]
Slinky_Pete has joined #ruby
Slinky_Pete has quit [Ping timeout: 248 seconds]
coderphive has joined #ruby
ur5us has quit [Remote host closed the connection]
__Yiota has joined #ruby
orbyt_ has joined #ruby
milardovich has joined #ruby
coderphive has quit [Ping timeout: 240 seconds]
Slinky_Pete has joined #ruby
goyox86_ has joined #ruby
Paraxial has quit [Remote host closed the connection]
Paraxial has joined #ruby
tcopeland has joined #ruby
ozcanesen has quit [Quit: ozcanesen]
goyox86_ has quit [Read error: Connection reset by peer]
_sfiguser has quit [Quit: Leaving]
goyox86__ has joined #ruby
mim1k has joined #ruby
Slinky_Pete has quit [Remote host closed the connection]
phaul has quit [Ping timeout: 248 seconds]
mim1k has quit [Ping timeout: 260 seconds]
bruce_lee has quit [Read error: Connection reset by peer]
conta2 has joined #ruby
wilbert has quit [Ping timeout: 240 seconds]
marcux has quit [Ping timeout: 248 seconds]
wilbert has joined #ruby
conta2 has quit [Ping timeout: 240 seconds]
goyox86__ has quit [Quit: goyox86__]
marcux has joined #ruby
goyox86_ has joined #ruby
marcux has quit [Quit: leaving]
marcux has joined #ruby
polishdub has quit [Quit: leaving]
goyox86_ has quit [Client Quit]
Asher has quit [Quit: Leaving.]
cdg has joined #ruby
abrcdbr has joined #ruby
skweek has joined #ruby
kn-928 has joined #ruby
cdg_ has quit [Ping timeout: 240 seconds]
goyox86_ has joined #ruby
cdg has quit [Ping timeout: 240 seconds]
jackjackdripper has joined #ruby
kn-928 has quit [Ping timeout: 240 seconds]
enterprisey has joined #ruby
Guest25403 has joined #ruby
<Guest25403>
Looking for some resources about compiling ruby C extensions on windows
Guest25403 is now known as Algebr
bruno-__ has quit [Ping timeout: 240 seconds]
<havenwood>
Algebr: You might want to look into the Windows Subsystem for Linux (WSL) that's available as a developer option with the latest Windows 10.
<havenwood>
Algebr: Or if you really want to stay on the Windows kernel, there's DevKit.