File tree Expand file tree Collapse file tree 3 files changed +2
-9
lines changed
Expand file tree Collapse file tree 3 files changed +2
-9
lines changed Original file line number Diff line number Diff line change @@ -34,7 +34,6 @@ Gem::Specification.new do |spec|
3434 spec . add_runtime_dependency "zeitwerk" , "~> 2.6"
3535 spec . add_runtime_dependency "dry-core" , "~> 1.1"
3636 spec . add_runtime_dependency "dry-types" , "~> 1.8" , ">= 1.8.2"
37- spec . add_runtime_dependency "ice_nine" , "~> 0.11"
3837 spec . add_development_dependency "bundler"
3938 spec . add_development_dependency "rake"
4039 spec . add_development_dependency "rspec"
Original file line number Diff line number Diff line change 11# frozen_string_literal: true
22
3- require "ice_nine"
4-
53module Dry
64 class Struct
75 extend Core ::Deprecations [ :"dry-struct" ]
86
97 # {Value} objects behave like {Struct}s but *deeply frozen*
10- # using [`ice_nine`](https://github.com/dkubb/ice_nine)
8+ # using `Ractor.make_shareable`
119 #
1210 # @example
1311 # class Location < Dry::Struct::Value
@@ -21,15 +19,12 @@ class Struct
2119 # loc1.frozen? #=> true
2220 # loc2.frozen? #=> true
2321 # loc1 == loc2 #=> true
24- #
25- # @see https://github.com/dkubb/ice_nine
2622 class Value < self
2723 abstract
2824
2925 # @param (see ClassInterface#new)
3026 # @return [Value]
31- # @see https://github.com/dkubb/ice_nine
32- def self . new ( *) = ::IceNine . deep_freeze ( super )
27+ def self . new ( *) = ::Ractor . make_shareable ( super )
3328 end
3429
3530 deprecate_constant :Value
Original file line number Diff line number Diff line change @@ -17,4 +17,3 @@ gemspec:
1717 - [zeitwerk, "~> 2.6"]
1818 - [dry-core, "~> 1.1"]
1919 - [dry-types, "~> 1.8", ">= 1.8.2"]
20- - [ice_nine, "~> 0.11"]
You can’t perform that action at this time.
0 commit comments