rulp 0.0.7 → 0.0.8

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- YzI4YzljYmUyNTQ1NDNiYzNhM2FjZjA2Yjc2ODVkZTJhMTgwMGEyMg==
4
+ ZDQ0YzRiYzgxZTc3YjdkZjI1ODBiNmVkYWM5ZWQ0YmQ2ZDZjZWE4MQ==
5
5
  data.tar.gz: !binary |-
6
- MWEzNTNhODQ5ZWQ3Y2E1ZmFhYjNlY2YzMzNmYjkyMDg4ZjVlMzY2NQ==
6
+ Njg0YmY4M2ZlYTc2Yzg0MjA4NjE3ZWNmZDJkNDczYjkyMGI4Y2I1OQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- MmNhYTQwMjNjNDY1YjFkNDMxMTViODUxNWNjOGUzMzIyYzlhMzAyYTc0OTI5
10
- ZjQyN2UwNWUzMGQwZjhiNDZiODhmNjU1MDhiMzcxNjI5OTQwYjc4ZTkzNGFh
11
- Y2E1NzNlMjIyMjZlZmMyYmQwN2E1MzJmZWE0OTQwZGY0Y2UyMGM=
9
+ MjA0MWU5NjJjMjA0MjZhNWU2MjJkNzg2NmI5YmI2MWU2Mzk1ZDAzNDdlMGEw
10
+ NWM3YmZkNTFkMzI2MDRhOTJkNjE0OTAzMTVkMmQyMzgzZDgzM2EyNTMwYjlm
11
+ MmYxNWMxY2RhYzcxNGYyOGY0NWIyZTM4MDZhYWVlOGE1MTYyZGY=
12
12
  data.tar.gz: !binary |-
13
- NmIwYjVkNzBjY2EyODY5MTFmMzdhMGZhYWM2YmMzOWRjODk2NDY3NDg3Zjhk
14
- ZmFkMmJiOTNiNzhiMzY0ODkxYjNlZTIzZjM1ODI2OGZhZDQwZDg0ZWFjMWQy
15
- NzFiMzg2OGE1MDc5NWFkMjZjYmI2OGE4ZDMwODE5YmY1N2Q5OTk=
13
+ MDc2ZmYzMjI1YTI1NDA3Njg3YWE3MTNhNGZiYjc2YTM4YzRhNTQyNTk5NDAy
14
+ NmNiOTZmNzY2YjUzZjgwMTFmNzkzZmIwYTE5NDNiZDExODVlNzNhNzU5ZTdh
15
+ N2QyZjQ0YWRjYmNkOTFiZmI2YTUwMWNjYmE4Y2Y4ZDRiOGI2ZGY=
@@ -13,14 +13,14 @@
13
13
  class << Object
14
14
  alias_method :old_const_missing, :const_missing
15
15
  def const_missing(value)
16
- method_name = "#{value}" rescue ""
16
+ method_name = "#{value}".split("::")[-1] rescue ""
17
17
  if (("A".."Z").include?(method_name[0]))
18
18
  if(method_name.end_with?("b"))
19
- BV.send(method_name[0..(method_name[-2] == "_" ? -3 : -2)])
19
+ return BV.send(method_name[0..(method_name[-2] == "_" ? -3 : -2)])
20
20
  elsif(method_name.end_with?("i"))
21
- IV.send(method_name[0..(method_name[-2] == "_" ? -3 : -2)])
21
+ return IV.send(method_name[0..(method_name[-2] == "_" ? -3 : -2)])
22
22
  elsif(method_name.end_with?("f"))
23
- LV.send(method_name[0..(method_name[-2] == "_" ? -3 : -2)])
23
+ return LV.send(method_name[0..(method_name[-2] == "_" ? -3 : -2)])
24
24
  end
25
25
  end
26
26
  old_const_missing(value)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rulp
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Wouter Coppieters