activerecord-humanized_errors 1.1.0 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/activerecord-humanized_errors.gemspec +9 -5
- data/lib/activerecord/humanized_errors.rb +4 -4
- data/lib/activerecord/humanized_errors/version.rb +1 -1
- metadata +24 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b807a8d70911d0301f08b88cd23e19b14e5480a3
|
4
|
+
data.tar.gz: 3d216141436783bc78396084a3e17dbe9f372ee2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: eeacc6da373dc151be49db129d445947e9e95bd12a6494d363685dedb6b7c119b22f59e9eb15023021a4f25180702343c3f8de5c54dd1f04a6723efc9a9faed2
|
7
|
+
data.tar.gz: 9a258fe4585f37f1d8ce3838fe3cba8b6a9ea704715ce74aeb6a7253e4f8bba90246c519290b9b8f4629cd49fdd32386237ef01eaf5596fa9be0c90b46341155
|
data/README.md
CHANGED
@@ -41,7 +41,7 @@ Now you can make use of the humanized_errors method:
|
|
41
41
|
|
42
42
|
## Compatibility
|
43
43
|
|
44
|
-
Preferred used on rails or activerecord
|
44
|
+
Preferred used on rails or activerecord `>= 3.0.0` and `~> 4.0.4`
|
45
45
|
|
46
46
|
Supports rails 2.3.18+, locking to [v1.1.x](../../releases/tag/v1.1.0)
|
47
47
|
|
@@ -18,10 +18,14 @@ Gem::Specification.new do |spec|
|
|
18
18
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
19
19
|
spec.require_paths = ['lib']
|
20
20
|
|
21
|
-
spec.
|
22
|
-
|
21
|
+
spec.required_ruby_version = '>= 1.8.7'
|
22
|
+
|
23
|
+
spec.add_development_dependency 'bundler', '>= 1.0'
|
24
|
+
spec.add_development_dependency 'rake', '>= 10.0.0'
|
25
|
+
|
26
|
+
spec.add_development_dependency 'activerecord', '>= 3.0.0', '~> 4.0.4'
|
27
|
+
spec.add_development_dependency 'activesupport', '>= 3.0.0', '~> 4.0.4'
|
28
|
+
spec.add_development_dependency 'sqlite3', '~> 1.3.9'
|
29
|
+
spec.add_development_dependency 'rspec', '~> 2.14.1'
|
23
30
|
|
24
|
-
spec.add_development_dependency 'activerecord', '>= 2.3.18', '~> 4.0.4'
|
25
|
-
spec.add_development_dependency 'sqlite3', '~> 1.3.9'
|
26
|
-
spec.add_development_dependency 'rspec', '~> 2.14.1'
|
27
31
|
end
|
@@ -1,3 +1,5 @@
|
|
1
|
+
require 'active_support/concern'
|
2
|
+
|
1
3
|
module ActiveRecord
|
2
4
|
|
3
5
|
module HumanizedErrors
|
@@ -7,8 +9,6 @@ module ActiveRecord
|
|
7
9
|
end
|
8
10
|
end
|
9
11
|
|
10
|
-
Base.class_eval do
|
11
|
-
include HumanizedErrors
|
12
|
-
end
|
13
|
-
|
14
12
|
end
|
13
|
+
|
14
|
+
ActiveRecord::Base.send :include, ActiveRecord::HumanizedErrors
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: activerecord-humanized_errors
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 2.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ignacio Galindo
|
@@ -44,7 +44,7 @@ dependencies:
|
|
44
44
|
requirements:
|
45
45
|
- - ">="
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version:
|
47
|
+
version: 3.0.0
|
48
48
|
- - "~>"
|
49
49
|
- !ruby/object:Gem::Version
|
50
50
|
version: 4.0.4
|
@@ -54,7 +54,27 @@ dependencies:
|
|
54
54
|
requirements:
|
55
55
|
- - ">="
|
56
56
|
- !ruby/object:Gem::Version
|
57
|
-
version:
|
57
|
+
version: 3.0.0
|
58
|
+
- - "~>"
|
59
|
+
- !ruby/object:Gem::Version
|
60
|
+
version: 4.0.4
|
61
|
+
- !ruby/object:Gem::Dependency
|
62
|
+
name: activesupport
|
63
|
+
requirement: !ruby/object:Gem::Requirement
|
64
|
+
requirements:
|
65
|
+
- - ">="
|
66
|
+
- !ruby/object:Gem::Version
|
67
|
+
version: 3.0.0
|
68
|
+
- - "~>"
|
69
|
+
- !ruby/object:Gem::Version
|
70
|
+
version: 4.0.4
|
71
|
+
type: :development
|
72
|
+
prerelease: false
|
73
|
+
version_requirements: !ruby/object:Gem::Requirement
|
74
|
+
requirements:
|
75
|
+
- - ">="
|
76
|
+
- !ruby/object:Gem::Version
|
77
|
+
version: 3.0.0
|
58
78
|
- - "~>"
|
59
79
|
- !ruby/object:Gem::Version
|
60
80
|
version: 4.0.4
|
@@ -115,7 +135,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
115
135
|
requirements:
|
116
136
|
- - ">="
|
117
137
|
- !ruby/object:Gem::Version
|
118
|
-
version:
|
138
|
+
version: 1.8.7
|
119
139
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
120
140
|
requirements:
|
121
141
|
- - ">="
|