pg_spec_helper 1.7.2 → 1.8.1

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: 42c708c2bff866bb4100eaf6b9593e758b6b67b4173ba0640b82c77982abe69b
4
- data.tar.gz: 9bbf51dfb4d77682e5f03caa5d847f52aa5cb48462a5e3e3a66353e928013e6f
3
+ metadata.gz: 011ca1cc2f94e7166f75d64edb2a18c1251d66da951b0dee3b15960b98cfbb26
4
+ data.tar.gz: cac1093c4e64326f2a0cd145f898a1dd928e62196ee8daef329168d0e248c245
5
5
  SHA512:
6
- metadata.gz: 4ccd6352ca381b3859b8b7df4e4196c22786f2781f47eeed41141a9b7bef79b148a8df898f2c759edb18a0156a3b635275b5aba7161549b263ebc76cb7ae697b
7
- data.tar.gz: 8711223fc8b80e65638a8dc457349d6b485a778284459f3070af753e4ecca0e60ccebe6afd48ef9a3fb1fcd1ccd7d2af2d2733b5245a2df2eb0d6f61ebd18174
6
+ metadata.gz: 0d4faaa80024a38a4c70316d69fe4afc500c43cda4f74f03b89ecb5bed9dd402029fb782275f148d89365f872531c2e7740a196f054f1eb97ee4046fae0a2d22
7
+ data.tar.gz: a4bfc6c9583c59c071303add4f443d671dc80bb0c5f7a16597b856344938593fa6c14c439815df8273894688cbc041fd5c7de7fac9ac7381bbaadbc9cc7b8ffe
data/CHANGELOG.md CHANGED
@@ -1,13 +1,18 @@
1
1
  # Changelog
2
2
 
3
- ## [1.7.2](https://github.com/craigulliott/pg_spec_helper/compare/v1.7.1...v1.7.2) (2023-08-06)
3
+ ## [1.8.1](https://github.com/craigulliott/pg_spec_helper/compare/v1.8.0...v1.8.1) (2023-08-06)
4
4
 
5
5
 
6
6
  ### Bug Fixes
7
7
 
8
- * using function_* instead of routine_* when dealing with functions, because routine_* implies these could be procedures too ([9c23567](https://github.com/craigulliott/pg_spec_helper/commit/9c2356766ce858d432d1ea32214de767ba6365f5))
8
+ * removing unnecessary line break and white space from function definition ([20f8c53](https://github.com/craigulliott/pg_spec_helper/commit/20f8c539d308bc88fbc04428064febfbbc2c0970))
9
9
 
10
- ## [1.7.1](https://github.com/craigulliott/pg_spec_helper/compare/v1.7.0...v1.7.1) (2023-08-06)
10
+ ## [1.8.0](https://github.com/craigulliott/pg_spec_helper/compare/v1.7.0...v1.8.0) (2023-08-06)
11
+
12
+
13
+ ### Features
14
+
15
+ * using function_* instead of routine_* when dealing with functions, because routine_* implies these could be procedures too ([9c5f0c2](https://github.com/craigulliott/pg_spec_helper/commit/9c5f0c267f377731ed82d764a4f866de0b4525ee))
11
16
 
12
17
 
13
18
  ### Bug Fixes
@@ -6,9 +6,8 @@ class PGSpecHelper
6
6
  def create_function schema_name, function_name, function_definition
7
7
  connection.exec <<~SQL
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.7.2"
4
+ VERSION = "1.8.1"
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.7.2
4
+ version: 1.8.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Craig Ulliott