rubysl-set 0.0.1 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (113) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +0 -1
  3. data/.travis.yml +8 -0
  4. data/README.md +2 -2
  5. data/Rakefile +0 -1
  6. data/lib/rubysl/set.rb +2 -0
  7. data/lib/rubysl/set/set.rb +1237 -0
  8. data/lib/{rubysl-set → rubysl/set}/version.rb +1 -1
  9. data/lib/set.rb +1 -0
  10. data/rubysl-set.gemspec +19 -18
  11. data/spec/add_spec.rb +26 -0
  12. data/spec/append_spec.rb +6 -0
  13. data/spec/classify_spec.rb +34 -0
  14. data/spec/clear_spec.rb +16 -0
  15. data/spec/collect_spec.rb +6 -0
  16. data/spec/constructor_spec.rb +14 -0
  17. data/spec/delete_if_spec.rb +45 -0
  18. data/spec/delete_spec.rb +36 -0
  19. data/spec/difference_spec.rb +6 -0
  20. data/spec/divide_spec.rb +33 -0
  21. data/spec/each_spec.rb +33 -0
  22. data/spec/empty_spec.rb +9 -0
  23. data/spec/enumerable/to_set_spec.rb +18 -0
  24. data/spec/eql_spec.rb +16 -0
  25. data/spec/equal_value_spec.rb +37 -0
  26. data/spec/exclusion_spec.rb +17 -0
  27. data/spec/flatten_merge_spec.rb +22 -0
  28. data/spec/flatten_spec.rb +39 -0
  29. data/spec/hash_spec.rb +14 -0
  30. data/spec/include_spec.rb +6 -0
  31. data/spec/initialize_copy_spec.rb +17 -0
  32. data/spec/initialize_spec.rb +23 -0
  33. data/spec/inspect_spec.rb +17 -0
  34. data/spec/intersection_spec.rb +10 -0
  35. data/spec/keep_if_spec.rb +39 -0
  36. data/spec/length_spec.rb +6 -0
  37. data/spec/map_spec.rb +6 -0
  38. data/spec/member_spec.rb +6 -0
  39. data/spec/merge_spec.rb +18 -0
  40. data/spec/minus_spec.rb +6 -0
  41. data/spec/plus_spec.rb +6 -0
  42. data/spec/pretty_print_cycle_spec.rb +9 -0
  43. data/spec/pretty_print_spec.rb +16 -0
  44. data/spec/proper_subset_spec.rb +33 -0
  45. data/spec/proper_superset_spec.rb +33 -0
  46. data/spec/reject_spec.rb +49 -0
  47. data/spec/replace_spec.rb +16 -0
  48. data/spec/select_spec.rb +43 -0
  49. data/spec/shared/add.rb +14 -0
  50. data/spec/shared/collect.rb +20 -0
  51. data/spec/shared/difference.rb +15 -0
  52. data/spec/shared/include.rb +7 -0
  53. data/spec/shared/intersection.rb +15 -0
  54. data/spec/shared/length.rb +6 -0
  55. data/spec/shared/union.rb +15 -0
  56. data/spec/size_spec.rb +6 -0
  57. data/spec/sortedset/add_spec.rb +34 -0
  58. data/spec/sortedset/append_spec.rb +6 -0
  59. data/spec/sortedset/classify_spec.rb +34 -0
  60. data/spec/sortedset/clear_spec.rb +16 -0
  61. data/spec/sortedset/collect_spec.rb +6 -0
  62. data/spec/sortedset/constructor_spec.rb +14 -0
  63. data/spec/sortedset/delete_if_spec.rb +47 -0
  64. data/spec/sortedset/delete_spec.rb +36 -0
  65. data/spec/sortedset/difference_spec.rb +6 -0
  66. data/spec/sortedset/divide_spec.rb +33 -0
  67. data/spec/sortedset/each_spec.rb +35 -0
  68. data/spec/sortedset/empty_spec.rb +9 -0
  69. data/spec/sortedset/eql_spec.rb +17 -0
  70. data/spec/sortedset/equal_value_spec.rb +12 -0
  71. data/spec/sortedset/exclusion_spec.rb +17 -0
  72. data/spec/sortedset/flatten_merge_spec.rb +7 -0
  73. data/spec/sortedset/flatten_spec.rb +47 -0
  74. data/spec/sortedset/hash_spec.rb +14 -0
  75. data/spec/sortedset/include_spec.rb +6 -0
  76. data/spec/sortedset/initialize_copy_spec.rb +17 -0
  77. data/spec/sortedset/initialize_spec.rb +31 -0
  78. data/spec/sortedset/inspect_spec.rb +9 -0
  79. data/spec/sortedset/intersection_spec.rb +10 -0
  80. data/spec/sortedset/keep_if_spec.rb +32 -0
  81. data/spec/sortedset/length_spec.rb +6 -0
  82. data/spec/sortedset/map_spec.rb +6 -0
  83. data/spec/sortedset/member_spec.rb +6 -0
  84. data/spec/sortedset/merge_spec.rb +18 -0
  85. data/spec/sortedset/minus_spec.rb +6 -0
  86. data/spec/sortedset/plus_spec.rb +6 -0
  87. data/spec/sortedset/pretty_print_cycle_spec.rb +9 -0
  88. data/spec/sortedset/pretty_print_spec.rb +16 -0
  89. data/spec/sortedset/proper_subset_spec.rb +32 -0
  90. data/spec/sortedset/proper_superset_spec.rb +32 -0
  91. data/spec/sortedset/reject_spec.rb +51 -0
  92. data/spec/sortedset/replace_spec.rb +16 -0
  93. data/spec/sortedset/select_spec.rb +36 -0
  94. data/spec/sortedset/shared/add.rb +14 -0
  95. data/spec/sortedset/shared/collect.rb +20 -0
  96. data/spec/sortedset/shared/difference.rb +15 -0
  97. data/spec/sortedset/shared/include.rb +7 -0
  98. data/spec/sortedset/shared/intersection.rb +15 -0
  99. data/spec/sortedset/shared/length.rb +6 -0
  100. data/spec/sortedset/shared/union.rb +15 -0
  101. data/spec/sortedset/size_spec.rb +6 -0
  102. data/spec/sortedset/subset_spec.rb +32 -0
  103. data/spec/sortedset/subtract_spec.rb +16 -0
  104. data/spec/sortedset/superset_spec.rb +32 -0
  105. data/spec/sortedset/to_a_spec.rb +7 -0
  106. data/spec/sortedset/union_spec.rb +10 -0
  107. data/spec/subset_spec.rb +33 -0
  108. data/spec/subtract_spec.rb +16 -0
  109. data/spec/superset_spec.rb +33 -0
  110. data/spec/to_a_spec.rb +7 -0
  111. data/spec/union_spec.rb +10 -0
  112. metadata +282 -86
  113. data/lib/rubysl-set.rb +0 -7
@@ -0,0 +1,14 @@
1
+ describe :sorted_set_add, :shared => true do
2
+ before :each do
3
+ @set = SortedSet.new
4
+ end
5
+
6
+ it "adds the passed Object to self" do
7
+ @set.send(@method, "dog")
8
+ @set.should include("dog")
9
+ end
10
+
11
+ it "returns self" do
12
+ @set.send(@method, "dog").should equal(@set)
13
+ end
14
+ end
@@ -0,0 +1,20 @@
1
+ describe :sorted_set_collect_bang, :shared => true do
2
+ before(:each) do
3
+ @set = SortedSet[1, 2, 3, 4, 5]
4
+ end
5
+
6
+ it "yields each Object in self in sorted order" do
7
+ res = []
8
+ SortedSet["one", "two", "three"].send(@method) { |x| res << x; x }
9
+ res.should == ["one", "two", "three"].sort
10
+ end
11
+
12
+ it "returns self" do
13
+ @set.send(@method) { |x| x }.should equal(@set)
14
+ end
15
+
16
+ it "replaces self with the return values of the block" do
17
+ @set.send(@method) { |x| x * 2 }
18
+ @set.should == SortedSet[2, 4, 6, 8, 10]
19
+ end
20
+ end
@@ -0,0 +1,15 @@
1
+ describe :sorted_set_difference, :shared => true do
2
+ before :each do
3
+ @set = SortedSet["a", "b", "c"]
4
+ end
5
+
6
+ it "returns a new SortedSet containting self's elements excluding the elements in the passed Enumerable" do
7
+ @set.send(@method, SortedSet["a", "b"]).should == SortedSet["c"]
8
+ @set.send(@method, ["b", "c"]).should == SortedSet["a"]
9
+ end
10
+
11
+ it "raises an ArgumentError when passed a non-Enumerable" do
12
+ lambda { @set.send(@method, 1) }.should raise_error(ArgumentError)
13
+ lambda { @set.send(@method, Object.new) }.should raise_error(ArgumentError)
14
+ end
15
+ end
@@ -0,0 +1,7 @@
1
+ describe :sorted_set_include, :shared => true do
2
+ it "returns true when self contains the passed Object" do
3
+ set = SortedSet["a", "b", "c"]
4
+ set.send(@method, "a").should be_true
5
+ set.send(@method, "e").should be_false
6
+ end
7
+ end
@@ -0,0 +1,15 @@
1
+ describe :sorted_set_intersection, :shared => true do
2
+ before :each do
3
+ @set = SortedSet["a", "b", "c"]
4
+ end
5
+
6
+ it "returns a new SortedSet containing only elements shared by self and the passed Enumerable" do
7
+ @set.send(@method, SortedSet["b", "c", "d", "e"]).should == SortedSet["b", "c"]
8
+ @set.send(@method, ["b", "c", "d"]).should == SortedSet["b", "c"]
9
+ end
10
+
11
+ it "raises an ArgumentError when passed a non-Enumerable" do
12
+ lambda { @set.send(@method, 1) }.should raise_error(ArgumentError)
13
+ lambda { @set.send(@method, Object.new) }.should raise_error(ArgumentError)
14
+ end
15
+ end
@@ -0,0 +1,6 @@
1
+ describe :sorted_set_length, :shared => true do
2
+ it "returns the number of elements in the set" do
3
+ set = SortedSet["a", "b", "c"]
4
+ set.send(@method).should == 3
5
+ end
6
+ end
@@ -0,0 +1,15 @@
1
+ describe :sorted_set_union, :shared => true do
2
+ before :each do
3
+ @set = SortedSet["a", "b", "c"]
4
+ end
5
+
6
+ it "returns a new SortedSet containing all elements of self and the passed Enumerable" do
7
+ @set.send(@method, SortedSet["b", "d", "e"]).should == SortedSet["a", "b", "c", "d", "e"]
8
+ @set.send(@method, ["b", "e"]).should == SortedSet["a", "b", "c", "e"]
9
+ end
10
+
11
+ it "raises an ArgumentError when passed a non-Enumerable" do
12
+ lambda { @set.send(@method, 1) }.should raise_error(ArgumentError)
13
+ lambda { @set.send(@method, Object.new) }.should raise_error(ArgumentError)
14
+ end
15
+ end
@@ -0,0 +1,6 @@
1
+ require File.expand_path('../shared/length', __FILE__)
2
+ require 'set'
3
+
4
+ describe "SortedSet#size" do
5
+ it_behaves_like :sorted_set_length, :size
6
+ end
@@ -0,0 +1,32 @@
1
+ require 'set'
2
+
3
+ describe "SortedSet#subset?" do
4
+ before(:each) do
5
+ @set = SortedSet[1, 2, 3, 4]
6
+ end
7
+
8
+ it "returns true if passed a SortedSet that is equal to self or self is a subset of" do
9
+ @set.subset?(@set).should be_true
10
+ SortedSet[].subset?(SortedSet[]).should be_true
11
+
12
+ SortedSet[].subset?(@set).should be_true
13
+ SortedSet[].subset?(SortedSet[1, 2, 3]).should be_true
14
+ SortedSet[].subset?(SortedSet["a", "b", "c"]).should be_true
15
+
16
+ SortedSet[1, 2, 3].subset?(@set).should be_true
17
+ SortedSet[1, 3].subset?(@set).should be_true
18
+ SortedSet[1, 2].subset?(@set).should be_true
19
+ SortedSet[1].subset?(@set).should be_true
20
+
21
+ SortedSet[5].subset?(@set).should be_false
22
+ SortedSet[1, 5].subset?(@set).should be_false
23
+ SortedSet["test"].subset?(@set).should be_false
24
+ end
25
+
26
+ it "raises an ArgumentError when passed a non-SortedSet" do
27
+ lambda { SortedSet[].subset?([]) }.should raise_error(ArgumentError)
28
+ lambda { SortedSet[].subset?(1) }.should raise_error(ArgumentError)
29
+ lambda { SortedSet[].subset?("test") }.should raise_error(ArgumentError)
30
+ lambda { SortedSet[].subset?(Object.new) }.should raise_error(ArgumentError)
31
+ end
32
+ end
@@ -0,0 +1,16 @@
1
+ require 'set'
2
+
3
+ describe "SortedSet#subtract" do
4
+ before :each do
5
+ @set = SortedSet["a", "b", "c"]
6
+ end
7
+
8
+ it "deletes any elements contained in other and returns self" do
9
+ @set.subtract(SortedSet["b", "c"]).should == @set
10
+ @set.should == SortedSet["a"]
11
+ end
12
+
13
+ it "accepts any enumerable as other" do
14
+ @set.subtract(["c"]).should == SortedSet["a", "b"]
15
+ end
16
+ end
@@ -0,0 +1,32 @@
1
+ require 'set'
2
+
3
+ describe "SortedSet#superset?" do
4
+ before(:each) do
5
+ @set = SortedSet[1, 2, 3, 4]
6
+ end
7
+
8
+ it "returns true if passed a SortedSet that equals self or self is a proper superset of" do
9
+ @set.superset?(@set).should be_true
10
+ SortedSet[].superset?(SortedSet[]).should be_true
11
+
12
+ @set.superset?(SortedSet[]).should be_true
13
+ SortedSet[1, 2, 3].superset?(SortedSet[]).should be_true
14
+ SortedSet["a", "b", "c"].superset?(SortedSet[]).should be_true
15
+
16
+ @set.superset?(SortedSet[1, 2, 3]).should be_true
17
+ @set.superset?(SortedSet[1, 3]).should be_true
18
+ @set.superset?(SortedSet[1, 2]).should be_true
19
+ @set.superset?(SortedSet[1]).should be_true
20
+
21
+ @set.superset?(SortedSet[5]).should be_false
22
+ @set.superset?(SortedSet[1, 5]).should be_false
23
+ @set.superset?(SortedSet["test"]).should be_false
24
+ end
25
+
26
+ it "raises an ArgumentError when passed a non-SortedSet" do
27
+ lambda { SortedSet[].superset?([]) }.should raise_error(ArgumentError)
28
+ lambda { SortedSet[].superset?(1) }.should raise_error(ArgumentError)
29
+ lambda { SortedSet[].superset?("test") }.should raise_error(ArgumentError)
30
+ lambda { SortedSet[].superset?(Object.new) }.should raise_error(ArgumentError)
31
+ end
32
+ end
@@ -0,0 +1,7 @@
1
+ require 'set'
2
+
3
+ describe "SortedSet#to_a" do
4
+ it "returns an array containing elements of self" do
5
+ SortedSet[1, 2, 3].to_a.sort.should == [1, 2, 3]
6
+ end
7
+ end
@@ -0,0 +1,10 @@
1
+ require File.expand_path('../shared/union', __FILE__)
2
+ require 'set'
3
+
4
+ describe "SortedSet#union" do
5
+ it_behaves_like :sorted_set_union, :union
6
+ end
7
+
8
+ describe "SortedSet#|" do
9
+ it_behaves_like :sorted_set_union, :|
10
+ end
@@ -0,0 +1,33 @@
1
+ require 'set'
2
+
3
+ describe "Set#subset?" do
4
+ before(:each) do
5
+ @set = Set[1, 2, 3, 4]
6
+ end
7
+
8
+ it "returns true if passed a Set that is equal to self or self is a subset of" do
9
+ @set.subset?(@set).should be_true
10
+ Set[].subset?(Set[]).should be_true
11
+
12
+ Set[].subset?(@set).should be_true
13
+ Set[].subset?(Set[1, 2, 3]).should be_true
14
+ Set[].subset?(Set["a", :b, ?c]).should be_true
15
+
16
+ Set[1, 2, 3].subset?(@set).should be_true
17
+ Set[1, 3].subset?(@set).should be_true
18
+ Set[1, 2].subset?(@set).should be_true
19
+ Set[1].subset?(@set).should be_true
20
+
21
+ Set[5].subset?(@set).should be_false
22
+ Set[1, 5].subset?(@set).should be_false
23
+ Set[nil].subset?(@set).should be_false
24
+ Set["test"].subset?(@set).should be_false
25
+ end
26
+
27
+ it "raises an ArgumentError when passed a non-Set" do
28
+ lambda { Set[].subset?([]) }.should raise_error(ArgumentError)
29
+ lambda { Set[].subset?(1) }.should raise_error(ArgumentError)
30
+ lambda { Set[].subset?("test") }.should raise_error(ArgumentError)
31
+ lambda { Set[].subset?(Object.new) }.should raise_error(ArgumentError)
32
+ end
33
+ end
@@ -0,0 +1,16 @@
1
+ require 'set'
2
+
3
+ describe "Set#subtract" do
4
+ before :each do
5
+ @set = Set[:a, :b, :c]
6
+ end
7
+
8
+ it "deletes any elements contained in other and returns self" do
9
+ @set.subtract(Set[:b, :c]).should == @set
10
+ @set.should == Set[:a]
11
+ end
12
+
13
+ it "accepts any enumerable as other" do
14
+ @set.subtract([:c]).should == Set[:a, :b]
15
+ end
16
+ end
@@ -0,0 +1,33 @@
1
+ require 'set'
2
+
3
+ describe "Set#superset?" do
4
+ before(:each) do
5
+ @set = Set[1, 2, 3, 4]
6
+ end
7
+
8
+ it "returns true if passed a Set that equals self or self is a proper superset of" do
9
+ @set.superset?(@set).should be_true
10
+ Set[].superset?(Set[]).should be_true
11
+
12
+ @set.superset?(Set[]).should be_true
13
+ Set[1, 2, 3].superset?(Set[]).should be_true
14
+ Set["a", :b, ?c].superset?(Set[]).should be_true
15
+
16
+ @set.superset?(Set[1, 2, 3]).should be_true
17
+ @set.superset?(Set[1, 3]).should be_true
18
+ @set.superset?(Set[1, 2]).should be_true
19
+ @set.superset?(Set[1]).should be_true
20
+
21
+ @set.superset?(Set[5]).should be_false
22
+ @set.superset?(Set[1, 5]).should be_false
23
+ @set.superset?(Set[nil]).should be_false
24
+ @set.superset?(Set["test"]).should be_false
25
+ end
26
+
27
+ it "raises an ArgumentError when passed a non-Set" do
28
+ lambda { Set[].superset?([]) }.should raise_error(ArgumentError)
29
+ lambda { Set[].superset?(1) }.should raise_error(ArgumentError)
30
+ lambda { Set[].superset?("test") }.should raise_error(ArgumentError)
31
+ lambda { Set[].superset?(Object.new) }.should raise_error(ArgumentError)
32
+ end
33
+ end
data/spec/to_a_spec.rb ADDED
@@ -0,0 +1,7 @@
1
+ require 'set'
2
+
3
+ describe "Set#to_a" do
4
+ it "returns an array containing elements of self" do
5
+ Set[1, 2, 3].to_a.sort.should == [1, 2, 3]
6
+ end
7
+ end
@@ -0,0 +1,10 @@
1
+ require File.expand_path('../shared/union', __FILE__)
2
+ require 'set'
3
+
4
+ describe "Set#union" do
5
+ it_behaves_like :set_union, :union
6
+ end
7
+
8
+ describe "Set#|" do
9
+ it_behaves_like :set_union, :|
10
+ end
metadata CHANGED
@@ -1,118 +1,314 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: rubysl-set
3
- version: !ruby/object:Gem::Version
4
- hash: 856480538658449761
5
- prerelease:
6
- segments:
7
- - 0
8
- - 0
9
- - 1
10
- version: 0.0.1
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.0
11
5
  platform: ruby
12
- authors:
6
+ authors:
13
7
  - Brian Shirai
14
8
  autorequire:
15
9
  bindir: bin
16
10
  cert_chain: []
17
-
18
- date: 2013-04-15 00:00:00 Z
19
- dependencies:
20
- - !ruby/object:Gem::Dependency
21
- name: redcard
11
+ date: 2013-09-16 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ~>
18
+ - !ruby/object:Gem::Version
19
+ version: '1.3'
20
+ type: :development
22
21
  prerelease: false
23
- requirement: &id001 !ruby/object:Gem::Requirement
24
- none: false
25
- requirements:
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
26
24
  - - ~>
27
- - !ruby/object:Gem::Version
28
- hash: 4428665182548103036
29
- segments:
30
- - 1
31
- - 0
32
- version: "1.0"
33
- type: :runtime
34
- version_requirements: *id001
35
- - !ruby/object:Gem::Dependency
25
+ - !ruby/object:Gem::Version
26
+ version: '1.3'
27
+ - !ruby/object:Gem::Dependency
36
28
  name: rake
37
- prerelease: false
38
- requirement: &id002 !ruby/object:Gem::Requirement
39
- none: false
40
- requirements:
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
41
31
  - - ~>
42
- - !ruby/object:Gem::Version
43
- hash: 1510892033553700768
44
- segments:
45
- - 10
46
- - 0
47
- version: "10.0"
32
+ - !ruby/object:Gem::Version
33
+ version: '10.0'
48
34
  type: :development
49
- version_requirements: *id002
50
- - !ruby/object:Gem::Dependency
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ~>
39
+ - !ruby/object:Gem::Version
40
+ version: '10.0'
41
+ - !ruby/object:Gem::Dependency
51
42
  name: mspec
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ~>
46
+ - !ruby/object:Gem::Version
47
+ version: '1.5'
48
+ type: :development
52
49
  prerelease: false
53
- requirement: &id003 !ruby/object:Gem::Requirement
54
- none: false
55
- requirements:
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ~>
53
+ - !ruby/object:Gem::Version
54
+ version: '1.5'
55
+ - !ruby/object:Gem::Dependency
56
+ name: rubysl-prettyprint
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
56
59
  - - ~>
57
- - !ruby/object:Gem::Version
58
- hash: 1660815245844205030
59
- segments:
60
- - 1
61
- - 5
62
- version: "1.5"
60
+ - !ruby/object:Gem::Version
61
+ version: '1.0'
63
62
  type: :development
64
- version_requirements: *id003
65
- description: Ruby Standard Library - set
66
- email:
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ~>
67
+ - !ruby/object:Gem::Version
68
+ version: '1.0'
69
+ description: Ruby standard library set.
70
+ email:
67
71
  - brixen@gmail.com
68
72
  executables: []
69
-
70
73
  extensions: []
71
-
72
74
  extra_rdoc_files: []
73
-
74
- files:
75
+ files:
75
76
  - .gitignore
77
+ - .travis.yml
76
78
  - Gemfile
77
79
  - LICENSE
78
80
  - README.md
79
81
  - Rakefile
80
- - lib/rubysl-set.rb
81
- - lib/rubysl-set/version.rb
82
+ - lib/rubysl/set.rb
83
+ - lib/rubysl/set/set.rb
84
+ - lib/rubysl/set/version.rb
85
+ - lib/set.rb
82
86
  - rubysl-set.gemspec
83
- homepage: ""
84
- licenses: []
85
-
87
+ - spec/add_spec.rb
88
+ - spec/append_spec.rb
89
+ - spec/classify_spec.rb
90
+ - spec/clear_spec.rb
91
+ - spec/collect_spec.rb
92
+ - spec/constructor_spec.rb
93
+ - spec/delete_if_spec.rb
94
+ - spec/delete_spec.rb
95
+ - spec/difference_spec.rb
96
+ - spec/divide_spec.rb
97
+ - spec/each_spec.rb
98
+ - spec/empty_spec.rb
99
+ - spec/enumerable/to_set_spec.rb
100
+ - spec/eql_spec.rb
101
+ - spec/equal_value_spec.rb
102
+ - spec/exclusion_spec.rb
103
+ - spec/flatten_merge_spec.rb
104
+ - spec/flatten_spec.rb
105
+ - spec/hash_spec.rb
106
+ - spec/include_spec.rb
107
+ - spec/initialize_copy_spec.rb
108
+ - spec/initialize_spec.rb
109
+ - spec/inspect_spec.rb
110
+ - spec/intersection_spec.rb
111
+ - spec/keep_if_spec.rb
112
+ - spec/length_spec.rb
113
+ - spec/map_spec.rb
114
+ - spec/member_spec.rb
115
+ - spec/merge_spec.rb
116
+ - spec/minus_spec.rb
117
+ - spec/plus_spec.rb
118
+ - spec/pretty_print_cycle_spec.rb
119
+ - spec/pretty_print_spec.rb
120
+ - spec/proper_subset_spec.rb
121
+ - spec/proper_superset_spec.rb
122
+ - spec/reject_spec.rb
123
+ - spec/replace_spec.rb
124
+ - spec/select_spec.rb
125
+ - spec/shared/add.rb
126
+ - spec/shared/collect.rb
127
+ - spec/shared/difference.rb
128
+ - spec/shared/include.rb
129
+ - spec/shared/intersection.rb
130
+ - spec/shared/length.rb
131
+ - spec/shared/union.rb
132
+ - spec/size_spec.rb
133
+ - spec/sortedset/add_spec.rb
134
+ - spec/sortedset/append_spec.rb
135
+ - spec/sortedset/classify_spec.rb
136
+ - spec/sortedset/clear_spec.rb
137
+ - spec/sortedset/collect_spec.rb
138
+ - spec/sortedset/constructor_spec.rb
139
+ - spec/sortedset/delete_if_spec.rb
140
+ - spec/sortedset/delete_spec.rb
141
+ - spec/sortedset/difference_spec.rb
142
+ - spec/sortedset/divide_spec.rb
143
+ - spec/sortedset/each_spec.rb
144
+ - spec/sortedset/empty_spec.rb
145
+ - spec/sortedset/eql_spec.rb
146
+ - spec/sortedset/equal_value_spec.rb
147
+ - spec/sortedset/exclusion_spec.rb
148
+ - spec/sortedset/flatten_merge_spec.rb
149
+ - spec/sortedset/flatten_spec.rb
150
+ - spec/sortedset/hash_spec.rb
151
+ - spec/sortedset/include_spec.rb
152
+ - spec/sortedset/initialize_copy_spec.rb
153
+ - spec/sortedset/initialize_spec.rb
154
+ - spec/sortedset/inspect_spec.rb
155
+ - spec/sortedset/intersection_spec.rb
156
+ - spec/sortedset/keep_if_spec.rb
157
+ - spec/sortedset/length_spec.rb
158
+ - spec/sortedset/map_spec.rb
159
+ - spec/sortedset/member_spec.rb
160
+ - spec/sortedset/merge_spec.rb
161
+ - spec/sortedset/minus_spec.rb
162
+ - spec/sortedset/plus_spec.rb
163
+ - spec/sortedset/pretty_print_cycle_spec.rb
164
+ - spec/sortedset/pretty_print_spec.rb
165
+ - spec/sortedset/proper_subset_spec.rb
166
+ - spec/sortedset/proper_superset_spec.rb
167
+ - spec/sortedset/reject_spec.rb
168
+ - spec/sortedset/replace_spec.rb
169
+ - spec/sortedset/select_spec.rb
170
+ - spec/sortedset/shared/add.rb
171
+ - spec/sortedset/shared/collect.rb
172
+ - spec/sortedset/shared/difference.rb
173
+ - spec/sortedset/shared/include.rb
174
+ - spec/sortedset/shared/intersection.rb
175
+ - spec/sortedset/shared/length.rb
176
+ - spec/sortedset/shared/union.rb
177
+ - spec/sortedset/size_spec.rb
178
+ - spec/sortedset/subset_spec.rb
179
+ - spec/sortedset/subtract_spec.rb
180
+ - spec/sortedset/superset_spec.rb
181
+ - spec/sortedset/to_a_spec.rb
182
+ - spec/sortedset/union_spec.rb
183
+ - spec/subset_spec.rb
184
+ - spec/subtract_spec.rb
185
+ - spec/superset_spec.rb
186
+ - spec/to_a_spec.rb
187
+ - spec/union_spec.rb
188
+ homepage: https://github.com/rubysl/rubysl-set
189
+ licenses:
190
+ - BSD
191
+ metadata: {}
86
192
  post_install_message:
87
193
  rdoc_options: []
88
-
89
- require_paths:
194
+ require_paths:
90
195
  - lib
91
- required_ruby_version: !ruby/object:Gem::Requirement
92
- none: false
93
- requirements:
94
- - - ">="
95
- - !ruby/object:Gem::Version
96
- hash: 2002549777813010636
97
- segments:
98
- - 0
99
- version: "0"
100
- required_rubygems_version: !ruby/object:Gem::Requirement
101
- none: false
102
- requirements:
103
- - - ">="
104
- - !ruby/object:Gem::Version
105
- hash: 2002549777813010636
106
- segments:
107
- - 0
108
- version: "0"
196
+ required_ruby_version: !ruby/object:Gem::Requirement
197
+ requirements:
198
+ - - '>='
199
+ - !ruby/object:Gem::Version
200
+ version: '0'
201
+ required_rubygems_version: !ruby/object:Gem::Requirement
202
+ requirements:
203
+ - - '>='
204
+ - !ruby/object:Gem::Version
205
+ version: '0'
109
206
  requirements: []
110
-
111
207
  rubyforge_project:
112
- rubygems_version: 1.8.25
208
+ rubygems_version: 2.0.3
113
209
  signing_key:
114
- specification_version: 3
115
- summary: Ruby Standard Library - set
116
- test_files: []
117
-
210
+ specification_version: 4
211
+ summary: Ruby standard library set.
212
+ test_files:
213
+ - spec/add_spec.rb
214
+ - spec/append_spec.rb
215
+ - spec/classify_spec.rb
216
+ - spec/clear_spec.rb
217
+ - spec/collect_spec.rb
218
+ - spec/constructor_spec.rb
219
+ - spec/delete_if_spec.rb
220
+ - spec/delete_spec.rb
221
+ - spec/difference_spec.rb
222
+ - spec/divide_spec.rb
223
+ - spec/each_spec.rb
224
+ - spec/empty_spec.rb
225
+ - spec/enumerable/to_set_spec.rb
226
+ - spec/eql_spec.rb
227
+ - spec/equal_value_spec.rb
228
+ - spec/exclusion_spec.rb
229
+ - spec/flatten_merge_spec.rb
230
+ - spec/flatten_spec.rb
231
+ - spec/hash_spec.rb
232
+ - spec/include_spec.rb
233
+ - spec/initialize_copy_spec.rb
234
+ - spec/initialize_spec.rb
235
+ - spec/inspect_spec.rb
236
+ - spec/intersection_spec.rb
237
+ - spec/keep_if_spec.rb
238
+ - spec/length_spec.rb
239
+ - spec/map_spec.rb
240
+ - spec/member_spec.rb
241
+ - spec/merge_spec.rb
242
+ - spec/minus_spec.rb
243
+ - spec/plus_spec.rb
244
+ - spec/pretty_print_cycle_spec.rb
245
+ - spec/pretty_print_spec.rb
246
+ - spec/proper_subset_spec.rb
247
+ - spec/proper_superset_spec.rb
248
+ - spec/reject_spec.rb
249
+ - spec/replace_spec.rb
250
+ - spec/select_spec.rb
251
+ - spec/shared/add.rb
252
+ - spec/shared/collect.rb
253
+ - spec/shared/difference.rb
254
+ - spec/shared/include.rb
255
+ - spec/shared/intersection.rb
256
+ - spec/shared/length.rb
257
+ - spec/shared/union.rb
258
+ - spec/size_spec.rb
259
+ - spec/sortedset/add_spec.rb
260
+ - spec/sortedset/append_spec.rb
261
+ - spec/sortedset/classify_spec.rb
262
+ - spec/sortedset/clear_spec.rb
263
+ - spec/sortedset/collect_spec.rb
264
+ - spec/sortedset/constructor_spec.rb
265
+ - spec/sortedset/delete_if_spec.rb
266
+ - spec/sortedset/delete_spec.rb
267
+ - spec/sortedset/difference_spec.rb
268
+ - spec/sortedset/divide_spec.rb
269
+ - spec/sortedset/each_spec.rb
270
+ - spec/sortedset/empty_spec.rb
271
+ - spec/sortedset/eql_spec.rb
272
+ - spec/sortedset/equal_value_spec.rb
273
+ - spec/sortedset/exclusion_spec.rb
274
+ - spec/sortedset/flatten_merge_spec.rb
275
+ - spec/sortedset/flatten_spec.rb
276
+ - spec/sortedset/hash_spec.rb
277
+ - spec/sortedset/include_spec.rb
278
+ - spec/sortedset/initialize_copy_spec.rb
279
+ - spec/sortedset/initialize_spec.rb
280
+ - spec/sortedset/inspect_spec.rb
281
+ - spec/sortedset/intersection_spec.rb
282
+ - spec/sortedset/keep_if_spec.rb
283
+ - spec/sortedset/length_spec.rb
284
+ - spec/sortedset/map_spec.rb
285
+ - spec/sortedset/member_spec.rb
286
+ - spec/sortedset/merge_spec.rb
287
+ - spec/sortedset/minus_spec.rb
288
+ - spec/sortedset/plus_spec.rb
289
+ - spec/sortedset/pretty_print_cycle_spec.rb
290
+ - spec/sortedset/pretty_print_spec.rb
291
+ - spec/sortedset/proper_subset_spec.rb
292
+ - spec/sortedset/proper_superset_spec.rb
293
+ - spec/sortedset/reject_spec.rb
294
+ - spec/sortedset/replace_spec.rb
295
+ - spec/sortedset/select_spec.rb
296
+ - spec/sortedset/shared/add.rb
297
+ - spec/sortedset/shared/collect.rb
298
+ - spec/sortedset/shared/difference.rb
299
+ - spec/sortedset/shared/include.rb
300
+ - spec/sortedset/shared/intersection.rb
301
+ - spec/sortedset/shared/length.rb
302
+ - spec/sortedset/shared/union.rb
303
+ - spec/sortedset/size_spec.rb
304
+ - spec/sortedset/subset_spec.rb
305
+ - spec/sortedset/subtract_spec.rb
306
+ - spec/sortedset/superset_spec.rb
307
+ - spec/sortedset/to_a_spec.rb
308
+ - spec/sortedset/union_spec.rb
309
+ - spec/subset_spec.rb
310
+ - spec/subtract_spec.rb
311
+ - spec/superset_spec.rb
312
+ - spec/to_a_spec.rb
313
+ - spec/union_spec.rb
118
314
  has_rdoc: