pragma-rails 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: e129956664b085ca518fe2018b0890abae635430
4
- data.tar.gz: 5b4d1ff6f57e13410ffa49cfc09727c7e22ba3ea
3
+ metadata.gz: 460f0c75a8aa0c5cfb8618a7beb57de2fe031ebe
4
+ data.tar.gz: 5f5e542c5a5c81b83757a05f6ff59224c5a58913
5
5
  SHA512:
6
- metadata.gz: 7939abb5ef246412ed0dbff1158671e9d8c5a5630e820463f1492083682c34485a4b73f7cbd2da8db5f9cf391c856705254291d83bb8bf4c1264456126ab56ee
7
- data.tar.gz: 3251ec419d8a88149894bf92f24476dbdad0ce2653a9a733fe3c2dbb9cf7f839873a0d61af8935d75a0ff936e4ec70e89f788a77cedeb13599cd43258f6f0f69
6
+ metadata.gz: c5c7eb2ce93a2f4b3333979860ceb61510143230a2db628fc4bfce50a945f1be173ff1a83728a4d77ffd0e57cb2d0ef3c5fc4babe5d8beb3073b62fe47b5379b
7
+ data.tar.gz: ee4816791903da9e9fc4eab2938ce4f22eb8f1c339c799e28885bacb684862865b83cf25bf10f6ce53d8675acc144d2f8e5035d0bfbc17b61a843a42c819e0e7
@@ -53,11 +53,13 @@ module Pragma
53
53
  private
54
54
 
55
55
  def class_exists?(klass)
56
- Object.const_get(klass)
57
- true
58
- rescue NameError => e
59
- raise e unless e.message.include?("uninitialized constant #{klass}")
60
- false
56
+ begin
57
+ klass.constantize
58
+ rescue NameError => e
59
+ raise e unless e.message.include?("uninitialized constant #{klass}")
60
+ end
61
+
62
+ Object.const_defined?(klass)
61
63
  end
62
64
  end
63
65
 
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
  module Pragma
3
3
  module Rails
4
- VERSION = '1.1.0'
4
+ VERSION = '1.1.1'
5
5
  end
6
6
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pragma-rails
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
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-01-16 00:00:00.000000000 Z
11
+ date: 2017-01-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pragma