Vladimir Dementyev
Vladimir Dementyev
> [There's a comment that implies that the async adapter case is handled](https://github.com/test-prof/test-prof/blob/master/lib/test_prof/before_all/adapters/active_record.rb#L72-L75), but it doesn't account for [Rails unsetting lock_thread in teardown](https://github.com/rails/rails/blob/7-0-stable/activerecord/lib/active_record/test_fixtures.rb#L176-L179). Yeah, the hack was added to support...
> I think the issue is that the teardown that unsets lock_thread will run before a global after(:each). It shouldn't. It's invoked by Rails in the `after_teardown` hook: https://github.com/rails/rails/blob/253cddd92d7dc7ed170691c173d079073efdc3c2/activerecord/lib/active_record/test_fixtures.rb#L16 (which...
> It looks like rspec mixes in a module that invokes after_teardown, which (I think) is considered at the context level, so it will run first. Yeah, seems so. I...
Thanks for the request! I've just started working on the next release today 🙂 Will try to include this feature into it. Stay tuned!
> This mostly already works with ruby-next nextify -V --rewrite=pattern-matching --no-refine ./lib And, I think, adding `--single-version` is required in this cases (so `.rbnext` contains the transpiled files for the...
Oh, right, that's because specifying rewriters explicitly implies having a single version: https://github.com/ruby-next/ruby-next/blob/cabf5829ee6939d23481ed74eb20809e2191eeac/lib/ruby-next/commands/nextify.rb#L211
Let's try to figure out what's going on. Answers to the following questions could help: - Do you use runtime rewriting? (I guess, yes, since you mentioned Rails) - Do...
> Should ruby-next be loaded after bootsnap? Yes, in order to correctly work with Bootsnap cache, we need to know that it's being used. Technically, Ruby Next uses `require-hooks` to...
One option is to inject `using RubyNext::Language::Eval` (or event granular versions, `using RubyNext::Language::InstanceEval`) the same way we do with `using RubyNext`? That wouldn't help with `--no-refine` though. Originally, I monkey-patched...
> I'm not aware of any lightweight alternatives to Rails generators We can use plain [Thor](https://github.com/rails/thor); that would, probably, require adding a standalone `bin/logidze` CLI to perform the installation, etc....