rupica 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/rupica.rb +8 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ddfb8aa7d79f733dedc3d0c345800d0792a87e8cbd208d766c15f664209df003
|
|
4
|
+
data.tar.gz: f1b55fab20e52f3f6c863d4ecf4bf5584363d50531a1d7bb32837cac05a42f03
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d9d48588a49a45e9e031aac7d42d85bcaec98917771fcc30251aae56a917d691a771869beb1c10752bc2a8540720fd170bd9427abcd641c65ce4dea595063dec
|
|
7
|
+
data.tar.gz: e16dbe3566e2544dfcb5e73b522cc8bccf3164c9f8b13708bc6ac2ba8a223a5dbafc81849bb9db9c6479e9d455567f24bd2d9d77012ccc5251664a1b9c13b9f8
|
data/lib/rupica.rb
CHANGED
|
@@ -8,6 +8,13 @@
|
|
|
8
8
|
# TODO: formattazione stringhe
|
|
9
9
|
# TODO: formattazione currency con il simbolo $ o €, alla fine
|
|
10
10
|
# TODO: unità di misura,
|
|
11
|
+
# * per partire, le udm si potrebbero scrivere come 123_kg
|
|
12
|
+
# ed essere solo strippata via in fase di esecuzione
|
|
13
|
+
# * ha più senso attivare lo strip delle NOTA in NUM_NOTA
|
|
14
|
+
# solo quando si è nel modo equiation "=", ovvero quando
|
|
15
|
+
# si vuole vedere in output il processo di calcolo e il risultato.
|
|
16
|
+
# . in una seconda fase, il numero può essere convertito in una Misura
|
|
17
|
+
# una misura è composta da una grandezza e una unità di misura.
|
|
11
18
|
# . si potrebbero togliere : se siamo dentro una stringa
|
|
12
19
|
# Si potrebbero inserire come unicode middle dot U+00B7
|
|
13
20
|
# 10·kg e poi definendo "·" come metodo ... però poi necessita una spazio
|
|
@@ -76,7 +83,7 @@ end
|
|
|
76
83
|
|
|
77
84
|
# . the ::String is used instead of String because in iRuby
|
|
78
85
|
# we are by defalt in Module Object.
|
|
79
|
-
puts "ATTENTION: Adding instance method 'f' to builtin class String !"
|
|
86
|
+
# puts "ATTENTION: Adding instance method 'f' to builtin class String !"
|
|
80
87
|
class ::String
|
|
81
88
|
def f()
|
|
82
89
|
Rupica::Format.format(self)
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: rupica
|
|
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
|
- Dr. Nicola Mingotti
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2024-02-
|
|
11
|
+
date: 2024-02-22 00:00:00.000000000 Z
|
|
12
12
|
dependencies: []
|
|
13
13
|
description:
|
|
14
14
|
email: nmingotti@gmail.com
|
|
@@ -36,7 +36,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
36
36
|
- !ruby/object:Gem::Version
|
|
37
37
|
version: '0'
|
|
38
38
|
requirements: []
|
|
39
|
-
rubygems_version: 3.
|
|
39
|
+
rubygems_version: 3.4.19
|
|
40
40
|
signing_key:
|
|
41
41
|
specification_version: 4
|
|
42
42
|
summary: Tools to make Ruby better for calculations.
|