pragma 1.1.1 → 1.1.2

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: 87c173e3affa12b9cb01c636e3403ca21ecbe8de
4
- data.tar.gz: cd5868f157dc53f73d0fa0a47afd4da8f51a1182
3
+ metadata.gz: b663eb5cb1de8f44179099fb2a267035724f5162
4
+ data.tar.gz: c99f08ef93efae3b8992c2a9bcd7b52651ffb64d
5
5
  SHA512:
6
- metadata.gz: 9a03e55e1c5f0cc1f80cde9eb46f74ceb53ee9ab55646d032015244504a97c01f6d6816ab4291dbedee21e66af48f51ba35b35d67068b3d8eae935fb18af3eaf
7
- data.tar.gz: c34269682cf47762f00326dc8b63528542c92bcac48b1b0b819b554791b26ee73062db9a706978b9aafc71bcd0ada76c221586191bde87c59ba067e4a6c62f57
6
+ metadata.gz: e254786bb48ffbb15ce69a8932a7153f2473bb009c2e1778a3bb64ed67a2e8fe654536bca19bd74b4592718db16993fd9ddca26840b1fda64d040710132a7279
7
+ data.tar.gz: 78a2f00a1af9fcab9036f4b0640f4634722518faaf2927e7530e101a9fc0d28a8e59fec0f4eb2589b80a64ab53315f397a21e7d4823d7746681fdc214b0ce2b9
@@ -69,6 +69,11 @@ module Pragma
69
69
  end
70
70
 
71
71
  def class_exists?(klass)
72
+ begin
73
+ Object.const_get(klass)
74
+ rescue NameError
75
+ end
76
+
72
77
  Object.const_defined?(klass)
73
78
  end
74
79
  end
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module Pragma
3
- VERSION = '1.1.1'
3
+ VERSION = '1.1.2'
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pragma
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 1.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alessandro Desantis
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-01-18 00:00:00.000000000 Z
11
+ date: 2017-01-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pragma-operation