pg_spec_helper 1.8.0 → 1.8.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fd8f4a7b6599921cd00cd8fbec742502611146587308599490f6449fcf8a069c
4
- data.tar.gz: 5cbaaf930623821b7a4d40e462825345d132aeb79fe3c004bff4755c6ec761d9
3
+ metadata.gz: 2ebec94524d3957bc5a567455f68ca1909a408b959375b48c6e5437b2477d51c
4
+ data.tar.gz: 267491d27ba76d9e38a07243c90e1936b9adcc8a8798ac7b6db27840998f2428
5
5
  SHA512:
6
- metadata.gz: 0ce017210958d7e1a1874f302148f39dc09e8f77bb74d0a696f445eff89117e6825547bc4ec2400eb8c5b569be0c46b77c1896d833867f326dd4c232bff16811
7
- data.tar.gz: 7e56cc69b7ff661623f2e206cccb40e2fdf7d1e25ee9ab9104a5c88c2d9e8ab148ed74e3d89599b2b0f420430d4e4c0d025204186a568d8b33bc4890cec518c9
6
+ metadata.gz: da90c294fd7579922d3943d5790ea2198f2675603336885a85691a15a5adcd531170820f84c3c880a8a5f6516ac9f9c08340ffca292bd54f36415756708fbe7c
7
+ data.tar.gz: e2e585f482c3b99a574f4f1e93bca15580a581b0e6ab64d4c6929954f1b606acd528658a62be527e3e0ce5987635a98a1a5a656ccb9e11e82f9fc5975ef89df6
data/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # Changelog
2
2
 
3
+ ## [1.8.2](https://github.com/craigulliott/pg_spec_helper/compare/v1.8.1...v1.8.2) (2023-08-06)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * stripping whitespace off the end of the method definition ([027fbc0](https://github.com/craigulliott/pg_spec_helper/commit/027fbc01cc04e79110a97392a6811371c487bab6))
9
+
10
+ ## [1.8.1](https://github.com/craigulliott/pg_spec_helper/compare/v1.8.0...v1.8.1) (2023-08-06)
11
+
12
+
13
+ ### Bug Fixes
14
+
15
+ * removing unnecessary line break and white space from function definition ([20f8c53](https://github.com/craigulliott/pg_spec_helper/commit/20f8c539d308bc88fbc04428064febfbbc2c0970))
16
+
3
17
  ## [1.8.0](https://github.com/craigulliott/pg_spec_helper/compare/v1.7.0...v1.8.0) (2023-08-06)
4
18
 
5
19
 
@@ -4,11 +4,10 @@ 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
7
+ connection.exec <<~SQL.strip
8
8
  CREATE FUNCTION #{schema_name}.#{function_name}() returns trigger language plpgsql AS $$
9
- BEGIN
10
- #{function_definition};
11
- RETURN NEW;
9
+ BEGIN #{function_definition.strip};
10
+ RETURN NEW;
12
11
  END $$;
13
12
  SQL
14
13
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  class PGSpecHelper
4
- VERSION = "1.8.0"
4
+ VERSION = "1.8.2"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pg_spec_helper
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.8.0
4
+ version: 1.8.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Craig Ulliott