hesabu 0.1.9 → 0.1.12

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: 4e7fe8152071912e2145f733b37974f5ad22cb4be7d6958ef8635eca2181c282
4
- data.tar.gz: 3bb4725f7619d334db83e1f352832052863ed36e2368e086446393cbbd2246d2
3
+ metadata.gz: e3368ca360eed19da2af37503ea887a6e125384962db3e8d37dd37263631decd
4
+ data.tar.gz: ac73ae4258c11e14be5c01b0a813952a8ef4c7a3e28e5590ef253ef5f4bc7707
5
5
  SHA512:
6
- metadata.gz: 377563838861ed86689ab2116b411e89d99cd0e7ced471d3bec25acb7280856a5ee1ed19ed1ea22834b4e30dbb4f755c5776bba1c71992481c0a6e0b2208aad6
7
- data.tar.gz: f35841ba0bed0e72fbc3937e84ede94b409e017f00a3c821194c3d757e5e4c06698e2a7e977832b16cb46a80151346d1262d2b7f649d03dc87f398aac6feb8dc
6
+ metadata.gz: 1f1b0a4e6b3847f632a6d7b0ea7c6c2cee5842810c11f2e32015c27eee784733c8506c9e8bf3605b30e878e82cbda8272b1220e7cdab453c0e2e6116d34ff4a6
7
+ data.tar.gz: 60fec9317399badcffd213f1a456f72d975db3e03015787f30d97d1a11a952a49db6f59e5762cc92382d6c0580fb721a945df12f31214a355c5226d51129db79
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- hesabu (0.1.8)
4
+ hesabu (0.1.9)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -75,6 +75,7 @@ GEM
75
75
  rainbow (>= 2.2.2, < 4.0)
76
76
  ruby-progressbar (~> 1.7)
77
77
  unicode-display_width (~> 1.0, >= 1.0.1)
78
+ ruby-prof (0.17.0)
78
79
  ruby-progressbar (1.9.0)
79
80
  ruby_parser (3.11.0)
80
81
  sexp_processor (~> 4.9)
@@ -106,6 +107,7 @@ DEPENDENCIES
106
107
  pronto-simplecov
107
108
  rake (~> 10.0)
108
109
  rspec (~> 3.0)
110
+ ruby-prof
109
111
  simplecov
110
112
 
111
113
  BUNDLED WITH
data/README.md CHANGED
@@ -47,6 +47,15 @@ bundle exec rspec --tag ~slow
47
47
  bundle exec rspec
48
48
  ```
49
49
 
50
+ ## profiling
51
+
52
+ ```
53
+ RUBY_PROF_MEASURE_MODE=wall PROF=true bundle exec rspec ./spec/lib/hesabu/integration_spec.rb
54
+ RUBY_PROF_MEASURE_MODE=allocations PROF=true bundle exec rspec ./spec/lib/hesabu/integration_spec.rb
55
+ ```
56
+ then look at the numbers
57
+ launch the complete test suite and verify timings before and after
58
+
50
59
  ## deployment to rubygems.org
51
60
 
52
61
  one time setup
data/hesabu.gemspec CHANGED
@@ -33,4 +33,5 @@ Gem::Specification.new do |spec|
33
33
  spec.add_development_dependency "pronto-rubocop"
34
34
  spec.add_development_dependency "pronto-simplecov"
35
35
  spec.add_development_dependency "simplecov"
36
+ spec.add_development_dependency "ruby-prof"
36
37
  end
@@ -2,6 +2,7 @@
2
2
  module Hesabu
3
3
  class EquationCleaner
4
4
  def self.clean(eq)
5
+ return eq if !eq.include?("AND") && !eq.include?("=")
5
6
  clean_eq = eq.gsub(" AND ", " && ")
6
7
  clean_eq.split(/(<=|>=|!=|==|=|\*|\s)/m)
7
8
  .map { |a| a == "=" ? "==" : a }
@@ -1,3 +1,3 @@
1
1
  module Hesabu
2
- VERSION = "0.1.9".freeze
2
+ VERSION = "0.1.12".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.9
4
+ version: 0.1.12
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 00:00:00.000000000 Z
11
+ date: 2018-07-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -136,6 +136,20 @@ dependencies:
136
136
  - - ">="
137
137
  - !ruby/object:Gem::Version
138
138
  version: '0'
139
+ - !ruby/object:Gem::Dependency
140
+ name: ruby-prof
141
+ requirement: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - ">="
144
+ - !ruby/object:Gem::Version
145
+ version: '0'
146
+ type: :development
147
+ prerelease: false
148
+ version_requirements: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - ">="
151
+ - !ruby/object:Gem::Version
152
+ version: '0'
139
153
  description: arithmetic equation solver.
140
154
  email:
141
155
  - smestach@bluesquarehub.com