uc3-dmp-rds 0.0.21 → 0.0.23

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: 556a5c27b265c712a98fc858b989731699df14085366ed2c6d34ab2cab96764f
4
- data.tar.gz: 97c6eca72baa2f61d14af830b27e2f712bd345f8987b14e806413c3d57aa8e7d
3
+ metadata.gz: fc1111fe5036e396ca2a955800881a62ba4b9dcd4cc33578eb0f6594dfacb553
4
+ data.tar.gz: c561b948a42adcfcb581e75e1f06a9c8c95d91383d33d6f229ca6d51b2ed4e83
5
5
  SHA512:
6
- metadata.gz: 3abd42f8fa4240b227fada42f88ea80b334cba106038ec0b188f59a0eae1846b3be21290bfb99a2279eb53ae09dbb59f9fb84a34a8a4d9a84ced15e3136b7213
7
- data.tar.gz: 25ff9c28b1c097aacefa95692b0a4614ee9c7045c001b71e2330990e371ec6649be8cd9389387da90a7b28832870a9ac1646c571d737279e7eda3d0408c49170
6
+ metadata.gz: dc022d1c75b71d36ec1e3bfd4e3371feace0cf7d5bdc8f100a6d8a4ddb0528350ab5fccd065d25a0fc1735e6f86ba4997a2ffff1878e7aecd8f019f7955d033b
7
+ data.tar.gz: 2cb5201da0fc67a3ab122c6f39598eaa952c37bbe64cd2daab37250470625009b69c3043744d5ffc96069339ff34b336d11c17a5298a33229fbbed82021ba466
@@ -47,8 +47,7 @@ module Uc3DmpRds
47
47
  # rubocop:enable Metrics/AbcSize
48
48
 
49
49
  # Execute the specified query using ActiveRecord's helpers to sanitize the input
50
- def execute_query(user:, sql:, **params)
51
- raise AdapterError, MSG_UNAUTHORIZED unless user.is_a?(User)
50
+ def execute_query(sql:, **params)
52
51
  return [] unless sql.is_a?(String) && !sql.strip.empty? && (params.nil? || params.is_a?(Hash))
53
52
  # Verify that all of the kewords are accounted for and that values were supplied
54
53
  raise AdapterError, MSG_KEYWORDS_INVALID unless _verify_params(sql: sql, params: params)
@@ -58,7 +58,7 @@ module Uc3DmpRds
58
58
  return {} if user.nil? || user['email'].nil?
59
59
 
60
60
  hash = {
61
- id: user.id,
61
+ id: user['id'],
62
62
  name: [user['surname'], user['firstname']].join(', '),
63
63
  mbox: user['email'],
64
64
  admin: !user['perm'].nil?,
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Uc3DmpRds
4
- VERSION = '0.0.21'
4
+ VERSION = '0.0.23'
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.21
4
+ version: 0.0.23
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-26 00:00:00.000000000 Z
11
+ date: 2023-05-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: active_record_simple_execute