mobj 2.9.3 → 2.9.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +8 -8
  2. data/lib/ext/array.rb +2 -2
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- M2JjNWRjYWY5ZGY0ZmI5NjNkOGExMmMyNDQwNWZlNDVhZmU4NTQ4NQ==
4
+ ZTAxYmY5MWE3MDJkNzVjOTIyNzBjNmRlMGI4YTNmNGNmNzM5MjRjMg==
5
5
  data.tar.gz: !binary |-
6
- NjIyZjE5YWUxODEwZmRmNDczODM5Y2MxODA4MTQ1ZmFmZjlkMjdhYg==
6
+ ZjJmY2Y3ODI0ZTBkODEwYzEzMjk1ZGI2NzY0ZDljN2Q2MmQ4ZjkxOQ==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- YmYwMjg2NGYyNTMzZTdkY2QwNmY3YjkxMWFmZjIxZTAxNzBmMDNhNTM5OTg4
10
- ZjdmMTE2MzgzMzBjN2JhODEwMjdlZmRiODFhN2VmZWZmMDM0MDk5MTIyNGZj
11
- NzMzNDNkYjMyYWJlYzBiYmVkODI0Yzg5YjJlMDcyMDc3MjJmM2Y=
9
+ MGFjYTRmOTU3OGFmZWZhMTYyODNjOWRjMGM0NWI1ZTUwNjg3NGQ5ZDMyODQw
10
+ NzQ3ZmI4ZDJjZTZmN2U0ZjU2NGQwYzU3N2NhN2M0MjI0YzU1NDNkZTAzZGZj
11
+ M2VmNDY2ZGVhYmMyMTNkZDRjMDQ2MjQ0YzIyNjUyMjczOGZkOWY=
12
12
  data.tar.gz: !binary |-
13
- YzE1YzE3NmI4NGI3NjhmYzNmYTgyMjg5NDAwMjI5YTk0NTc4MzNjMzAzZTc2
14
- N2I5ZGJjNjFlZmEyZDY5ZWNlYjAyOWI2Nzc2N2JmOTI2NzhkZTZhZmFkMTQz
15
- NGIwOTgyZmMxN2MxMDA4N2Y3ZDUwN2FmYzg0ZjA4OGNmZTFiMDE=
13
+ ODIzMGVkZmVmMzc1YTI3M2ZmNjUyNmM3NGNhNTRhNmNmNTJlOWI2NDM0Zjlm
14
+ MTc5NGRlY2E4NGIwNWQ5NGMxYWMyYTc5MjQwYWY1Y2ZmYmZhZTQ0YzgzMmVm
15
+ ODJjNmJmYzNmOTY5M2JhZDU3M2E1OGU2ZjMzMGIzYmYwNzlhNzU=
@@ -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(&:to_f).inject(initial, op)
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]).to_f / 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.3
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-02 00:00:00.000000000 Z
11
+ date: 2013-05-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec