lib/versionaire/version.rb in versionaire-12.1.1 vs lib/versionaire/version.rb in versionaire-13.0.0
- old
+ new
@@ -1,15 +1,16 @@
# frozen_string_literal: true
-require "refinements/structs"
+require "refinements/array"
+require "refinements/struct"
module Versionaire
# An immutable, semantic version value object.
Version = Struct.new :major, :minor, :patch, keyword_init: true do
include Comparable
- using Refinements::Arrays
- using Refinements::Structs
+ using Refinements::Array
+ using Refinements::Struct
def initialize major: 0, minor: 0, patch: 0
super
validate
freeze