Skip to content
Merged
Show file tree
Hide file tree
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
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Changelog

All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [0.2.2] - 2025-12-19

### Changed

- Added `klass` method to `JobSerializer` for Rails 8.1 compatibility. Rails 8.1 changed how `ActiveJob::Serializers::ObjectSerializer` works, requiring subclasses to implement a `klass` method that returns the class being serialized.
6 changes: 5 additions & 1 deletion lib/linkedin_url_value/job_serializer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,12 @@

module LinkedinUrlValue
class JobSerializer < ActiveJob::Serializers::ObjectSerializer
def klass
LinkedinUrlValue::Base
end

def serialize?(argument)
argument.is_a?(LinkedinUrlValue::Base)
argument.is_a?(klass)
end

def serialize(value)
Expand Down
2 changes: 1 addition & 1 deletion linkedin_url_value.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Gem::Specification.new do |spec|
spec.name = "linkedin_url_value"
spec.version = "0.2.1"
spec.version = "0.2.2"
spec.authors = ["Grant Petersen-Speelman"]
spec.email = ["grant@nexl.io"]

Expand Down