qiita-markdown 0.4.1 → 0.4.2

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of qiita-markdown might be problematic. Click here for more details.

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ba15df7ff688954d9ed0cca93c9649048a3ae67e
4
- data.tar.gz: 0a0e5b6255a418ea57f8005d2058f951d0c2b6cd
3
+ metadata.gz: 562609fe58337615b673c876377987e51854fcd4
4
+ data.tar.gz: cf66ad7199327b467430b2f967f0ebe23aac7be1
5
5
  SHA512:
6
- metadata.gz: f32b5aec2b47a82a80164388eb003908ed14f6d576b0d42d1f6d749276d898b3a05bd888e6fb14716f7d5f3b0e74aaa0f69be99b8e16ecca1b4a9e27b38e76d9
7
- data.tar.gz: 6cac4642236cdc70cdba998018f949e1a80484e7a852ba6157a488d0f8c114ba040ebafbaecc16c83e26ecec4f79e76b2d15e58de1ede56d3466d8f9f366dfba
6
+ metadata.gz: 253c48a2cef9c1421796f8461e128f89c523cb908b47b7086d81d771bf79ad2647546b885ea9732aadda53147001db3a03fd1885a4eead4f641e7e2dd753b114
7
+ data.tar.gz: f844f7a22030b9142b4aff9292a81bd7f8ca36387a6ade044baabe930535eeb7a1dfc770d72b0d3ba50867eec7f12adfeb0d07c4739eb2d134fb9343bbc78d8d
data/.travis.yml CHANGED
@@ -1,6 +1,9 @@
1
1
  before_install:
2
- - sudo apt-get update -qq
3
- - sudo apt-get install libicu-dev
2
+ - sudo apt-get update -qq
3
+ - sudo apt-get install libicu-dev
4
4
  language: ruby
5
5
  rvm:
6
6
  - 2.0.0
7
+ env:
8
+ global:
9
+ secure: n8eyxYYfxLApgR4YGKqbrOgGlraIyLyoql4K4DvLZV4kqfGf9LLsPdP7Shudqrv5k2h8xIwnJVnwcPZx9YCu5WWYrJd7vmivpU2j52LwFPYRM+GFNcu7TXmzcNSPG8agnc5We9amF5zJY6XSTpzWpxyqfIwEZM75iR6XXuHuLFk=
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ ## 0.4.2
2
+ - Fix bug on SummaryProcessor with mention
3
+
1
4
  ## 0.4.1
2
5
  - Ignore mention in filename label
3
6
 
@@ -42,7 +42,7 @@ module Qiita
42
42
  end
43
43
 
44
44
  def has_ancestor?(node, tags)
45
- super || node.parent.parent["class"] == "code-lang"
45
+ super || node.parent.parent && node.parent.parent["class"] == "code-lang"
46
46
  end
47
47
  end
48
48
  end
@@ -1,5 +1,5 @@
1
1
  module Qiita
2
2
  module Markdown
3
- VERSION = "0.4.1"
3
+ VERSION = "0.4.2"
4
4
  end
5
5
  end
@@ -231,5 +231,17 @@ describe Qiita::Markdown::SummaryProcessor do
231
231
  should eq "Lorem ipsu"
232
232
  end
233
233
  end
234
+
235
+ context "with mention" do
236
+ let(:markdown) do
237
+ <<-EOS.strip_heredoc
238
+ @alice
239
+ EOS
240
+ end
241
+
242
+ it "replaces mention with link" do
243
+ should eq %{<a href="/alice" class="user-mention" title="alice">@alice</a>\n}
244
+ end
245
+ end
234
246
  end
235
247
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: qiita-markdown
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1
4
+ version: 0.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryo Nakamura