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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 98bc2e77ee1473cb37291c7461d835aac723f04f
4
- data.tar.gz: e182427095ecef5774e1c06b0bfdb8c76a1ebdca
3
+ metadata.gz: b807a8d70911d0301f08b88cd23e19b14e5480a3
4
+ data.tar.gz: 3d216141436783bc78396084a3e17dbe9f372ee2
5
5
  SHA512:
6
- metadata.gz: d65bd0b26d62d046fd0aceecb14d33181cbcb17f72359fd31ca08bd4c0cc2284c1973f3c53f3514e79992e4dd9c75565d8b9d47affa29ad59b9a8a304b61f228
7
- data.tar.gz: cc4bfc84795706b4c7a1c1d94a83ee57d1baf6a66f079a9d577e31754c52cb7bff05cb150d379273bb12be08ba16a9d141343d39a7ab505df0e2c6985045913d
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 >= 4
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.add_development_dependency 'bundler', '>= 1.0'
22
- spec.add_development_dependency 'rake', '>= 10.0.0'
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
@@ -1,5 +1,5 @@
1
1
  module ActiveRecord
2
2
  module HumanizedErrors
3
- VERSION = '1.1.0'
3
+ VERSION = '2.0.0'
4
4
  end
5
5
  end
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: 1.1.0
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: 2.3.18
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: 2.3.18
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: '0'
138
+ version: 1.8.7
119
139
  required_rubygems_version: !ruby/object:Gem::Requirement
120
140
  requirements:
121
141
  - - ">="