validates_lengths_from_database 0.3.0 → 0.4.0
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/CHANGELOG +4 -0
- data/Gemfile.lock +22 -16
- data/README.rdoc +5 -0
- data/lib/validates_lengths_from_database/version.rb +1 -1
- 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: 36ab4fa806bb72ce68f69c1bfe9375ea5b8a72aa
|
|
4
|
+
data.tar.gz: 28f5c8941b6717983b9b0f7ba236695b36d2a551
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3d5895cc5180acdf4aa522e5350c6edadcec087fac8b882159748f2b063060a0e70a7b19b9e16e8211d64a1c0d5e88726fe0d5114f6ed6981cb58b885e53ec86
|
|
7
|
+
data.tar.gz: 6e445869d1cae0997f61ebb2cb43113acef46cf76f118242a9dad53bc7139f0851bb995a5216c7ea2b227c381135292c6157a39c0abed2de695a87437e095e39
|
data/CHANGELOG
CHANGED
data/Gemfile.lock
CHANGED
|
@@ -1,33 +1,38 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
validates_lengths_from_database (0.
|
|
4
|
+
validates_lengths_from_database (0.4.0)
|
|
5
5
|
activerecord (>= 2.3.2)
|
|
6
6
|
|
|
7
7
|
GEM
|
|
8
8
|
remote: http://rubygems.org/
|
|
9
9
|
specs:
|
|
10
|
-
activemodel (
|
|
11
|
-
activesupport (=
|
|
12
|
-
builder (~> 3.
|
|
13
|
-
activerecord (
|
|
14
|
-
activemodel (=
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
10
|
+
activemodel (4.0.12)
|
|
11
|
+
activesupport (= 4.0.12)
|
|
12
|
+
builder (~> 3.1.0)
|
|
13
|
+
activerecord (4.0.12)
|
|
14
|
+
activemodel (= 4.0.12)
|
|
15
|
+
activerecord-deprecated_finders (~> 1.0.2)
|
|
16
|
+
activesupport (= 4.0.12)
|
|
17
|
+
arel (~> 4.0.0)
|
|
18
|
+
activerecord-deprecated_finders (1.0.3)
|
|
19
|
+
activesupport (4.0.12)
|
|
20
|
+
i18n (~> 0.6, >= 0.6.9)
|
|
21
|
+
minitest (~> 4.2)
|
|
22
|
+
multi_json (~> 1.3)
|
|
23
|
+
thread_safe (~> 0.1)
|
|
24
|
+
tzinfo (~> 0.3.37)
|
|
21
25
|
appraisal (1.0.2)
|
|
22
26
|
bundler
|
|
23
27
|
rake
|
|
24
28
|
thor (>= 0.14.0)
|
|
25
|
-
arel (
|
|
26
|
-
builder (3.
|
|
29
|
+
arel (4.0.2)
|
|
30
|
+
builder (3.1.4)
|
|
27
31
|
diff-lcs (1.1.2)
|
|
28
|
-
i18n (0.
|
|
32
|
+
i18n (0.7.0)
|
|
29
33
|
iconv (1.0.4)
|
|
30
34
|
json (1.6.6)
|
|
35
|
+
minitest (4.7.5)
|
|
31
36
|
multi_json (1.10.1)
|
|
32
37
|
pg (0.17.1)
|
|
33
38
|
rake (0.9.2.2)
|
|
@@ -43,6 +48,7 @@ GEM
|
|
|
43
48
|
rspec-mocks (2.5.0)
|
|
44
49
|
sqlite3 (1.3.5)
|
|
45
50
|
thor (0.19.1)
|
|
51
|
+
thread_safe (0.3.4)
|
|
46
52
|
tzinfo (0.3.42)
|
|
47
53
|
|
|
48
54
|
PLATFORMS
|
|
@@ -52,7 +58,7 @@ DEPENDENCIES
|
|
|
52
58
|
activesupport (>= 2.3.2)
|
|
53
59
|
appraisal (~> 1.0.2)
|
|
54
60
|
i18n
|
|
55
|
-
iconv (~> 1.0.
|
|
61
|
+
iconv (~> 1.0.4)
|
|
56
62
|
pg (~> 0.17.1)
|
|
57
63
|
rake
|
|
58
64
|
rdoc (~> 3.12)
|
data/README.rdoc
CHANGED
|
@@ -7,6 +7,11 @@
|
|
|
7
7
|
Few people add length validations to fields in their database, and when saving such fields that have exhausted their length, an SQL error occurs.
|
|
8
8
|
This gem introspects your table schema for maximum lengths on string and text fields and automatically adds length validations to the model.
|
|
9
9
|
|
|
10
|
+
== Requirements
|
|
11
|
+
|
|
12
|
+
Due to issues maintaining backwards compatibility, as of v0.4.0 validates_lengths_from_database requires ruby 1.9.3 or higher.
|
|
13
|
+
If you are still using 1.8.7 or 1.9.2, please use the v0.3.0 release.
|
|
14
|
+
|
|
10
15
|
== Installation
|
|
11
16
|
|
|
12
17
|
Include the gem using bundler in your Gemfile:
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: validates_lengths_from_database
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.4.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ben Hughes
|
|
@@ -142,14 +142,14 @@ dependencies:
|
|
|
142
142
|
requirements:
|
|
143
143
|
- - "~>"
|
|
144
144
|
- !ruby/object:Gem::Version
|
|
145
|
-
version: 1.0.
|
|
145
|
+
version: 1.0.4
|
|
146
146
|
type: :development
|
|
147
147
|
prerelease: false
|
|
148
148
|
version_requirements: !ruby/object:Gem::Requirement
|
|
149
149
|
requirements:
|
|
150
150
|
- - "~>"
|
|
151
151
|
- !ruby/object:Gem::Version
|
|
152
|
-
version: 1.0.
|
|
152
|
+
version: 1.0.4
|
|
153
153
|
description: Introspects your database string field maximum lengths and automatically
|
|
154
154
|
defines length validations.
|
|
155
155
|
email: ben@railsgarden.com
|
|
@@ -185,7 +185,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
185
185
|
requirements:
|
|
186
186
|
- - ">="
|
|
187
187
|
- !ruby/object:Gem::Version
|
|
188
|
-
version:
|
|
188
|
+
version: 1.9.3
|
|
189
189
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
190
190
|
requirements:
|
|
191
191
|
- - ">="
|