pg_spec_helper 1.8.2 → 1.8.4

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: 2ebec94524d3957bc5a567455f68ca1909a408b959375b48c6e5437b2477d51c
4
- data.tar.gz: 267491d27ba76d9e38a07243c90e1936b9adcc8a8798ac7b6db27840998f2428
3
+ metadata.gz: 8732b097aad7c3e1dec96adb1ed3b4e18785751fef23248383780e19980fc4d1
4
+ data.tar.gz: e33a899e37af66b3b91fd49fbeb948ba64e2e5e1d921201d75094f5de4810282
5
5
  SHA512:
6
- metadata.gz: da90c294fd7579922d3943d5790ea2198f2675603336885a85691a15a5adcd531170820f84c3c880a8a5f6516ac9f9c08340ffca292bd54f36415756708fbe7c
7
- data.tar.gz: e2e585f482c3b99a574f4f1e93bca15580a581b0e6ab64d4c6929954f1b606acd528658a62be527e3e0ce5987635a98a1a5a656ccb9e11e82f9fc5975ef89df6
6
+ metadata.gz: d4b0f4cbdce40c653211937809b9a0aa0dcc9650bbc278938ed1edaa0616cf0257f5e057784cf8940bd3bb749def9dfaa51dc33b1977b182fc4ea56c349881c7
7
+ data.tar.gz: aa85da46f45732fb0b33b028d5348064f65cde89f42383adcb4bcea12b1af3a5066c837de8bf98690c4c0d2901d9a5e6eb42ef9a3e74af5c949e00e7495ac984
data/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # Changelog
2
2
 
3
+ ## [1.8.4](https://github.com/craigulliott/pg_spec_helper/compare/v1.8.3...v1.8.4) (2023-08-18)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * function definitions no longer presume/add their own BEGIN and END, which now allows providing custom SQL such as DEFINE statements ([2ec7d00](https://github.com/craigulliott/pg_spec_helper/commit/2ec7d00bd2ad539860384981586b0bcee98d56a7))
9
+
10
+ ## [1.8.3](https://github.com/craigulliott/pg_spec_helper/compare/v1.8.2...v1.8.3) (2023-08-06)
11
+
12
+
13
+ ### Bug Fixes
14
+
15
+ * stripping whitespace off the end of the method definition ([df63ae9](https://github.com/craigulliott/pg_spec_helper/commit/df63ae96faf090b98220a9e64d87dbaaf89135d0))
16
+
3
17
  ## [1.8.2](https://github.com/craigulliott/pg_spec_helper/compare/v1.8.1...v1.8.2) (2023-08-06)
4
18
 
5
19
 
@@ -4,11 +4,9 @@ class PGSpecHelper
4
4
  module Functions
5
5
  # create a function
6
6
  def create_function schema_name, function_name, function_definition
7
- connection.exec <<~SQL.strip
8
- CREATE FUNCTION #{schema_name}.#{function_name}() returns trigger language plpgsql AS $$
9
- BEGIN #{function_definition.strip};
10
- RETURN NEW;
11
- END $$;
7
+ connection.exec <<~SQL
8
+ CREATE FUNCTION #{schema_name}.#{function_name}() returns trigger language plpgsql AS
9
+ $$#{function_definition.strip}$$;
12
10
  SQL
13
11
  end
14
12
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  class PGSpecHelper
4
- VERSION = "1.8.2"
4
+ VERSION = "1.8.4"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pg_spec_helper
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.8.2
4
+ version: 1.8.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Craig Ulliott
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-08-06 00:00:00.000000000 Z
11
+ date: 2023-08-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pg