the_array_comparator 0.1.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.
Files changed (54) hide show
  1. data/.gitignore +16 -0
  2. data/.rspec +2 -0
  3. data/.ruby-version +1 -0
  4. data/.travis.yml +6 -0
  5. data/CONTRIBUTIONS.md +7 -0
  6. data/Gemfile +30 -0
  7. data/Gemfile.lock +122 -0
  8. data/LICENSE.md +20 -0
  9. data/README.md +121 -0
  10. data/RELEASE_NOTES.md +0 -0
  11. data/Rakefile +93 -0
  12. data/TODO.md +1 -0
  13. data/gemfiles/Gemfile.default +30 -0
  14. data/gemfiles/Gemfile.travis +15 -0
  15. data/lib/the_array_comparator/check.rb +27 -0
  16. data/lib/the_array_comparator/comparator.rb +123 -0
  17. data/lib/the_array_comparator/exceptions.rb +21 -0
  18. data/lib/the_array_comparator/result.rb +21 -0
  19. data/lib/the_array_comparator/sample.rb +28 -0
  20. data/lib/the_array_comparator/strategies/base.rb +41 -0
  21. data/lib/the_array_comparator/strategies/contains_all.rb +35 -0
  22. data/lib/the_array_comparator/strategies/contains_all_with_substring_search.rb +39 -0
  23. data/lib/the_array_comparator/strategies/contains_any.rb +34 -0
  24. data/lib/the_array_comparator/strategies/contains_any_with_substring_search.rb +33 -0
  25. data/lib/the_array_comparator/strategies/contains_not.rb +32 -0
  26. data/lib/the_array_comparator/strategies/contains_not_with_substring_search.rb +33 -0
  27. data/lib/the_array_comparator/strategies/is_equal.rb +30 -0
  28. data/lib/the_array_comparator/strategies/is_not_equal.rb +30 -0
  29. data/lib/the_array_comparator/testing_helper/data_set.rb +63 -0
  30. data/lib/the_array_comparator/testing_helper/test_data.rb +33 -0
  31. data/lib/the_array_comparator/testing_helper.rb +55 -0
  32. data/lib/the_array_comparator/version.rb +6 -0
  33. data/lib/the_array_comparator.rb +34 -0
  34. data/script/console +8 -0
  35. data/script/terminal +12 -0
  36. data/spec/benchmark/benchmark_spec.rb +28 -0
  37. data/spec/check_spec.rb +30 -0
  38. data/spec/comparator/base_spec.rb +16 -0
  39. data/spec/comparator/comparator_spec.rb +198 -0
  40. data/spec/comparator/contains_all_spec.rb +52 -0
  41. data/spec/comparator/contains_all_with_substring_search_spec.rb +41 -0
  42. data/spec/comparator/contains_any_spec.rb +45 -0
  43. data/spec/comparator/contains_any_with_substring_search_spec.rb +35 -0
  44. data/spec/comparator/contains_not_spec.rb +45 -0
  45. data/spec/comparator/contains_not_with_substring_search_spec.rb +28 -0
  46. data/spec/comparator/is_equal_spec.rb +51 -0
  47. data/spec/comparator/is_not_equal_spec.rb +39 -0
  48. data/spec/result_spec.rb +31 -0
  49. data/spec/sample_spec.rb +24 -0
  50. data/spec/spec_helper.rb +38 -0
  51. data/spec/strategies_helper.rb +11 -0
  52. data/spec/testing_helper/testing_helper_spec.rb +27 -0
  53. data/the_array_comparator.gemspec +21 -0
  54. metadata +132 -0
@@ -0,0 +1,21 @@
1
+ # -*- encoding: utf-8 -*-
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'the_array_comparator/version'
5
+
6
+ Gem::Specification.new do |gem|
7
+ gem.name = "the_array_comparator"
8
+ gem.version = TheArrayComparator::VERSION
9
+ gem.authors = ["Max Meyer"]
10
+ gem.email = ["dev@fedux.org"]
11
+ gem.description = %q{you need to compare arrays? then this gem is very suitable for you.}
12
+ gem.summary = %q{you need to compare arrays? then this gem is very suitable for you.}
13
+ gem.homepage = "https://www.github.com/max_meyer/the_array_comparator"
14
+
15
+ gem.files = `git ls-files`.split($/)
16
+ gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
17
+ gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
18
+ gem.require_paths = ["lib"]
19
+
20
+ gem.add_runtime_dependency 'active_support'
21
+ end
metadata ADDED
@@ -0,0 +1,132 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: the_array_comparator
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.1
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Max Meyer
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2013-02-10 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: active_support
16
+ requirement: !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: '0'
22
+ type: :runtime
23
+ prerelease: false
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ! '>='
28
+ - !ruby/object:Gem::Version
29
+ version: '0'
30
+ description: you need to compare arrays? then this gem is very suitable for you.
31
+ email:
32
+ - dev@fedux.org
33
+ executables: []
34
+ extensions: []
35
+ extra_rdoc_files: []
36
+ files:
37
+ - .gitignore
38
+ - .rspec
39
+ - .ruby-version
40
+ - .travis.yml
41
+ - CONTRIBUTIONS.md
42
+ - Gemfile
43
+ - Gemfile.lock
44
+ - LICENSE.md
45
+ - README.md
46
+ - RELEASE_NOTES.md
47
+ - Rakefile
48
+ - TODO.md
49
+ - gemfiles/Gemfile.default
50
+ - gemfiles/Gemfile.travis
51
+ - lib/the_array_comparator.rb
52
+ - lib/the_array_comparator/check.rb
53
+ - lib/the_array_comparator/comparator.rb
54
+ - lib/the_array_comparator/exceptions.rb
55
+ - lib/the_array_comparator/result.rb
56
+ - lib/the_array_comparator/sample.rb
57
+ - lib/the_array_comparator/strategies/base.rb
58
+ - lib/the_array_comparator/strategies/contains_all.rb
59
+ - lib/the_array_comparator/strategies/contains_all_with_substring_search.rb
60
+ - lib/the_array_comparator/strategies/contains_any.rb
61
+ - lib/the_array_comparator/strategies/contains_any_with_substring_search.rb
62
+ - lib/the_array_comparator/strategies/contains_not.rb
63
+ - lib/the_array_comparator/strategies/contains_not_with_substring_search.rb
64
+ - lib/the_array_comparator/strategies/is_equal.rb
65
+ - lib/the_array_comparator/strategies/is_not_equal.rb
66
+ - lib/the_array_comparator/testing_helper.rb
67
+ - lib/the_array_comparator/testing_helper/data_set.rb
68
+ - lib/the_array_comparator/testing_helper/test_data.rb
69
+ - lib/the_array_comparator/version.rb
70
+ - script/console
71
+ - script/terminal
72
+ - spec/benchmark/benchmark_spec.rb
73
+ - spec/check_spec.rb
74
+ - spec/comparator/base_spec.rb
75
+ - spec/comparator/comparator_spec.rb
76
+ - spec/comparator/contains_all_spec.rb
77
+ - spec/comparator/contains_all_with_substring_search_spec.rb
78
+ - spec/comparator/contains_any_spec.rb
79
+ - spec/comparator/contains_any_with_substring_search_spec.rb
80
+ - spec/comparator/contains_not_spec.rb
81
+ - spec/comparator/contains_not_with_substring_search_spec.rb
82
+ - spec/comparator/is_equal_spec.rb
83
+ - spec/comparator/is_not_equal_spec.rb
84
+ - spec/result_spec.rb
85
+ - spec/sample_spec.rb
86
+ - spec/spec_helper.rb
87
+ - spec/strategies_helper.rb
88
+ - spec/testing_helper/testing_helper_spec.rb
89
+ - the_array_comparator.gemspec
90
+ homepage: https://www.github.com/max_meyer/the_array_comparator
91
+ licenses: []
92
+ post_install_message:
93
+ rdoc_options: []
94
+ require_paths:
95
+ - lib
96
+ required_ruby_version: !ruby/object:Gem::Requirement
97
+ none: false
98
+ requirements:
99
+ - - ! '>='
100
+ - !ruby/object:Gem::Version
101
+ version: '0'
102
+ required_rubygems_version: !ruby/object:Gem::Requirement
103
+ none: false
104
+ requirements:
105
+ - - ! '>='
106
+ - !ruby/object:Gem::Version
107
+ version: '0'
108
+ requirements: []
109
+ rubyforge_project:
110
+ rubygems_version: 1.8.23
111
+ signing_key:
112
+ specification_version: 3
113
+ summary: you need to compare arrays? then this gem is very suitable for you.
114
+ test_files:
115
+ - spec/benchmark/benchmark_spec.rb
116
+ - spec/check_spec.rb
117
+ - spec/comparator/base_spec.rb
118
+ - spec/comparator/comparator_spec.rb
119
+ - spec/comparator/contains_all_spec.rb
120
+ - spec/comparator/contains_all_with_substring_search_spec.rb
121
+ - spec/comparator/contains_any_spec.rb
122
+ - spec/comparator/contains_any_with_substring_search_spec.rb
123
+ - spec/comparator/contains_not_spec.rb
124
+ - spec/comparator/contains_not_with_substring_search_spec.rb
125
+ - spec/comparator/is_equal_spec.rb
126
+ - spec/comparator/is_not_equal_spec.rb
127
+ - spec/result_spec.rb
128
+ - spec/sample_spec.rb
129
+ - spec/spec_helper.rb
130
+ - spec/strategies_helper.rb
131
+ - spec/testing_helper/testing_helper_spec.rb
132
+ has_rdoc: