Commit c4883ca225d1f4934cec737769fe22588b2bc8a8
1 parent
33955584
Exists in
master
and in
4 other branches
Update linguist and pygments #1602
Showing
3 changed files
with
19 additions
and
27 deletions
Show diff stats
Gemfile
| ... | ... | @@ -23,15 +23,19 @@ gem 'omniauth-github' |
| 23 | 23 | |
| 24 | 24 | # GITLAB patched libs |
| 25 | 25 | gem "grit", :git => "https://github.com/gitlabhq/grit.git", :ref => "7f35cb98ff17d534a07e3ce6ec3d580f67402837" |
| 26 | -gem "pygments.rb", :git => "https://github.com/gitlabhq/pygments.rb.git", :ref => "2cada028da5054616634a1d9ca6941b65b3ce188" | |
| 27 | 26 | gem "omniauth-ldap", :git => "https://github.com/gitlabhq/omniauth-ldap.git", :ref => "f038dd852d7bd473a557e385d5d7c2fd5dc1dc2e" |
| 28 | 27 | gem 'yaml_db', :git => "https://github.com/gitlabhq/yaml_db.git" |
| 29 | 28 | gem 'grack', :git => "https://github.com/gitlabhq/grack.git" |
| 30 | -gem "linguist", "~> 1.0.0", :git => "https://github.com/gitlabhq/linguist.git" | |
| 31 | 29 | |
| 32 | 30 | # Gitolite client (for work with gitolite-admin repo) |
| 33 | 31 | gem "gitolite", '1.1.0' |
| 34 | 32 | |
| 33 | +# Syntax highlighter | |
| 34 | +gem "pygments.rb", "0.3.1" | |
| 35 | + | |
| 36 | +# Language detection | |
| 37 | +gem "github-linguist", "~> 2.3.4" , :require => "linguist" | |
| 38 | + | |
| 35 | 39 | # API |
| 36 | 40 | gem "grape", "~> 0.2.1" |
| 37 | 41 | ... | ... |
Gemfile.lock
| ... | ... | @@ -22,16 +22,6 @@ GIT |
| 22 | 22 | posix-spawn (~> 0.3.6) |
| 23 | 23 | |
| 24 | 24 | GIT |
| 25 | - remote: https://github.com/gitlabhq/linguist.git | |
| 26 | - revision: c3d6fc5af8cf9d67afa572bba363bf0db256a900 | |
| 27 | - specs: | |
| 28 | - linguist (1.0.0) | |
| 29 | - charlock_holmes (~> 0.6.6) | |
| 30 | - escape_utils (~> 0.2.3) | |
| 31 | - mime-types (~> 1.18) | |
| 32 | - pygments.rb (~> 0.2.11) | |
| 33 | - | |
| 34 | -GIT | |
| 35 | 25 | remote: https://github.com/gitlabhq/omniauth-ldap.git |
| 36 | 26 | revision: f038dd852d7bd473a557e385d5d7c2fd5dc1dc2e |
| 37 | 27 | ref: f038dd852d7bd473a557e385d5d7c2fd5dc1dc2e |
| ... | ... | @@ -43,14 +33,6 @@ GIT |
| 43 | 33 | rubyntlm (~> 0.1.1) |
| 44 | 34 | |
| 45 | 35 | GIT |
| 46 | - remote: https://github.com/gitlabhq/pygments.rb.git | |
| 47 | - revision: 2cada028da5054616634a1d9ca6941b65b3ce188 | |
| 48 | - ref: 2cada028da5054616634a1d9ca6941b65b3ce188 | |
| 49 | - specs: | |
| 50 | - pygments.rb (0.2.13) | |
| 51 | - rubypython (~> 0.6.1) | |
| 52 | - | |
| 53 | -GIT | |
| 54 | 36 | remote: https://github.com/gitlabhq/yaml_db.git |
| 55 | 37 | revision: 98e9a5dca43e3fedd3268c76a73af40d1bdf1dfd |
| 56 | 38 | specs: |
| ... | ... | @@ -157,6 +139,11 @@ GEM |
| 157 | 139 | thor (>= 0.13.6) |
| 158 | 140 | gherkin-ruby (0.2.1) |
| 159 | 141 | git (1.2.5) |
| 142 | + github-linguist (2.3.4) | |
| 143 | + charlock_holmes (~> 0.6.6) | |
| 144 | + escape_utils (~> 0.2.3) | |
| 145 | + mime-types (~> 1.19) | |
| 146 | + pygments.rb (>= 0.2.13) | |
| 160 | 147 | github-markup (0.7.4) |
| 161 | 148 | gitlab_meta (2.9) |
| 162 | 149 | gitolite (1.1.0) |
| ... | ... | @@ -264,6 +251,9 @@ GEM |
| 264 | 251 | coderay (~> 1.0.5) |
| 265 | 252 | method_source (~> 0.7.1) |
| 266 | 253 | slop (>= 2.4.4, < 3) |
| 254 | + pygments.rb (0.3.1) | |
| 255 | + posix-spawn (~> 0.3.6) | |
| 256 | + yajl-ruby (~> 1.1.0) | |
| 267 | 257 | pyu-ruby-sasl (0.0.3.3) |
| 268 | 258 | rack (1.4.1) |
| 269 | 259 | rack-cache (1.2) |
| ... | ... | @@ -330,9 +320,6 @@ GEM |
| 330 | 320 | railties (>= 3.0) |
| 331 | 321 | rspec (~> 2.10.0) |
| 332 | 322 | rubyntlm (0.1.1) |
| 333 | - rubypython (0.6.2) | |
| 334 | - blankslate (>= 2.1.2.3) | |
| 335 | - ffi (~> 1.0.7) | |
| 336 | 323 | rubyzip (0.9.8) |
| 337 | 324 | sass (3.1.19) |
| 338 | 325 | sass-rails (3.2.5) |
| ... | ... | @@ -403,6 +390,7 @@ GEM |
| 403 | 390 | crack (>= 0.1.7) |
| 404 | 391 | xpath (0.1.4) |
| 405 | 392 | nokogiri (~> 1.3) |
| 393 | + yajl-ruby (1.1.0) | |
| 406 | 394 | |
| 407 | 395 | PLATFORMS |
| 408 | 396 | ruby |
| ... | ... | @@ -427,6 +415,7 @@ DEPENDENCIES |
| 427 | 415 | ffaker |
| 428 | 416 | foreman |
| 429 | 417 | git |
| 418 | + github-linguist (~> 2.3.4) | |
| 430 | 419 | github-markup (~> 0.7.4) |
| 431 | 420 | gitlab_meta (= 2.9) |
| 432 | 421 | gitolite (= 1.1.0) |
| ... | ... | @@ -445,7 +434,6 @@ DEPENDENCIES |
| 445 | 434 | kaminari |
| 446 | 435 | launchy |
| 447 | 436 | letter_opener |
| 448 | - linguist (~> 1.0.0)! | |
| 449 | 437 | modernizr (= 2.5.3) |
| 450 | 438 | mysql2 |
| 451 | 439 | omniauth |
| ... | ... | @@ -454,7 +442,7 @@ DEPENDENCIES |
| 454 | 442 | omniauth-ldap! |
| 455 | 443 | omniauth-twitter |
| 456 | 444 | pry |
| 457 | - pygments.rb! | |
| 445 | + pygments.rb (= 0.3.1) | |
| 458 | 446 | rack-mini-profiler |
| 459 | 447 | rails (= 3.2.8) |
| 460 | 448 | raphael-rails (= 1.5.2) | ... | ... |
spec/helpers/gitlab_markdown_helper_spec.rb
| ... | ... | @@ -329,9 +329,9 @@ describe GitlabMarkdownHelper do |
| 329 | 329 | end |
| 330 | 330 | |
| 331 | 331 | it "should leave code blocks untouched" do |
| 332 | - markdown("\n some code from $#{snippet.id}\n here too\n").should == "<div class=\"highlight\"><pre><span class=\"n\">some</span> <span class=\"n\">code</span> <span class=\"n\">from</span> $#{snippet.id}\n<span class=\"n\">here</span> <span class=\"n\">too</span>\n</pre>\n</div>\n" | |
| 332 | + markdown("\n some code from $#{snippet.id}\n here too\n").should == "<div class=\"highlight\"><pre><span class=\"n\">some</span> <span class=\"n\">code</span> <span class=\"n\">from</span> $#{snippet.id}\n<span class=\"n\">here</span> <span class=\"n\">too</span>\n</pre></div>" | |
| 333 | 333 | |
| 334 | - markdown("\n```\nsome code from $#{snippet.id}\nhere too\n```\n").should == "<div class=\"highlight\"><pre><span class=\"n\">some</span> <span class=\"n\">code</span> <span class=\"n\">from</span> $#{snippet.id}\n<span class=\"n\">here</span> <span class=\"n\">too</span>\n</pre>\n</div>\n" | |
| 334 | + markdown("\n```\nsome code from $#{snippet.id}\nhere too\n```\n").should == "<div class=\"highlight\"><pre><span class=\"n\">some</span> <span class=\"n\">code</span> <span class=\"n\">from</span> $#{snippet.id}\n<span class=\"n\">here</span> <span class=\"n\">too</span>\n</pre></div>" | |
| 335 | 335 | end |
| 336 | 336 | |
| 337 | 337 | it "should leave inline code untouched" do | ... | ... |