modalh 1.1.6 → 1.1.7

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.1.6
1
+ 1.1.7
@@ -19,9 +19,11 @@ module H
19
19
 
20
20
  class_eval do
21
21
 
22
- validates_each actual_attr do |record, attr_name, value|
23
- if attr_name.to_s==actual_attr.to_s && record.send(:"#{attr}_h_invalid?")
24
- record.errors.add :"#{attr}_h"
22
+ if columns.detect{|c| c.name == actual_attr.to_s}
23
+ validates_each actual_attr do |record, attr_name, value|
24
+ if attr_name.to_s==actual_attr.to_s && record.send(:"#{attr}_h_invalid?")
25
+ record.errors.add :"#{attr}_h"
26
+ end
25
27
  end
26
28
  end
27
29
 
data/modalh.gemspec CHANGED
@@ -4,14 +4,14 @@
4
4
  # -*- encoding: utf-8 -*-
5
5
 
6
6
  Gem::Specification.new do |s|
7
- s.name = "modalh"
8
- s.version = "1.1.6"
7
+ s.name = %q{modalh}
8
+ s.version = "1.1.7"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Javier Goizueta"]
12
- s.date = "2012-06-15"
13
- s.description = "Rails plugin for localization & delocalization of data values"
14
- s.email = "jgoizueta@gmail.com"
12
+ s.date = %q{2012-10-18}
13
+ s.description = %q{Rails plugin for localization & delocalization of data values}
14
+ s.email = %q{jgoizueta@gmail.com}
15
15
  s.extra_rdoc_files = [
16
16
  "LICENSE.txt",
17
17
  "README.rdoc"
@@ -34,13 +34,14 @@ Gem::Specification.new do |s|
34
34
  "test/helper.rb",
35
35
  "test/test_modalh.rb"
36
36
  ]
37
- s.homepage = "http://github.com/jgoizueta/modalh"
37
+ s.homepage = %q{http://github.com/jgoizueta/modalh}
38
38
  s.licenses = ["MIT"]
39
39
  s.require_paths = ["lib"]
40
- s.rubygems_version = "1.8.23"
41
- s.summary = "Rails plugin for localization & delocalization"
40
+ s.rubygems_version = %q{1.3.7}
41
+ s.summary = %q{Rails plugin for localization & delocalization}
42
42
 
43
43
  if s.respond_to? :specification_version then
44
+ current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
44
45
  s.specification_version = 3
45
46
 
46
47
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
metadata CHANGED
@@ -1,136 +1,126 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: modalh
3
- version: !ruby/object:Gem::Version
4
- version: 1.1.6
5
- prerelease:
3
+ version: !ruby/object:Gem::Version
4
+ prerelease: false
5
+ segments:
6
+ - 1
7
+ - 1
8
+ - 7
9
+ version: 1.1.7
6
10
  platform: ruby
7
- authors:
11
+ authors:
8
12
  - Javier Goizueta
9
13
  autorequire:
10
14
  bindir: bin
11
15
  cert_chain: []
12
- date: 2012-06-15 00:00:00.000000000 Z
13
- dependencies:
14
- - !ruby/object:Gem::Dependency
16
+
17
+ date: 2012-10-18 00:00:00 +02:00
18
+ default_executable:
19
+ dependencies:
20
+ - !ruby/object:Gem::Dependency
15
21
  name: units-system
16
- requirement: !ruby/object:Gem::Requirement
22
+ requirement: &id001 !ruby/object:Gem::Requirement
17
23
  none: false
18
- requirements:
19
- - - ! '>='
20
- - !ruby/object:Gem::Version
21
- version: '0'
24
+ requirements:
25
+ - - ">="
26
+ - !ruby/object:Gem::Version
27
+ segments:
28
+ - 0
29
+ version: "0"
22
30
  type: :runtime
23
31
  prerelease: false
24
- version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
- requirements:
27
- - - ! '>='
28
- - !ruby/object:Gem::Version
29
- version: '0'
30
- - !ruby/object:Gem::Dependency
32
+ version_requirements: *id001
33
+ - !ruby/object:Gem::Dependency
31
34
  name: shoulda
32
- requirement: !ruby/object:Gem::Requirement
35
+ requirement: &id002 !ruby/object:Gem::Requirement
33
36
  none: false
34
- requirements:
35
- - - ! '>='
36
- - !ruby/object:Gem::Version
37
- version: '0'
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ segments:
41
+ - 0
42
+ version: "0"
38
43
  type: :development
39
44
  prerelease: false
40
- version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
- requirements:
43
- - - ! '>='
44
- - !ruby/object:Gem::Version
45
- version: '0'
46
- - !ruby/object:Gem::Dependency
45
+ version_requirements: *id002
46
+ - !ruby/object:Gem::Dependency
47
47
  name: rdoc
48
- requirement: !ruby/object:Gem::Requirement
48
+ requirement: &id003 !ruby/object:Gem::Requirement
49
49
  none: false
50
- requirements:
50
+ requirements:
51
51
  - - ~>
52
- - !ruby/object:Gem::Version
53
- version: '3.12'
52
+ - !ruby/object:Gem::Version
53
+ segments:
54
+ - 3
55
+ - 12
56
+ version: "3.12"
54
57
  type: :development
55
58
  prerelease: false
56
- version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
- requirements:
59
- - - ~>
60
- - !ruby/object:Gem::Version
61
- version: '3.12'
62
- - !ruby/object:Gem::Dependency
59
+ version_requirements: *id003
60
+ - !ruby/object:Gem::Dependency
63
61
  name: bundler
64
- requirement: !ruby/object:Gem::Requirement
62
+ requirement: &id004 !ruby/object:Gem::Requirement
65
63
  none: false
66
- requirements:
64
+ requirements:
67
65
  - - ~>
68
- - !ruby/object:Gem::Version
69
- version: '1'
66
+ - !ruby/object:Gem::Version
67
+ segments:
68
+ - 1
69
+ version: "1"
70
70
  type: :development
71
71
  prerelease: false
72
- version_requirements: !ruby/object:Gem::Requirement
73
- none: false
74
- requirements:
75
- - - ~>
76
- - !ruby/object:Gem::Version
77
- version: '1'
78
- - !ruby/object:Gem::Dependency
72
+ version_requirements: *id004
73
+ - !ruby/object:Gem::Dependency
79
74
  name: jeweler
80
- requirement: !ruby/object:Gem::Requirement
75
+ requirement: &id005 !ruby/object:Gem::Requirement
81
76
  none: false
82
- requirements:
77
+ requirements:
83
78
  - - ~>
84
- - !ruby/object:Gem::Version
79
+ - !ruby/object:Gem::Version
80
+ segments:
81
+ - 1
82
+ - 8
83
+ - 3
85
84
  version: 1.8.3
86
85
  type: :development
87
86
  prerelease: false
88
- version_requirements: !ruby/object:Gem::Requirement
89
- none: false
90
- requirements:
91
- - - ~>
92
- - !ruby/object:Gem::Version
93
- version: 1.8.3
94
- - !ruby/object:Gem::Dependency
87
+ version_requirements: *id005
88
+ - !ruby/object:Gem::Dependency
95
89
  name: activesupport
96
- requirement: !ruby/object:Gem::Requirement
90
+ requirement: &id006 !ruby/object:Gem::Requirement
97
91
  none: false
98
- requirements:
99
- - - ! '>='
100
- - !ruby/object:Gem::Version
101
- version: '0'
92
+ requirements:
93
+ - - ">="
94
+ - !ruby/object:Gem::Version
95
+ segments:
96
+ - 0
97
+ version: "0"
102
98
  type: :development
103
99
  prerelease: false
104
- version_requirements: !ruby/object:Gem::Requirement
105
- none: false
106
- requirements:
107
- - - ! '>='
108
- - !ruby/object:Gem::Version
109
- version: '0'
110
- - !ruby/object:Gem::Dependency
100
+ version_requirements: *id006
101
+ - !ruby/object:Gem::Dependency
111
102
  name: i18n
112
- requirement: !ruby/object:Gem::Requirement
103
+ requirement: &id007 !ruby/object:Gem::Requirement
113
104
  none: false
114
- requirements:
115
- - - ! '>='
116
- - !ruby/object:Gem::Version
117
- version: '0'
105
+ requirements:
106
+ - - ">="
107
+ - !ruby/object:Gem::Version
108
+ segments:
109
+ - 0
110
+ version: "0"
118
111
  type: :development
119
112
  prerelease: false
120
- version_requirements: !ruby/object:Gem::Requirement
121
- none: false
122
- requirements:
123
- - - ! '>='
124
- - !ruby/object:Gem::Version
125
- version: '0'
113
+ version_requirements: *id007
126
114
  description: Rails plugin for localization & delocalization of data values
127
115
  email: jgoizueta@gmail.com
128
116
  executables: []
117
+
129
118
  extensions: []
130
- extra_rdoc_files:
119
+
120
+ extra_rdoc_files:
131
121
  - LICENSE.txt
132
122
  - README.rdoc
133
- files:
123
+ files:
134
124
  - .document
135
125
  - Gemfile
136
126
  - Gemfile.lock
@@ -147,32 +137,38 @@ files:
147
137
  - modalh.gemspec
148
138
  - test/helper.rb
149
139
  - test/test_modalh.rb
140
+ has_rdoc: true
150
141
  homepage: http://github.com/jgoizueta/modalh
151
- licenses:
142
+ licenses:
152
143
  - MIT
153
144
  post_install_message:
154
145
  rdoc_options: []
155
- require_paths:
146
+
147
+ require_paths:
156
148
  - lib
157
- required_ruby_version: !ruby/object:Gem::Requirement
149
+ required_ruby_version: !ruby/object:Gem::Requirement
158
150
  none: false
159
- requirements:
160
- - - ! '>='
161
- - !ruby/object:Gem::Version
162
- version: '0'
163
- segments:
151
+ requirements:
152
+ - - ">="
153
+ - !ruby/object:Gem::Version
154
+ hash: 735334227
155
+ segments:
164
156
  - 0
165
- hash: 688964852930439932
166
- required_rubygems_version: !ruby/object:Gem::Requirement
157
+ version: "0"
158
+ required_rubygems_version: !ruby/object:Gem::Requirement
167
159
  none: false
168
- requirements:
169
- - - ! '>='
170
- - !ruby/object:Gem::Version
171
- version: '0'
160
+ requirements:
161
+ - - ">="
162
+ - !ruby/object:Gem::Version
163
+ segments:
164
+ - 0
165
+ version: "0"
172
166
  requirements: []
167
+
173
168
  rubyforge_project:
174
- rubygems_version: 1.8.23
169
+ rubygems_version: 1.3.7
175
170
  signing_key:
176
171
  specification_version: 3
177
172
  summary: Rails plugin for localization & delocalization
178
173
  test_files: []
174
+