mastalk 0.7.0 → 0.8.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/lib/mastalk/snippets/callout.html.erb +1 -0
- data/lib/mastalk/snippets/callout_tool.html.erb +10 -0
- data/mastalk.gemspec +1 -1
- data/spec/mastalk_spec.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a26475f45ce0d329675da77bbc6b386e8ec6f34b
|
|
4
|
+
data.tar.gz: d4377f59bb3dd449228e5c66011d7891af11fb72
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 276c8468f9b4e9a6f57e7035669098f3fc40490149bb7a4018ccc14126566ea2251d9b1c03cf75d403e3c6fc059adb6c390958b98e09760bb5a7def679460696
|
|
7
|
+
data.tar.gz: d77e768925287c0469bfb79a0aac48f0fb6d3d6ec7f38385e2b5c7a5964448efdb7673e51c6e67b5a71bda6cb4c257dc15b02c60a7bfe2c2aa481667940fd0f8
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# $~tool-callout, ~$
|
|
2
|
+
|
|
3
|
+
<div class='callout callout--tool'>
|
|
4
|
+
<span class="callout__icon">
|
|
5
|
+
<svg class="callout__tool-icon" role="presentation" viewBox="0 0 100 100">
|
|
6
|
+
<use xlink:href="#svg-icon--tool"></use>
|
|
7
|
+
</svg>
|
|
8
|
+
</span>
|
|
9
|
+
<%= Mastalk::Document.new(body.strip).to_html(:auto_id => false) %>
|
|
10
|
+
</div>
|
data/mastalk.gemspec
CHANGED
|
@@ -3,7 +3,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
|
3
3
|
|
|
4
4
|
Gem::Specification.new do |s|
|
|
5
5
|
s.name = 'mastalk'
|
|
6
|
-
s.version = '0.
|
|
6
|
+
s.version = '0.8.0'
|
|
7
7
|
s.summary = 'mastalk'
|
|
8
8
|
s.description = 'Mastalk markdown extension language'
|
|
9
9
|
s.authors = ['Douglas Roper', 'Justin Perry']
|
data/spec/mastalk_spec.rb
CHANGED
|
@@ -102,7 +102,7 @@ describe Mastalk::Document do
|
|
|
102
102
|
let(:source) { "$~callout\n ##yes ~$ $~callout\n ##yes ~$" }
|
|
103
103
|
|
|
104
104
|
let(:expected) do
|
|
105
|
-
%Q(<div class="callout">\n <h2>yes</h2>\n\n</div>\n<div class="callout">\n <h2>yes</h2>\n\n</div>\n)
|
|
105
|
+
%Q(<div class="callout">\n <span class="callout__icon" aria-hidden="true">?</span>\n <h2>yes</h2>\n\n</div>\n<div class="callout">\n <span class="callout__icon" aria-hidden="true">?</span>\n <h2>yes</h2>\n\n</div>\n)
|
|
106
106
|
end
|
|
107
107
|
|
|
108
108
|
it 'pre-processes correctly, without adding ids to headings' do
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: mastalk
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.8.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Douglas Roper
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2016-
|
|
12
|
+
date: 2016-11-30 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: kramdown
|
|
@@ -116,6 +116,7 @@ files:
|
|
|
116
116
|
- lib/mastalk/snippets/bright_video.html.erb
|
|
117
117
|
- lib/mastalk/snippets/bullet_points.html.erb
|
|
118
118
|
- lib/mastalk/snippets/callout.html.erb
|
|
119
|
+
- lib/mastalk/snippets/callout_tool.html.erb
|
|
119
120
|
- lib/mastalk/snippets/collabsible_section.html.erb
|
|
120
121
|
- lib/mastalk/snippets/collapsible_header.html.erb
|
|
121
122
|
- lib/mastalk/snippets/how.html.erb
|