validates_lengths_from_database 0.3.0 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ec5757dde636f6b3d800c8a95b29aace5cfa1ce5
4
- data.tar.gz: 41825787b212ff9cc5a06462e86007c00e9d17b9
3
+ metadata.gz: 36ab4fa806bb72ce68f69c1bfe9375ea5b8a72aa
4
+ data.tar.gz: 28f5c8941b6717983b9b0f7ba236695b36d2a551
5
5
  SHA512:
6
- metadata.gz: b643589ff56a2155c33453422d525256fd012e00ff6b254d6b618c22fc31a776c2ba045c99c1816eb68ea91a2db4a1a9d617f20f0ee3797832e2bc3dbfe6317e
7
- data.tar.gz: f398c90a2e7f11fe16abbd54b4a3d799f6ded5ccbb67c87464b40349286d729206cda438895799f83898846f5dbf05ceb4b80f1db355c6004fc27d264655d86c
6
+ metadata.gz: 3d5895cc5180acdf4aa522e5350c6edadcec087fac8b882159748f2b063060a0e70a7b19b9e16e8211d64a1c0d5e88726fe0d5114f6ed6981cb58b885e53ec86
7
+ data.tar.gz: 6e445869d1cae0997f61ebb2cb43113acef46cf76f118242a9dad53bc7139f0851bb995a5216c7ea2b227c381135292c6157a39c0abed2de695a87437e095e39
data/CHANGELOG CHANGED
@@ -1,3 +1,7 @@
1
+ == v0.4.0 (2015-01-03)
2
+
3
+ * Drop support for ruby 1.8.7 and 1.9.2 - too many issues with backwards-compatibility
4
+
1
5
  == v0.3.0 (2015-01-03)
2
6
 
3
7
  * Explicit support for Rails 4.1 and 4.2
data/Gemfile.lock CHANGED
@@ -1,33 +1,38 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- validates_lengths_from_database (0.2.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 (3.2.12)
11
- activesupport (= 3.2.12)
12
- builder (~> 3.0.0)
13
- activerecord (3.2.12)
14
- activemodel (= 3.2.12)
15
- activesupport (= 3.2.12)
16
- arel (~> 3.0.2)
17
- tzinfo (~> 0.3.29)
18
- activesupport (3.2.12)
19
- i18n (~> 0.6)
20
- multi_json (~> 1.0)
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 (3.0.3)
26
- builder (3.0.4)
29
+ arel (4.0.2)
30
+ builder (3.1.4)
27
31
  diff-lcs (1.1.2)
28
- i18n (0.6.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.3)
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:
@@ -1,3 +1,3 @@
1
1
  module ValidatesLengthsFromDatabase
2
- VERSION = "0.3.0"
2
+ VERSION = "0.4.0"
3
3
  end
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.3.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.3
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.3
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: '0'
188
+ version: 1.9.3
189
189
  required_rubygems_version: !ruby/object:Gem::Requirement
190
190
  requirements:
191
191
  - - ">="