mv-sqlite 2.2.5 → 2.2.6
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 +4 -4
- data/README.md +36 -32
- 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: d9c8ef60989a3f9238ad30e8fd541305a84a6a1d
|
4
|
+
data.tar.gz: c5b3d80d61c0a47e3cc6e5319fc16313cb744bc0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 94f3566e45719540fc82587578c304027817e61ca823a83a787971e26eb5e4b74a7d1effedd3f69f6cfc2abce8bd1f5ee4d626782c88e950064399af3fbcc699
|
7
|
+
data.tar.gz: 7a1a9666845ca35dad86423ada06f6a29061aefd2203d37ff41b576b128dd917f09e8898e6aaee8340ee7ab1cbf0a2550ebdf33656c7f73fbcd890f8e3fc120e
|
data/README.md
CHANGED
@@ -192,20 +192,20 @@ Define validations directly in DB as SQLite constraints and integrate them into
|
|
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` - text of the error message that will be shown if constraint violated. 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
|
|
@@ -277,7 +277,7 @@ Define validations directly in DB as SQLite constraints and integrate them into
|
|
277
277
|
Options:
|
278
278
|
|
279
279
|
* `in` - range or array that column value should be contained in.
|
280
|
-
* `message` - message that
|
280
|
+
* `message` - text of the error message that will be shown if constraint violated. Ignored unless `:as == :trigger`
|
281
281
|
* `on` - validation event. Possible values: `[:save, :update, :create]`. Default value: :save
|
282
282
|
* `create_tigger_name` - Name of the 'before insert' trigger
|
283
283
|
* `update_tigger_name` - Name of the 'before update' trigger
|
@@ -357,7 +357,7 @@ Define validations directly in DB as SQLite constraints and integrate them into
|
|
357
357
|
Options:
|
358
358
|
|
359
359
|
* `in` - range or array that column value should NOT be contained in.
|
360
|
-
* `message` - message that
|
360
|
+
* `message` - text of the error message that will be shown if constraint violated. Ignored unless `:as == :trigger`
|
361
361
|
* `on` - validation event. Possible values: `[:save, :update, :create]`. Default value: `:save`
|
362
362
|
* `create_tigger_name` - Name of the 'before insert' trigger
|
363
363
|
* `update_tigger_name` - Name of the 'before update' trigger
|
@@ -444,13 +444,13 @@ Define validations directly in DB as SQLite constraints and integrate them into
|
|
444
444
|
|
445
445
|
Options:
|
446
446
|
|
447
|
-
*
|
448
|
-
*
|
449
|
-
*
|
450
|
-
*
|
451
|
-
*
|
452
|
-
*
|
453
|
-
*
|
447
|
+
* `message` - text of the error message that will be shown if constraint violated. Ignored unless `:as == :trigger`
|
448
|
+
* `on` - validation event. Possible values: `[:save, :update, :create]`. Default value: `:save`
|
449
|
+
* `create_tigger_name` - Name of the 'before insert' trigger
|
450
|
+
* `update_tigger_name` - Name of the 'before update' trigger
|
451
|
+
* `allow_nil` - ignore validation for `nil` values. Default value: `false`
|
452
|
+
* `allow_blank` - ignore validation for blank values. Default value: `false`
|
453
|
+
* `as` - defines the way how constraint will be implemented. Possible values: `[:trigger]`
|
454
454
|
|
455
455
|
### absence
|
456
456
|
|
@@ -531,7 +531,7 @@ Define validations directly in DB as SQLite constraints and integrate them into
|
|
531
531
|
|
532
532
|
Options:
|
533
533
|
|
534
|
-
* `message` - message that
|
534
|
+
* `message` - text of the error message that will be shown if constraint violated. 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]`
|
@@ -625,7 +625,7 @@ Define validations directly in DB as SQLite constraints and integrate them into
|
|
625
625
|
Options:
|
626
626
|
|
627
627
|
* `with` - regular expression that column value should be matched to
|
628
|
-
* `message` - message that
|
628
|
+
* `message` - text of the error message that will be shown if constraint violated. Ignored unless `:as == :trigger`
|
629
629
|
* `on` - validation event. Possible values `[:save, :update, :create]`. Ignored unless `:as == :trigger`. Default value: `:save`
|
630
630
|
* `create_tigger_name` - Name of the 'before insert' trigger that will be created if `:as == :trigger` && `:on` in `[:save, :create]`
|
631
631
|
* `update_tigger_name` - Name of the 'before update' trigger that will be created if `:as == :trigger` && `:on` in `[:save, :update]`
|
@@ -724,13 +724,13 @@ Define validations directly in DB as SQLite constraints and integrate them into
|
|
724
724
|
|
725
725
|
Options:
|
726
726
|
|
727
|
-
*
|
728
|
-
|
729
|
-
*
|
730
|
-
*
|
731
|
-
*
|
732
|
-
*
|
733
|
-
*
|
727
|
+
* `message` - text of the error message that will be shown if constraint violated. Ignored unless `:as == :trigger`
|
728
|
+
* `on` validation event. Possible values `[:save, :update, :create]`. Default value: `:save`
|
729
|
+
* `create_tigger_name` - name of the 'before insert' trigger
|
730
|
+
* `update_tigger_name` - name of the 'before update' trigger
|
731
|
+
* `allow_nil` - ignore validation for nil values. Default value: false
|
732
|
+
* `allow_blank` - ignore validation for blank values. Default value: `false`
|
733
|
+
* `as` - defines the way how constraint will be implemented. Possible values: `[:trigger]`
|
734
734
|
|
735
735
|
## Version History
|
736
736
|
|
@@ -766,6 +766,10 @@ Define validations directly in DB as SQLite constraints and integrate them into
|
|
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-sqlite
|
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
|