softwear-lib 1.7.10 → 1.7.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f0c5c0543af07abe43b8095e51b9d17761789eec
4
- data.tar.gz: 0780acb391b221284643a8cf0b274b4b300bebae
3
+ metadata.gz: 428b489cc6521ad57f942c576f0c6f3188119f7d
4
+ data.tar.gz: 9dc199b32ebe21eb5d76c10fc0a67dce84731b12
5
5
  SHA512:
6
- metadata.gz: d7d1c3afc5cd9f2b93025562b5e7cf541eaa13cfa5f74e391dc978c6282c5fb0a7d8d694cc8406bdb8524672786a7ffc6404c6e2a4b597c404628f0197e505a2
7
- data.tar.gz: 94caf6779d805755ad0ae40a10d42a9b459a4af1f1ef64f9aa0b74b47bc6f851369c087427e58ddca32143b7d5283e6dc0a7a372145c38bc0713c28f9d76be42
6
+ metadata.gz: f7e4ddea490abe5e214ff9bc8a18e5e42f3e76e13849b2450b4c8f785c1cabb59ac9c59c060744abfabed5014493a7e16fd9aca53510d489ac86d15ce8f0ef76
7
+ data.tar.gz: fec8a47b63943cc0681e33fe92e49fd8633b23d81f5c2265166d8c44e5cf461e5f2743b0ab983d0318f90bfb728c4d73f1f1d85363478b061f657e12c5524e10
@@ -24,7 +24,11 @@ module Softwear
24
24
  raise "More than one descendent of Softwear::Auth::Model is not supported."
25
25
  elsif Softwear::Auth::Model.descendants.size == 0
26
26
  # Assume there is a "User" model
27
- return User if defined?(User) && User.ancestors.include?(Softwear::Auth::Model)
27
+ begin
28
+ User.inspect
29
+ return User if User.ancestors.include?(Softwear::Auth::Model)
30
+ rescue NameError => _
31
+ end
28
32
  raise "Please define a user model that extends Softwear::Auth::Model."
29
33
  end
30
34
  Softwear::Auth::Model.descendants.first
@@ -1,5 +1,5 @@
1
1
  module Softwear
2
2
  module Lib
3
- VERSION = "1.7.10"
3
+ VERSION = "1.7.11"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: softwear-lib
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.7.10
4
+ version: 1.7.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nigel Baillie