pragma 1.1.0 → 1.1.1

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: 50ba068f5b924005a5e8f4d9c33c6e2bd125c418
4
- data.tar.gz: 43ca9b386e7f1a6ad34324dc15f05d8e267a7416
3
+ metadata.gz: 87c173e3affa12b9cb01c636e3403ca21ecbe8de
4
+ data.tar.gz: cd5868f157dc53f73d0fa0a47afd4da8f51a1182
5
5
  SHA512:
6
- metadata.gz: 67ef8ff72decf2fbb18dc94bbbcac24b377215e73400cf3c70262f3c25db4d3ba58cd6965ae380c02a26e36eb2a95f035c24ddecfe8474685a209625e7428362
7
- data.tar.gz: 4f7b4500ad0ab5a832f583d1f23eeccc66c3075f579ee16b41d5f524b85e85c7e6290273aaff1572ca3a336fa021fbb55e6205b3e202209664fa01668b7953a8
6
+ metadata.gz: 9a03e55e1c5f0cc1f80cde9eb46f74ceb53ee9ab55646d032015244504a97c01f6d6816ab4291dbedee21e66af48f51ba35b35d67068b3d8eae935fb18af3eaf
7
+ data.tar.gz: c34269682cf47762f00326dc8b63528542c92bcac48b1b0b819b554791b26ee73062db9a706978b9aafc71bcd0ada76c221586191bde87c59ba067e4a6c62f57
@@ -69,10 +69,7 @@ module Pragma
69
69
  end
70
70
 
71
71
  def class_exists?(klass)
72
- Object.const_get(klass)
73
- true
74
- rescue NameError
75
- false
72
+ Object.const_defined?(klass)
76
73
  end
77
74
  end
78
75
  end
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module Pragma
3
- VERSION = '1.1.0'
3
+ VERSION = '1.1.1'
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pragma
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alessandro Desantis