mv-mysql 2.2.5 → 2.2.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +52 -48
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: afbe7a27964f85426d4c85282ec1e01636307b70
|
4
|
+
data.tar.gz: 40f7b7ab3e4974c5e5031540ac3f83df5bcb3f56
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 54dfbda9cd7ac42a265b57c9b64f986dd993f33054e8a7d7d8f9ec8c9e0bc27eeb3555adb1a7c815a4a8b0da198ac60d026164fcd907959a39770745a79229d6
|
7
|
+
data.tar.gz: 276a45c459cece354cc632ad2bd7cc4ab086cbd773c036d3ce72e35c575a23c71bc5bc5ac17452bc7555120df5da8504e8968ff84ad04ae9cd1628562d84ea06
|
data/README.md
CHANGED
@@ -98,14 +98,14 @@ Define validations directly in DB as MySQL constraints and integrate them into y
|
|
98
98
|
|
99
99
|
Options:
|
100
100
|
|
101
|
-
*
|
102
|
-
*
|
103
|
-
*
|
104
|
-
*
|
105
|
-
*
|
106
|
-
*
|
107
|
-
*
|
108
|
-
*
|
101
|
+
* `message` - text of the error message that will be shown if constraint violated. Ignored unless `:as == :trigger`
|
102
|
+
* `index_name` - name of the index that will be created for validator. Ignored unless `:as == :index`
|
103
|
+
* `on` - validation event. Possible values `[:save, :update, :create]`. Ignored unless `:as == :trigger`. Default value `:save`
|
104
|
+
* `create_tigger_name` - name of the 'before insert' trigger that will be created if `:as == :trigger` && `:on` in `[:save, :create]`
|
105
|
+
* `update_tigger_name` - name of the 'before update' trigger that will be created if `:as == :trigger` && `:on` in `[:save, :update]`
|
106
|
+
* `allow_nil` - ignore validation for nil values. Ignored unless `:as == :trigger`. Default value: `false`
|
107
|
+
* `allow_blank` - ignore validation for blank values. Ignored unless `:as == :trigger`. Default value: `false`
|
108
|
+
* `as` - defines the way how constraint will be implemented. Possible values: `[:index, :trigger]`. Default value: `:index`
|
109
109
|
|
110
110
|
### length
|
111
111
|
|
@@ -192,20 +192,20 @@ Define validations directly in DB as MySQL constraints and integrate them into y
|
|
192
192
|
|
193
193
|
Options:
|
194
194
|
|
195
|
-
*
|
196
|
-
*
|
197
|
-
*
|
198
|
-
*
|
199
|
-
*
|
200
|
-
*
|
201
|
-
*
|
202
|
-
*
|
203
|
-
*
|
204
|
-
*
|
205
|
-
*
|
206
|
-
*
|
207
|
-
*
|
208
|
-
*
|
195
|
+
* `in`- range or array that length of the value should be contained in.
|
196
|
+
* `within` - synonym of `:in`
|
197
|
+
* `is`- exact length of the value
|
198
|
+
* `maximum`- maximum allowed length
|
199
|
+
* `minimum`- minimum allowed length
|
200
|
+
* `message`- message that should be shown if validation failed and specific message is not defined. Ignored unless `:as == :trigger`
|
201
|
+
* `too_long`- message that will be shown if value longer than allowed. Ignored unless maximum value is defined
|
202
|
+
* `too_short`- message that will be shown if value shorter than allowed. Ignored unless minimum value is defined
|
203
|
+
* `on`- validation event. Possible values `[:save, :update, :create]`. Default value: `:save`
|
204
|
+
* `create_tigger_name`- Name of the 'before insert' trigger
|
205
|
+
* `update_tigger_name`- Name of the 'before update' trigger
|
206
|
+
* `allow_nil`- ignore validation for nil values. Default value: `false`
|
207
|
+
* `allow_blank`- ignore validation for blank values. Default value: `false`
|
208
|
+
* `as`- defines the way how constraint will be implemented. Possible values: `[:trigger]`
|
209
209
|
|
210
210
|
### inclusion
|
211
211
|
|
@@ -276,14 +276,14 @@ Define validations directly in DB as MySQL constraints and integrate them into y
|
|
276
276
|
|
277
277
|
Options:
|
278
278
|
|
279
|
-
*
|
280
|
-
*
|
281
|
-
*
|
282
|
-
*
|
283
|
-
*
|
284
|
-
*
|
285
|
-
*
|
286
|
-
*
|
279
|
+
* `in` - range or array that column value should be contained in.
|
280
|
+
* `message` - that should be shown if validation failed. Ignored unless `:as == :trigger`
|
281
|
+
* `on` - validation event. Possible values `[:save, :update, :create]`. Default value: `:save`
|
282
|
+
* `create_tigger_name` - Name of the 'before insert' trigger
|
283
|
+
* `update_tigger_name` - Name of the 'before update' trigger
|
284
|
+
* `allow_nil` - ignore validation for nil values. Default value: `false`
|
285
|
+
* `allow_blank` - ignore validation for blank values. Default value: `false`
|
286
|
+
* `as` - defines the way how constraint will be implemented. Possible values: `[:trigger]`
|
287
287
|
|
288
288
|
|
289
289
|
### exclusion
|
@@ -356,14 +356,14 @@ Define validations directly in DB as MySQL constraints and integrate them into y
|
|
356
356
|
|
357
357
|
Options:
|
358
358
|
|
359
|
-
*
|
360
|
-
message
|
361
|
-
*
|
362
|
-
|
363
|
-
|
364
|
-
|
365
|
-
|
366
|
-
|
359
|
+
* `in` - range or array that column value should NOT be contained in.
|
360
|
+
* `message` - message that should be shown if validation failed. Ignored unless `:as == :trigger`
|
361
|
+
* `on` - validation event. Possible values `[:save, :update, :create]`. Default value: `:save`
|
362
|
+
* `create_tigger_name` - Name of the 'before insert' trigger
|
363
|
+
* `update_tigger_name` - Name of the 'before update' trigger
|
364
|
+
* `allow_nil` - ignore validation for nil values. Default value: `false`
|
365
|
+
* `allow_blank` - ignore validation for blank values. Default value: `false`
|
366
|
+
* `as` - defines the way how constraint will be implemented. Possible values: `[:trigger]`
|
367
367
|
|
368
368
|
### presence
|
369
369
|
|
@@ -444,7 +444,7 @@ Define validations directly in DB as MySQL constraints and integrate them into y
|
|
444
444
|
|
445
445
|
Options:
|
446
446
|
|
447
|
-
* `message` - message that should be shown if validation failed
|
447
|
+
* `message` - message that should be shown if validation failed. Ignored unless `:as == :trigger`
|
448
448
|
* `on` - validation event. Possible values `[:save, :update, :create]`. Ignored unless `:as == :trigger`. Default value: `:save`
|
449
449
|
* `create_tigger_name` - Name of the 'before insert' trigger that will be created if `:as == :trigger` && `:on` in `[:save, :create]`
|
450
450
|
* `update_tigger_name` - Name of the 'before update' trigger that will be created if `:as == :trigger` && `:on` in `[:save, :update]`
|
@@ -531,7 +531,7 @@ Define validations directly in DB as MySQL constraints and integrate them into y
|
|
531
531
|
|
532
532
|
Options:
|
533
533
|
|
534
|
-
* `message` - message that should be shown if validation failed
|
534
|
+
* `message` - message that should be shown if validation failed. Ignored unless `:as == :trigger`
|
535
535
|
* `on` - validation event. Possible values `[:save, :update, :create]`. Ignored unless `:as == :trigger`. Default value: `:save`
|
536
536
|
* `create_tigger_name` - Name of the 'before insert' trigger that will be created if `:as == :trigger` && `:on` in `[:save, :create]`
|
537
537
|
* `update_tigger_name` - Name of the 'before update' trigger that will be created if `:as == :trigger` && `:on` in `[:save, :update]`
|
@@ -624,7 +624,7 @@ Define validations directly in DB as MySQL constraints and integrate them into y
|
|
624
624
|
Options:
|
625
625
|
|
626
626
|
* `with` - regular expression that column value should be matched to
|
627
|
-
* `message` - message that should be shown if validation failed
|
627
|
+
* `message` - message that should be shown if validation failed. Ignored unless `:as == :trigger`
|
628
628
|
* `on` - validation event. Possible values `[:save, :update, :create]`. Ignored unless `:as == :trigger`. Default value: `:save`
|
629
629
|
* `create_tigger_name` - Name of the 'before insert' trigger that will be created if `:as == :trigger` && `:on` in `[:save, :create]`
|
630
630
|
* `update_tigger_name` - Name of the 'before update' trigger that will be created if `:as == :trigger` && `:on` in `[:save, :update]`
|
@@ -723,13 +723,13 @@ Define validations directly in DB as MySQL constraints and integrate them into y
|
|
723
723
|
|
724
724
|
Options:
|
725
725
|
|
726
|
-
*
|
727
|
-
|
728
|
-
*
|
729
|
-
*
|
730
|
-
*
|
731
|
-
*
|
732
|
-
*
|
726
|
+
* `message` - message that should be shown if validation failed. Ignored unless `:as == :trigger`
|
727
|
+
* `on` validation event. Possible values `[:save, :update, :create]`. Default value: `:save`
|
728
|
+
* `create_tigger_name` - name of the 'before insert' trigger
|
729
|
+
* `update_tigger_name` - name of the 'before update' trigger
|
730
|
+
* `allow_nil` - ignore validation for nil values. Default value: false
|
731
|
+
* `allow_blank` - ignore validation for blank values. Default value: `false`
|
732
|
+
* `as` - defines the way how constraint will be implemented. Possible values: `[:trigger]`
|
733
733
|
|
734
734
|
## Version History
|
735
735
|
|
@@ -766,6 +766,10 @@ Define validations directly in DB as MySQL constraints and integrate them into y
|
|
766
766
|
|
767
767
|
* Suppress exception while running db:schema:load
|
768
768
|
|
769
|
+
**(2.2.6)** (12 Sep, 2016)
|
770
|
+
|
771
|
+
* Escape single quotes in the custom validation statement body
|
772
|
+
|
769
773
|
## Contributing
|
770
774
|
|
771
775
|
* Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mv-mysql
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.2.
|
4
|
+
version: 2.2.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Valeriy Prokopchuk
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-09-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: railties
|
@@ -44,14 +44,14 @@ dependencies:
|
|
44
44
|
requirements:
|
45
45
|
- - ~>
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: 2.2.
|
47
|
+
version: 2.2.4
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - ~>
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: 2.2.
|
54
|
+
version: 2.2.4
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: jeweler
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|