qiita-markdown 0.7.0 → 0.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/lib/qiita/markdown/filters/mention.rb +1 -1
- data/lib/qiita/markdown/version.rb +1 -1
- data/spec/qiita/markdown/processor_spec.rb +19 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 6b66602727857672deb15686f30a84459ca8abc8
|
|
4
|
+
data.tar.gz: 42d96b87ea9bd7ab22e26b6fcbecccad751f2bf3
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 76e646fabb486443f85395a54821e2b64b6f241ecb4da4ef2bccd4f364b4e33cdc77a457a7523b798bfe90dfe9c4b90472e50e17bed58d4c885bb5a1fb242eb4
|
|
7
|
+
data.tar.gz: 8548756ff8d170d01abb8476af73bc4521b0b37e5c811cadab45cda9b79f7ba5a25f22af334bca7f643bcba8a5040a875e43f4089ccbbf6210f137c2259179bb
|
data/CHANGELOG.md
CHANGED
|
@@ -241,6 +241,18 @@ describe Qiita::Markdown::Processor do
|
|
|
241
241
|
end
|
|
242
242
|
end
|
|
243
243
|
|
|
244
|
+
context "with mention to short name user" do
|
|
245
|
+
let(:markdown) do
|
|
246
|
+
"@al"
|
|
247
|
+
end
|
|
248
|
+
|
|
249
|
+
it "replaces mention with link" do
|
|
250
|
+
should include(<<-EOS.strip_heredoc.rstrip)
|
|
251
|
+
<a href="/al" class="user-mention" title="al">@al</a>
|
|
252
|
+
EOS
|
|
253
|
+
end
|
|
254
|
+
end
|
|
255
|
+
|
|
244
256
|
context "with mentions in complex patterns" do
|
|
245
257
|
let(:markdown) do
|
|
246
258
|
<<-EOS.strip_heredoc
|
|
@@ -258,7 +270,11 @@ describe Qiita::Markdown::Processor do
|
|
|
258
270
|
@justin
|
|
259
271
|
@mallory@github
|
|
260
272
|
@#{'o' * 33}
|
|
261
|
-
@
|
|
273
|
+
@o
|
|
274
|
+
@o-
|
|
275
|
+
@-o
|
|
276
|
+
@o_
|
|
277
|
+
@_o
|
|
262
278
|
EOS
|
|
263
279
|
end
|
|
264
280
|
|
|
@@ -271,6 +287,8 @@ describe Qiita::Markdown::Processor do
|
|
|
271
287
|
Isaac
|
|
272
288
|
justin
|
|
273
289
|
mallory@github
|
|
290
|
+
o_
|
|
291
|
+
_o
|
|
274
292
|
]
|
|
275
293
|
end
|
|
276
294
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: qiita-markdown
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.7.
|
|
4
|
+
version: 0.7.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ryo Nakamura
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2015-04-
|
|
11
|
+
date: 2015-04-22 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activesupport
|