rmtools 1.2.12 → 1.2.13
Sign up to get free protection for your applications and to get access to all the features.
- data/License.txt +2 -1
- data/README.txt +2 -2
- data/Rakefile +1 -1
- data/ext/rmtools.cpp +1 -1
- data/lib/rmtools/enumerable/array.rb +4 -0
- data/lib/rmtools/enumerable/array_iterators.rb +0 -1
- data/lib/rmtools/init.rb +4 -4
- metadata +1 -1
data/License.txt
CHANGED
data/README.txt
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
Copyright (c) 2010-2013
|
2
|
-
Baev
|
2
|
+
Sergey Baev <tinbka@gmail.com>
|
3
3
|
|
4
4
|
This work is licensed under the same license as Ruby language.
|
5
5
|
|
@@ -9,7 +9,7 @@ Methods for basic classes addon collection.
|
|
9
9
|
|
10
10
|
== CHANGES
|
11
11
|
|
12
|
-
== Version 1.2.
|
12
|
+
== Version 1.2.13
|
13
13
|
|
14
14
|
* Smartified Array bicycles: #index_where, #indices_where, #set_where, #set_all_where, #del_where, #del_all_where
|
15
15
|
* Added #arrange_by to Array enumerators
|
data/Rakefile
CHANGED
data/ext/rmtools.cpp
CHANGED
@@ -423,7 +423,7 @@ static int unsigned_big_lte(VALUE x, VALUE y)
|
|
423
423
|
long ylen = RBIGNUM_LEN(y);
|
424
424
|
if (xlen < ylen) return 1;
|
425
425
|
if (xlen > RBIGNUM_LEN(y)) return 0;
|
426
|
-
while(xlen-- && (BDIGITS(x)[xlen]==BDIGITS(y)[xlen]));
|
426
|
+
while (xlen-- && (BDIGITS(x)[xlen]==BDIGITS(y)[xlen])) {};
|
427
427
|
if (-1 == xlen) return 1; // ==
|
428
428
|
return (BDIGITS(x)[xlen] > BDIGITS(y)[xlen]) ? 0 : 1;
|
429
429
|
}
|
@@ -14,7 +14,6 @@ unless defined? RMTools::Iterators
|
|
14
14
|
# => [[1, 2, 3], [3, 4, 6]]
|
15
15
|
class Array
|
16
16
|
alias :throw_no :method_missing
|
17
|
-
alias :arrange_by :arrange
|
18
17
|
RMTools::Iterators = %r{^(#{(my_methods(/_by$/)+%w{every no select reject partition find_all find sum foldr})*'|'})_([\w\d\_]+[!?]?)}
|
19
18
|
|
20
19
|
def method_missing(method, *args, &block)
|
data/lib/rmtools/init.rb
CHANGED
@@ -5,9 +5,9 @@ module RMTools
|
|
5
5
|
VERSION = IO.read(File.join dir, '..', '..', 'Rakefile').match(/RMTOOLS_VERSION = '(.+?)'/)[1]
|
6
6
|
|
7
7
|
require File.expand_path('require', dir)
|
8
|
-
[
|
9
|
-
|
10
|
-
|
11
|
-
|
8
|
+
%w[core enumerable text time functional
|
9
|
+
conversions ip lang rand console b
|
10
|
+
fs db xml
|
11
|
+
../rmtools.so
|
12
12
|
].each {|file| RMTools::require file}
|
13
13
|
end
|