sy 2.0.14.p1 → 2.0.14
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 +4 -4
- data/lib/sy/quantity.rb +1 -2
- data/lib/sy/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e4e14ca002d2da647ce121e2f79b01fdced43697
|
|
4
|
+
data.tar.gz: ac575e703f152e1b8f049ee30b8462a1f25a1baa
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 96bc04ec2f55697c3906aa75e9aef8f6eeb968c08f963ad3b0935c1a72c137abea7b919b50cd57a48736d5d9e5d63a4b22c284350948469b9a796be51907ec43
|
|
7
|
+
data.tar.gz: 6e74e90b0b4b1fddcc8e35f7c86939bda2a0759ecab362a994056a76e5a4ef35d0d376c8872c7ee0474e0be3166a78800d96e99c07f639be4fb6d9623a9196e5
|
data/lib/sy/quantity.rb
CHANGED
|
@@ -411,14 +411,13 @@ class SY::Quantity
|
|
|
411
411
|
mixin = relative? ? SY::SignedMagnitude : SY::AbsoluteMagnitude
|
|
412
412
|
qnt_ɴ_λ = -> { name ? "#{name}@%s" : "#<Quantity:#{object_id}@%s>" }
|
|
413
413
|
|
|
414
|
-
qnt = self
|
|
415
414
|
@Magnitude = Class.new do
|
|
416
415
|
include mmod
|
|
417
416
|
include mixin
|
|
418
417
|
|
|
419
418
|
singleton_class.class_exec do
|
|
420
419
|
define_method :zero do # Costructor of zero magnitudes
|
|
421
|
-
new amount: 0
|
|
420
|
+
new amount: 0
|
|
422
421
|
end
|
|
423
422
|
|
|
424
423
|
define_method :to_s do # Customized #to_s. It must be a proc,
|
data/lib/sy/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: sy
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.0.14
|
|
4
|
+
version: 2.0.14
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- boris
|
|
@@ -68,9 +68,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
68
68
|
version: '0'
|
|
69
69
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
70
70
|
requirements:
|
|
71
|
-
- - '
|
|
71
|
+
- - '>='
|
|
72
72
|
- !ruby/object:Gem::Version
|
|
73
|
-
version:
|
|
73
|
+
version: '0'
|
|
74
74
|
requirements: []
|
|
75
75
|
rubyforge_project:
|
|
76
76
|
rubygems_version: 2.0.3
|