activerecord-humanized_errors 2.0.0 → 2.0.1

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: b807a8d70911d0301f08b88cd23e19b14e5480a3
4
- data.tar.gz: 3d216141436783bc78396084a3e17dbe9f372ee2
3
+ metadata.gz: ae2d5f9643860e07ad6636b62e652653d60aa76d
4
+ data.tar.gz: 382025ee3ec1f8708e19cb1e6eb3eba142d49afd
5
5
  SHA512:
6
- metadata.gz: eeacc6da373dc151be49db129d445947e9e95bd12a6494d363685dedb6b7c119b22f59e9eb15023021a4f25180702343c3f8de5c54dd1f04a6723efc9a9faed2
7
- data.tar.gz: 9a258fe4585f37f1d8ce3838fe3cba8b6a9ea704715ce74aeb6a7253e4f8bba90246c519290b9b8f4629cd49fdd32386237ef01eaf5596fa9be0c90b46341155
6
+ metadata.gz: 0f50e4c3a2b231b689b0364ee64f272e1aaf55c657ac43dd39ca6349b10e83633263de18dd8ae4d3ca556071d487edcb603a3a34557ff04e7ab718ded77edc28
7
+ data.tar.gz: 325457c9389f78195128fda147cc1465edd882b47ade066ba1cfd885d108ea851201f4c8459ce79015ae95cf24dcecbdb89e5f87a9bdd9611e38b29e6c1b3011
data/.rspec ADDED
@@ -0,0 +1 @@
1
+ --color
data/Rakefile CHANGED
@@ -1 +1,5 @@
1
- require "bundler/gem_tasks"
1
+ require 'bundler/gem_tasks'
2
+ require 'rspec/core/rake_task'
3
+
4
+ RSpec::Core::RakeTask.new(:spec)
5
+ task :default => :spec
@@ -4,7 +4,7 @@ module ActiveRecord
4
4
 
5
5
  module HumanizedErrors
6
6
  def humanized_errors
7
- valid?
7
+ valid? unless errors.present?
8
8
  errors.full_messages.join ', '
9
9
  end
10
10
  end
@@ -1,5 +1,5 @@
1
1
  module ActiveRecord
2
2
  module HumanizedErrors
3
- VERSION = '2.0.0'
3
+ VERSION = '2.0.1'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activerecord-humanized_errors
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ignacio Galindo
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-03-24 00:00:00.000000000 Z
11
+ date: 2015-08-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -114,6 +114,7 @@ extensions: []
114
114
  extra_rdoc_files: []
115
115
  files:
116
116
  - ".gitignore"
117
+ - ".rspec"
117
118
  - Gemfile
118
119
  - LICENSE.txt
119
120
  - README.md
@@ -143,7 +144,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
143
144
  version: '0'
144
145
  requirements: []
145
146
  rubyforge_project:
146
- rubygems_version: 2.2.2
147
+ rubygems_version: 2.4.5
147
148
  signing_key:
148
149
  specification_version: 4
149
150
  summary: Adds humanized error messages to ActiveRecord models