russian 0.2.3 → 0.2.4

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG CHANGED
@@ -1,3 +1,9 @@
1
+ === 0.2.4 - 12.11.2009
2
+
3
+ * Revert nested validation errors patch
4
+
5
+ * Убран патч для вложенных сообщений валидации (не работал с Rails 2.3.3 и ниже)
6
+
1
7
  === 0.2.3 - 9.11.2009
2
8
 
3
9
  * Improve ActiveRecord translations [Dmitri Koulikoff]
data/Rakefile CHANGED
@@ -5,7 +5,7 @@ require 'rubygems/specification'
5
5
  require 'date'
6
6
 
7
7
  GEM = "russian"
8
- GEM_VERSION = "0.2.3"
8
+ GEM_VERSION = "0.2.4"
9
9
  AUTHOR = "Yaroslav Markin"
10
10
  EMAIL = "yaroslav@markin.net"
11
11
  HOMEPAGE = "http://github.com/yaroslav/russian/"
@@ -29,7 +29,7 @@ module Russian
29
29
  module VERSION
30
30
  MAJOR = 0
31
31
  MINOR = 2
32
- TINY = 3
32
+ TINY = 4
33
33
 
34
34
  STRING = [MAJOR, MINOR, TINY].join('.')
35
35
  end
@@ -1,9 +1,6 @@
1
1
  # -*- encoding: utf-8 -*-
2
2
 
3
- require 'active_record/version'
4
- ma, mi, ti = ActiveRecord::VERSION::MAJOR, ActiveRecord::VERSION::MINOR, ActiveRecord::VERSION::TINY
5
-
6
- if (ma >= 2 && mi >= 3 && ti >= 4)
3
+ if defined?(ActiveRecord::Error)
7
4
  module ActiveRecord
8
5
  class Error
9
6
  protected
@@ -97,8 +94,6 @@ else
97
94
  full_messages << msg
98
95
  elsif msg =~ /^\^/
99
96
  full_messages << msg[1..-1]
100
- elsif msg.kind_of? ActiveRecord::Error
101
- full_messages << msg.full_message
102
97
  else
103
98
  full_messages << @base.class.human_attribute_name(attr) + " " + msg
104
99
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: russian
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 0.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yaroslav Markin
@@ -9,7 +9,7 @@ autorequire: russian
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-11-09 00:00:00 +03:00
12
+ date: 2009-11-12 00:00:00 +03:00
13
13
  default_executable:
14
14
  dependencies: []
15
15