spec/fixtures/githubblob.response in onebox-1.5.5 vs spec/fixtures/githubblob.response in onebox-1.5.6

- old
+ new

@@ -28,14 +28,10 @@ data = data.split("\n")[@from..@to].join("\n") end end extension = @file.split(".")[-1] - @lang = case extension - when "rb" then "ruby" - when "js" then "javascript" - else extension - end + @lang = extension truncated = false if data.length > SiteSetting.onebox_max_chars data = data[0..SiteSetting.onebox_max_chars-1] truncated = true