mobj 2.9.3 → 2.9.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/ext/array.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
ZTAxYmY5MWE3MDJkNzVjOTIyNzBjNmRlMGI4YTNmNGNmNzM5MjRjMg==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
ZjJmY2Y3ODI0ZTBkODEwYzEzMjk1ZGI2NzY0ZDljN2Q2MmQ4ZjkxOQ==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MGFjYTRmOTU3OGFmZWZhMTYyODNjOWRjMGM0NWI1ZTUwNjg3NGQ5ZDMyODQw
|
10
|
+
NzQ3ZmI4ZDJjZTZmN2U0ZjU2NGQwYzU3N2NhN2M0MjI0YzU1NDNkZTAzZGZj
|
11
|
+
M2VmNDY2ZGVhYmMyMTNkZDRjMDQ2MjQ0YzIyNjUyMjczOGZkOWY=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ODIzMGVkZmVmMzc1YTI3M2ZmNjUyNmM3NGNhNTRhNmNmNTJlOWI2NDM0Zjlm
|
14
|
+
MTc5NGRlY2E4NGIwNWQ5NGMxYWMyYTc5MjQwYWY1Y2ZmYmZhZTQ0YzgzMmVm
|
15
|
+
ODJjNmJmYzNmOTY5M2JhZDU3M2E1OGU2ZjMzMGIzYmYwNzlhNzU=
|
data/lib/ext/array.rb
CHANGED
@@ -14,7 +14,7 @@ module Mobj
|
|
14
14
|
if block
|
15
15
|
inject(initial) { |m, val| m.send(op, block[val]) }
|
16
16
|
else
|
17
|
-
map(&:
|
17
|
+
map(&:f!).inject(initial, op)
|
18
18
|
end
|
19
19
|
end
|
20
20
|
|
@@ -24,7 +24,7 @@ module Mobj
|
|
24
24
|
|
25
25
|
def mmid(&sorter)
|
26
26
|
sorted = sort(&sorter)
|
27
|
-
length.odd? ? sorted[length / 2] : (sorted[length/2 - 1] + sorted[length/2]).
|
27
|
+
length.odd? ? sorted[length / 2].f! : (sorted[length/2 - 1].f! + sorted[length/2].f!).f! / 2
|
28
28
|
end
|
29
29
|
|
30
30
|
def values()
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mobj
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.9.
|
4
|
+
version: 2.9.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mason
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-05-
|
11
|
+
date: 2013-05-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|