Sha256: a707e722a7e3ab5686e9c085238fe4a822b170b6d9bfc947c81952120c260f35

Contents?: true

Size: 265 Bytes

Versions: 13

Compression:

Stored size: 265 Bytes

Contents

#!/usr/bin/ruby
require 'yaml'
require 'pp'

def pbuf(buf)
  unless buf.empty?
    x = YAML.load(buf)
  end
  buf.clear
  x
end

result = []
buf = ""
File.open('log.xes').each do |line|
  result << pbuf(buf) if line == "---\n"
  buf += line
end
result << pbuf(buf)

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
cpee-1.3.228 log/yaml/yaml.rb
cpee-1.3.227 log/yaml/yaml.rb
cpee-1.3.226 log/yaml/yaml.rb
cpee-1.3.225 log/yaml/yaml.rb
cpee-1.3.224 log/yaml/yaml.rb
cpee-1.3.223 log/yaml/yaml.rb
cpee-1.3.222 log/yaml/yaml.rb
cpee-1.3.221 log/yaml/yaml.rb
cpee-1.3.220 log/yaml/yaml.rb
cpee-1.3.219 log/yaml/yaml.rb
cpee-1.3.217 log/yaml/yaml.rb
cpee-1.3.216 log/yaml/yaml.rb
cpee-1.3.215 log/yaml/yaml.rb