hesabu 0.1.12 → 0.1.13
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +2 -2
- data/lib/hesabu/equation_cleaner.rb +2 -1
- 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: 43989f35e5c55382b8985d4bfeff88611eee628e4b24c5c69eea352b7629bdf2
|
4
|
+
data.tar.gz: 81d5ec393af329699291858a0f076bb39e8e70a9d0066d994bc8b4ef2c53bb08
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 31c6b5bfcea143935d986e39a37867f4e880b745be84a7aeaf63b60300d2df1f5cbd1cfd67b62d51880e2fa2c0e3ad49bd4b80487911c480577508e75bdd21cb
|
7
|
+
data.tar.gz: 475030ad36e33ea939cfade9d9080a1bd40a538aeea3558090aa64441a262b3abffe18a86c7f31ca1a23af7135c58737ed1445bdbc7878980c29a27a8eed8835
|
data/Gemfile.lock
CHANGED
@@ -2,8 +2,9 @@
|
|
2
2
|
module Hesabu
|
3
3
|
class EquationCleaner
|
4
4
|
def self.clean(eq)
|
5
|
-
return eq if !eq.include?("AND") && !eq.include?("=")
|
5
|
+
return eq if !eq.include?("AND") && !eq.include?("=") && !eq.include?("OR")
|
6
6
|
clean_eq = eq.gsub(" AND ", " && ")
|
7
|
+
clean_eq = clean_eq.gsub(" OR ", " || ")
|
7
8
|
clean_eq.split(/(<=|>=|!=|==|=|\*|\s)/m)
|
8
9
|
.map { |a| a == "=" ? "==" : a }
|
9
10
|
.join("")
|
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.13
|
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-
|
11
|
+
date: 2018-09-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|