Mark Chao
bc14e4ed10
Move :plain option to Highlight class
...
This is to DRY the repeated file size check.
Move spec and constants to Highlight
2018-10-30 15:44:55 +08:00
Mark Chao
39ae9a59a5
Make Highlight accept language param
...
This replaces the repository param.
This allows more flexiblity as sometimes we have highlight content
not related to repository. Sometimes we know ahead of time the language
of the content. Lastly language determination seems better fit as a
logic in the Blob class.
`repository` param is only used to determine the language, which seems
to be the responsiblity of Blob.
2018-10-30 15:44:55 +08:00
Mark Chao
3bfc08be91
Fix syntax highlight taking too long
...
Use Timeout to switch to plain rendering
2018-09-03 11:02:43 +08:00
Rémy Coutable
cddc5cacfb
Use described_class when possible
...
Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-07-27 14:31:53 +02:00
Rémy Coutable
ddccd24c13
Remove superfluous lib: true, type: redis, service: true, models: true, services: true, no_db: true, api: true
...
Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-07-27 14:31:53 +02:00
Grzegorz Bizon
0430b76441
Enable Style/DotPosition Rubocop 👮
2017-06-21 13:48:12 +00:00
Robert Speicher
a6ec5121f0
Correct RSpec/SingleLineHook cop offenses
2017-06-14 13:18:56 -05:00
Douwe Maan
e6e29f9220
Use Diff::File blob methods from diff highlighter
2017-06-08 09:39:54 -05:00
Douwe Maan
aa24feed6f
Refactor DependencyLinker::BaseLinker
2017-05-23 15:34:42 -05:00
Douwe Maan
b1012d986c
Autolink package names in Gemfile
2017-05-10 08:26:21 -05:00
Douwe Maan
f90909307e
Fix specs
2017-03-14 15:29:31 -06:00
Valery Sizov
ceb1ebd959
Active tense test coverage
...
Ports changes from https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/642 back into CE
2017-02-01 22:45:41 +00:00
Robert Speicher
80a6d2fda2
Use :empty_project
where possible throughout spec/lib
2017-01-25 12:25:42 -05:00
Rémy Coutable
fe25d1d5cf
Fix specs
...
Signed-off-by: Rémy Coutable <remy@rymai.me>
2016-08-01 13:24:06 +02:00
Stan Hu
3fe18525dd
Trim extra displayed carriage returns in diffs and files with CRLFs
...
Closes #20440
2016-08-01 13:24:06 +02:00
http://jneen.net/
66b37149eb
support cgi style options, such as erb?parent=json
2016-06-27 14:17:49 -07:00
http://jneen.net/
9fc53864dd
appease rubocop
2016-06-27 14:17:49 -07:00
http://jneen.net/
5415c67424
check the tag so that an instance will pass too
2016-06-27 14:17:49 -07:00
http://jneen.net/
cd9bea770b
fix the spec, using project.change_head
2016-06-27 14:17:49 -07:00
http://jneen.net/
f8b80f7fae
add custom highlighting via .gitattributes
...
paired with @stanhu
2016-06-27 14:17:49 -07:00
Douwe Maan
d1938fae3d
Add missing specs
2016-01-19 16:26:44 +01:00