Commit 6abd1f9347d598d58fd43033816413640fc64049

Authored by Dmitriy Zaporozhets
2 parents 77047ae8 f539c8a3

Merge branch 'update/gems' of /home/git/repositories/gitlab/gitlabhq

Gemfile
... ... @@ -24,7 +24,7 @@ gem 'omniauth-github'
24 24  
25 25 # Extracting information from a git repository
26 26 # Provide access to Gitlab::Git library
27   -gem "gitlab_git", "~> 3.0.0.rc2"
  27 +gem "gitlab_git", "~> 3.1.0"
28 28  
29 29 # Ruby/Rack Git Smart-HTTP Server Handler
30 30 gem 'gitlab-grack', '~> 1.0.1', require: 'grack'
... ... @@ -33,13 +33,13 @@ gem 'gitlab-grack', '~> 1.0.1', require: 'grack'
33 33 gem 'gitlab_omniauth-ldap', '1.0.3', require: "omniauth-ldap"
34 34  
35 35 # Syntax highlighter
36   -gem "gitlab-pygments.rb", '~> 0.3.2', require: 'pygments.rb'
  36 +gem "gitlab-pygments.rb", '~> 0.5.4', require: 'pygments.rb'
37 37  
38 38 # Git Wiki
39   -gem "gitlab-gollum-lib", "~> 1.0.1", require: 'gollum-lib'
  39 +gem "gitlab-gollum-lib", "~> 1.0.2", require: 'gollum-lib'
40 40  
41 41 # Language detection
42   -gem "github-linguist", require: "linguist"
  42 +gem "gitlab-linguist", "~> 2.9.6", require: "linguist"
43 43  
44 44 # API
45 45 gem "grape", "~> 0.4.1"
... ...
Gemfile.lock
... ... @@ -151,22 +151,17 @@ GEM
151 151 fssm (0.2.10)
152 152 gemoji (1.2.1)
153 153 gherkin-ruby (0.3.0)
154   - github-linguist (2.3.4)
155   - charlock_holmes (~> 0.6.6)
156   - escape_utils (~> 0.2.3)
157   - mime-types (~> 1.19)
158   - pygments.rb (>= 0.2.13)
159   - github-markdown (0.5.3)
  154 + github-markdown (0.5.5)
160 155 github-markup (0.7.5)
161 156 gitlab-flowdock-git-hook (0.4.2.2)
162 157 gitlab-grit (>= 2.4.1)
163 158 multi_json
164   - gitlab-gollum-lib (1.0.1)
  159 + gitlab-gollum-lib (1.0.2)
165 160 github-markdown (~> 0.5.3)
166 161 github-markup (>= 0.7.5, < 1.0.0)
167   - gitlab-grit (>= 2.5.1)
  162 + gitlab-grit (~> 2.6.1)
  163 + gitlab-pygments.rb (~> 0.5.4)
168 164 nokogiri (~> 1.5.9)
169   - pygments.rb (~> 0.4.2)
170 165 sanitize (~> 2.0.3)
171 166 stringex (~> 1.5.1)
172 167 gitlab-grack (1.0.1)
... ... @@ -176,13 +171,19 @@ GEM
176 171 diff-lcs (~> 1.1)
177 172 mime-types (~> 1.15)
178 173 posix-spawn (~> 0.3.6)
179   - gitlab-pygments.rb (0.3.2)
  174 + gitlab-linguist (2.9.6)
  175 + charlock_holmes (~> 0.6.6)
  176 + escape_utils (~> 0.2.4)
  177 + gitlab-pygments.rb (~> 0.5.4)
  178 + mime-types (~> 1.19)
  179 + gitlab-pygments.rb (0.5.4)
180 180 posix-spawn (~> 0.3.6)
181 181 yajl-ruby (~> 1.1.0)
182   - gitlab_git (3.0.0.rc2)
  182 + gitlab_git (3.1.0)
183 183 activesupport (~> 3.2.13)
184   - github-linguist (~> 2.3.4)
185 184 gitlab-grit (~> 2.6.1)
  185 + gitlab-linguist (~> 2.9.5)
  186 + gitlab-pygments.rb (~> 0.5.4)
186 187 gitlab_meta (6.0)
187 188 gitlab_omniauth-ldap (1.0.3)
188 189 net-ldap (~> 0.3.1)
... ... @@ -325,9 +326,6 @@ GEM
325 326 coderay (~> 1.0.5)
326 327 method_source (~> 0.8)
327 328 slop (~> 3.4)
328   - pygments.rb (0.4.2)
329   - posix-spawn (~> 0.3.6)
330   - yajl-ruby (~> 1.1.0)
331 329 pyu-ruby-sasl (0.0.3.3)
332 330 quiet_assets (1.0.2)
333 331 railties (>= 3.1, < 5.0)
... ... @@ -575,13 +573,13 @@ DEPENDENCIES
575 573 font-awesome-rails
576 574 foreman
577 575 gemoji (~> 1.2.1)
578   - github-linguist
579 576 github-markup (~> 0.7.4)
580 577 gitlab-flowdock-git-hook (~> 0.4.2)
581   - gitlab-gollum-lib (~> 1.0.1)
  578 + gitlab-gollum-lib (~> 1.0.2)
582 579 gitlab-grack (~> 1.0.1)
583   - gitlab-pygments.rb (~> 0.3.2)
584   - gitlab_git (~> 3.0.0.rc2)
  580 + gitlab-linguist (~> 2.9.6)
  581 + gitlab-pygments.rb (~> 0.5.4)
  582 + gitlab_git (~> 3.1.0)
585 583 gitlab_meta (= 6.0)
586 584 gitlab_omniauth-ldap (= 1.0.3)
587 585 gon
... ...
spec/helpers/gitlab_markdown_helper_spec.rb
... ... @@ -378,9 +378,10 @@ describe GitlabMarkdownHelper do
378 378 it "should leave code blocks untouched" do
379 379 helper.stub(:user_color_scheme_class).and_return(:white)
380 380  
381   - helper.markdown("\n some code from $#{snippet.id}\n here too\n").should include("<div class=\"white\"><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></div>")
  381 + target_html = "<div class=\"white\"><div class=\"highlight\"><pre><span class=\"n\">some</span> <span class=\"n\">code</span> <span class=\"n\">from</span> <span class=\"err\">$</span><span class=\"mi\">#{snippet.id}</span>"
382 382  
383   - helper.markdown("\n```\nsome code from $#{snippet.id}\nhere too\n```\n").should include("<div class=\"white\"><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></div>")
  383 + helper.markdown("\n some code from $#{snippet.id}\n here too\n").should include(target_html)
  384 + helper.markdown("\n```\nsome code from $#{snippet.id}\nhere too\n```\n").should include(target_html)
384 385 end
385 386  
386 387 it "should leave inline code untouched" do
... ...