venny 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
data/.document ADDED
@@ -0,0 +1,5 @@
1
+ lib/**/*.rb
2
+ bin/*
3
+ -
4
+ features/**/*.feature
5
+ LICENSE.txt
data/.rspec ADDED
@@ -0,0 +1 @@
1
+ --color
data/Gemfile ADDED
@@ -0,0 +1,13 @@
1
+ source "http://rubygems.org"
2
+ # Add dependencies required to use your gem here.
3
+ # Example:
4
+ # gem "activesupport", ">= 2.3.5"
5
+
6
+ # Add dependencies to develop your gem here.
7
+ # Include everything needed to run rake, tests, features, etc.
8
+ group :development do
9
+ gem "rspec", "~> 2.3.0"
10
+ gem "bundler", "~> 1.0.0"
11
+ gem "jeweler", "~> 1.5.2"
12
+ gem "rcov", ">= 0"
13
+ end
data/Gemfile.lock ADDED
@@ -0,0 +1,28 @@
1
+ GEM
2
+ remote: http://rubygems.org/
3
+ specs:
4
+ diff-lcs (1.1.2)
5
+ git (1.2.5)
6
+ jeweler (1.5.2)
7
+ bundler (~> 1.0.0)
8
+ git (>= 1.2.5)
9
+ rake
10
+ rake (0.8.7)
11
+ rcov (0.9.9)
12
+ rspec (2.3.0)
13
+ rspec-core (~> 2.3.0)
14
+ rspec-expectations (~> 2.3.0)
15
+ rspec-mocks (~> 2.3.0)
16
+ rspec-core (2.3.1)
17
+ rspec-expectations (2.3.0)
18
+ diff-lcs (~> 1.1.2)
19
+ rspec-mocks (2.3.0)
20
+
21
+ PLATFORMS
22
+ ruby
23
+
24
+ DEPENDENCIES
25
+ bundler (~> 1.0.0)
26
+ jeweler (~> 1.5.2)
27
+ rcov
28
+ rspec (~> 2.3.0)
data/LICENSE.txt ADDED
@@ -0,0 +1,20 @@
1
+ Copyright (c) 2011 Jeremy Holland
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining
4
+ a copy of this software and associated documentation files (the
5
+ "Software"), to deal in the Software without restriction, including
6
+ without limitation the rights to use, copy, modify, merge, publish,
7
+ distribute, sublicense, and/or sell copies of the Software, and to
8
+ permit persons to whom the Software is furnished to do so, subject to
9
+ the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be
12
+ included in all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.rdoc ADDED
@@ -0,0 +1,31 @@
1
+ = venny
2
+
3
+ Extends the standard library Set object, adding methods for cartesian products, power sets, and complements. Each method is listed below.
4
+
5
+ == Set#complement(<other enumerable>)
6
+ This is essentially the reverse of the native Set#difference method - i.e. it returns the complement of the messaged set with respect to the passed set, as oppsed to Set#difference, which returns the complement of the passed set with respect to the messaged set.
7
+
8
+ == Set#power_set() (no arguments)
9
+ This gives you the power set of the set at hand. As you might expect, these can get pretty big
10
+
11
+ == Set#cartesian_product(<other enumerable 1>[,<other enumerable 1>,etc.])
12
+ This returns the cartesian product of the messaged set instance and the passed enumerable(s).
13
+
14
+ == Set#*(<other enumerable>)
15
+ This returns the cartesian product of the messaged set instance and the passed enumerable. Same as above, but only takes one argument (being a fauxperator)
16
+
17
+ == Contributing to venny
18
+
19
+ * Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet
20
+ * Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it
21
+ * Fork the project
22
+ * Start a feature/bugfix branch
23
+ * Commit and push until you are happy with your contribution
24
+ * Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.
25
+ * Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.
26
+
27
+ == Copyright
28
+
29
+ Copyright (c) 2011 Jeremy Holland. See LICENSE.txt for
30
+ further details.
31
+
data/Rakefile ADDED
@@ -0,0 +1,50 @@
1
+ require 'rubygems'
2
+ require 'bundler'
3
+ begin
4
+ Bundler.setup(:default, :development)
5
+ rescue Bundler::BundlerError => e
6
+ $stderr.puts e.message
7
+ $stderr.puts "Run `bundle install` to install missing gems"
8
+ exit e.status_code
9
+ end
10
+ require 'rake'
11
+
12
+ require 'jeweler'
13
+ Jeweler::Tasks.new do |gem|
14
+ # gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
15
+ gem.name = "venny"
16
+ gem.homepage = "http://github.com/awebneck/venny"
17
+ gem.license = "MIT"
18
+ gem.summary = %Q{Extends the stdlib Set object adding several common set operations}
19
+ gem.description = %Q{Extends the standard library Set object, adding methods for cartesian products, power sets, and complements}
20
+ gem.email = "jeremy@jeremypholland.com"
21
+ gem.authors = ["Jeremy Holland"]
22
+ # Include your dependencies below. Runtime dependencies are required when using your gem,
23
+ # and development dependencies are only needed for development (ie running rake tasks, tests, etc)
24
+ # gem.add_runtime_dependency 'jabber4r', '> 0.1'
25
+ # gem.add_development_dependency 'rspec', '> 1.2.3'
26
+ end
27
+ Jeweler::RubygemsDotOrgTasks.new
28
+
29
+ require 'rspec/core'
30
+ require 'rspec/core/rake_task'
31
+ RSpec::Core::RakeTask.new(:spec) do |spec|
32
+ spec.pattern = FileList['spec/**/*_spec.rb']
33
+ end
34
+
35
+ RSpec::Core::RakeTask.new(:rcov) do |spec|
36
+ spec.pattern = 'spec/**/*_spec.rb'
37
+ spec.rcov = true
38
+ end
39
+
40
+ task :default => :spec
41
+
42
+ require 'rake/rdoctask'
43
+ Rake::RDocTask.new do |rdoc|
44
+ version = File.exist?('VERSION') ? File.read('VERSION') : ""
45
+
46
+ rdoc.rdoc_dir = 'rdoc'
47
+ rdoc.title = "venny #{version}"
48
+ rdoc.rdoc_files.include('README*')
49
+ rdoc.rdoc_files.include('lib/**/*.rb')
50
+ end
data/VERSION ADDED
@@ -0,0 +1 @@
1
+ 1.0.0
data/lib/venny.rb ADDED
@@ -0,0 +1,8 @@
1
+ require 'set'
2
+
3
+ VENNY_PATH = File.dirname(__FILE__) + '/venny/'
4
+ [
5
+ 'std_lib_ext'
6
+ ].each do |library|
7
+ require VENNY_PATH + library
8
+ end
@@ -0,0 +1 @@
1
+ require File.dirname(__FILE__) + '/std_lib_ext/set'
@@ -0,0 +1,39 @@
1
+ class Set
2
+ def complement(enum)
3
+ raise ArgumentError, 'value must be Enumberable' unless enum.is_a? Enumerable
4
+ set = enum.is_a?(Set) ? enum : Set.new(enum)
5
+ set - self
6
+ end
7
+
8
+ def power_set
9
+ pset = Set.new
10
+ array = self.to_a
11
+ pset.add Set.new
12
+ array.each_index do |i|
13
+ pset.merge(array.combination(i+1).map { |element| Set.new(element) })
14
+ end
15
+ pset
16
+ end
17
+
18
+ def cartesian_product(*enums)
19
+ raise ArgumentError, 'must supply at least one Enumerable argument' if enums.empty?
20
+ enums << self
21
+ recursive_cartesian_product(*enums)
22
+ end
23
+
24
+ def *(enum); cartesian_product(enum); end
25
+
26
+ protected
27
+ def recursive_cartesian_product(*enums)
28
+ return Set.new([Set.new]) if enums.empty?
29
+ raise ArgumentError, 'all arguments must be enumerable' unless enums.inject(true) { |acc, element| element.is_a? Enumerable }
30
+ enums = enums.map { |element| element.to_a }.sort { |a, b| b.length <=> a.length }
31
+ combos = Set.new
32
+ enums.shift.each do |element|
33
+ recursive_cartesian_product(*enums).each do |product|
34
+ combos.add(product.add(element))
35
+ end
36
+ end
37
+ combos
38
+ end
39
+ end
@@ -0,0 +1,37 @@
1
+ require 'rubygems'
2
+ require 'spork'
3
+
4
+ Spork.prefork do
5
+ # Loading more in this block will cause your tests to run faster. However,
6
+ # if you change any configuration or code from libraries loaded here, you'll
7
+ # need to restart spork for it take effect.
8
+
9
+ $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
10
+ $LOAD_PATH.unshift(File.dirname(__FILE__))
11
+ require 'rspec'
12
+ require 'venny'
13
+
14
+ # Requires supporting files with custom matchers and macros, etc,
15
+ # in ./support/ and its subdirectories.
16
+ Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each {|f| require f}
17
+
18
+ RSpec.configure do |config|
19
+
20
+ end
21
+ end
22
+
23
+ Spork.each_run do
24
+ # This code will be run each time you run your specs.
25
+
26
+ end
27
+
28
+ # --- Instructions ---
29
+ # - Sort through your spec_helper file. Place as much environment loading
30
+ # code that you don't normally modify during development in the
31
+ # Spork.prefork block.
32
+ # - Place the rest under Spork.each_run block
33
+ # - Any code that is left outside of the blocks will be ran during preforking
34
+ # and during each_run!
35
+ # - These instructions should self-destruct in 10 seconds. If they don't,
36
+ # feel free to delete them.
37
+ #
@@ -0,0 +1,221 @@
1
+ require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
2
+
3
+ describe Set do
4
+
5
+ let(:set) { Set.new([1,2,3,4]) }
6
+
7
+ describe '#complement' do
8
+ it 'should have a #complement method' do
9
+ set.should respond_to(:complement)
10
+ end
11
+
12
+ it 'should not throw an error with a single set as an argument' do
13
+ -> { set.complement(Set.new([3,4,5,6]))}.should_not raise_error
14
+ end
15
+
16
+ it 'should not throw an error with a single array as an argument' do
17
+ -> { set.complement([3,4,5,6])}.should_not raise_error
18
+ end
19
+
20
+ it 'should not throw an error with a single hash as an argument' do
21
+ -> { set.complement({a: 6, b: 7})}.should_not raise_error
22
+ end
23
+
24
+ it 'should throw an error with a single non-enumerable as an argument' do
25
+ -> { set.complement(5)}.should raise_error
26
+ end
27
+
28
+ it 'should throw an error with no argument' do
29
+ -> { set.complement()}.should raise_error
30
+ end
31
+
32
+ it 'should throw an error with more than one argument' do
33
+ -> { set.complement([5,6,7,8],[9,10,11,12])}.should raise_error
34
+ end
35
+
36
+ it 'should return the set from argument enum if sets are disjoint' do
37
+ set.complement([5,6,7,8]).should == Set.new([5,6,7,8])
38
+ end
39
+
40
+ it 'should return an empty set if sets are identical' do
41
+ set.complement([1,2,3,4]).should == Set.new
42
+ end
43
+
44
+ it 'should return complement of argument set with respect to messaged set if sets intersect' do
45
+ set.complement([3,4,5,6]).should == Set.new([5,6])
46
+ end
47
+
48
+ end
49
+
50
+ describe '#power_set' do
51
+
52
+ it 'should have a #power_set method' do
53
+ set.should respond_to(:power_set)
54
+ end
55
+
56
+ it 'should not raise an error with 0 arguments' do
57
+ -> { set.power_set }.should_not raise_error
58
+ end
59
+
60
+ it 'should raise an error with more than 0 arugments' do
61
+ -> { set.power_set(1) }.should raise_error
62
+ end
63
+
64
+ it 'should return a set containing an empty set if it is already an empty set' do
65
+ empty_set = Set.new
66
+ empty_set.power_set.should == Set.new([Set.new])
67
+ end
68
+
69
+ it 'should return the correct power set if it has a single element' do
70
+ small_set = Set.new([1])
71
+ small_set.power_set.should == Set.new([Set.new,Set.new([1])])
72
+ end
73
+
74
+ it 'should return the correct power set if it has multiple elements' do
75
+ set.power_set.should == Set.new([
76
+ Set.new,
77
+ Set.new([1]),
78
+ Set.new([2]),
79
+ Set.new([3]),
80
+ Set.new([4]),
81
+ Set.new([1,2]),
82
+ Set.new([1,3]),
83
+ Set.new([1,4]),
84
+ Set.new([2,3]),
85
+ Set.new([2,4]),
86
+ Set.new([3,4]),
87
+ Set.new([1,2,3]),
88
+ Set.new([1,2,4]),
89
+ Set.new([1,3,4]),
90
+ Set.new([2,3,4]),
91
+ Set.new([1,2,3,4]),
92
+ ])
93
+ end
94
+
95
+ end
96
+
97
+ describe '#cartesian_product' do
98
+ it 'should have a #cartesian_product method' do
99
+ set.should respond_to(:cartesian_product)
100
+ end
101
+
102
+ it 'should throw an error with a non-Enumerable argument' do
103
+ -> { set.cartesian_product(1) }.should raise_error
104
+ end
105
+
106
+ it 'should throw an error if no argument(s) are supplied' do
107
+ -> { set.cartesian_product }.should raise_error
108
+ end
109
+
110
+ it 'should not throw an error with at least one Enumerable argument' do
111
+ -> { set.cartesian_product([:a,:b,:c,:d]) }.should_not raise_error
112
+ end
113
+
114
+ it 'should not throw an error with any number of Enumerable arguments' do
115
+ -> { set.cartesian_product([:x,:y],[5,6,7,8],[:a,:b,:c,:d]) }.should_not raise_error
116
+ end
117
+
118
+ it 'should return an empty set if either itself, the argument(s), or both are empty' do
119
+ empty_set = Set.new
120
+ empty_set.cartesian_product(Set.new).should == Set.new
121
+ empty_set.cartesian_product(Set.new([:a,:b,:c,:d])).should == Set.new
122
+ set.cartesian_product(Set.new).should == Set.new
123
+ end
124
+
125
+ it 'should return the correct cartesian product if both it and its argument are not empty' do
126
+ set.cartesian_product(Set.new([:a,:b,:c,:d])).should == Set.new([
127
+ Set.new([1,:a]),
128
+ Set.new([1,:b]),
129
+ Set.new([1,:c]),
130
+ Set.new([1,:d]),
131
+ Set.new([2,:a]),
132
+ Set.new([2,:b]),
133
+ Set.new([2,:c]),
134
+ Set.new([2,:d]),
135
+ Set.new([3,:a]),
136
+ Set.new([3,:b]),
137
+ Set.new([3,:c]),
138
+ Set.new([3,:d]),
139
+ Set.new([4,:a]),
140
+ Set.new([4,:b]),
141
+ Set.new([4,:c]),
142
+ Set.new([4,:d])
143
+ ])
144
+ end
145
+
146
+ it 'should return the correct cartesian product if both it and its arguments are not empty' do
147
+ set.cartesian_product([:a,:b,:c,:d],[:x,:y]).should == Set.new([
148
+ Set.new([1,:a,:x]),
149
+ Set.new([1,:a,:y]),
150
+ Set.new([1,:b,:x]),
151
+ Set.new([1,:b,:y]),
152
+ Set.new([1,:c,:x]),
153
+ Set.new([1,:c,:y]),
154
+ Set.new([1,:d,:x]),
155
+ Set.new([1,:d,:y]),
156
+ Set.new([2,:a,:x]),
157
+ Set.new([2,:a,:y]),
158
+ Set.new([2,:b,:x]),
159
+ Set.new([2,:b,:y]),
160
+ Set.new([2,:c,:x]),
161
+ Set.new([2,:c,:y]),
162
+ Set.new([2,:d,:x]),
163
+ Set.new([2,:d,:y]),
164
+ Set.new([3,:a,:x]),
165
+ Set.new([3,:a,:y]),
166
+ Set.new([3,:b,:x]),
167
+ Set.new([3,:b,:y]),
168
+ Set.new([3,:c,:x]),
169
+ Set.new([3,:c,:y]),
170
+ Set.new([3,:d,:x]),
171
+ Set.new([3,:d,:y]),
172
+ Set.new([4,:a,:x]),
173
+ Set.new([4,:a,:y]),
174
+ Set.new([4,:b,:x]),
175
+ Set.new([4,:b,:y]),
176
+ Set.new([4,:c,:x]),
177
+ Set.new([4,:c,:y]),
178
+ Set.new([4,:d,:x]),
179
+ Set.new([4,:d,:y])
180
+ ])
181
+ end
182
+ end
183
+
184
+ describe '#*' do
185
+ it 'should have a #* method' do
186
+ set.should respond_to(:*)
187
+ end
188
+
189
+ it 'should throw an error with a non-Enumerable argument' do
190
+ -> { set * 1 }.should raise_error
191
+ end
192
+
193
+ it 'should return an empty set if either itself, the argument(s), or both are empty' do
194
+ empty_set = Set.new
195
+ (empty_set * Set.new).should == Set.new
196
+ (empty_set * Set.new([:a,:b,:c,:d])).should == Set.new
197
+ (set * Set.new).should == Set.new
198
+ end
199
+
200
+ it 'should return the correct cartesian product if both it and its argument are not empty' do
201
+ (set * Set.new([:a,:b,:c,:d])).should == Set.new([
202
+ Set.new([1,:a]),
203
+ Set.new([1,:b]),
204
+ Set.new([1,:c]),
205
+ Set.new([1,:d]),
206
+ Set.new([2,:a]),
207
+ Set.new([2,:b]),
208
+ Set.new([2,:c]),
209
+ Set.new([2,:d]),
210
+ Set.new([3,:a]),
211
+ Set.new([3,:b]),
212
+ Set.new([3,:c]),
213
+ Set.new([3,:d]),
214
+ Set.new([4,:a]),
215
+ Set.new([4,:b]),
216
+ Set.new([4,:c]),
217
+ Set.new([4,:d])
218
+ ])
219
+ end
220
+ end
221
+ end
data/venny.gemspec ADDED
@@ -0,0 +1,67 @@
1
+ # Generated by jeweler
2
+ # DO NOT EDIT THIS FILE DIRECTLY
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
+ # -*- encoding: utf-8 -*-
5
+
6
+ Gem::Specification.new do |s|
7
+ s.name = %q{venny}
8
+ s.version = "1.0.0"
9
+
10
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
+ s.authors = ["Jeremy Holland"]
12
+ s.date = %q{2011-04-28}
13
+ s.description = %q{Extends the standard library Set object, adding methods for cartesian products, power sets, and complements}
14
+ s.email = %q{jeremy@jeremypholland.com}
15
+ s.extra_rdoc_files = [
16
+ "LICENSE.txt",
17
+ "README.rdoc"
18
+ ]
19
+ s.files = [
20
+ ".document",
21
+ ".rspec",
22
+ "Gemfile",
23
+ "Gemfile.lock",
24
+ "LICENSE.txt",
25
+ "README.rdoc",
26
+ "Rakefile",
27
+ "VERSION",
28
+ "lib/venny.rb",
29
+ "lib/venny/std_lib_ext.rb",
30
+ "lib/venny/std_lib_ext/set.rb",
31
+ "spec/spec_helper.rb",
32
+ "spec/venny_spec.rb",
33
+ "venny.gemspec"
34
+ ]
35
+ s.homepage = %q{http://github.com/awebneck/venny}
36
+ s.licenses = ["MIT"]
37
+ s.require_paths = ["lib"]
38
+ s.rubygems_version = %q{1.3.7}
39
+ s.summary = %q{Extends the stdlib Set object adding several common set operations}
40
+ s.test_files = [
41
+ "spec/spec_helper.rb",
42
+ "spec/venny_spec.rb"
43
+ ]
44
+
45
+ if s.respond_to? :specification_version then
46
+ current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
47
+ s.specification_version = 3
48
+
49
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
50
+ s.add_development_dependency(%q<rspec>, ["~> 2.3.0"])
51
+ s.add_development_dependency(%q<bundler>, ["~> 1.0.0"])
52
+ s.add_development_dependency(%q<jeweler>, ["~> 1.5.2"])
53
+ s.add_development_dependency(%q<rcov>, [">= 0"])
54
+ else
55
+ s.add_dependency(%q<rspec>, ["~> 2.3.0"])
56
+ s.add_dependency(%q<bundler>, ["~> 1.0.0"])
57
+ s.add_dependency(%q<jeweler>, ["~> 1.5.2"])
58
+ s.add_dependency(%q<rcov>, [">= 0"])
59
+ end
60
+ else
61
+ s.add_dependency(%q<rspec>, ["~> 2.3.0"])
62
+ s.add_dependency(%q<bundler>, ["~> 1.0.0"])
63
+ s.add_dependency(%q<jeweler>, ["~> 1.5.2"])
64
+ s.add_dependency(%q<rcov>, [">= 0"])
65
+ end
66
+ end
67
+
metadata ADDED
@@ -0,0 +1,137 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: venny
3
+ version: !ruby/object:Gem::Version
4
+ prerelease: false
5
+ segments:
6
+ - 1
7
+ - 0
8
+ - 0
9
+ version: 1.0.0
10
+ platform: ruby
11
+ authors:
12
+ - Jeremy Holland
13
+ autorequire:
14
+ bindir: bin
15
+ cert_chain: []
16
+
17
+ date: 2011-04-28 00:00:00 -05:00
18
+ default_executable:
19
+ dependencies:
20
+ - !ruby/object:Gem::Dependency
21
+ name: rspec
22
+ requirement: &id001 !ruby/object:Gem::Requirement
23
+ none: false
24
+ requirements:
25
+ - - ~>
26
+ - !ruby/object:Gem::Version
27
+ segments:
28
+ - 2
29
+ - 3
30
+ - 0
31
+ version: 2.3.0
32
+ type: :development
33
+ prerelease: false
34
+ version_requirements: *id001
35
+ - !ruby/object:Gem::Dependency
36
+ name: bundler
37
+ requirement: &id002 !ruby/object:Gem::Requirement
38
+ none: false
39
+ requirements:
40
+ - - ~>
41
+ - !ruby/object:Gem::Version
42
+ segments:
43
+ - 1
44
+ - 0
45
+ - 0
46
+ version: 1.0.0
47
+ type: :development
48
+ prerelease: false
49
+ version_requirements: *id002
50
+ - !ruby/object:Gem::Dependency
51
+ name: jeweler
52
+ requirement: &id003 !ruby/object:Gem::Requirement
53
+ none: false
54
+ requirements:
55
+ - - ~>
56
+ - !ruby/object:Gem::Version
57
+ segments:
58
+ - 1
59
+ - 5
60
+ - 2
61
+ version: 1.5.2
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: *id003
65
+ - !ruby/object:Gem::Dependency
66
+ name: rcov
67
+ requirement: &id004 !ruby/object:Gem::Requirement
68
+ none: false
69
+ requirements:
70
+ - - ">="
71
+ - !ruby/object:Gem::Version
72
+ segments:
73
+ - 0
74
+ version: "0"
75
+ type: :development
76
+ prerelease: false
77
+ version_requirements: *id004
78
+ description: Extends the standard library Set object, adding methods for cartesian products, power sets, and complements
79
+ email: jeremy@jeremypholland.com
80
+ executables: []
81
+
82
+ extensions: []
83
+
84
+ extra_rdoc_files:
85
+ - LICENSE.txt
86
+ - README.rdoc
87
+ files:
88
+ - .document
89
+ - .rspec
90
+ - Gemfile
91
+ - Gemfile.lock
92
+ - LICENSE.txt
93
+ - README.rdoc
94
+ - Rakefile
95
+ - VERSION
96
+ - lib/venny.rb
97
+ - lib/venny/std_lib_ext.rb
98
+ - lib/venny/std_lib_ext/set.rb
99
+ - spec/spec_helper.rb
100
+ - spec/venny_spec.rb
101
+ - venny.gemspec
102
+ has_rdoc: true
103
+ homepage: http://github.com/awebneck/venny
104
+ licenses:
105
+ - MIT
106
+ post_install_message:
107
+ rdoc_options: []
108
+
109
+ require_paths:
110
+ - lib
111
+ required_ruby_version: !ruby/object:Gem::Requirement
112
+ none: false
113
+ requirements:
114
+ - - ">="
115
+ - !ruby/object:Gem::Version
116
+ hash: -3201819793253962275
117
+ segments:
118
+ - 0
119
+ version: "0"
120
+ required_rubygems_version: !ruby/object:Gem::Requirement
121
+ none: false
122
+ requirements:
123
+ - - ">="
124
+ - !ruby/object:Gem::Version
125
+ segments:
126
+ - 0
127
+ version: "0"
128
+ requirements: []
129
+
130
+ rubyforge_project:
131
+ rubygems_version: 1.3.7
132
+ signing_key:
133
+ specification_version: 3
134
+ summary: Extends the stdlib Set object adding several common set operations
135
+ test_files:
136
+ - spec/spec_helper.rb
137
+ - spec/venny_spec.rb