JohanP has quit [Remote host closed the connection]
JohanP has joined #ruby
coniptor has quit [Ping timeout: 272 seconds]
ur5us has joined #ruby
JohanP has quit [Ping timeout: 240 seconds]
ellcs has quit [Ping timeout: 258 seconds]
coniptor has joined #ruby
JohanP has joined #ruby
JohanP has quit [Ping timeout: 260 seconds]
bambanx has joined #ruby
markong has quit [Read error: Connection reset by peer]
JohanP has joined #ruby
JohanP has quit [Ping timeout: 256 seconds]
markong has joined #ruby
dfucci has joined #ruby
cahoots has quit [Ping timeout: 246 seconds]
dfucci has quit [Ping timeout: 246 seconds]
JohanP has joined #ruby
prion has quit [Ping timeout: 246 seconds]
JohanP has quit [Ping timeout: 265 seconds]
cahoots has joined #ruby
JohanP has joined #ruby
JohanP has quit [Ping timeout: 246 seconds]
dionysus69 has quit [Ping timeout: 246 seconds]
coniptor has quit [Ping timeout: 272 seconds]
JohanP has joined #ruby
dfucci has joined #ruby
JohanP has quit [Ping timeout: 240 seconds]
dfucci has quit [Ping timeout: 264 seconds]
coniptor has joined #ruby
shokohsc has quit [Ping timeout: 240 seconds]
JohanP has joined #ruby
bambanx has quit [Remote host closed the connection]
bambanx has joined #ruby
bambanx has quit [Remote host closed the connection]
bambanx has joined #ruby
ellcs has joined #ruby
JohanP has quit [Ping timeout: 260 seconds]
ellcs has quit [Ping timeout: 258 seconds]
_[mandrix]_ has joined #ruby
panorain has joined #ruby
prion has joined #ruby
JohanP has joined #ruby
mnathani has joined #ruby
mnathani has quit [Client Quit]
mnathani has joined #ruby
Technodrome has joined #ruby
JohanP has quit [Ping timeout: 240 seconds]
JohanP has joined #ruby
JohanP has quit [Ping timeout: 240 seconds]
JohanP has joined #ruby
JohanP has quit [Remote host closed the connection]
JohanP has joined #ruby
prion has quit [Ping timeout: 256 seconds]
JohanP` has joined #ruby
JohanP has quit [Remote host closed the connection]
JohanP` has quit [Ping timeout: 240 seconds]
prion has joined #ruby
TCZ has quit [Quit: Wawel - Czujesz sie dobrze, czynisz dobrze]
cacheerror has quit [Quit: WeeChat 3.0]
JohanP` has joined #ruby
ian| has quit [Quit: Exiting]
JohanP` has quit [Ping timeout: 246 seconds]
JohanP` has joined #ruby
JohanP` has quit [Ping timeout: 256 seconds]
Dreamer3 has joined #ruby
cuerbot has quit [Read error: Connection reset by peer]
elcuervo has joined #ruby
dfucci has joined #ruby
dfucci has quit [Ping timeout: 260 seconds]
dviola has quit [Read error: Connection reset by peer]
JohanP` has joined #ruby
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Swyper has quit [Remote host closed the connection]
JohanP` has quit [Ping timeout: 260 seconds]
prion has quit [Ping timeout: 256 seconds]
JohanP` has joined #ruby
JohanP` has quit [Ping timeout: 240 seconds]
bambanx has quit [Quit: Leaving]
Technodrome has joined #ruby
JohanP` has joined #ruby
JohanP` has quit [Ping timeout: 246 seconds]
AndreYuhai has quit [Quit: Lost terminal]
ur5us has quit [Ping timeout: 260 seconds]
JohanP` has joined #ruby
JohanP` has quit [Ping timeout: 256 seconds]
rippa has joined #ruby
JohanP` has joined #ruby
JohanP` has quit [Ping timeout: 240 seconds]
JohanP` has joined #ruby
JohanP` has quit [Ping timeout: 260 seconds]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
ChmEarl has quit [Quit: Leaving]
mnathani has quit []
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dfucci has joined #ruby
ropeney has quit [Ping timeout: 240 seconds]
dfucci has quit [Ping timeout: 240 seconds]
JohanP` has joined #ruby
JohanP` has quit [Ping timeout: 246 seconds]
Technodrome has joined #ruby
teardown has quit [Ping timeout: 240 seconds]
JohanP` has joined #ruby
JohanP` has quit [Ping timeout: 240 seconds]
teardown has joined #ruby
coniptor has quit [Ping timeout: 256 seconds]
JohanP` has joined #ruby
JohanP` has quit [Ping timeout: 246 seconds]
evdubs has quit [Ping timeout: 260 seconds]
evdubs has joined #ruby
coniptor has joined #ruby
JohanP` has joined #ruby
JohanP` has quit [Ping timeout: 256 seconds]
JohanP` has joined #ruby
JohanP` has quit [Ping timeout: 256 seconds]
dfucci has joined #ruby
uplime has quit [Disconnected by services]
also_uplime has joined #ruby
also_uplime has quit [Disconnected by services]
JohanP` has joined #ruby
also_uplime has joined #ruby
schaerli has joined #ruby
Rudd0 has quit [Ping timeout: 265 seconds]
JohanP` has quit [Ping timeout: 240 seconds]
jokester has quit [Ping timeout: 272 seconds]
blackmesa has joined #ruby
JohanP` has joined #ruby
blackmesa has quit [Ping timeout: 260 seconds]
ua has quit [Ping timeout: 260 seconds]
ua has joined #ruby
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
blackmesa has joined #ruby
graphicsv has quit [Read error: Connection reset by peer]
AutomationD has quit [Ping timeout: 246 seconds]
rann has quit [Ping timeout: 264 seconds]
JayDoubleu has quit [Ping timeout: 272 seconds]
AutomationD has joined #ruby
graphicsv has joined #ruby
rann has joined #ruby
JayDoubleu has joined #ruby
coniptor has quit [Ping timeout: 265 seconds]
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
JohanP` has quit [Remote host closed the connection]
dfucci has quit [Ping timeout: 260 seconds]
coniptor has joined #ruby
blackmesa has quit [Ping timeout: 272 seconds]
duderonomy has joined #ruby
prion has joined #ruby
cloud69 has quit [Quit: Connection closed for inactivity]
schne1der has joined #ruby
ur5us has joined #ruby
<nakilon>
is my guess right that if I add json_pure instead of json to gemspec then nothing should break and I'll get rid of a need to install compilers for native extensions?
burgestrand has joined #ruby
prion has quit [Ping timeout: 240 seconds]
execat[m] has quit [Quit: Idle for 30+ days]
blackmesa has joined #ruby
ur5us has quit [Ping timeout: 264 seconds]
blackmesa1 has joined #ruby
blackmesa has quit [Ping timeout: 260 seconds]
blackmesa1 has quit [Ping timeout: 264 seconds]
blackmesa1 has joined #ruby
blackmesa1 has quit [Ping timeout: 264 seconds]
blackmesa1 has joined #ruby
burgestrand has quit [Quit: burgestrand]
coniptor has quit [Ping timeout: 240 seconds]
blackmesa1 has quit [Ping timeout: 268 seconds]
coniptor has joined #ruby
Rudd0 has joined #ruby
schaerli has quit [Ping timeout: 240 seconds]
fanta1 has joined #ruby
schaerli has joined #ruby
blackmesa1 has joined #ruby
blackmesa has joined #ruby
blackmesa1 has quit [Ping timeout: 264 seconds]
ropeney has joined #ruby
schne1der has quit [Ping timeout: 256 seconds]
evdubs has quit [Ping timeout: 256 seconds]
coniptor has quit [Ping timeout: 240 seconds]
schne1der has joined #ruby
evdubs has joined #ruby
ua has quit [Ping timeout: 240 seconds]
coniptor has joined #ruby
blackmesa has quit [Ping timeout: 260 seconds]
dfucci has joined #ruby
coniptor has quit [Ping timeout: 256 seconds]
ua has joined #ruby
dfucci has quit [Read error: No route to host]
coniptor has joined #ruby
blackmesa has joined #ruby
blackmesa has quit [Ping timeout: 258 seconds]
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cd has joined #ruby
<havenwood>
nakilon: The json gem is in the Ruby stdlib so it ships with Ruby.
BSaboia has joined #ruby
<havenwood>
nakilon: One reason for json_pure is Rubies that don't support C-extensions.
prion has joined #ruby
moldorcoder7 has quit [Ping timeout: 256 seconds]
moldorcoder7 has joined #ruby
somazero has joined #ruby
coniptor has quit [Ping timeout: 240 seconds]
somazero has quit [Client Quit]
<nakilon>
havenwood I guess depends on the Ruby version
<nakilon>
historically the json gem made his way to be explicitely in my gemspec
<nakilon>
anyone knows an easy workflow to add webmock stubs from the real responses? their README says go use VCR but that looks like wrapping it everywhere and storing dozens of files
coniptor has joined #ruby
<nakilon>
I would love it to be as easy as copypasting the "to_return(status: 200, body: \"\", headers: {})" as it says by default
alextee has quit [Ping timeout: 264 seconds]
fanta1 has quit [Quit: fanta1]
<nakilon>
or am I supposed to use these two tool separately?
<adam12>
nakilon: If I can hand-craft the response and I know it's prone to little churn (maybe it's my own service), I'll use webmock. If it's a 3rd party service, I'll use VCR. So I might use both in the same code base.
<nakilon>
it's all third party
<adam12>
nakilon: The nice thing about VCR is if you craft the test correctly, you can ask VCR to re-record the fixture to bring it up to date.
<nakilon>
it's a universal web client that I now want to split its tests into unit and integration
coniptor has quit [Ping timeout: 256 seconds]
ellcs has quit [Read error: Connection reset by peer]
ellcs1 has joined #ruby
jenrzzz has joined #ruby
coniptor has joined #ruby
elcuervo has quit [Read error: Connection reset by peer]
elcuervo has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
somazero has joined #ruby
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
somazero has quit [Client Quit]
schaerli has quit [Ping timeout: 264 seconds]
Swyper has quit [Remote host closed the connection]
<nakilon>
so I can patch one of those methods to append another one
jenrzzz has quit [Ping timeout: 240 seconds]
dasher00 has joined #ruby
coniptor has quit [Read error: Connection reset by peer]
<nakilon>
hm, I can't decide to raise the exception if I'm in 109, but in 114 exception class initializer I don't have the super_with_after_request variable
roshanavand has joined #ruby
bkuhlmann has quit [Remote host closed the connection]
coniptor has joined #ruby
bkuhlmann has joined #ruby
tankf33der has joined #ruby
bkuhlmann has quit [Ping timeout: 260 seconds]
somazero has joined #ruby
<nakilon>
if only if-statements in Ruby were methods with 'then' and 'else' lambdas I would patch the WebMock.net_connect_allowed? to prepend the execution of the 'then' block before 'else' execution
jenrzzz has joined #ruby
somazero has quit [Quit: Leaving]
jenrzzz has quit [Ping timeout: 256 seconds]
somazero has joined #ruby
ian| has joined #ruby
jordanm has quit [Remote host closed the connection]
jordanm has joined #ruby
cloud69 has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
ignorand has joined #ruby
schne1der has quit [Ping timeout: 246 seconds]
bkuhlmann has joined #ruby
coniptor has quit [Ping timeout: 256 seconds]
<nakilon>
oh, almost figured out how to monkeypatch it and found that it's inside "@webMockNetHTTP = Class.new(Net::HTTP) do" -- I literally don't have a module to patch
somazero has quit [Quit: Leaving]
bkuhlmann has quit [Ping timeout: 256 seconds]
GodFather_ has joined #ruby
GodFather has joined #ruby
<baweaver>
Going through Advent of Code and solving them with Ruby 2.7 and 3.0 features where possible in "Advent of Ruby 3.0":
<apotheon>
There are potential exceptions, but it's one of those things where you don't make the exception until you've adhered to the rule so long and faithfully and thoughtfully that you finally understand it thoroughly enough to have certain knowledge of when to "break" the rule.
<havenwood>
mouseghost: The standard rule is, "don't monkeypatch core classes."
<apotheon>
Sometimes, what people do with monkeypatching should actually be done with either subclassing or including modules.
<havenwood>
Or a functional style.
<havenwood>
foo(object) instead of object.foo
<mouseghost>
hmm
<apotheon>
Oh, you mean "function style".
<apotheon>
I thought you were talking about something involving methods with no side effects.
<apotheon>
I was curious what that would solve.
<apotheon>
It seemed like maybe there was some great insight I'd missed!
<apotheon>
. . . but yeah, just passing your object as an argument is fine sometimes, too.
<havenwood>
apotheon: The foo(object) style is presumably functional as well as being a function.
<apotheon>
havenwood: I could imagine it being side-effect-y.
<havenwood>
apotheon: Usually you call a method on a receiver to modify the receiver but it's hard to cause a side effect without exposing a method to trigger it inside the object.
<apotheon>
F'rinstance, if you're performing a series of steps to alter a value before assigning it back to the original object attribute . . .
<havenwood>
apotheon: Like `foo(object)` doesn't let you change `object` unless `object` is exposing other external methods for #foo to use.
<apotheon>
right
<apotheon>
That's kinda my point.
<havenwood>
apotheon: The functional style only works when a functional solution is viable. (Always. :P)
<havenwood>
apotheon: I did mean "functional" but I don't mean anything particularly fancy. Just a function rather than a method, so functional style rather than OO style.
JohanP has joined #ruby
tankf33der has left #ruby [#ruby]
<havenwood>
apotheon: Ruby has a bit of an inconsistent mix, I think. I swear it was Raku lang that let you call any method/function in either style or mandate one at the top of the file but I've never been able to find that feature since so might have been another lang.
<havenwood>
I'd actually like to find that lang if anyone knows what I'm talking about? Is it Raku? You could do a `strict oo` or `struct functional` or something like that but the lang had total parity for each method/function defined.
dionysus69 has quit [Ping timeout: 240 seconds]
<havenwood>
I feel like it was Raku but you can't mandate the style anymore? Maybe you can and I just can't find a reference or maybe it was another lang. My brain is failing me.
JohanP has quit [Ping timeout: 260 seconds]
bkuhlmann has quit []
<apotheon>
I wonder whether the Raku thing was a decision that got reversed.
<apotheon>
. . . or an idea that never got implemented.
<apotheon>
. . . but yeah, I get your point re: functional.
<apotheon>
I was just thinking of something like this:
<apotheon>
def increment_foo bar; bar.foo = bar.foo += 1; end
<apotheon>
"only proved correct, not tested"
jenrzzz has joined #ruby
_aeris_ has quit [Remote host closed the connection]
_aeris_ has joined #ruby
JohanP has joined #ruby
coniptor has quit [Ping timeout: 260 seconds]
blackmesa has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
Swyper has quit [Remote host closed the connection]
Swyper has joined #ruby
coniptor has joined #ruby
cloud69 has quit [Quit: Connection closed for inactivity]
Swyper has quit [Ping timeout: 260 seconds]
TCZ has quit [Quit: Wawel - Czujesz sie dobrze, czynisz dobrze]
JohanP has quit [Ping timeout: 264 seconds]
harlin has quit [Remote host closed the connection]
harlin has joined #ruby
JohanP has joined #ruby
jenrzzz has joined #ruby
alextee has quit [Ping timeout: 240 seconds]
coniptor has quit [Ping timeout: 246 seconds]
dionysus69 has joined #ruby
ruby[bot] has quit [Remote host closed the connection]
ruby[bot] has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
smurfke has quit [Ping timeout: 265 seconds]
alextee has joined #ruby
jenrzzz has joined #ruby
Coilcore has joined #ruby
coniptor has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
jenrzzz has joined #ruby
prepend has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
<prepend>
hello there, I'm not a ruby dev, but I use jekyll. I'm trying to fix a broken build and see in the ruby3 release notes that rexml was changed from "default" to "bundled" - does that mean that gems that previously didn't need to include it in their gemfile, now must?
<havenwood>
prepend: It means it still ships with the stdlib but can now be uninstalled.
<havenwood>
prepend: It might be a good idea to explicitly add bundled gems as a dependency but they ship with Ruby and it's not typical for folk to uninstall them, though possible.
prion has quit [Ping timeout: 256 seconds]
<prepend>
thanks, I read through that page, so my error must be something else then. I'm trying to figure out why kramdown can't find that package "`require': cannot load such file -- rexml/parsers/baseparser (LoadError)" so it's something else
<prepend>
I appreciate your response and will keep looking
ur5us has quit [Ping timeout: 260 seconds]
dionysus69 has quit [Ping timeout: 260 seconds]
jintseng has joined #ruby
jintseng has quit [Remote host closed the connection]
adu has quit [Quit: adu]
blackmesa has quit [Ping timeout: 260 seconds]
cb- has joined #ruby
Coilcore has quit [Remote host closed the connection]
coniptor has quit [Ping timeout: 240 seconds]
TCZ has joined #ruby
JohanP has quit [Remote host closed the connection]