Skip to content

Commit ab86ea5

Browse files
authored
fix: ruby versions and links (#15)
* fix: ruby versions and links * task: specify ruby versio
1 parent c10d29a commit ab86ea5

File tree

4 files changed

+9
-8
lines changed

4 files changed

+9
-8
lines changed

.github/workflows/ruby.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,17 +22,16 @@ jobs:
2222
runs-on: ubuntu-latest
2323
strategy:
2424
matrix:
25-
ruby-version: ['3.0', '3.1', '3.2', '3.3', '3.4']
25+
ruby-version: ['3.1', '3.2', '3.3', '3.4']
2626

2727
steps:
2828
- uses: actions/checkout@v3
29+
2930
- name: Set up Ruby
30-
# To automatically get bug fixes and new Ruby versions for ruby/setup-ruby,
31-
# change this to (see https://github.com/ruby/setup-ruby#versioning):
32-
# uses: ruby/setup-ruby@v1
33-
uses: ruby/setup-ruby@55283cc23133118229fd3f97f9336ee23a179fcf # v1.146.0
31+
uses: ruby/setup-ruby@v1
3432
with:
3533
ruby-version: ${{ matrix.ruby-version }}
3634
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
35+
3736
- name: Run tests
3837
run: bundle exec rake

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Note how Person's two lines of code are nothing new: `attr_reader` is standard R
2525
* Clean, minimal syntax
2626

2727
This is a small layer around
28-
[ActiveModel::Validations](http://api.rubyonrails.org/classes/ActiveModel/Validations/ClassMethods.html#method-i-validates). (About 25 lines of code.) So if you know how to use [Rails Validations](https://guides.rubyonrails.org/active_record_validations.html), you're good to go. I wrote this to help with CSV data imports and [website structured data](https://github.com/dogweather/schema-dot-org).
28+
[ActiveModel::Validations](http://api.rubyonrails.org/classes/ActiveModel/Validations/ClassMethods.html#method-i-validates). (About 25 lines of code.) So if you know how to use [Rails Validations](https://guides.rubyonrails.org/active_record_validations.html), you're good to go. I wrote this to help with CSV data imports and [website structured data](https://github.com/public-law/schema-dot-org).
2929

3030

3131
## Usage
@@ -141,7 +141,7 @@ the data.
141141

142142
### Use in code generation
143143

144-
My [Schema.org structured data gem](https://github.com/dogweather/schema-dot-org) uses ValidatedObjects to recursively create well formed HTML / JSON-LD.
144+
My [Schema.org structured data gem](https://github.com/public-law/schema-dot-org) uses ValidatedObjects to recursively create well formed HTML / JSON-LD.
145145

146146
## Installation
147147

lib/validated_object/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
# frozen_string_literal: true
33

44
module ValidatedObject
5-
VERSION = '2.3.0'
5+
VERSION = '2.3.1'
66
end

validated_object.gemspec

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
55
require 'validated_object/version'
66

77
Gem::Specification.new do |spec|
8+
spec.required_ruby_version = '>= 3.1'
9+
810
spec.name = 'validated_object'
911
spec.version = ValidatedObject::VERSION
1012
spec.authors = ['Robb Shecter']

0 commit comments

Comments
 (0)