doorkeeper_hub 0.2.2 → 0.2.3

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
  SHA256:
3
- metadata.gz: 8ec29e6a4d197f1bb775a07917ddce6483b8d440407efc3943a88094674b196e
4
- data.tar.gz: 9f46b9fc9f33fe626b9681e777f5bae9af7f0114c7d4adbb3f7d61e3d66af281
3
+ metadata.gz: 4a92b9ce77e76eac7bddd6ea5c63bb69ffbc0d40b88b905d4e9a74e57262bb6f
4
+ data.tar.gz: 3c7abbc39aa7ec5dec30c2ed8be3b1f826e40c392aebe2ff56c3353339a042f5
5
5
  SHA512:
6
- metadata.gz: 370c034a96912cc7cdd12f45047fec3e305d8ef0d882fddadc80199c9439a044c7ced3c0d2fc0f91c92215794012491f87409da72ef1aa1c1f243d7c4d5ffa3b
7
- data.tar.gz: a6c1cffa66d832ff79f39628b2f0320356bc33f9be07c58b5f53159f8804f506eba12bfe4cc7a07b38fea4863371ae6fd30361f0dabd8cf7d4223746fce9af96
6
+ metadata.gz: a98f407ed67af04967e5797f55f0f9439d7788f5017422c626a6d2bf1676ade3f00f1f78a355787be3caf75042823513e434ac2faa38222d1dbd73d5ed05a366
7
+ data.tar.gz: d561b05c729377e55b2abaa0a7b4b7489bfe1e8e5039f589a8b8faf7be272912e1cf84eb5ee0e88f006a4f873dd87322c8cb25b0ca6f2443e1470b61f3146094
@@ -8,7 +8,7 @@ module DoorkeeperHub
8
8
 
9
9
  def initialize
10
10
  self.service_token = ENV["SERVICE_TOKEN"]
11
- self.user_model = ::User
11
+ self.user_model = Object.const_defined?(User) ? ::User : nil
12
12
  self.doorkeeper_token_name = :doorkeeper_token
13
13
  self.client_mode = false
14
14
  self.scope_model = Object.const_defined?(Company) ? ::Company : nil
@@ -1,3 +1,3 @@
1
1
  module DoorkeeperHub
2
- VERSION = "0.2.2"
2
+ VERSION = "0.2.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: doorkeeper_hub
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jimmy Fan