Class: ROM::Git::Dataset

Inherits:
Memory::Dataset
  • Object
show all
Defined in:
lib/rom/git/dataset.rb

Class Method Summary collapse

Class Method Details

.row_procObject



6
7
8
9
10
11
12
13
14
15
16
17
18
# File 'lib/rom/git/dataset.rb', line 6

def self.row_proc
  lambda do |row|
    {
      sha1:      row[:id_new] || row[:sha1],
      message:   row[:message],
      committer: (begin
                    row[:committer].fetch(:name, 'unknown committer name')
                  rescue
                    row[:committer].to_s
                  end)
    }
  end
end