heuristics 0.0.2 → 0.0.3

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.
Files changed (3) hide show
  1. data/README.md +3 -3
  2. data/lib/heuristics/version.rb +1 -1
  3. metadata +1 -1
data/README.md CHANGED
@@ -8,8 +8,8 @@ A typical simple example can look like this:
8
8
  assume_default :integer
9
9
 
10
10
  assume(:string) { condition { value.instance_of? String } }
11
- assume(:hash) { condition { value.instance_of? Hash } }
12
- assume(:date) { conditino { Chronic.parse(value) != nil } }
11
+ assume(:hash) { condition { value.instance_of? Hash } }
12
+ assume(:date) { condition { Chronic.parse(value) != nil } }
13
13
  end
14
14
 
15
15
  Then you can use it like this
@@ -58,7 +58,7 @@ Or install it yourself as:
58
58
  }
59
59
 
60
60
  # An assumption that will return :date if all conditions return true
61
- assume(:date) { conditino { Chronic.parse(value) != nil } }
61
+ assume(:date) { condition { Chronic.parse(value) != nil } }
62
62
  end
63
63
 
64
64
 
@@ -1,3 +1,3 @@
1
1
  module Heuristics
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: heuristics
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.0.2
5
+ version: 0.0.3
6
6
  platform: ruby
7
7
  authors:
8
8
  - Peter Haza