omf_oml 1.1.5 → 1.1.6

Sign up to get free protection for your applications and to get access to all the features.
data/lib/omf_oml/table.rb CHANGED
@@ -166,6 +166,7 @@ module OMF::OML
166
166
  st = self.class.new(name, @schema, table_opts)
167
167
  st.instance_variable_set(:@sname, sname)
168
168
  st.instance_variable_set(:@master_ds, self)
169
+ st.instance_variable_set(:@add_index, true)
169
170
  def st.release
170
171
  @master_ds.on_content_changed(@sname) # release callback
171
172
  end
@@ -176,11 +177,13 @@ module OMF::OML
176
177
  warn "No support for removing rows from sliced table '#{sname}'."
177
178
  next
178
179
  end
180
+ first_row = true
179
181
  rows.each do |row|
180
182
  if row[index] == col_value
181
183
  row = row[1 .. -1] # remove the row_id
182
- debug "Add row '#{row.inspect}'"
184
+ debug "Add first row '#{row.inspect}'" if first_row
183
185
  st.add_row(row)
186
+ first_row = false
184
187
  end
185
188
  end
186
189
  end
@@ -6,6 +6,6 @@
6
6
  #-------------------------------------------------------------------------------
7
7
  module OMF
8
8
  module OML
9
- VERSION = '1.1.5'
9
+ VERSION = '1.1.6'
10
10
  end
11
11
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omf_oml
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.5
4
+ version: 1.1.6
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: 2014-04-03 00:00:00.000000000 Z
12
+ date: 2014-06-01 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: omf_base