From: Dmitriy Zaporozhets Date: Thu, 9 May 2013 08:04:05 +0000 (+0300) Subject: Move blob_snippet to gitlab_git gem X-Git-Tag: v5.2.0~59 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=9fdcdb774ff496f4f1c8bf61290d1d70cbd5c3ed;p=wvm%2Fgitlab.git Move blob_snippet to gitlab_git gem --- diff --git a/lib/gitlab/blob_snippet.rb b/lib/gitlab/blob_snippet.rb deleted file mode 100644 index 842a17330..000000000 --- a/lib/gitlab/blob_snippet.rb +++ /dev/null @@ -1,32 +0,0 @@ -module Gitlab - class BlobSnippet - include Linguist::BlobHelper - - attr_accessor :project - attr_accessor :tree - attr_accessor :lines - attr_accessor :filename - attr_accessor :startline - - def initialize(project, tree, lines, startline, filename) - @project, @tree, @lines, @startline, @filename = project, tree, lines, startline, filename - end - - def data - lines.join("\n") - end - - def name - filename - end - - def size - data.length - end - - def mode - nil - end - - end -end \ No newline at end of file