dima 0.0.4 → 0.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -99,7 +99,7 @@ module Dima::Html
99
99
  def validate
100
100
  self.error_fields = []
101
101
  (col1.fields + col2.fields).each do |f|
102
- f.validate
102
+ f.validate unless f.readonly
103
103
  self.error_fields << f if f.has_errors
104
104
  end
105
105
  end
@@ -121,12 +121,12 @@ module Dima::Html
121
121
  end
122
122
 
123
123
  def << (v)
124
- self.val = v
124
+ self.val = v
125
125
  end
126
126
 
127
127
  def >> (v)
128
- col1.fields.each { |f| f >> v }
129
- col2.fields.each { |f| f >> v }
128
+ col1.fields.each { |f| f >> v unless f.readonly }
129
+ col2.fields.each { |f| f >> v unless f.readonly }
130
130
  end
131
131
 
132
132
  # First column.
data/lib/dima/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  # -*- encoding : utf-8 -*-
2
2
  module Dima
3
- VERSION = "0.0.4"
3
+ VERSION = "0.0.5"
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dima
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-04-08 00:00:00.000000000 Z
12
+ date: 2013-04-10 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec