pg_spec_helper 1.7.1 → 1.7.2

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: 42c708c2bff866bb4100eaf6b9593e758b6b67b4173ba0640b82c77982abe69b
4
+ data.tar.gz: 9bbf51dfb4d77682e5f03caa5d847f52aa5cb48462a5e3e3a66353e928013e6f
5
5
  SHA512:
6
- metadata.gz: 28de3b1fe55f219949ffb1703c24b20d5de0157a8c44ff4bb749e176053e0d01cdd7ae5f2e75996bd457bb8121c0dd61db0f8ed4a69d1962758b8e6ed376c162
7
- data.tar.gz: 17b7496d0ce6bad41fdeeb7fed9edbc1c2ec9469a31788f3709ef902711a59e1dd7a6a07578b5af76c93262ff310ae6ef05f9741745f1db26d8b536d70e56f93
6
+ metadata.gz: 4ccd6352ca381b3859b8b7df4e4196c22786f2781f47eeed41141a9b7bef79b148a8df898f2c759edb18a0156a3b635275b5aba7161549b263ebc76cb7ae697b
7
+ data.tar.gz: 8711223fc8b80e65638a8dc457349d6b485a778284459f3070af753e4ecca0e60ccebe6afd48ef9a3fb1fcd1ccd7d2af2d2733b5245a2df2eb0d6f61ebd18174
data/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
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)
4
+
5
+
6
+ ### Bug Fixes
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))
9
+
3
10
  ## [1.7.1](https://github.com/craigulliott/pg_spec_helper/compare/v1.7.0...v1.7.1) (2023-08-06)
4
11
 
5
12
 
@@ -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.7.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.7.1
4
+ version: 1.7.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Craig Ulliott