ruby-skyline-core 0.1.7 → 0.1.8
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.
- checksums.yaml +4 -4
- data/lib/ruby-skyline-core.rb +3 -3
- data/lib/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d0376deb0b0ccb60b126f96c980ec03538c95685
|
4
|
+
data.tar.gz: 3aad0e949fed2a1ff367dc28955dff5bd22f7849
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c60c334ecbddce72cba3131887ab95ee769110e395611186e41e0fa7e171f15d4a13d057e161b2f7b60d65814b5d43fff120ff154c2a379d8ab503f37b5bd356
|
7
|
+
data.tar.gz: 48aaca7d54511ec4e2b336499672046da80c87b5a7fce7486bd337445fca886edef7ca3b38c52495551217dcaa3b34d2099c3e6d6cd2454f9c5041b2266f70b2
|
data/lib/ruby-skyline-core.rb
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
class Array
|
3
3
|
# dominate function in skyline for array
|
4
4
|
def dominate?(array)
|
5
|
-
|
5
|
+
pre_check_skyline_dominate(array)
|
6
6
|
flag = 0
|
7
7
|
check_flag = size
|
8
8
|
each_with_index do |attr, index|
|
@@ -17,7 +17,7 @@ class Array
|
|
17
17
|
|
18
18
|
# skyline attributes aggregate for array
|
19
19
|
def aggregate(array)
|
20
|
-
|
20
|
+
pre_check_skyline_dominate(array)
|
21
21
|
aggregate_array = []
|
22
22
|
raise ArgumentError, "Need Array not #{array.class}" unless array.class == Array
|
23
23
|
each_with_index do |attr, index|
|
@@ -27,7 +27,7 @@ class Array
|
|
27
27
|
end
|
28
28
|
|
29
29
|
# Skyline Error Handling
|
30
|
-
def
|
30
|
+
def pre_check_skyline_dominate(target_array)
|
31
31
|
unless target_array.class == Array
|
32
32
|
raise ArgumentError, "excpet (Array) got (#{target_array.class})"
|
33
33
|
end
|
data/lib/version.rb
CHANGED