Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 22 additions & 3 deletions ruby3.2-activemodel.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package:
name: ruby3.2-activemodel
version: 7.2.1.2
epoch: 1
version: 7.2.2
epoch: 0
description: A toolkit for building modeling frameworks like Active Record. Rich support for attributes, callbacks, validations, serialization, internationalization, and testing.
copyright:
- license: MIT
Expand All @@ -24,7 +24,7 @@ pipeline:
with:
repository: https://github.com/rails/rails
tag: v${{package.version}}
expected-commit: 7750d64a65e5b2641d87ef45e6e65ace193d9a27
expected-commit: d0dcb8fa6073a0c4d42600c15e82e3bb386b27d3

- uses: ruby/build
with:
Expand All @@ -42,6 +42,25 @@ pipeline:
vars:
gem: activemodel

test:
pipeline:
- name: Validate import
runs: ruby -e "require 'active_model'"
- name: Basic example
runs: |
cat > example.rb <<EOF
require 'active_model'
class Person
include ActiveModel::Model
attr_accessor :name, :age
validates :name, presence: true
end
person = Person.new(name: 'bob')
puts person.valid?
EOF

ruby example.rb

update:
enabled: true
github:
Expand Down