havenwood changed the topic of #ruby to: Ruby 3.4.1, 3.3.7 https://www.ruby-lang.org | Log https://libera.irclog.whitequark.org/ruby
gthank has joined #ruby
gthank has quit [Read error: Connection reset by peer]
mange has joined #ruby
ollysmith_ has quit [Ping timeout: 260 seconds]
ollysmith has joined #ruby
dionysus69 has quit [Ping timeout: 244 seconds]
admin1234 has quit [Ping timeout: 246 seconds]
admin1234 has joined #ruby
jasfloss has quit [Ping timeout: 246 seconds]
Inline has quit [Ping timeout: 248 seconds]
jasfloss has joined #ruby
Inline has joined #ruby
sarna has quit [Ping timeout: 252 seconds]
sarna has joined #ruby
admin1234 has quit [Quit: leaving]
Inline has quit [Ping timeout: 268 seconds]
whiteman809 has quit [Quit: ZNC 1.9.1 - https://znc.in]
whiteman809 has joined #ruby
whiteman809 has quit [Client Quit]
whiteman809 has joined #ruby
whiteman809 has quit [Remote host closed the connection]
whiteman809 has joined #ruby
whiteman809 has quit [Client Quit]
grenierm has joined #ruby
whiteman809 has joined #ruby
Sampersand has joined #ruby
konsolebox has joined #ruby
antranigv_ is now known as antranigv
rvalue has quit [Read error: Connection reset by peer]
rvalue has joined #ruby
gemmaro- has quit [Ping timeout: 248 seconds]
gemmaro has joined #ruby
Linux_Kerio has joined #ruby
Sampersand has quit [Ping timeout: 240 seconds]
JulioPapel has joined #ruby
olspookishmagus has quit [Ping timeout: 276 seconds]
henk has joined #ruby
<henk> hi, anyone here involved in rake? a few of the links under https://ruby.github.io/rake/#label-Resources are broken, can anyone fix them?
gr33n7007h has quit [Ping timeout: 252 seconds]
gr33n7007h has joined #ruby
ih8u has joined #ruby
dionysus69 has joined #ruby
dionysus69 has quit [Client Quit]
olspookishmagus has joined #ruby
<henk> and another rake question: I want to generate statistics from my webserver logs. and I want to process all available logs without having to specify what the target files are called, i.e. not say "I want thisandthat.stats" but "I want stats from /var/log/httpd/*/access.log". how could I do that?
pages_ has quit [Ping timeout: 244 seconds]
rvalue has quit [Read error: Connection reset by peer]
rvalue has joined #ruby
mange has quit [Quit: Zzz...]
grenierm has quit [Ping timeout: 240 seconds]
konsolebox has quit [Ping timeout: 244 seconds]
konsolebox has joined #ruby
ftajhii has quit [Ping timeout: 246 seconds]
donofrio has joined #ruby
s-liao-200 has joined #ruby
Linux_Kerio has quit [Ping timeout: 260 seconds]
donofrio has quit [Read error: Connection reset by peer]
donofrio has joined #ruby
user71 has joined #ruby
Jado has quit [Ping timeout: 244 seconds]
Jado has joined #ruby
donofrio has quit [Read error: Connection reset by peer]
donofrio has joined #ruby
crankharder has joined #ruby
nil78 has quit [Quit: ZNC 1.8.2+deb2+deb11u1 - https://znc.in]
nil78 has joined #ruby
s-liao-200 has quit [Quit: Client closed]
s-liao-200 has joined #ruby
jhass has quit [Ping timeout: 248 seconds]
s-liao-200 has quit [Client Quit]
jhass has joined #ruby
donofrio has quit [Ping timeout: 260 seconds]
infernix has quit [Ping timeout: 246 seconds]
donofrio has joined #ruby
hwpplayer1 has joined #ruby
Linux_Kerio has joined #ruby
donofrio has quit [Ping timeout: 265 seconds]
denvermullets has joined #ruby
ih8u has quit [Quit: ih8u]
<adam12> henk: no rake maintainers in here, afaik. you could submit a PR to fix if you know how.
<henk> ok, thanks
jhass has quit [Remote host closed the connection]
Inline has joined #ruby
eddof13 has joined #ruby
dhruvasagar has joined #ruby
Furai has quit [Quit: WeeChat 4.5.1]
Furai has joined #ruby
antranigv has left #ruby [Leaving for now, I'm at https://antranigv.am/]
dhruvasagar has quit [Ping timeout: 268 seconds]
dhruvasagar has joined #ruby
jhass has joined #ruby
<kjetilho> can I make Resolv.getaddresses() return IPv6 addresses even if the host currently has no usable IPv6 addresses?
eddof13 has quit [Quit: eddof13]
<kjetilho> is there better documentation available than https://ruby-doc.org/3.4.1/stdlibs/resolv/Resolv/DNS.html -- it basically has no information at all :/
<tsv> What would you be expecting it to return if there are no usable IPv6 addresses?
Sampersand has joined #ruby
sarna has quit [Remote host closed the connection]
sarna has joined #ruby
dhruvasagar has quit [Ping timeout: 252 seconds]
dhruvasagar has joined #ruby
eddof13 has joined #ruby
crankharder has quit [Quit: leaving]
jhass has quit [Remote host closed the connection]
jhass has joined #ruby
Inline has quit [Quit: Leaving]
dhruvasagar has quit [Remote host closed the connection]
dhruvasagar has joined #ruby
dhruvasagar has quit [Remote host closed the connection]
Vonter has quit [Ping timeout: 248 seconds]
Vonter has joined #ruby
<weaksauc_> kjetilho you'd have to figure out what use_ipv6? does inside that class. the code use each_address to populate the list
<weaksauc_> you might be able to force it via refinements to always return true for a call of use_ipv6?
donofrio has joined #ruby
JulioPapel has quit [Ping timeout: 260 seconds]
donofrio has quit [Ping timeout: 268 seconds]
donofrio has joined #ruby
grenierm has joined #ruby
infernix has joined #ruby
miah has quit [Quit: WeeChat 4.2.1]
donofrio has quit [Ping timeout: 252 seconds]
Inline has joined #ruby
miah has joined #ruby
wbooze has joined #ruby
wbooze has quit [Remote host closed the connection]
wbooze has joined #ruby
donofrio has joined #ruby
niv has quit [Read error: Connection reset by peer]
cybniv has joined #ruby
grenierm has quit [Quit: Client closed]
donofrio has quit [Ping timeout: 246 seconds]
hwpplayer1 has quit [Quit: Tomorrow is another day ! see you and take care]
donofrio has joined #ruby
donofrio has quit [Ping timeout: 252 seconds]
user71 has quit [Quit: Leaving]
eddof13 has quit [Quit: eddof13]
pwl has joined #ruby
wbooze has quit [Remote host closed the connection]
wbooze has joined #ruby
denvermullets has quit [Ping timeout: 252 seconds]
wbooze has quit [Remote host closed the connection]
wbooze has joined #ruby
eddof13 has joined #ruby
pwl has quit [Changing host]
pwl has joined #ruby
mange has joined #ruby
pwl has quit [Quit: Leaving]
Linux_Kerio has quit [Ping timeout: 248 seconds]
wbooze has quit [Ping timeout: 265 seconds]
wbooze has joined #ruby
wbooze has quit [Remote host closed the connection]
wbooze has joined #ruby
wbooze has quit [Remote host closed the connection]
Sampersand has quit [Quit: Client closed]
nmollerup has quit [Remote host closed the connection]
nmollerup has joined #ruby
wbooze has joined #ruby
ruby[bot] has quit [Remote host closed the connection]
ruby[bot] has joined #ruby
Sampersand has joined #ruby
eddof13 has quit [Quit: eddof13]
eddof13 has joined #ruby
<kjetilho> tsv: I just want all addresses, usable or not
<kjetilho> tsv: in this case, the service is running in a IPv4-only container, but the users are IPv6 capable
eddof13 has quit [Client Quit]
<o0x1eef> If Socket.ip_address_list does not include an IPv6 address, then IPv6 support is disabled. However, you could probably monkey match use_ipv6? to work around this. There's no other way as far as I can see. More or less I'm repeating what weaksauc_ said. Here's the code in case it helps: https://github.com/ruby/resolv/blob/master/lib/resolv.rb
<o0x1eef> s/monkey match/money patch/ (^:
<kjetilho> o0x1eef: thanks!
<kjetilho> I guess it's best to make MR/PR to get A and AAAA resources explicitly
<kjetilho> huh. `warn "Support for separate use_ipv6 keyword is deprecated, as it is ignored if an argument is provided. Do not provide a positional argument if using the use_ipv6 keyword argument.", uplevel: 1`
<o0x1eef> It looks like there's also @config.use_ipv6? - I'm not sure how that works. But it is given preference over Socket.ip_address_list. See here https://github.com/ruby/resolv/blob/master/lib/resolv.rb#L417-L432
<kjetilho> I must admit I do not understand this syntax:
<kjetilho> `def initialize(resolvers=(arg_not_set = true; nil), use_ipv6: (keyword_not_set = true; nil))`
<o0x1eef> Try DNS::Config.default_config_hash
<o0x1eef> Maybe Resolv::DNS::Config.default_config_hash.merge!(use_ipv6: true)
<o0x1eef> I'm not sure it works but seems like a lead
<o0x1eef> Also - I don't understand that syntax either.
<kjetilho> hmm. the .merge! has no effect
<kjetilho> ah, it's a function
<o0x1eef> That might be because there is a default resolver, and it might be loaded beforehand. You can create your own resolver as well
<o0x1eef> Resolv::DNS.open(...)
<kjetilho> unfortunately this does not seem to make my MR smaller, quite the opposite
eddof13 has joined #ruby
<o0x1eef> I have disabled IPv6 throughout my network so hard to test. Maybe try Resolv::DNS.open(use_ipv6: true) ?
eddof13 has quit [Client Quit]
<o0x1eef> Resolv::DNS.open(use_ipv6: true).getaddresses("google.com")
<kjetilho> that returns [] here
polishdub has quit [Ping timeout: 244 seconds]
<o0x1eef> I got something that works :)
<o0x1eef> It's bit of a hack, but it does appear to work
<o0x1eef> nameserver_port is important, at least in my case
<kjetilho> impressive :)
<kjetilho> I really appreciate you digging into this - but I did end up with `Resolv::DNS.new.each_resource(value, rr) do |addr| x = addr.address end` with `rr` set to either Resolv::DNS::Resource::IN::A or ::AAAA