mastalk 0.7.0 → 0.8.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4c7fac396db1618afdef3733cb97481153162700
4
- data.tar.gz: 35d7bbbd980875e2fc5d1feb9f54fc4772e020d4
3
+ metadata.gz: a26475f45ce0d329675da77bbc6b386e8ec6f34b
4
+ data.tar.gz: d4377f59bb3dd449228e5c66011d7891af11fb72
5
5
  SHA512:
6
- metadata.gz: 93953d6fc69652aa456a64ea9c75d44630960b5e3c7908cf431f93b86ca9d6f02c2467e46f8a087c3cee754acc879a97917b0683c57bb20c2a92082639768960
7
- data.tar.gz: 1df6c53c87d0bd576abd044757bd5688fe416a76b9ad49b21cad84cf005e405500075491bef93058f2a4afc4847f3e94a4c354595c69e3fad6fb85151d9646eb
6
+ metadata.gz: 276c8468f9b4e9a6f57e7035669098f3fc40490149bb7a4018ccc14126566ea2251d9b1c03cf75d403e3c6fc059adb6c390958b98e09760bb5a7def679460696
7
+ data.tar.gz: d77e768925287c0469bfb79a0aac48f0fb6d3d6ec7f38385e2b5c7a5964448efdb7673e51c6e67b5a71bda6cb4c257dc15b02c60a7bfe2c2aa481667940fd0f8
@@ -1,5 +1,6 @@
1
1
  # $~callout, ~$
2
2
 
3
3
  <div class='callout'>
4
+ <span class="callout__icon" aria-hidden="true">?</span>
4
5
  <%= Mastalk::Document.new(body.strip).to_html(:auto_id => false) %>
5
6
  </div>
@@ -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.7.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.7.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-10-03 00:00:00.000000000 Z
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