math_wild 0.0.2 → 0.0.3
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/math_wild.rb +5 -1
- metadata +7 -7
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: afcf16b495e1da3433f73079ad64a359da59be8af3a401c0ae2d898b7c2b5517
|
|
4
|
+
data.tar.gz: 743d4028db7ee59f265ecf574fdb011b15b9987345633319b193fb4cff3b60a7
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 07c0f46a29cb7dc115332ef7c9c0f1a8b4afed68a276cfcefe23154f39b377323a7e65431298be71b5d82c24061839fe3dec2f00922d20ecddd0a6b53e8ac9df
|
|
7
|
+
data.tar.gz: 457134b47a7899220da42294737ef85d391e5660814077703ce6cf87c482b74d463c42cd34e94a04d4d834aa87460fa6f216163260eb4b3bae5cf6524487ccb8
|
data/lib/math_wild.rb
CHANGED
|
@@ -139,7 +139,11 @@ class MathWild
|
|
|
139
139
|
end
|
|
140
140
|
|
|
141
141
|
def force_sub(*args)
|
|
142
|
-
|
|
142
|
+
if args.first.is_a?(Array)
|
|
143
|
+
result = sub_arr(args.first)
|
|
144
|
+
else
|
|
145
|
+
result = to_num(args.first)
|
|
146
|
+
end
|
|
143
147
|
args[1..].each do |element|
|
|
144
148
|
if element.is_a?(Array)
|
|
145
149
|
element = sum_arr(element)
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: math_wild
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Wilder 'W1ldr' Ribeiro
|
|
8
|
-
autorequire:
|
|
8
|
+
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2023-03-
|
|
11
|
+
date: 2023-03-15 00:00:00.000000000 Z
|
|
12
12
|
dependencies: []
|
|
13
13
|
description: A study collection of function to help simple math
|
|
14
14
|
email: dewillribeiro@gmail.com
|
|
@@ -17,11 +17,11 @@ extensions: []
|
|
|
17
17
|
extra_rdoc_files: []
|
|
18
18
|
files:
|
|
19
19
|
- lib/math_wild.rb
|
|
20
|
-
homepage: https://rubygems.org/gems
|
|
20
|
+
homepage: https://rubygems.org/gems/math_wild
|
|
21
21
|
licenses:
|
|
22
22
|
- MIT
|
|
23
23
|
metadata: {}
|
|
24
|
-
post_install_message:
|
|
24
|
+
post_install_message:
|
|
25
25
|
rdoc_options: []
|
|
26
26
|
require_paths:
|
|
27
27
|
- lib
|
|
@@ -36,8 +36,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
36
36
|
- !ruby/object:Gem::Version
|
|
37
37
|
version: '0'
|
|
38
38
|
requirements: []
|
|
39
|
-
rubygems_version: 3.3.
|
|
40
|
-
signing_key:
|
|
39
|
+
rubygems_version: 3.3.26
|
|
40
|
+
signing_key:
|
|
41
41
|
specification_version: 4
|
|
42
42
|
summary: Math collection
|
|
43
43
|
test_files: []
|