softwear-lib 1.7.9 → 1.7.10

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: b2c113ae34ddafade26b0acb1ff0189cc3f16eef
4
- data.tar.gz: 5016db739c40085ca0615fcf5c3186d3933af51c
3
+ metadata.gz: f0c5c0543af07abe43b8095e51b9d17761789eec
4
+ data.tar.gz: 0780acb391b221284643a8cf0b274b4b300bebae
5
5
  SHA512:
6
- metadata.gz: ede3375068855d66c11aae640121c30b9204b40b9403bd22c6ca451d9f1cdc6ec3b1b2a5a209cc122f505303200d7ec7adbc531afabcd071c277401ad3fc2b08
7
- data.tar.gz: e5083bcc8a87b458550978b4c4858a629baec21246556f844da8f7e7809bc1a0a6f556b8f16355fc1ddc2d7a7ff367da8bf424319556820e76ae9f634790d4d1
6
+ metadata.gz: d7d1c3afc5cd9f2b93025562b5e7cf541eaa13cfa5f74e391dc978c6282c5fb0a7d8d694cc8406bdb8524672786a7ffc6404c6e2a4b597c404628f0197e505a2
7
+ data.tar.gz: 94caf6779d805755ad0ae40a10d42a9b459a4af1f1ef64f9aa0b74b47bc6f851369c087427e58ddca32143b7d5283e6dc0a7a372145c38bc0713c28f9d76be42
@@ -23,6 +23,8 @@ module Softwear
23
23
  if Softwear::Auth::Model.descendants.size > 1
24
24
  raise "More than one descendent of Softwear::Auth::Model is not supported."
25
25
  elsif Softwear::Auth::Model.descendants.size == 0
26
+ # Assume there is a "User" model
27
+ return User if defined?(User) && User.ancestors.include?(Softwear::Auth::Model)
26
28
  raise "Please define a user model that extends Softwear::Auth::Model."
27
29
  end
28
30
  Softwear::Auth::Model.descendants.first
@@ -1,5 +1,5 @@
1
1
  module Softwear
2
2
  module Lib
3
- VERSION = "1.7.9"
3
+ VERSION = "1.7.10"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: softwear-lib
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.7.9
4
+ version: 1.7.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nigel Baillie
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-03-15 00:00:00.000000000 Z
11
+ date: 2016-03-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler