hesabu 0.1.8 → 0.1.9
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/Gemfile.lock +1 -1
- data/README.md +9 -5
- data/bin/hesabucli +0 -0
- data/lib/hesabu/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 4e7fe8152071912e2145f733b37974f5ad22cb4be7d6958ef8635eca2181c282
|
|
4
|
+
data.tar.gz: 3bb4725f7619d334db83e1f352832052863ed36e2368e086446393cbbd2246d2
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 377563838861ed86689ab2116b411e89d99cd0e7ced471d3bec25acb7280856a5ee1ed19ed1ea22834b4e30dbb4f755c5776bba1c71992481c0a6e0b2208aad6
|
|
7
|
+
data.tar.gz: f35841ba0bed0e72fbc3937e84ede94b409e017f00a3c821194c3d757e5e4c06698e2a7e977832b16cb46a80151346d1262d2b7f649d03dc87f398aac6feb8dc
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
|
@@ -5,7 +5,10 @@
|
|
|
5
5
|
|
|
6
6
|
# Hesabu
|
|
7
7
|
|
|
8
|
-
Hesabu :
|
|
8
|
+
Hesabu : equations solver relies on https://github.com/BLSQ/go-hesabu to solve equations
|
|
9
|
+
|
|
10
|
+
Hesabu is swahili word for arithmetic.
|
|
11
|
+
|
|
9
12
|
|
|
10
13
|
## sample usage
|
|
11
14
|
```ruby
|
|
@@ -21,17 +24,18 @@ Hesabu : equation solver based on parslet.
|
|
|
21
24
|
|
|
22
25
|
The solver will deduce the correct order and find the values of a,b and c.
|
|
23
26
|
|
|
24
|
-
The expressions can be more complex (excel like), see the supported functions [here](https://github.com/BLSQ/hesabu/blob/master/lib/hesabu/
|
|
27
|
+
The expressions can be more complex (excel like), see the supported functions [here](https://github.com/BLSQ/hesabu/blob/master/spec/lib/hesabu/various_expressions_spec.rb#L12)
|
|
25
28
|
|
|
26
|
-
|
|
29
|
+
When parsing or solving, things can go wrong, here are various [cases](https://github.com/BLSQ/hesabu/blob/master/spec/lib/hesabu/errors_spec.rb)
|
|
27
30
|
|
|
28
|
-
|
|
31
|
+
Currently the solver :
|
|
32
|
+
- is case sensitive.
|
|
33
|
+
- and fast (32000 equations in 3 seconds)
|
|
29
34
|
|
|
30
35
|
## Alternatives
|
|
31
36
|
|
|
32
37
|
* https://github.com/rubysolo/dentaku more complete, currently less performant.
|
|
33
38
|
|
|
34
|
-
|
|
35
39
|
# Development
|
|
36
40
|
|
|
37
41
|
## Running the tests
|
data/bin/hesabucli
CHANGED
|
Binary file
|
data/lib/hesabu/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: hesabu
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.9
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Stéphan Mestach
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2018-07-
|
|
11
|
+
date: 2018-07-11 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|