polyid 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: f9594d2b0303f978b926849714ba7aaad7bd57fe67789292766f0518a94d96e0
4
+ data.tar.gz: 49fea620c0f3ca6fbff464cd1a1c25b148dfc880c89ffd804a2ccc3149343182
5
+ SHA512:
6
+ metadata.gz: 1a1d1cde22395b3bbcc487f7fa59a2ab39e8f28022659a1e34565e5a5bc353cfc0ecf72b629399bc7a89c359dec23e23515c12fdba74a392ccfca98e3079123a
7
+ data.tar.gz: 9f5659b41b8af35b9261642e0c84f1f9309930677bc04d96d810144e12909e73c8752a5799429dcf9b686fa8664410825bc908a72e81bfb924eeb68f9a3ad8e1
data/CHANGELOG.md ADDED
@@ -0,0 +1,2 @@
1
+ ### 0.1.0 (2026-04-10)
2
+ - initial build
data/Gemfile ADDED
@@ -0,0 +1,3 @@
1
+ source "https://rubygems.org"
2
+
3
+ gemspec
data/Gemfile.lock ADDED
@@ -0,0 +1,111 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ polyid (0.1.0)
5
+
6
+ GEM
7
+ remote: https://rubygems.org/
8
+ specs:
9
+ activemodel (8.0.3)
10
+ activesupport (= 8.0.3)
11
+ activerecord (8.0.3)
12
+ activemodel (= 8.0.3)
13
+ activesupport (= 8.0.3)
14
+ timeout (>= 0.4.0)
15
+ activesupport (8.0.3)
16
+ base64
17
+ benchmark (>= 0.3)
18
+ bigdecimal
19
+ concurrent-ruby (~> 1.0, >= 1.3.1)
20
+ connection_pool (>= 2.2.5)
21
+ drb
22
+ i18n (>= 1.6, < 2)
23
+ logger (>= 1.4.2)
24
+ minitest (>= 5.1)
25
+ securerandom (>= 0.3)
26
+ tzinfo (~> 2.0, >= 2.0.5)
27
+ uri (>= 0.13.1)
28
+ base64 (0.3.0)
29
+ benchmark (0.4.1)
30
+ bigdecimal (3.3.1)
31
+ concurrent-ruby (1.3.5)
32
+ connection_pool (2.5.4)
33
+ date (3.4.1)
34
+ debug (1.11.0)
35
+ irb (~> 1.10)
36
+ reline (>= 0.3.8)
37
+ diff-lcs (1.6.2)
38
+ docile (1.4.0)
39
+ drb (2.2.3)
40
+ erb (5.0.1)
41
+ factory_bot (6.5.4)
42
+ activesupport (>= 6.1.0)
43
+ faker (3.5.2)
44
+ i18n (>= 1.8.11, < 2)
45
+ i18n (1.14.7)
46
+ concurrent-ruby (~> 1.0)
47
+ io-console (0.8.0)
48
+ irb (1.15.2)
49
+ pp (>= 0.6.0)
50
+ rdoc (>= 4.0.0)
51
+ reline (>= 0.4.2)
52
+ logger (1.7.0)
53
+ mini_portile2 (2.8.9)
54
+ minitest (5.26.0)
55
+ pp (0.6.2)
56
+ prettyprint
57
+ prettyprint (0.2.0)
58
+ psych (5.2.6)
59
+ date
60
+ stringio
61
+ rdoc (6.14.1)
62
+ erb
63
+ psych (>= 4.0.0)
64
+ reline (0.6.1)
65
+ io-console (~> 0.5)
66
+ rspec (3.13.1)
67
+ rspec-core (~> 3.13.0)
68
+ rspec-expectations (~> 3.13.0)
69
+ rspec-mocks (~> 3.13.0)
70
+ rspec-core (3.13.4)
71
+ rspec-support (~> 3.13.0)
72
+ rspec-debugging (0.0.4)
73
+ rspec-expectations (>= 3)
74
+ rspec-expectations (3.13.5)
75
+ diff-lcs (>= 1.2.0, < 2.0)
76
+ rspec-support (~> 3.13.0)
77
+ rspec-mocks (3.13.5)
78
+ diff-lcs (>= 1.2.0, < 2.0)
79
+ rspec-support (~> 3.13.0)
80
+ rspec-support (3.13.4)
81
+ securerandom (0.4.1)
82
+ simplecov (0.22.0)
83
+ docile (~> 1.1)
84
+ simplecov-html (~> 0.11)
85
+ simplecov_json_formatter (~> 0.1)
86
+ simplecov-html (0.12.3)
87
+ simplecov_json_formatter (0.1.4)
88
+ sqlite3 (2.7.4)
89
+ mini_portile2 (~> 2.8.0)
90
+ stringio (3.1.7)
91
+ timeout (0.4.3)
92
+ tzinfo (2.0.6)
93
+ concurrent-ruby (~> 1.0)
94
+ uri (1.0.4)
95
+
96
+ PLATFORMS
97
+ ruby
98
+
99
+ DEPENDENCIES
100
+ activerecord (>= 7)
101
+ debug (>= 1)
102
+ factory_bot (>= 6)
103
+ faker (>= 3)
104
+ polyid!
105
+ rspec (>= 3.10)
106
+ rspec-debugging
107
+ simplecov (>= 0.22)
108
+ sqlite3 (>= 1.4)
109
+
110
+ BUNDLED WITH
111
+ 2.5.7
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2022 Daniel Pepper
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,68 @@
1
+ PolyId
2
+ ======
3
+ ![Gem](https://img.shields.io/gem/dt/polyid?style=plastic)
4
+ [![codecov](https://codecov.io/gh/dpep/polyid/branch/main/graph/badge.svg)](https://codecov.io/gh/dpep/polyid)
5
+
6
+ `polyid` adds an opt-in ActiveRecord integration for models that keep both an
7
+ auto-incrementing primary key and a UUID column. It lets you look records up by
8
+ either identifier and caches `id <=> uuid` translations for reuse.
9
+
10
+ ## Usage
11
+
12
+ ```ruby
13
+ require "polyid"
14
+
15
+ class User < ApplicationRecord
16
+ polyid
17
+ end
18
+
19
+ user = User.create!(uuid: SecureRandom.uuid)
20
+
21
+ User.find(user.id)
22
+ User.find(user.uuid)
23
+
24
+ User.id_for(user.uuid)
25
+ User.uuid_for(user.id)
26
+
27
+ User.ids_for([user.uuid, 123, nil])
28
+ User.uuids_for([user.id, "8f47a7ca-8f4a-4d7b-96e6-60a0b47ddf68", nil])
29
+ ```
30
+
31
+ `find` accepts IDs, UUIDs, or a mix of both:
32
+
33
+ ```ruby
34
+ User.find(user.id)
35
+ User.find(user.uuid)
36
+ User.find(user.id, user.uuid)
37
+ User.find([user.uuid, user.id])
38
+ ```
39
+
40
+ Translation helpers preserve input order and return `nil` for misses:
41
+
42
+ ```ruby
43
+ User.id_for(user.uuid) # => 123
44
+ User.uuid_for(user.id) # => "..."
45
+ ```
46
+
47
+ By default `polyid` uses the `uuid` column. You can point it at another column:
48
+
49
+ ```ruby
50
+ class Account < ApplicationRecord
51
+ polyid uuid_attribute: :public_id
52
+ end
53
+ ```
54
+
55
+ The cache is warmed automatically when records are loaded and updated.
56
+
57
+
58
+ ----
59
+ ## Contributing
60
+
61
+ Yes please :)
62
+
63
+ 1. Fork it
64
+ 1. Create your feature branch (`git checkout -b my-feature`)
65
+ 1. Ensure the tests pass (`bundle exec rspec`)
66
+ 1. Commit your changes (`git commit -am 'awesome new feature'`)
67
+ 1. Push your branch (`git push origin my-feature`)
68
+ 1. Create a Pull Request
@@ -0,0 +1,78 @@
1
+ module PolyId
2
+ module Cache
3
+ class << self
4
+ def read(model_name, id: nil, uuid: nil)
5
+ PolyId.cache.read(key(model_name, id: id, uuid: uuid))
6
+ end
7
+
8
+ def read_multi(model_name, ids: [], uuids: [])
9
+ keys = ids.map { |id| key(model_name, id: id) } +
10
+ uuids.map { |uuid| key(model_name, uuid: uuid) }
11
+
12
+ cached = PolyId.cache.read_multi(*keys)
13
+
14
+ {
15
+ ids: ids.each_with_object({}) do |id, values|
16
+ cache_key = key(model_name, id: id)
17
+ values[id] = cached[cache_key] if cached.key?(cache_key)
18
+ end,
19
+ uuids: uuids.each_with_object({}) do |uuid, values|
20
+ cache_key = key(model_name, uuid: uuid)
21
+ values[uuid] = cached[cache_key] if cached.key?(cache_key)
22
+ end,
23
+ }
24
+ end
25
+
26
+ def fetch_ids(model_name, uuids:)
27
+ cached_ids = read_multi(model_name, uuids: uuids)[:uuids]
28
+ missing_uuids = uuids - cached_ids.keys
29
+
30
+ if missing_uuids.any?
31
+ yielded_ids = yield(missing_uuids)
32
+ cached_ids.merge!(yielded_ids)
33
+ end
34
+
35
+ cached_ids
36
+ end
37
+
38
+ def fetch_uuids(model_name, ids:)
39
+ cached_uuids = read_multi(model_name, ids: ids)[:ids]
40
+ missing_ids = ids - cached_uuids.keys
41
+
42
+ if missing_ids.any?
43
+ yielded_uuids = yield(missing_ids)
44
+ cached_uuids.merge!(yielded_uuids)
45
+ end
46
+
47
+ cached_uuids
48
+ end
49
+
50
+ def write(model_name, id:, uuid:)
51
+ PolyId.cache.write_multi(
52
+ key(model_name, id: id) => uuid,
53
+ key(model_name, uuid: uuid) => id,
54
+ )
55
+ end
56
+
57
+ def delete(model_name, id:, uuid:)
58
+ delete_multi(model_name, ids: [id], uuids: [uuid])
59
+ end
60
+
61
+ def delete_multi(model_name, ids: [], uuids: [])
62
+ keys = ids.map { |id| key(model_name, id: id) } +
63
+ uuids.map { |uuid| key(model_name, uuid: uuid) }
64
+
65
+ PolyId.cache.delete_multi(keys)
66
+ end
67
+
68
+ private
69
+
70
+ def key(model_name, id: nil, uuid: nil)
71
+ raise ArgumentError, "id or uuid required" if id.nil? && uuid.nil?
72
+
73
+ locator = id.nil? ? "uuid:#{uuid}" : "id:#{id}"
74
+ "polyid/#{model_name}/#{locator}"
75
+ end
76
+ end
77
+ end
78
+ end
@@ -0,0 +1,145 @@
1
+ module PolyId
2
+ module Model
3
+ extend ActiveSupport::Concern
4
+
5
+ included do
6
+ class_attribute :polyid_uuid_attribute, instance_writer: false, default: nil
7
+
8
+ after_find :polyid_warm_cache
9
+ after_save :polyid_refresh_cache
10
+ after_destroy :polyid_evict_cache
11
+ end
12
+
13
+ class_methods do
14
+ def polyid(uuid_attribute: :uuid)
15
+ self.polyid_uuid_attribute = uuid_attribute.to_s
16
+ end
17
+
18
+ def find(*ids)
19
+ return super unless polyid?
20
+
21
+ if ids.length == 1 && ids.first.is_a?(Array)
22
+ # find([1, 2])
23
+ super(resolve_polyids(ids.first))
24
+ else
25
+ # find(1) or find(1, 2)
26
+ super(*resolve_polyids(ids))
27
+ end
28
+ end
29
+
30
+ def id_for(value)
31
+ ids_for([value]).first
32
+ end
33
+
34
+ def ids_for(values)
35
+ values = Array(values)
36
+ uuids = values.select { |value| PolyId.is_uuid?(value) }
37
+
38
+ resolved_uuids = PolyId::Cache.fetch_ids(name, uuids: uuids) do |missing_uuids|
39
+ where(polyid_uuid_attribute => missing_uuids).each_with_object({}) do |record, resolved|
40
+ resolved[record.public_send(polyid_uuid_attribute)] = record.public_send(primary_key)
41
+ end
42
+ end
43
+
44
+ values.map do |value|
45
+ if PolyId.is_uuid?(value)
46
+ resolved_uuids[value]
47
+ else
48
+ value
49
+ end
50
+ end
51
+ end
52
+
53
+ def uuid_for(value)
54
+ uuids_for([value]).first
55
+ end
56
+
57
+ def uuids_for(values)
58
+ values = Array(values)
59
+ ids = values.reject { |value| PolyId.is_uuid?(value) || value.blank? }
60
+
61
+ resolved_ids = PolyId::Cache.fetch_uuids(name, ids: ids) do |missing_ids|
62
+ where(primary_key => missing_ids).each_with_object({}) do |record, resolved|
63
+ resolved[record.public_send(primary_key)] = record.public_send(polyid_uuid_attribute)
64
+ end
65
+ end
66
+
67
+ values.map do |value|
68
+ if PolyId.is_uuid?(value)
69
+ value
70
+ else
71
+ resolved_ids[value]
72
+ end
73
+ end
74
+ end
75
+
76
+ def polyid?
77
+ polyid_uuid_attribute.present?
78
+ end
79
+
80
+ private
81
+
82
+ def resolve_polyids(values)
83
+ uuids = values.select { |value| PolyId.is_uuid?(value) }
84
+ cached_ids = PolyId::Cache.fetch_ids(name, uuids: uuids) do |missing_uuids|
85
+ where(polyid_uuid_attribute => missing_uuids).each_with_object({}) do |record, ids|
86
+ ids[record.public_send(polyid_uuid_attribute)] = record.public_send(primary_key)
87
+ end
88
+ end
89
+
90
+ values.map do |value|
91
+ PolyId.is_uuid?(value) ? cached_ids[value] : value
92
+ end
93
+ end
94
+ end
95
+
96
+ private
97
+
98
+ def polyid_warm_cache
99
+ return unless self.class.polyid?
100
+
101
+ cache_polyid
102
+ end
103
+
104
+ def polyid_refresh_cache
105
+ return unless self.class.polyid?
106
+
107
+ if previous_uuid = polyid_previous_uuid
108
+ PolyId::Cache.delete_multi(
109
+ self.class.name,
110
+ ids: [public_send(self.class.primary_key)],
111
+ uuids: [previous_uuid],
112
+ )
113
+ end
114
+
115
+ cache_polyid
116
+ end
117
+
118
+ def polyid_evict_cache
119
+ return unless self.class.polyid?
120
+
121
+ id = public_send(self.class.primary_key)
122
+ uuid = public_send(self.class.polyid_uuid_attribute)
123
+
124
+ PolyId::Cache.delete_multi(
125
+ self.class.name,
126
+ ids: id.present? ? [id] : [],
127
+ uuids: uuid.present? ? [uuid] : [],
128
+ )
129
+ end
130
+
131
+ def polyid_previous_uuid
132
+ return unless saved_change_to_attribute?(self.class.polyid_uuid_attribute)
133
+
134
+ attribute_before_last_save(self.class.polyid_uuid_attribute)
135
+ end
136
+
137
+ def cache_polyid
138
+ id = public_send(self.class.primary_key)
139
+ uuid = public_send(self.class.polyid_uuid_attribute)
140
+ return if id.blank? || uuid.blank?
141
+
142
+ PolyId::Cache.write(self.class.name, id: id, uuid: uuid)
143
+ end
144
+ end
145
+ end
@@ -0,0 +1,3 @@
1
+ module PolyId
2
+ VERSION = Gem.loaded_specs["polyid"].version.to_s
3
+ end
data/lib/polyid.rb ADDED
@@ -0,0 +1,29 @@
1
+ require "active_support"
2
+ require "active_support/cache"
3
+ require "active_support/concern"
4
+ require "active_support/core_ext/object/blank"
5
+ require "active_support/core_ext/class/attribute"
6
+ require "active_support/lazy_load_hooks"
7
+ require "polyid/cache"
8
+ require "polyid/model"
9
+ require "polyid/version"
10
+
11
+ module PolyId
12
+ UUID_PATTERN = /\A\h{8}-\h{4}-\h{4}-\h{4}-\h{12}\z/i
13
+
14
+ class << self
15
+ attr_writer :cache
16
+
17
+ def cache
18
+ @cache ||= ActiveSupport::Cache::MemoryStore.new
19
+ end
20
+
21
+ def is_uuid?(value)
22
+ value.is_a?(String) && UUID_PATTERN.match?(value)
23
+ end
24
+ end
25
+ end
26
+
27
+ ActiveSupport.on_load(:active_record) do
28
+ include PolyId::Model
29
+ end
data/polyid.gemspec ADDED
@@ -0,0 +1,21 @@
1
+ Gem::Specification.new do |s|
2
+ s.authors = ["Daniel Pepper"]
3
+ s.description = "..."
4
+ s.files = `git ls-files * ':!:spec'`.split("\n")
5
+ s.homepage = "https://github.com/dpep/polyid"
6
+ s.license = "MIT"
7
+ s.name = File.basename(__FILE__, ".gemspec")
8
+ s.summary = "PolyId"
9
+ s.version = "0.1.0"
10
+
11
+ s.required_ruby_version = ">= 3.3"
12
+
13
+ s.add_development_dependency 'activerecord', '>= 7'
14
+ s.add_development_dependency 'debug', '>= 1'
15
+ s.add_development_dependency 'factory_bot', '>= 6'
16
+ s.add_development_dependency 'faker', '>= 3'
17
+ s.add_development_dependency 'rspec', '>= 3.10'
18
+ s.add_development_dependency 'rspec-debugging'
19
+ s.add_development_dependency 'simplecov', '>= 0.22'
20
+ s.add_development_dependency 'sqlite3', '>= 1.4'
21
+ end
metadata ADDED
@@ -0,0 +1,160 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: polyid
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Daniel Pepper
8
+ bindir: bin
9
+ cert_chain: []
10
+ date: 1980-01-02 00:00:00.000000000 Z
11
+ dependencies:
12
+ - !ruby/object:Gem::Dependency
13
+ name: activerecord
14
+ requirement: !ruby/object:Gem::Requirement
15
+ requirements:
16
+ - - ">="
17
+ - !ruby/object:Gem::Version
18
+ version: '7'
19
+ type: :development
20
+ prerelease: false
21
+ version_requirements: !ruby/object:Gem::Requirement
22
+ requirements:
23
+ - - ">="
24
+ - !ruby/object:Gem::Version
25
+ version: '7'
26
+ - !ruby/object:Gem::Dependency
27
+ name: debug
28
+ requirement: !ruby/object:Gem::Requirement
29
+ requirements:
30
+ - - ">="
31
+ - !ruby/object:Gem::Version
32
+ version: '1'
33
+ type: :development
34
+ prerelease: false
35
+ version_requirements: !ruby/object:Gem::Requirement
36
+ requirements:
37
+ - - ">="
38
+ - !ruby/object:Gem::Version
39
+ version: '1'
40
+ - !ruby/object:Gem::Dependency
41
+ name: factory_bot
42
+ requirement: !ruby/object:Gem::Requirement
43
+ requirements:
44
+ - - ">="
45
+ - !ruby/object:Gem::Version
46
+ version: '6'
47
+ type: :development
48
+ prerelease: false
49
+ version_requirements: !ruby/object:Gem::Requirement
50
+ requirements:
51
+ - - ">="
52
+ - !ruby/object:Gem::Version
53
+ version: '6'
54
+ - !ruby/object:Gem::Dependency
55
+ name: faker
56
+ requirement: !ruby/object:Gem::Requirement
57
+ requirements:
58
+ - - ">="
59
+ - !ruby/object:Gem::Version
60
+ version: '3'
61
+ type: :development
62
+ prerelease: false
63
+ version_requirements: !ruby/object:Gem::Requirement
64
+ requirements:
65
+ - - ">="
66
+ - !ruby/object:Gem::Version
67
+ version: '3'
68
+ - !ruby/object:Gem::Dependency
69
+ name: rspec
70
+ requirement: !ruby/object:Gem::Requirement
71
+ requirements:
72
+ - - ">="
73
+ - !ruby/object:Gem::Version
74
+ version: '3.10'
75
+ type: :development
76
+ prerelease: false
77
+ version_requirements: !ruby/object:Gem::Requirement
78
+ requirements:
79
+ - - ">="
80
+ - !ruby/object:Gem::Version
81
+ version: '3.10'
82
+ - !ruby/object:Gem::Dependency
83
+ name: rspec-debugging
84
+ requirement: !ruby/object:Gem::Requirement
85
+ requirements:
86
+ - - ">="
87
+ - !ruby/object:Gem::Version
88
+ version: '0'
89
+ type: :development
90
+ prerelease: false
91
+ version_requirements: !ruby/object:Gem::Requirement
92
+ requirements:
93
+ - - ">="
94
+ - !ruby/object:Gem::Version
95
+ version: '0'
96
+ - !ruby/object:Gem::Dependency
97
+ name: simplecov
98
+ requirement: !ruby/object:Gem::Requirement
99
+ requirements:
100
+ - - ">="
101
+ - !ruby/object:Gem::Version
102
+ version: '0.22'
103
+ type: :development
104
+ prerelease: false
105
+ version_requirements: !ruby/object:Gem::Requirement
106
+ requirements:
107
+ - - ">="
108
+ - !ruby/object:Gem::Version
109
+ version: '0.22'
110
+ - !ruby/object:Gem::Dependency
111
+ name: sqlite3
112
+ requirement: !ruby/object:Gem::Requirement
113
+ requirements:
114
+ - - ">="
115
+ - !ruby/object:Gem::Version
116
+ version: '1.4'
117
+ type: :development
118
+ prerelease: false
119
+ version_requirements: !ruby/object:Gem::Requirement
120
+ requirements:
121
+ - - ">="
122
+ - !ruby/object:Gem::Version
123
+ version: '1.4'
124
+ description: "..."
125
+ executables: []
126
+ extensions: []
127
+ extra_rdoc_files: []
128
+ files:
129
+ - CHANGELOG.md
130
+ - Gemfile
131
+ - Gemfile.lock
132
+ - LICENSE.txt
133
+ - README.md
134
+ - lib/polyid.rb
135
+ - lib/polyid/cache.rb
136
+ - lib/polyid/model.rb
137
+ - lib/polyid/version.rb
138
+ - polyid.gemspec
139
+ homepage: https://github.com/dpep/polyid
140
+ licenses:
141
+ - MIT
142
+ metadata: {}
143
+ rdoc_options: []
144
+ require_paths:
145
+ - lib
146
+ required_ruby_version: !ruby/object:Gem::Requirement
147
+ requirements:
148
+ - - ">="
149
+ - !ruby/object:Gem::Version
150
+ version: '3.3'
151
+ required_rubygems_version: !ruby/object:Gem::Requirement
152
+ requirements:
153
+ - - ">="
154
+ - !ruby/object:Gem::Version
155
+ version: '0'
156
+ requirements: []
157
+ rubygems_version: 3.6.9
158
+ specification_version: 4
159
+ summary: PolyId
160
+ test_files: []