pg_spec_helper 1.7.0 → 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: f2030740ae096125c106b944c0984652488f3b48f811aa5c4a4caa9f972099d6
4
- data.tar.gz: b3e24f7888d0302b98b69aa7b6c2b52db6d4d3708c9cb060c30d5b41d0ab9bb8
3
+ metadata.gz: 42c708c2bff866bb4100eaf6b9593e758b6b67b4173ba0640b82c77982abe69b
4
+ data.tar.gz: 9bbf51dfb4d77682e5f03caa5d847f52aa5cb48462a5e3e3a66353e928013e6f
5
5
  SHA512:
6
- metadata.gz: 3d72899156ddd1196b5e1984c6ec3efb12eb1ea1372efe6975d44f9fb4181c948f65ab6b6b63e0b3cf2dc19743c4c7a14b1bb3057e94a2f424be13b2c3684472
7
- data.tar.gz: c679e87bfd3fcdd08cec7516bf0388d02b159c4641ec023e08d1f1bd1e187726d74182d14f0a8ba15ca718e12ca7de967c0223a8c17fcc991413a9be6b9aa12f
6
+ metadata.gz: 4ccd6352ca381b3859b8b7df4e4196c22786f2781f47eeed41141a9b7bef79b148a8df898f2c759edb18a0156a3b635275b5aba7161549b263ebc76cb7ae697b
7
+ data.tar.gz: 8711223fc8b80e65638a8dc457349d6b485a778284459f3070af753e4ecca0e60ccebe6afd48ef9a3fb1fcd1ccd7d2af2d2733b5245a2df2eb0d6f61ebd18174
data/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
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
+
10
+ ## [1.7.1](https://github.com/craigulliott/pg_spec_helper/compare/v1.7.0...v1.7.1) (2023-08-06)
11
+
12
+
13
+ ### Bug Fixes
14
+
15
+ * adding missing error class ([1810743](https://github.com/craigulliott/pg_spec_helper/commit/181074326fbf63eb27760486b4f18e1ea11c86b9))
16
+
3
17
  ## [1.7.0](https://github.com/craigulliott/pg_spec_helper/compare/v1.6.0...v1.7.0) (2023-08-06)
4
18
 
5
19
 
@@ -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.0"
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.0
4
+ version: 1.7.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Craig Ulliott