activefacts-api 1.9.4 → 1.9.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 36cc46a9af5dba1464033268c79c38e5c5e16747
4
- data.tar.gz: 5561297083e7779574968c3bf395f509602c1f2c
3
+ metadata.gz: 2eb04777181f27abd89426727271654e04920e13
4
+ data.tar.gz: e6aa614c3625cd3d91cfecf290769e4f6af00a04
5
5
  SHA512:
6
- metadata.gz: e4bab7cf55c08efb17d68ae45da684dc9daf7d13606ba236170bc7e82abb69b04576997f33287730fe082df097867859fa0442200ab71bec7ce74c330b0037c0
7
- data.tar.gz: d9e52ec5cb6e4527c2c7c2cfd9f4f47476430a786d13deb74c211f1f3ed37edb02503860bc53e52a115a171a6538623c5b9cbf9babbede1bc40caf0a136edaef
6
+ metadata.gz: f80be8ab326dfa421361c4d2af569ec717e37d001b14a3167a91e64cbb8df5b75d2a446b40678441f94e1a126b03a277795e75daccaacf90bdb3864b16d3ee53
7
+ data.tar.gz: 473e27c7bbeb18a3c04519208f51eabd9e51e5366bc603a2d40f36946348a37e412f8bcf4d490c14b464227aff6bfd5ff0bf5dfb74087f7fcc9e948401d6c787
@@ -1,5 +1,5 @@
1
1
  module ActiveFacts
2
2
  module API
3
- VERSION = "1.9.4"
3
+ VERSION = "1.9.5"
4
4
  end
5
5
  end
@@ -32,15 +32,8 @@ module ActiveFacts
32
32
  __bind(camel)
33
33
  c
34
34
  else
35
- if const_defined?(camel)
36
- begin
37
- const_get(camel)
38
- rescue NameError
39
- nil
40
- end
41
- else
42
- nil
43
- end
35
+ klass = const_get(camel) rescue nil # NameError if undefined
36
+ klass && klass.modspace == self ? klass : nil
44
37
  end
45
38
  end
46
39
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activefacts-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.9.4
4
+ version: 1.9.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Clifford Heath