Matt Larraz

Results 22 issues of Matt Larraz

* Add Ruby 3.1 * Disable fail-fast so the full matrix always runs * Run `apt-get update` before `apt-get install` * Relax `rdoc` version constraint to keep older Rubies working...

Recent commits have not been building on Travis: Travis' support for open source is significantly limited now, so switching to Github is a good alternative. See my build here https://github.com/mlarraz/standalone-migrations/runs/6198591168...

* This does not work on Rails 7 (See https://github.com/thuss/standalone-migrations/issues/169) * This is actually redundant in all Rails versions supported by this library. If `ENV['SCHEMA']` is not set, Rails has...

#### Input [→ View on sorbet.run](https://sorbet.run/#require%20%22rspec%22%0A%0ARSpec.describe%20%22A%20compound%20and%20matcher%22%20do%0A%20%20let(%3Astring)%20{%20%22foo%20bar%20bazz%22%20}%0A%0A%20%20it%20%22passes%20when%20both%20are%20true%22%20do%0A%20%20%20%20expect(string).to%20start_with(%22foo%22).and%20end_with(%22bazz%22)%0A%20%20end%0A%0A%20%20it%20%22passes%20when%20and%20is%20on%20a%20new%20line%22%20do%0A%20%20%20%20expect(string).to%20start_with(%22foo%22).%0A%20%20%20%20%20%20and%20end_with(%22bazz%22)%0A%20%20end%0Aend) ```ruby require "rspec" RSpec.describe "A compound and matcher" do let(:string) { "foo bar bazz" } it "passes when both are true" do expect(string).to start_with("foo").and...

bug

Given a `countries` table with two rows: country_id | name --- | --- 1 | China 2 | America And a model ```ruby class Country < ActiveRecord::Base lookup_by :name, cache:...

So you can do `model.status?('open', 'closed')`, mirroring `Model.with_status('open', 'closed')`

With a typical `belongs_to` association you can use the nice shorthand ``` ruby class Foo < ActiveRecord::Base belongs_to :bar end Foo.joins(:bar).to_sql # => "SELECT \"foos\".* FROM \"foos\" INNER JOIN \"bars\"...

Right now this prevents installing any patch releases of Rails 5.2. Given the Gemfile: ``` source 'https://rubygems.org' gem 'flip', github: 'pda/flip' gem 'activesupport', '~> 5.2.3' ``` Running `bundle install` gives:...