plurimath 0.9.0 → 0.9.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 54bd34437d295276f1d97598c8f61725e92d5c23a2a8bfc8351f0552c0235043
4
- data.tar.gz: 54fd5e1e5bf685a91e1811ab794ab17b0a6be1ad468147f6b524bef37be972d3
3
+ metadata.gz: 23b873e930a70f896da2c23d680e12b80ab437aa7be601c0b9264809ad58b453
4
+ data.tar.gz: c17f49fef5b92abc2ffa5f95cfcf252507dce743870421924e1c5fe3b4ca0c2a
5
5
  SHA512:
6
- metadata.gz: 137b2eee3b725d8d2b76ae1e30c5a4e65e346e446b90e5745a327deffe1a00254f47150049fcb1cc35b54e326064debc1ad9a74cdf67566fe221bc0a67714dc5
7
- data.tar.gz: 653339b6aa420cd9e6e578805073bf504a0684f3154c5107c46f7481027e92a7bcb990825252f602292beb3a4bea5bfac5891b21be4751a445e1fdcc82153f47
6
+ metadata.gz: 9ea21eb16322ef07c1afccf3d3d59636762071984022f95cff1c617322631c3c827c7810211a223cd1eaa43d4a375bdf1773e58d1112793d9633d5fbd09e40f0
7
+ data.tar.gz: e23655e5cec80451a867d4c30ad5001e363b62da5159f04f836a0b1b55d3483c106ae6b5bb4ece4f5ea249956942e70fbf431682edbeaed0afcff4a71fb50f37
@@ -213,7 +213,7 @@ module Plurimath
213
213
  end
214
214
 
215
215
  def cloned_objects
216
- object = self.class.new rescue self.class.new(nil)
216
+ object = self.class.new(nil)
217
217
  variables.each { |var| object.set(var, variable_value(get(var))) }
218
218
  object
219
219
  end
@@ -13,6 +13,10 @@ module Plurimath
13
13
  @unitsml = ::Unitsml.parse(text)
14
14
  end
15
15
 
16
+ def cloned_objects
17
+ self.class.new(text)
18
+ end
19
+
16
20
  def ==(other)
17
21
  other.is_a?(Unitsml) &&
18
22
  other.text == @text
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Plurimath
4
- VERSION = "0.9.0"
4
+ VERSION = "0.9.1"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: plurimath
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.0
4
+ version: 0.9.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2025-03-13 00:00:00.000000000 Z
11
+ date: 2025-03-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ox