diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 3300f35..f575a7d 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -15,16 +15,16 @@ jobs: fail-fast: false matrix: ruby: - - 2.1 - - 2.2 - - 2.3 - - 2.4 - - 2.5 - - 2.6 - - 2.7 - - 3.0 - - 3.1 - - 3.2 + - "2.1" + - "2.2" + - "2.3" + - "2.4" + - "2.5" + - "2.6" + - "2.7" + - "3.0" + - "3.1" + - "3.2" - truffleruby-head gemfile: - gemfiles/rails_3_0.gemfile @@ -41,125 +41,125 @@ jobs: - Gemfile - gemfiles/rails_head.gemfile exclude: - - ruby: 2.1 + - ruby: "2.1" gemfile: gemfiles/rails_5_0.gemfile - - ruby: 2.1 + - ruby: "2.1" gemfile: gemfiles/rails_5_1.gemfile - - ruby: 2.1 + - ruby: "2.1" gemfile: gemfiles/rails_5_2.gemfile - - ruby: 2.1 + - ruby: "2.1" gemfile: gemfiles/rails_6_0.gemfile - - ruby: 2.1 + - ruby: "2.1" gemfile: gemfiles/rails_6_1.gemfile - - ruby: 2.1 + - ruby: "2.1" gemfile: Gemfile - - ruby: 2.1 + - ruby: "2.1" gemfile: gemfiles/rails_head.gemfile - - ruby: 2.2 + - ruby: "2.2" gemfile: gemfiles/rails_6_0.gemfile - - ruby: 2.2 + - ruby: "2.2" gemfile: gemfiles/rails_6_1.gemfile - - ruby: 2.2 + - ruby: "2.2" gemfile: Gemfile - - ruby: 2.2 + - ruby: "2.2" gemfile: gemfiles/rails_head.gemfile - - ruby: 2.3 + - ruby: "2.3" gemfile: gemfiles/rails_6_0.gemfile - - ruby: 2.3 + - ruby: "2.3" gemfile: gemfiles/rails_6_1.gemfile - - ruby: 2.3 + - ruby: "2.3" gemfile: Gemfile - - ruby: 2.3 + - ruby: "2.3" gemfile: gemfiles/rails_head.gemfile - - ruby: 2.4 + - ruby: "2.4" gemfile: gemfiles/rails_6_0.gemfile - - ruby: 2.4 + - ruby: "2.4" gemfile: gemfiles/rails_6_1.gemfile - - ruby: 2.4 + - ruby: "2.4" gemfile: Gemfile - - ruby: 2.4 + - ruby: "2.4" gemfile: gemfiles/rails_head.gemfile - - ruby: 2.5 + - ruby: "2.5" gemfile: gemfiles/rails_3_0.gemfile - - ruby: 2.5 + - ruby: "2.5" gemfile: gemfiles/rails_6_1.gemfile - - ruby: 2.5 + - ruby: "2.5" gemfile: Gemfile - - ruby: 2.5 + - ruby: "2.5" gemfile: gemfiles/rails_head.gemfile - - ruby: 2.6 + - ruby: "2.6" gemfile: gemfiles/rails_3_0.gemfile - - ruby: 2.6 + - ruby: "2.6" gemfile: gemfiles/rails_6_1.gemfile - - ruby: 2.6 + - ruby: "2.6" gemfile: Gemfile - - ruby: 2.6 + - ruby: "2.6" gemfile: gemfiles/rails_head.gemfile - - ruby: 2.7 + - ruby: "2.7" gemfile: gemfiles/rails_3_0.gemfile - - ruby: 2.7 + - ruby: "2.7" gemfile: gemfiles/rails_3_1.gemfile - - ruby: 2.7 + - ruby: "2.7" gemfile: gemfiles/rails_3_2.gemfile - - ruby: 2.7 + - ruby: "2.7" gemfile: gemfiles/rails_4_0.gemfile - - ruby: 2.7 + - ruby: "2.7" gemfile: gemfiles/rails_4_1.gemfile - - ruby: 2.7 + - ruby: "2.7" gemfile: gemfiles/rails_4_2.gemfile - - ruby: 3.0 + - ruby: "3.0" gemfile: gemfiles/rails_3_0.gemfile - - ruby: 3.0 + - ruby: "3.0" gemfile: gemfiles/rails_3_1.gemfile - - ruby: 3.0 + - ruby: "3.0" gemfile: gemfiles/rails_3_2.gemfile - - ruby: 3.0 + - ruby: "3.0" gemfile: gemfiles/rails_4_0.gemfile - - ruby: 3.0 + - ruby: "3.0" gemfile: gemfiles/rails_4_1.gemfile - - ruby: 3.0 + - ruby: "3.0" gemfile: gemfiles/rails_4_2.gemfile - - ruby: 3.0 + - ruby: "3.0" gemfile: gemfiles/rails_5_0.gemfile - - ruby: 3.0 + - ruby: "3.0" gemfile: gemfiles/rails_5_1.gemfile - - ruby: 3.0 + - ruby: "3.0" gemfile: gemfiles/rails_5_2.gemfile - - ruby: 3.1 + - ruby: "3.1" gemfile: gemfiles/rails_3_0.gemfile - - ruby: 3.1 + - ruby: "3.1" gemfile: gemfiles/rails_3_1.gemfile - - ruby: 3.1 + - ruby: "3.1" gemfile: gemfiles/rails_3_2.gemfile - - ruby: 3.1 + - ruby: "3.1" gemfile: gemfiles/rails_4_0.gemfile - - ruby: 3.1 + - ruby: "3.1" gemfile: gemfiles/rails_4_1.gemfile - - ruby: 3.1 + - ruby: "3.1" gemfile: gemfiles/rails_4_2.gemfile - - ruby: 3.1 + - ruby: "3.1" gemfile: gemfiles/rails_5_0.gemfile - - ruby: 3.1 + - ruby: "3.1" gemfile: gemfiles/rails_5_1.gemfile - - ruby: 3.1 + - ruby: "3.1" gemfile: gemfiles/rails_5_2.gemfile - - ruby: 3.2 + - ruby: "3.2" gemfile: gemfiles/rails_3_0.gemfile - - ruby: 3.2 + - ruby: "3.2" gemfile: gemfiles/rails_3_1.gemfile - - ruby: 3.2 + - ruby: "3.2" gemfile: gemfiles/rails_3_2.gemfile - - ruby: 3.2 + - ruby: "3.2" gemfile: gemfiles/rails_4_0.gemfile - - ruby: 3.2 + - ruby: "3.2" gemfile: gemfiles/rails_4_1.gemfile - - ruby: 3.2 + - ruby: "3.2" gemfile: gemfiles/rails_4_2.gemfile - - ruby: 3.2 + - ruby: "3.2" gemfile: gemfiles/rails_5_0.gemfile - - ruby: 3.2 + - ruby: "3.2" gemfile: gemfiles/rails_5_1.gemfile - - ruby: 3.2 + - ruby: "3.2" gemfile: gemfiles/rails_5_2.gemfile - ruby: truffleruby-head gemfile: gemfiles/rails_3_0.gemfile @@ -185,7 +185,7 @@ jobs: steps: - name: Checkout code - uses: actions/checkout@master + uses: actions/checkout@v4 - name: Nokogiri support for TruffleRuby run: sudo apt-get -yqq install libxml2-dev libxslt-dev if: ${{ matrix.ruby == 'truffleruby-head' }} diff --git a/spec/unit/active_attr/attributes_spec.rb b/spec/unit/active_attr/attributes_spec.rb index 777910d..ba7ccf0 100644 --- a/spec/unit/active_attr/attributes_spec.rb +++ b/spec/unit/active_attr/attributes_spec.rb @@ -211,7 +211,7 @@ def self.name end it "returns false when compared to another type" do - should_not == Struct.new(:attributes).new("first_name" => "Ben") + should_not == Struct.new(:attributes).new({ "first_name" => "Ben" }) end end