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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 977b8c39503dc3cabfad86bc011240a877dfb84c49d12d4f9fe7f643426bbbc0
4
- data.tar.gz: 5a6ab82e347f48f6bb7ff5c0308bbfeec6b9f20414967036a0149d2e56592224
3
+ metadata.gz: 63b62132a2f9e95998c87df9648aa1e103d10cfd3e8ab0016d474a64c65cd3fc
4
+ data.tar.gz: a4f14187f860964319450915caaa30e47078f2c7b7fdab1c8c86cfc0ee15a602
5
5
  SHA512:
6
- metadata.gz: 06345f91aaa7aa5a8d3b797a80bb70c55e58450aad7e1abf38c136373b3c7db3ed184bcc91ca7ba43f88611628e468700d6c909f30f2b9b06a5aa99749d84c85
7
- data.tar.gz: e2ff2c3ed55bb9aa6af514f1ccdb19dc80eb0b098de3c2a141d00cd85cdb3ff01717f6986038619d0048c31b9519a348aff090f3785e725dcc61dc4f7350bd1e
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.
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |spec|
4
4
  spec.name = 'generated_schema_validations'
5
- spec.version = '0.1.0'
5
+ spec.version = '0.1.1'
6
6
  spec.authors = ['Georg Limbach']
7
7
  spec.email = ['georg.limbach@lichtbit.com']
8
8
 
@@ -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.0
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-07 00:00:00.000000000 Z
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.1.4
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