uc3-dmp-rds 0.0.23 → 0.0.25

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: fc1111fe5036e396ca2a955800881a62ba4b9dcd4cc33578eb0f6594dfacb553
4
- data.tar.gz: c561b948a42adcfcb581e75e1f06a9c8c95d91383d33d6f229ca6d51b2ed4e83
3
+ metadata.gz: cd42f3d5944c5a82f29f7280dcb79808fcc6201c857957e6997c5187eda3d34a
4
+ data.tar.gz: dd9efa204770d794fa9e3e62933ae99d67fb922a1d4ba981fb18747557545178
5
5
  SHA512:
6
- metadata.gz: dc022d1c75b71d36ec1e3bfd4e3371feace0cf7d5bdc8f100a6d8a4ddb0528350ab5fccd065d25a0fc1735e6f86ba4997a2ffff1878e7aecd8f019f7955d033b
7
- data.tar.gz: 2cb5201da0fc67a3ab122c6f39598eaa952c37bbe64cd2daab37250470625009b69c3043744d5ffc96069339ff34b336d11c17a5298a33229fbbed82021ba466
6
+ metadata.gz: e6d618ef509262e41e4c3ac3b70d35bad8e56c32ca44fc69a804706822cb129d875e4f4bb3f4c4f554be5c167172edc1ace7ded63ade31f39c3ac87f26dbdafb
7
+ data.tar.gz: 1b037b248507347285533d8a3a9831ad25f3fcd6b20742b6d7596844d40dfeb3834273bb9a630e843f2a025815ec9b3aa603a9ef95681b66fe95cac83bcda613
@@ -37,7 +37,7 @@ module Uc3DmpRds
37
37
 
38
38
  sql = <<~SQL.squish
39
39
  SELECT users.id, users.firstname, users.surname, users.email, users.active, i.value orcid,
40
- orgs.name org_name, ro.name ror_name, ro.ror_id,
40
+ orgs.name org_name, ro.name ror_name, ro.ror_id, users.ui_token,
41
41
  (SELECT perms.name FROM users_perms up LEFT OUTER JOIN perms ON up.perm_id = perms.id
42
42
  WHERE users.id = up.user_id AND perms.name = 'modify_templates') perm
43
43
  FROM users
@@ -64,6 +64,7 @@ module Uc3DmpRds
64
64
  admin: !user['perm'].nil?,
65
65
  active: user.fetch('active', false)
66
66
  }
67
+ hash[:token] = user['ui_token'] unless user['ui_token'].nil?
67
68
  hash[:user_id] = { type: 'orcid', identifier: user['orcid'] } unless user['orcid'].nil?
68
69
  return hash if user['org_name'].nil?
69
70
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Uc3DmpRds
4
- VERSION = '0.0.23'
4
+ VERSION = '0.0.25'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: uc3-dmp-rds
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.23
4
+ version: 0.0.25
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Riley
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-05-30 00:00:00.000000000 Z
11
+ date: 2023-06-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: active_record_simple_execute