symbolic 0.1.3 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/Rakefile +1 -1
  2. data/lib/symbolic/core.rb +3 -3
  3. metadata +2 -2
data/Rakefile CHANGED
@@ -5,7 +5,7 @@ begin
5
5
  require 'jeweler'
6
6
  Jeweler::Tasks.new do |gem|
7
7
  gem.name = "symbolic"
8
- gem.version = '0.1.3'
8
+ gem.version = '0.1.4'
9
9
  gem.summary = 'Symbolic math for ruby'
10
10
  gem.description = %Q{Symbolic math can be really helpful if you want to simplify some giant equation or if you don't want to get a performance hit re-evaluating big math expressions every time when few variables change.}
11
11
  gem.email = "ravwar@gmail.com"
data/lib/symbolic/core.rb CHANGED
@@ -21,9 +21,9 @@ module Symbolic
21
21
 
22
22
  private
23
23
 
24
- def numerical_eval(*args)
24
+ def numerical_eval(*args, &proc)
25
25
  [Fixnum, Bignum, Float].each do |klass|
26
- klass.class_eval *args
26
+ klass.class_eval *args, &proc
27
27
  end
28
28
  end
29
29
 
@@ -68,7 +68,7 @@ module Symbolic
68
68
  end
69
69
 
70
70
  def restore_numerical_methods
71
- numerical_context do
71
+ numerical_eval do
72
72
  Symbolic.operations.each do |operation_sign, operation_name|
73
73
  alias_method operation_sign, "non_symbolic_#{operation_name}"
74
74
  remove_method "non_symbolic_#{operation_name}"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: symbolic
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - brainopia
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-11-28 00:00:00 +03:00
12
+ date: 2009-12-01 00:00:00 +03:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency