uc3-dmp-rds 0.0.22 → 0.0.24

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: f01cded7a449d6914fdcb27114cc5538954a7a7befcaad5f0233d4bb9c490430
4
- data.tar.gz: da26678250bac51789568e9a7dc08cdb02eb957d2c25a733790470ffbb0e8ee3
3
+ metadata.gz: 604c79df5be49af7962a127336f3218c425eec327437a457856a485c23a552ce
4
+ data.tar.gz: d44673cf381d1c9786eace556ca14a38baa7f721ad3219eec5402e6950565fa0
5
5
  SHA512:
6
- metadata.gz: 3d468a1782f1463626d538c43165b89fe2894fb7c0891ccc211ae9309fc3494ba272e71d4604d6f4b74a3deb6387a9138821a653a95b96e686f7ec40164882f1
7
- data.tar.gz: b65f521adda86f98a2656eae5dcbbfc14ed7407d9d696c419dd6f485a76afb9e7388f34b2a65815f94fc4910b4e6ac4aeefeed404aaa512cb5f48b51f9d73693
6
+ metadata.gz: 31e6c505b927e29dde9fb672c2a5ac7408eff714595ad8e96c510e016e8493d7f1f59cd9140de6ffea8274ef103cea2121f295fa5ff6cdd5c90e6f40ea3611e9
7
+ data.tar.gz: b65f2969d658f2fdacf796f6f4c009153271900ccd3bed34e7c26c604ad69b1af44435f0f6caa39b5f2c72ac36033786380a6ce3c1e264ac2f759cfa3ee449de
@@ -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)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Uc3DmpRds
4
- VERSION = '0.0.22'
4
+ VERSION = '0.0.24'
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.22
4
+ version: 0.0.24
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-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: active_record_simple_execute