the_array_comparator 0.3.0 → 0.3.1
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/API-GUIDE.md +6 -2
- data/README.md +2 -1
- data/lib/the_array_comparator/version.rb +2 -2
- metadata +2 -2
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
|
-
--
|
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
|
-
--
|
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.
|
112
|
+
c = TheArrayComparator::Comparator.new
|
113
|
+
c.register :my_contains, SearchingStrategies::MyContains
|
113
114
|
```
|
114
115
|
|
115
116
|
## Further reading
|
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.
|
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-
|
12
|
+
date: 2013-02-22 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: active_support
|