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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e3368ca360eed19da2af37503ea887a6e125384962db3e8d37dd37263631decd
4
- data.tar.gz: ac73ae4258c11e14be5c01b0a813952a8ef4c7a3e28e5590ef253ef5f4bc7707
3
+ metadata.gz: 43989f35e5c55382b8985d4bfeff88611eee628e4b24c5c69eea352b7629bdf2
4
+ data.tar.gz: 81d5ec393af329699291858a0f076bb39e8e70a9d0066d994bc8b4ef2c53bb08
5
5
  SHA512:
6
- metadata.gz: 1f1b0a4e6b3847f632a6d7b0ea7c6c2cee5842810c11f2e32015c27eee784733c8506c9e8bf3605b30e878e82cbda8272b1220e7cdab453c0e2e6116d34ff4a6
7
- data.tar.gz: 60fec9317399badcffd213f1a456f72d975db3e03015787f30d97d1a11a952a49db6f59e5762cc92382d6c0580fb721a945df12f31214a355c5226d51129db79
6
+ metadata.gz: 31c6b5bfcea143935d986e39a37867f4e880b745be84a7aeaf63b60300d2df1f5cbd1cfd67b62d51880e2fa2c0e3ad49bd4b80487911c480577508e75bdd21cb
7
+ data.tar.gz: 475030ad36e33ea939cfade9d9080a1bd40a538aeea3558090aa64441a262b3abffe18a86c7f31ca1a23af7135c58737ed1445bdbc7878980c29a27a8eed8835
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- hesabu (0.1.9)
4
+ hesabu (0.1.12)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -111,4 +111,4 @@ DEPENDENCIES
111
111
  simplecov
112
112
 
113
113
  BUNDLED WITH
114
- 1.16.1
114
+ 1.16.4
@@ -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("")
@@ -1,3 +1,3 @@
1
1
  module Hesabu
2
- VERSION = "0.1.12".freeze
2
+ VERSION = "0.1.13".freeze
3
3
  end
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.12
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-07-17 00:00:00.000000000 Z
11
+ date: 2018-09-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler