qiita-markdown 0.13.0 → 0.14.0
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/.rubocop.yml +3 -0
- data/.rubocop_todo.yml +0 -6
- data/CHANGELOG.md +3 -0
- data/lib/qiita/markdown/filters/mention.rb +1 -1
- data/lib/qiita/markdown/filters/sanitize.rb +2 -0
- data/lib/qiita/markdown/version.rb +1 -1
- data/qiita-markdown.gemspec +1 -1
- data/spec/qiita/markdown/processor_spec.rb +3 -3
- data/spec/qiita/markdown/summary_processor_spec.rb +1 -1
- metadata +7 -7
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f54a09d35de11e6c0b8048cfe8dde77a4b909896
|
|
4
|
+
data.tar.gz: 367ea2b6458da0baaa0bd09d80713110bcdee391
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e9e187cc785090db99d4b1b9197a8b3f1f148ff681ddfd7be4ca84d66593e5e14a2921362228ee69e8cb577076bdb42a9d7884563d3a3feed8c6a87d86cf9983
|
|
7
|
+
data.tar.gz: 6a54122f245928bd01551fbc2734da61643d77942238020cbc4045bb807eda27b0b62b3b44d27977dd7d0fa38b009be3aa32b05d9eb0bbb8c1579d5be50778ce
|
data/.rubocop.yml
CHANGED
data/.rubocop_todo.yml
CHANGED
|
@@ -10,12 +10,6 @@
|
|
|
10
10
|
Metrics/AbcSize:
|
|
11
11
|
Max: 21
|
|
12
12
|
|
|
13
|
-
# Offense count: 37
|
|
14
|
-
# Configuration parameters: AllowHeredoc, AllowURI, URISchemes.
|
|
15
|
-
# URISchemes: http, https
|
|
16
|
-
Metrics/LineLength:
|
|
17
|
-
Max: 121
|
|
18
|
-
|
|
19
13
|
# Offense count: 4
|
|
20
14
|
# Configuration parameters: CountComments.
|
|
21
15
|
Metrics/MethodLength:
|
data/CHANGELOG.md
CHANGED
|
@@ -53,7 +53,7 @@ module Qiita
|
|
|
53
53
|
url = File.join(base_url, name)
|
|
54
54
|
match.sub(
|
|
55
55
|
"@#{name}",
|
|
56
|
-
%[<a href="#{url}" class="user-mention" title="#{name}">@#{name}</a>]
|
|
56
|
+
%[<a href="#{url}" class="user-mention js-hovercard" title="#{name}" data-hovercard-target-type="user" data-hovercard-target-name="#{name}">@#{name}</a>]
|
|
57
57
|
)
|
|
58
58
|
end
|
|
59
59
|
end
|
data/qiita-markdown.gemspec
CHANGED
|
@@ -25,7 +25,7 @@ Gem::Specification.new do |spec|
|
|
|
25
25
|
spec.add_dependency "pygments.rb"
|
|
26
26
|
spec.add_dependency "greenmat", ">= 3.2.0.2", "< 4"
|
|
27
27
|
spec.add_dependency "sanitize"
|
|
28
|
-
spec.add_development_dependency "activesupport"
|
|
28
|
+
spec.add_development_dependency "activesupport", "4.2.6"
|
|
29
29
|
spec.add_development_dependency "benchmark-ips", "~> 1.2"
|
|
30
30
|
spec.add_development_dependency "bundler", "~> 1.7"
|
|
31
31
|
spec.add_development_dependency "codeclimate-test-reporter", "0.4.4"
|
|
@@ -294,7 +294,7 @@ describe Qiita::Markdown::Processor do
|
|
|
294
294
|
|
|
295
295
|
it "replaces mention with link" do
|
|
296
296
|
should include(<<-EOS.strip_heredoc.rstrip)
|
|
297
|
-
<a href="/alice" class="user-mention" title="alice">@alice</a>
|
|
297
|
+
<a href="/alice" class="user-mention js-hovercard" title="alice" data-hovercard-target-type="user" data-hovercard-target-name="alice">@alice</a>
|
|
298
298
|
EOS
|
|
299
299
|
end
|
|
300
300
|
end
|
|
@@ -306,7 +306,7 @@ describe Qiita::Markdown::Processor do
|
|
|
306
306
|
|
|
307
307
|
it "replaces mention with link" do
|
|
308
308
|
should include(<<-EOS.strip_heredoc.rstrip)
|
|
309
|
-
<a href="/al" class="user-mention" title="al">@al</a>
|
|
309
|
+
<a href="/al" class="user-mention js-hovercard" title="al" data-hovercard-target-type="user" data-hovercard-target-name="al">@al</a>
|
|
310
310
|
EOS
|
|
311
311
|
end
|
|
312
312
|
end
|
|
@@ -393,7 +393,7 @@ describe Qiita::Markdown::Processor do
|
|
|
393
393
|
|
|
394
394
|
it "does not emphasize the name" do
|
|
395
395
|
should include(<<-EOS.strip_heredoc.rstrip)
|
|
396
|
-
<a href="/_alice_" class="user-mention" title="_alice_">@_alice_</a>
|
|
396
|
+
<a href="/_alice_" class="user-mention js-hovercard" title="_alice_" data-hovercard-target-type="user" data-hovercard-target-name="_alice_">@_alice_</a>
|
|
397
397
|
EOS
|
|
398
398
|
end
|
|
399
399
|
end
|
|
@@ -240,7 +240,7 @@ describe Qiita::Markdown::SummaryProcessor do
|
|
|
240
240
|
end
|
|
241
241
|
|
|
242
242
|
it "replaces mention with link" do
|
|
243
|
-
should eq %{<a href="/alice" class="user-mention" title="alice">@alice</a>\n}
|
|
243
|
+
should eq %{<a href="/alice" class="user-mention js-hovercard" title="alice" data-hovercard-target-type="user" data-hovercard-target-name="alice">@alice</a>\n}
|
|
244
244
|
end
|
|
245
245
|
end
|
|
246
246
|
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.
|
|
4
|
+
version: 0.14.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ryo Nakamura
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2016-
|
|
11
|
+
date: 2016-08-22 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: gemoji
|
|
@@ -118,16 +118,16 @@ dependencies:
|
|
|
118
118
|
name: activesupport
|
|
119
119
|
requirement: !ruby/object:Gem::Requirement
|
|
120
120
|
requirements:
|
|
121
|
-
- -
|
|
121
|
+
- - '='
|
|
122
122
|
- !ruby/object:Gem::Version
|
|
123
|
-
version:
|
|
123
|
+
version: 4.2.6
|
|
124
124
|
type: :development
|
|
125
125
|
prerelease: false
|
|
126
126
|
version_requirements: !ruby/object:Gem::Requirement
|
|
127
127
|
requirements:
|
|
128
|
-
- -
|
|
128
|
+
- - '='
|
|
129
129
|
- !ruby/object:Gem::Version
|
|
130
|
-
version:
|
|
130
|
+
version: 4.2.6
|
|
131
131
|
- !ruby/object:Gem::Dependency
|
|
132
132
|
name: benchmark-ips
|
|
133
133
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -291,7 +291,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
291
291
|
version: '0'
|
|
292
292
|
requirements: []
|
|
293
293
|
rubyforge_project:
|
|
294
|
-
rubygems_version: 2.
|
|
294
|
+
rubygems_version: 2.5.1
|
|
295
295
|
signing_key:
|
|
296
296
|
specification_version: 4
|
|
297
297
|
summary: Qiita-specified markdown processor.
|