skape has quit [Quit: Connection closed for inactivity]
drale2k has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
elphe has joined #ruby
johnny56 has joined #ruby
elphe has quit [Client Quit]
elphe has joined #ruby
cd has quit [Quit: cd]
johnny56 has quit [Ping timeout: 258 seconds]
gueorgui has quit [Ping timeout: 265 seconds]
<TzilTzal>
jhass: adding the directory to autoload_paths didn't solve this.. it didn't get reloaded when changed.
<jhass>
I think I gave you many many more pointers than that. Also given you didn't give any of the lacking information to troubleshoot this, I cannot help you further
<TzilTzal>
I also tried config.file_watcher - this indeed restarts the server upon change (so I know it's watched), but I don't see the changes reflected. It's as-if my class hasn't really reloaded.
johnny56 has joined #ruby
drale2k has joined #ruby
braincra- has joined #ruby
braincrash has quit [Ping timeout: 240 seconds]
vondruch has joined #ruby
johnny56 has quit [Ping timeout: 240 seconds]
mnathani has quit [Remote host closed the connection]
mnathani has joined #ruby
yokel has quit [Ping timeout: 265 seconds]
ctOS has quit [Quit: Connection closed for inactivity]
fowl_ has quit [Read error: Connection reset by peer]
en10n has quit [Ping timeout: 246 seconds]
ReinH has quit [Read error: Connection reset by peer]
timwis has quit [Ping timeout: 272 seconds]
johnny56 has joined #ruby
kwilczynski has quit [Ping timeout: 260 seconds]
grvgr has quit [Read error: Connection reset by peer]
d0liver has quit [Ping timeout: 272 seconds]
ReinH has joined #ruby
en10n has joined #ruby
grvgr has joined #ruby
johnny56 has quit [Ping timeout: 240 seconds]
fowl_ has joined #ruby
timwis has joined #ruby
kwilczynski has joined #ruby
jerme_ has quit [Ping timeout: 265 seconds]
jerme_ has joined #ruby
d0liver has joined #ruby
johnny56 has joined #ruby
tumdum has joined #ruby
johnny56 has quit [Ping timeout: 240 seconds]
code_zombie has quit [Quit: Leaving]
drale2k has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dasher00 has joined #ruby
johnny56 has joined #ruby
johnny56 has quit [Ping timeout: 240 seconds]
snickers has quit [Remote host closed the connection]
ur5us has joined #ruby
mnathani has quit [Remote host closed the connection]
mnathani has joined #ruby
FetidToot has quit [Ping timeout: 240 seconds]
ap4y has quit [Ping timeout: 260 seconds]
ellcs has joined #ruby
johnny56 has joined #ruby
FetidToot has joined #ruby
johnny56 has quit [Ping timeout: 256 seconds]
ellcs has quit [Ping timeout: 256 seconds]
ellcs has joined #ruby
TomyWork has joined #ruby
johnny56 has joined #ruby
greengriminal has joined #ruby
drale2k has joined #ruby
johnny56 has quit [Ping timeout: 240 seconds]
dionysus69 has joined #ruby
postmodern has quit [Quit: Leaving]
baojg has quit [Remote host closed the connection]
baojg has joined #ruby
Rudd0 has joined #ruby
johnny56 has joined #ruby
<IsoLinCHiP>
Any suggestions for convenient gem to handle user preferences in a CLI app? Something that takes care of XDG stuff, environment var overrides and maybe even validation and just gives me a hash?
ellcs has quit [Ping timeout: 265 seconds]
<IsoLinCHiP>
With my search terms I was mostly finding gems that are intended for webapps and rails/rake env's.
<IsoLinCHiP>
rake=rack
johnny56 has quit [Ping timeout: 240 seconds]
johnny56 has joined #ruby
kinduff has quit [Ping timeout: 246 seconds]
johnny56 has quit [Ping timeout: 240 seconds]
johnny56 has joined #ruby
chouhoulis has joined #ruby
gueorgui has joined #ruby
darkstardev13 has joined #ruby
darkstardevx has quit [Ping timeout: 240 seconds]
snickers has joined #ruby
kinduff has joined #ruby
chouhoulis has quit [Ping timeout: 258 seconds]
snosk8r has joined #ruby
darkstardev13 has quit [Ping timeout: 240 seconds]
ur5us has quit [Ping timeout: 240 seconds]
TzilTzal has quit [Quit: Leaving.]
kinduff has quit [Ping timeout: 265 seconds]
ellcs has joined #ruby
fercell has joined #ruby
drale2k has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Azure|dc has joined #ruby
Azure has quit [Ping timeout: 246 seconds]
mnathani_ has joined #ruby
mnathani has quit [Ping timeout: 240 seconds]
cow[moo] has joined #ruby
mnathani_ has quit [Read error: Connection reset by peer]
mnathani has joined #ruby
cow[moo] has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cow[moo] has joined #ruby
drincruz has joined #ruby
cow[moo] has quit [Client Quit]
Rudd0^ has joined #ruby
renosis has joined #ruby
cow[moo] has joined #ruby
Rudd0 has quit [Ping timeout: 246 seconds]
mnathani has quit [Read error: Connection reset by peer]
mnathani has joined #ruby
ellcs has quit [Ping timeout: 240 seconds]
coltkirk has joined #ruby
renosis has quit [Remote host closed the connection]
stryek has joined #ruby
ap4y has joined #ruby
cow[moo] has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cow[moo] has joined #ruby
cow[moo] has quit [Client Quit]
cow[moo] has joined #ruby
Itsame1 has joined #ruby
Itsame1 has quit [Client Quit]
kent\n has quit [Quit: No Ping reply in 180 seconds.]
kent\n has joined #ruby
TCZ has joined #ruby
ap4y has quit [Ping timeout: 265 seconds]
chalkmonster has joined #ruby
chalkmon1 has quit [Ping timeout: 256 seconds]
TCZ has quit [Quit: Leaving]
TCZ has joined #ruby
drale2k has joined #ruby
dualfade has quit [Read error: Connection reset by peer]
MadLamb has joined #ruby
<MadLamb>
I'm trying to use https://github.com/elastic/elasticsearch-ruby/tree/master/elasticsearch-dsl to build a query where many parameters are optional depending on how they are configured on the front end. I'm facing the problem that eventually none of the parameters are provided, but this lib still generates a empty query, which is considered invalid by elasticsearch. I dont want to add an if with all the conditions. Any smarter way to do that?
dualfade has joined #ruby
Scient has quit [Ping timeout: 260 seconds]
Scient has joined #ruby
sgen has joined #ruby
renosis has joined #ruby
<renosis>
Anyone know how to set a net/http Get timeout lower? It is currently set at 10 secs, I want 2 secs. I am trying to adjust read_timeout attribute, but it doesn't seem to change anything
<jhass>
maybe you're running into the connect timeout, write timeout or the dns resolution timeout instead
<renosis>
Oh, that's a good point
chalkmon1 has joined #ruby
chalkmonster has quit [Ping timeout: 265 seconds]
johnny56 has quit [Quit: johnny56]
rapidwave has joined #ruby
rapidwave has joined #ruby
rapidwave has quit [Changing host]
renosis has quit [Quit: Connection closed]
<adam12>
IsoLinCHiP: tty-config?
<adam12>
IsoLinCHiP: I don't think it will deal with XDG tho; you'd have to provide the paths yourself.
<adam12>
MadLamb: Docs show `definition = search {}`, with `definition.to_h` containing a `query` key. Can you not guard on that?
drale2k has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
elcuervo has quit [Read error: Connection reset by peer]
elcuervo has joined #ruby
impermanence has joined #ruby
kinduff has joined #ruby
kent\n has quit [Ping timeout: 240 seconds]
<apotheon>
tty-config seems quite nice to use, after playing with it in irb
fercell has quit [Quit: WeeChat 2.8]
<adam12>
Yeah. I use it in a few projects. tty-prompt and tty-logger are also common for many of my projects.
<adam12>
the whole tty ecosystem is quiet nice.
SeepingN has joined #ruby
<apotheon>
seems that way
<apotheon>
Thanks for mentioning it.
kent\n has joined #ruby
alexherbo2 has joined #ruby
meinside has quit [Quit: Connection closed for inactivity]
chouhoulis has joined #ruby
chalkmonster has quit [Quit: WeeChat 2.9]
chalkmonster has joined #ruby
chalkmonster has quit [Client Quit]
chalkmonster has joined #ruby
drale2k has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<MadLamb>
omg lost a lot of time because I added a require and an import on top of the file and for some reason even when I remove the code remais active
<MadLamb>
what kind of bs is that
ChmEarl has joined #ruby
<apotheon>
IsoLinCHiP: Use the tty-config gem with the xdg gem, I guess.
<apotheon>
I'm curious about the name IsoLinCHiP . . .
<apotheon>
Does that mean International Standards Organization Linux California Highway Patrol?
<apotheon>
. . . or maybe Isometric Linux California Highway Patrol?
SeepingN has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
SeepingN has joined #ruby
<rapidwave>
Is ChRuby NOT intended for Windows?
dionysus69 has quit [Remote host closed the connection]
akem has quit [Ping timeout: 265 seconds]
rapidwave has left #ruby ["Konversation terminated!"]
TCZ has quit [Quit: Leaving]
<IsoLinCHiP>
adam12, apotheon : ahh, yes the tty gems are truely gems, thanks for the suggestion.
<IsoLinCHiP>
apotheon: in what way
x0n- has quit [Ping timeout: 265 seconds]
x0n has joined #ruby
drale2k has joined #ruby
akem has joined #ruby
impermanence has quit [Ping timeout: 260 seconds]
dead10cc has joined #ruby
alexherbo2 has quit [Ping timeout: 260 seconds]
Dara has quit [Ping timeout: 240 seconds]
coltkirk has quit [Ping timeout: 258 seconds]
Dara has joined #ruby
alexherbo2 has joined #ruby
roshanavand has quit [Ping timeout: 240 seconds]
kiwi_66 has joined #ruby
<kiwi_66>
Hello, newbie question: what's the difference between "@doc = Nokogiri::XML" and "doc = Nokogiri::XML" ?
<kiwi_66>
Apparently, "@doc" is an instance variable, but how does it differ from plain "doc"?
<kiwi_66>
Thank you.
<apotheon>
scope
alexherbo23 has joined #ruby
<kiwi_66>
So it makes no difference if "doc" is only used in a single, end-user script, as opposed to a script that creates a new class derived from a parent class?
drale2k has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<adam12>
Less JavaScript? Blasphemy.
<apotheon>
. . .
SeepingN has quit [Ping timeout: 240 seconds]
<apotheon>
I'm a heretic, I guess.
gix has joined #ruby
drale2k has joined #ruby
<kiwi_66>
Thank you
kiwi_66 has quit [Quit: Going offline, see ya! (www.adiirc.com)]
cthu| has joined #ruby
zofrex has joined #ruby
drale2k has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
chalkmonster has quit [Quit: WeeChat 2.9]
dead10cc has quit [Quit: Konversation terminated!]
<zofrex>
I have a Hash of SomeClass => integers, where SomeClass can also be pretty logically compared with a string (each instance has a unique string identifier), and I want to be able to look up the integers with either a SomeClass _or_ a string... is it a really terrible idea to use a refinement to alter String#eql? or #== so that I can make equality between String and SomeClass symmetric, and make Hash
<zofrex>
treat them the same as keys?
<Rounin>
zofrex: Hmm, that would also affect unrelated parts of the program
<Rounin>
zofrex: Might it not be better to make a subclass of the hash?
<Rounin>
Or just make a method that does two lookups, or something
<Rounin>
Or checks the type of an object, and if it's a SomeClass, it takes the string and looks up using that
skape has joined #ruby
<adam12>
Maybe DelegateClass(Hash) then overwrite []. I'm not sure I'd personally overwrite the equality for Classes and Strings...
<zofrex>
Rounin: well with a refinement, I -think- I can limit the effect to only the area where I do the lookup?
<zofrex>
or am I not understanding the scope of refinements
crowley has joined #ruby
leam has joined #ruby
leitz has joined #ruby
leitz_the_great has joined #ruby
leam has quit [Client Quit]
leitz has quit [Client Quit]
leitz_the_great is now known as leitz
<Rounin>
zofrex: I'm not sure what refinements are in this context, but if you can limit it to just the right part of the program, then that seems like a good idea
<adam12>
zofrex: It's probably O(n) if passed a String and the Hash is large. If that was a concern you could probably pre-build a lookup table.
<zofrex>
I see
<zofrex>
is overriding #[] alone sufficient? I'm worried there might be weird behaviour if it's not consistent with other methods
SeepingN has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rippa has joined #ruby
BTRE has quit [Remote host closed the connection]
<adam12>
zofrex: No; you'd likely need to override #fetch too if you're using it.
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
isene has joined #ruby
orbyt_ has joined #ruby
<MadLamb>
adam12, I went into this imperative direction but it doesnt work as it replaces the query every time https://dpaste.org/RGzu
<MadLamb>
adam12, I need to append to it
cliluw has joined #ruby
<adam12>
MadLamb: Not familiar with the API but you likely need to have one query block and then just conditions in there.
<MadLamb>
adam12, this is what I tried before, but those query parameters go inside the query block, if all of them are empty, then the query is empty. but the query still gets defined, so it fails.
<MadLamb>
adam12, {} is ok, but {query => {}} is not ok
drale2k has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
howdoi has joined #ruby
<MadLamb>
adam12, yes it was missing the query block but that works
<MadLamb>
adam12, thanks :D
<adam12>
MadLamb: yw!
dviola has quit [Quit: WeeChat 2.9]
bocaneri has quit [Read error: Connection reset by peer]
BrianWGray has joined #ruby
ujjain2 has quit [Ping timeout: 265 seconds]
SeepingN has joined #ruby
elphe has quit [Ping timeout: 240 seconds]
ujjain2 has joined #ruby
akem has joined #ruby
ujjain2 has quit [Client Quit]
BTRE has joined #ruby
powerhouse has quit [Read error: Connection reset by peer]
andremedeiros has quit [Quit: ZNC 1.8.1 - https://znc.in]
andremedeiros has joined #ruby
drale2k has joined #ruby
baojg has quit [Remote host closed the connection]
baojg has joined #ruby
cd has quit [Quit: cd]
vondruch has quit [Ping timeout: 260 seconds]
adu has quit [Quit: adu]
akem is now known as RamsesIV
cow[moo] has quit [Ping timeout: 240 seconds]
lacrymology has quit [Ping timeout: 256 seconds]
dviola has joined #ruby
cd has joined #ruby
powerhouse has joined #ruby
adu has joined #ruby
rapidwave has joined #ruby
<rapidwave>
I keep getting this message..following the instruction doesn't solve the problem. Ignoring ed25519-1.2.4 because its extensions are not built. Try: gem pristine ed25519 --version 1.2.4
<rapidwave>
I'm using Windows 10, if that matters
BTRE has quit [Quit: Leaving]
dees has joined #ruby
leitz has quit [Quit: Leaving]
<adam12>
rapidwave: What are you running that generates that message?
selimws has joined #ruby
dualfade has quit [Ping timeout: 265 seconds]
dualfade has joined #ruby
SeepingN has quit [Quit: The system is going down for reboot NOW!]
selimws has quit [Quit: Leaving]
selimws has joined #ruby
selimws has quit [Client Quit]
selimws has joined #ruby
<selimws>
hello
CrazyEddy has joined #ruby
SeepingN has joined #ruby
<selimws>
is there anyone to help me?
<w10x12>
selimws: possibly; ask your question
dualfade has quit [Ping timeout: 240 seconds]
dualfade has joined #ruby
TCZ has joined #ruby
selimws has quit [Remote host closed the connection]
drn97 has quit [Quit: Leaving]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ap4y has joined #ruby
drale2k has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<havenwood>
rapidwave: Show the full error messagE?
<havenwood>
rapidwave: What are you running to get this error?
old_relik has joined #ruby
<old_relik>
is there a way to write an intersection of a deeply nested hash?