easy_talk_two 1.1.0 → 1.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: 38f786e608af9dce72fc8fe00badb22cd0bcb9b4301180a83c8737f582b05f60
4
- data.tar.gz: d0369a177d46a64ece53fe7b6b1c8ba1efb7b7b2615dabfc3bb65c85ee1bcd82
3
+ metadata.gz: 0c2392e6ff7436e66abdb6ca0dda2bf3b36f08282dbcd6bdbd6ce36f9816b6aa
4
+ data.tar.gz: ad9f9862a2bb851e6356dd546129afaa577329deb7cd54aade02e43b949966f0
5
5
  SHA512:
6
- metadata.gz: aa2088c592d2e88dc06e13c4a685ecd2a50c0bd06158c53f7fcaf290782cc4c4ecf7866923792a6e2911ffe4f6655f01b882cf055270500d0abada13a5c1e6c8
7
- data.tar.gz: 11b8a0fe99e9188df1d1ae965ec4a5ff3e01a31c51a456d034501cbb5d4e54c9007b74580dc484ad468e2349a5ba577236cb888268bff4f9b76a0ce776f1a797
6
+ metadata.gz: 3a30989401906caed81d762cb6d4179d8be024719dd39f696571497a0a94df233289601778862d267e0d3a0e0a3e94b6db5792c0eb6c916d9dda07a96e85beb5
7
+ data.tar.gz: 1c0c57a7513976f44035e88f35ac59c57b9b9ed195ec068573469f29f9dd2862355457e2c6bed0797b29615c9145093de1bfca6cb86a35f89cea6aa3fd4bc2ec
@@ -131,8 +131,9 @@ module EasyTalk
131
131
 
132
132
  # Add precision/scale for numeric columns
133
133
  if column.type == :decimal && column.precision
134
- constraints[:precision] = column.precision
135
- constraints[:scale] = column.scale if column.scale
134
+ constraints[:minimum] = -10**column.precision
135
+ constraints[:maximum] = 10**column.precision
136
+ constraints[:multiple_of] = 1.0 / (10**(column.scale || 0))
136
137
  end
137
138
 
138
139
  # Add default value if present and not a proc
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module EasyTalk
4
- VERSION = '1.1.0'
4
+ VERSION = '1.1.1'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: easy_talk_two
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - a-chacon