generated_schema_validations 0.1.0 → 0.1.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 +4 -4
- data/README.md +6 -0
- data/generated_schema_validations.gemspec +1 -1
- data/lib/generated_schema_validations/table.rb +4 -0
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 63b62132a2f9e95998c87df9648aa1e103d10cfd3e8ab0016d474a64c65cd3fc
|
|
4
|
+
data.tar.gz: a4f14187f860964319450915caaa30e47078f2c7b7fdab1c8c86cfc0ee15a602
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: fb10c1c5b07e25ada05295bedc944c361cc62b03191eefb98c70f935bd60524622e1d676de3855d4752d3a60738d68161880755b8845dec9a3b46f9b9c667239
|
|
7
|
+
data.tar.gz: d5695ce02f54f95bc150ddee5c5917232dd7b8f8fc217aed194e5d66669190eaf3e620a38611a9624634b37e9c3f149b0298a6c39aad97b79946bf37e6118e4f
|
data/README.md
CHANGED
|
@@ -93,6 +93,12 @@ validate :stuff, numericality: true
|
|
|
93
93
|
|
|
94
94
|
You can watch changes on `schema_validations.rb` to understand the generated validations.
|
|
95
95
|
|
|
96
|
+
## Changelog
|
|
97
|
+
|
|
98
|
+
### 0.1.1
|
|
99
|
+
|
|
100
|
+
* Add column type `binary`
|
|
101
|
+
|
|
96
102
|
## Contributing
|
|
97
103
|
|
|
98
104
|
Bug reports and pull requests are welcome on GitHub at https://github.com/Lichtbit/generated_schema_validations.
|
|
@@ -86,6 +86,10 @@ class GeneratedSchemaValidations::Table
|
|
|
86
86
|
null_validation(:boolean, name, column_options)
|
|
87
87
|
end
|
|
88
88
|
|
|
89
|
+
def binary(name, column_options = {})
|
|
90
|
+
null_validation(:binary, name, column_options)
|
|
91
|
+
end
|
|
92
|
+
|
|
89
93
|
def string(name, column_options = {})
|
|
90
94
|
text(name, column_options)
|
|
91
95
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: generated_schema_validations
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Georg Limbach
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2022-01-
|
|
11
|
+
date: 2022-01-11 00:00:00.000000000 Z
|
|
12
12
|
dependencies: []
|
|
13
13
|
description: After each migration it generates a file with some validations. Each
|
|
14
14
|
active record should include this file and can uns generated validations.
|
|
@@ -53,7 +53,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
53
53
|
- !ruby/object:Gem::Version
|
|
54
54
|
version: '0'
|
|
55
55
|
requirements: []
|
|
56
|
-
rubygems_version: 3.
|
|
56
|
+
rubygems_version: 3.0.8
|
|
57
57
|
signing_key:
|
|
58
58
|
specification_version: 4
|
|
59
59
|
summary: Generate rails validations from schema.rb file
|