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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3917e377fb83c0bf7d8d836521935e6fecb298d1fea691bef33b212577f78801
|
4
|
+
data.tar.gz: 54c2c5ebc5c685029806cc2ecc99aea2871bf3a480fe245041594fe616362de8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|