Skip to content

Commit

Permalink
Use strings for Ruby versions, fix Struct usage for Ruby 3.2
Browse files Browse the repository at this point in the history
  • Loading branch information
cgriego committed Oct 10, 2023
1 parent 83a4f4f commit ea1c63d
Show file tree
Hide file tree
Showing 2 changed files with 72 additions and 72 deletions.
142 changes: 71 additions & 71 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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' }}
Expand Down
2 changes: 1 addition & 1 deletion spec/unit/active_attr/attributes_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit ea1c63d

Please sign in to comment.