maths 0.0.13 → 0.0.14

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.
data/.gitignore CHANGED
@@ -15,3 +15,4 @@ spec/reports
15
15
  test/tmp
16
16
  test/version_tmp
17
17
  tmp
18
+ bin/
@@ -48,10 +48,10 @@ module_eval(<<'...end calc.y/module_eval...', 'calc.y', 41)
48
48
  @q.push [:VARIABLE, $&]
49
49
 
50
50
  # numbers
51
- when /\A\d+(\.\d+)?([Ee]\d+)?/
51
+ when /\A(\d+)?\.(\d+)?([Ee]\d+)?/
52
+ @q.push [:NUMBER, BigDecimal.new($&)]
53
+ when /\A\d+([Ee]\d+)?/
52
54
  @q.push [:NUMBER, BigDecimal.new($&)]
53
- # when /\A\d+/
54
- # @q.push [:NUMBER, BigDecimal.new($&)]
55
55
  when /\A.|\n/o
56
56
  s = $&
57
57
  @q.push [s, s]
@@ -75,10 +75,10 @@ module Maths
75
75
  @q.push [:VARIABLE, $&]
76
76
 
77
77
  # numbers
78
- when /\A\d+(\.\d+)?([Ee]\d+)?/
78
+ when /\A(\d+)?\.(\d+)?([Ee]\d+)?/
79
+ @q.push [:NUMBER, BigDecimal.new($&)]
80
+ when /\A\d+([Ee]\d+)?/
79
81
  @q.push [:NUMBER, BigDecimal.new($&)]
80
- # when /\A\d+/
81
- # @q.push [:NUMBER, BigDecimal.new($&)]
82
82
  when /\A.|\n/o
83
83
  s = $&
84
84
  @q.push [s, s]
@@ -1,3 +1,3 @@
1
1
  module Maths
2
- VERSION = "0.0.13"
2
+ VERSION = "0.0.14"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: maths
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.13
4
+ version: 0.0.14
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: