pg_spec_helper 1.7.1 → 1.8.0

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: 17fc16c3791eb6ee55c8e8e80d2ac6c4c2e79fd8b126d114463c50d38bb38bd2
4
- data.tar.gz: 1982015231eec0884fc3bd7f5eeeae18b401f02140fa9aaafaa874a78bd602fb
3
+ metadata.gz: fd8f4a7b6599921cd00cd8fbec742502611146587308599490f6449fcf8a069c
4
+ data.tar.gz: 5cbaaf930623821b7a4d40e462825345d132aeb79fe3c004bff4755c6ec761d9
5
5
  SHA512:
6
- metadata.gz: 28de3b1fe55f219949ffb1703c24b20d5de0157a8c44ff4bb749e176053e0d01cdd7ae5f2e75996bd457bb8121c0dd61db0f8ed4a69d1962758b8e6ed376c162
7
- data.tar.gz: 17b7496d0ce6bad41fdeeb7fed9edbc1c2ec9469a31788f3709ef902711a59e1dd7a6a07578b5af76c93262ff310ae6ef05f9741745f1db26d8b536d70e56f93
6
+ metadata.gz: 0ce017210958d7e1a1874f302148f39dc09e8f77bb74d0a696f445eff89117e6825547bc4ec2400eb8c5b569be0c46b77c1896d833867f326dd4c232bff16811
7
+ data.tar.gz: 7e56cc69b7ff661623f2e206cccb40e2fdf7d1e25ee9ab9104a5c88c2d9e8ab148ed74e3d89599b2b0f420430d4e4c0d025204186a568d8b33bc4890cec518c9
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  # Changelog
2
2
 
3
- ## [1.7.1](https://github.com/craigulliott/pg_spec_helper/compare/v1.7.0...v1.7.1) (2023-08-06)
3
+ ## [1.8.0](https://github.com/craigulliott/pg_spec_helper/compare/v1.7.0...v1.8.0) (2023-08-06)
4
+
5
+
6
+ ### Features
7
+
8
+ * 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))
4
9
 
5
10
 
6
11
  ### Bug Fixes
@@ -16,7 +16,7 @@ class PGSpecHelper
16
16
  end
17
17
 
18
18
  # create a postgres trigger
19
- def create_trigger schema_name, table_name, name, action_timing:, event_manipulation:, action_orientation:, routine_schema:, routine_name:, action_condition: nil, action_reference_old_table: nil, action_reference_new_table: nil
19
+ def create_trigger schema_name, table_name, name, action_timing:, event_manipulation:, action_orientation:, function_schema:, function_name:, action_condition: nil, action_reference_old_table: nil, action_reference_new_table: nil
20
20
  unless [:insert, :delete, :update].include? event_manipulation
21
21
  raise UnexpectedEventManipulationError, event_manipulation
22
22
  end
@@ -53,7 +53,7 @@ class PGSpecHelper
53
53
  #{timing_sql} ON #{schema_name}.#{table_name} #{temp_tables_sql}
54
54
  FOR EACH #{action_orientation}
55
55
  #{condition_sql}
56
- EXECUTE PROCEDURE #{routine_schema}.#{routine_name}();
56
+ EXECUTE FUNCTION #{function_schema}.#{function_name}();
57
57
  SQL
58
58
  end
59
59
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  class PGSpecHelper
4
- VERSION = "1.7.1"
4
+ VERSION = "1.8.0"
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.1
4
+ version: 1.8.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Craig Ulliott