dynamic_migrations 3.3.0 → 3.3.1

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: d3402241c1537169c438a53ccadd5bc53c048479d75164afe5ec7659bc8f65c3
4
- data.tar.gz: 0dd0e31a82d757ee980b12c51f8baff81cc9a698308be775a2112bc89fa75fc3
3
+ metadata.gz: 3917e377fb83c0bf7d8d836521935e6fecb298d1fea691bef33b212577f78801
4
+ data.tar.gz: 54c2c5ebc5c685029806cc2ecc99aea2871bf3a480fe245041594fe616362de8
5
5
  SHA512:
6
- metadata.gz: 27fd59935f7d85a81fde4ce74899490917396d8598be9f3a23c8fb5b59a49f9049c85a703ec50d3e9b4040db6ce0acb72ecfa579eb2304bf7d8a79a17ebbccda
7
- data.tar.gz: 043f54479dfbe7078755a4a258f7ff8a7d0d6fc12208e6849f5a452b473fc28fd0f04c612b9af959f0c69d1b230107a90409b122dcf0e92f33cc32ea1067f716
6
+ metadata.gz: 18028c2423770216cb7b2121e626d361b4c9bd8943b17b28903221e0a05e63cb2b9ade9d59b23b4168a995d8e2d35b3ca9476a6f94f6b13980ef2931c7aa8885
7
+ data.tar.gz: d2591dc1c9cf267efc8cf038dcef0a80ecd19eb0981dde81ae5fc68c853125ba805d7a2716123794843452fdc1eafe9dc7a9a1c34a09f71739e3aebd1b4579ff
data/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ ## [3.3.1](https://github.com/craigulliott/dynamic_migrations/compare/v3.3.0...v3.3.1) (2023-08-18)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * automatically stripping whitespace from trigger parameters and conditions ([be229be](https://github.com/craigulliott/dynamic_migrations/commit/be229be3e3e6c416edfe4e4b0946fda5f520844a))
9
+
3
10
  ## [3.3.0](https://github.com/craigulliott/dynamic_migrations/compare/v3.2.2...v3.3.0) (2023-08-18)
4
11
 
5
12
 
@@ -86,12 +86,12 @@ module DynamicMigrations
86
86
  unless action_condition.nil? || action_condition.is_a?(String)
87
87
  raise ExpectedStringError, action_condition
88
88
  end
89
- @action_condition = action_condition
89
+ @action_condition = action_condition&.strip
90
90
 
91
91
  unless parameters.nil? || (parameters.is_a?(String) && parameters[/\A'[\w\d_ -]+'(, ?'[\w\d_ -]+')*\z/])
92
92
  raise UnexpectedParametersError, "unexpected parameters `#{parameters}`, currently only a comma seeparated list of strings is supported"
93
93
  end
94
- @parameters = parameters
94
+ @parameters = parameters&.strip
95
95
 
96
96
  unless [:row, :statement].include? action_orientation
97
97
  raise UnexpectedActionOrientationError, action_orientation
@@ -152,14 +152,14 @@ module DynamicMigrations
152
152
  unless new_action_condition.nil? || new_action_condition.is_a?(String)
153
153
  raise ExpectedStringError, new_action_condition
154
154
  end
155
- @action_condition = new_action_condition
155
+ @action_condition = new_action_condition&.strip
156
156
  end
157
157
 
158
158
  def parameters= new_parameters
159
159
  unless new_parameters.nil? || new_parameters.is_a?(String)
160
160
  raise ExpectedStringError, new_parameters
161
161
  end
162
- @parameters = new_parameters
162
+ @parameters = new_parameters&.strip
163
163
  end
164
164
 
165
165
  # return true if this has a description, otherwise false
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module DynamicMigrations
4
- VERSION = "3.3.0"
4
+ VERSION = "3.3.1"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dynamic_migrations
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.3.0
4
+ version: 3.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Craig Ulliott