mobj 2.9.4 → 2.9.5

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/object.rb +4 -4
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ZTAxYmY5MWE3MDJkNzVjOTIyNzBjNmRlMGI4YTNmNGNmNzM5MjRjMg==
4
+ MmQ0ZmRjZjBmYTFiNzJmM2ZhMGFhNDU0Y2UwODFjOTA2NWM4ZjJlZA==
5
5
  data.tar.gz: !binary |-
6
- ZjJmY2Y3ODI0ZTBkODEwYzEzMjk1ZGI2NzY0ZDljN2Q2MmQ4ZjkxOQ==
6
+ ZGVjOTkxZTM3MWEzNThjMTQ0MmJiNDZiZGU2YzQzNjM1ZDg3MTZlNA==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- MGFjYTRmOTU3OGFmZWZhMTYyODNjOWRjMGM0NWI1ZTUwNjg3NGQ5ZDMyODQw
10
- NzQ3ZmI4ZDJjZTZmN2U0ZjU2NGQwYzU3N2NhN2M0MjI0YzU1NDNkZTAzZGZj
11
- M2VmNDY2ZGVhYmMyMTNkZDRjMDQ2MjQ0YzIyNjUyMjczOGZkOWY=
9
+ YzVlY2I2ZGQ3ZmFiOTMxYjEyOTY4OGExNGUxOTc2NTc1ZTBjNjhmOGRlNTlh
10
+ ZmI0ZTU0MDIyMTY2MzYyZGQ5ZjdlZDZlNjc4ZDczZGU3M2I3NjBlYjhhY2Jk
11
+ YTVhMzRhZWQxNzBjZGUyMWYxMDg5M2RhZDdiYTY0ODU2Mjg1YWU=
12
12
  data.tar.gz: !binary |-
13
- ODIzMGVkZmVmMzc1YTI3M2ZmNjUyNmM3NGNhNTRhNmNmNTJlOWI2NDM0Zjlm
14
- MTc5NGRlY2E4NGIwNWQ5NGMxYWMyYTc5MjQwYWY1Y2ZmYmZhZTQ0YzgzMmVm
15
- ODJjNmJmYzNmOTY5M2JhZDU3M2E1OGU2ZjMzMGIzYmYwNzlhNzU=
13
+ NGZmM2U5ZDFmNTdjMTM4ZTQwNTgwNTZiZTYyNDY1OGI2ZGQ2YzVjZDk1OWVm
14
+ YjAxZTgyNDViMjdiYjY5MzhlNGQwYjI0NmVjNjViN2E2NDM1NjNhYjE3Y2Ez
15
+ NzkzNzE0YzY1YTZmNWMwMTJiNTRmMzJmNGJmMDY1YmM4YmEzYmM=
data/lib/ext/object.rb CHANGED
@@ -3,10 +3,10 @@ module Mobj
3
3
  class ::Object
4
4
  alias_method :responds_to?, :respond_to?
5
5
 
6
- def i!() respond_to?(:to_i) ? to_i : to_s.to_i end
7
- def f!() respond_to?(:to_f) ? to_f : to_s.to_f end
8
- def z?() respond_to?(:zero?) ? zero? : f!.zero? end
9
- def zeno!() z? ? 1 : self end
6
+ def i!() to_s.to_i end
7
+ def f!() to_s.to_f end
8
+ def z0?() respond_to?(:zero?) ? zero? : f!.zero? end
9
+ def zeno!() z0? ? 1.0 : self end
10
10
 
11
11
  alias_method :n?, :nil?
12
12
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mobj
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.9.4
4
+ version: 2.9.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mason