the_array_comparator 0.3.0 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
data/API-GUIDE.md CHANGED
@@ -7,12 +7,16 @@ Comparator # Main class dispatching the work
7
7
  |
8
8
  -- Check, Result, Sample # Helper classes for easier testing
9
9
  |
10
- -- Strategies
10
+ -- SearchingStrategies
11
11
  | |
12
12
  | -- ContainsAll # Strategies doing the hard work:
13
13
  | | # compare data with keywords and
14
14
  | -- ... # return the result
15
15
  |
16
- -- Cache # Cache checks for easier retrieval
16
+ -- CachingStrategies
17
+ | |
18
+ | -- SingleValueCaching # Strategies doing the hard work:
19
+ | | # caching the objects
20
+ | -- ...
17
21
 
18
22
  ```
data/README.md CHANGED
@@ -109,7 +109,8 @@ puts result #should be false
109
109
  If you wish to write your own comparators you can do so. Just register those classes with a keyword.
110
110
 
111
111
  ```ruby
112
- TheArrayComparator::Comparator.register :my_contains, Strategies::MyContains
112
+ c = TheArrayComparator::Comparator.new
113
+ c.register :my_contains, SearchingStrategies::MyContains
113
114
  ```
114
115
 
115
116
  ## Further reading
@@ -1,4 +1,4 @@
1
1
  #main TheArrayComparator
2
2
  module TheArrayComparator
3
- VERSION = '0.3.0'
4
- end
3
+ VERSION = '0.3.1'
4
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: the_array_comparator
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-02-21 00:00:00.000000000 Z
12
+ date: 2013-02-22 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: active_support