code-ruby 1.6.11 → 1.6.12
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/Gemfile.lock +1 -1
- data/VERSION +1 -1
- data/lib/code/concerns/shared.rb +2 -2
- data/lib/code/object/list.rb +4 -5
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6a80b276ea3ad2c3a639d7adf3148cf4a4b869c6457340a36efa6a9668a492d6
|
4
|
+
data.tar.gz: 23195c8b97452a3cf65a7596f8ee15375634b8c10ed89cc821df884bb2f8eb4f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ea6b229dad0cdadf095bc8e1bde1f6c8e186e675943a8202aef1f2fc51dc35ee1cbe16a6c08d93f7f21fe98b4d321e4d5d5733821d72727eed446394541ebb37
|
7
|
+
data.tar.gz: ef8bb15a9ecb542e1300a5db2aef35788ff2e7975700748dede4190713f3851f921bb3844f09edd243b59394d0e705e70a55f43ee6befbc837dac9b358a84693
|
data/Gemfile.lock
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.6.
|
1
|
+
1.6.12
|
data/lib/code/concerns/shared.rb
CHANGED
@@ -208,7 +208,7 @@ class Code
|
|
208
208
|
def code_greater(other)
|
209
209
|
code_other = other.to_code
|
210
210
|
|
211
|
-
Object::Boolean.new((self <=> code_other)
|
211
|
+
Object::Boolean.new((self <=> code_other).positive?)
|
212
212
|
end
|
213
213
|
|
214
214
|
def code_greater_or_equal(other)
|
@@ -220,7 +220,7 @@ class Code
|
|
220
220
|
def code_less(other)
|
221
221
|
code_other = other.to_code
|
222
222
|
|
223
|
-
Object::Boolean.new((self <=> code_other)
|
223
|
+
Object::Boolean.new((self <=> code_other).negative?)
|
224
224
|
end
|
225
225
|
|
226
226
|
def code_less_or_equal(other)
|
data/lib/code/object/list.rb
CHANGED
@@ -955,11 +955,10 @@ class Code
|
|
955
955
|
List.new(
|
956
956
|
raw.sort_by.with_index do |code_element, index|
|
957
957
|
if code_argument.is_a?(Function)
|
958
|
-
code_argument
|
959
|
-
.
|
960
|
-
|
961
|
-
|
962
|
-
)
|
958
|
+
code_argument.call(
|
959
|
+
arguments: List.new([code_element, Integer.new(index), self]),
|
960
|
+
**globals
|
961
|
+
)
|
963
962
|
else
|
964
963
|
code_element
|
965
964
|
end
|