Class: Grit::Blob

Inherits:
Object
  • Object
show all
Defined in:
lib/grit_ext/blob.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.blame(repo, commit, file) ⇒ Object



18
19
20
21
22
# File 'lib/grit_ext/blob.rb', line 18

def blame(repo, commit, file)
  old_blame(repo, commit, file).map do |b,lines|
    [b, GritExt.encode!(lines.join('\n')).split('\n')]
  end
end

.old_blameObject



16
# File 'lib/grit_ext/blob.rb', line 16

alias_method :old_blame, :blame

Instance Method Details

#dataObject



11
12
13
# File 'lib/grit_ext/blob.rb', line 11

def data
  GritExt.encode! old_data
end

#nameObject



7
8
9
# File 'lib/grit_ext/blob.rb', line 7

def name
  GritExt.encode! old_name
end

#old_dataObject



5
# File 'lib/grit_ext/blob.rb', line 5

alias_method :old_data, :data

#old_nameObject



4
# File 'lib/grit_ext/blob.rb', line 4

alias_method :old_name, :name