schema_validations 1.3.0 → 1.3.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 +5 -1
- data/lib/schema_validations/active_record/validations.rb +1 -1
- data/lib/schema_validations/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a23ef37b81324aaf2c339a28090b57a870f14583
|
|
4
|
+
data.tar.gz: baee93aa0e3c28544a09f145ca178456ea1928c7
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 49c6eb9dfacb6b4dda7027f6b37dd21533479d1157ddc10276d957fcbb56962078a35040af02d07815071121bbcff1e5c260c9c82c6cdb96b73e6ee099c3ef50
|
|
7
|
+
data.tar.gz: 37200e9a56008fab775fb0c7b38f638f645ecc447f77184ed09ae96f9385f7f9e2b89e53e5f9a2d284906032133466c214621708770fa2e30f8464bd2518ac36
|
data/README.md
CHANGED
|
@@ -114,7 +114,7 @@ Data types:
|
|
|
114
114
|
## How do I know what it did?
|
|
115
115
|
If you're curious (or dubious) about what validations SchemaValidations
|
|
116
116
|
defines, you can check the log file. For every assocation that
|
|
117
|
-
SchemaValidations defines, it generates
|
|
117
|
+
SchemaValidations defines, it generates a debug entry in the log such as
|
|
118
118
|
|
|
119
119
|
[schema_validations] Article.validates_length_of :title, :allow_nil=>true, :maximum=>50
|
|
120
120
|
|
|
@@ -130,6 +130,10 @@ use case.
|
|
|
130
130
|
|
|
131
131
|
## Release Notes
|
|
132
132
|
|
|
133
|
+
### 1.3.1
|
|
134
|
+
|
|
135
|
+
* Change log level from 'info' to 'debug', since there's no need to clutter production logs with this sort of development info. Thanks to [@obduk](https://github.com/obduk)
|
|
136
|
+
|
|
133
137
|
### 1.3.0
|
|
134
138
|
|
|
135
139
|
* Add range checks to integer validations. Thanks to [@lowjoel](https://github.com/lowjoel)
|
|
@@ -176,7 +176,7 @@ module SchemaValidations
|
|
|
176
176
|
if _filter_validation(method, arg)
|
|
177
177
|
msg = "[schema_validations] #{self.name}.#{method} #{arg.inspect}"
|
|
178
178
|
msg += ", #{opts.inspect[1...-1]}" if opts.any?
|
|
179
|
-
logger.
|
|
179
|
+
logger.debug msg
|
|
180
180
|
send method, arg, opts
|
|
181
181
|
end
|
|
182
182
|
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: schema_validations
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.3.
|
|
4
|
+
version: 1.3.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ronen Barzel
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2015-
|
|
12
|
+
date: 2015-08-28 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: schema_plus_columns
|