markdown_media 1.3 → 1.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/README.md +46 -21
- data/lib/markdown_media.rb +73 -36
- data/lib/markdown_media/version.rb +1 -1
- data/lib/templates/giphy.erb +11 -0
- data/lib/templates/instagram.erb +22 -12
- data/lib/templates/link.erb +3 -1
- data/markdown_media.gemspec +3 -3
- metadata +19 -19
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 16042959f63276782a51a0ba97464089d6c6811adfd01cfb5b2716fad4f4bd63
|
4
|
+
data.tar.gz: 73518ef8fa11dd100ba4d48a4ac63b0bdfb6e0b0c8a6596af229ae1025bde46f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 54f8455ae1329dcdaf788f4bede41cc4fead9db0a57aadd277dda643abe53cddb8a227a7967c3804dff2652d2de99aa960f780aa21a805b5fd87892666469c6e
|
7
|
+
data.tar.gz: 89f0b56692c2ed81352394decd441e10bbb9db7ce99fd3209ef5b7e7bd2ba00daea255173e097c4ffa568d4d3942f3b338d2a38a5e824a1a1740fb9937e7f3ff
|
data/README.md
CHANGED
@@ -2,30 +2,30 @@
|
|
2
2
|
|
3
3
|
[![Build Status](https://travis-ci.org/veganstraightedge/markdown_media.svg?branch=master)](https://travis-ci.org/veganstraightedge/markdown_media)
|
4
4
|
[![Code Climate](https://codeclimate.com/github/veganstraightedge/markdown_media/badges/gpa.svg)](https://codeclimate.com/github/veganstraightedge/markdown_media)
|
5
|
-
![Version 1.
|
5
|
+
![Version 1.6.0](https://img.shields.io/badge/VERSION-1.6.0-green.svg)
|
6
6
|
|
7
7
|
This syntax uses doubles square brackets on each side of a URL and optional options.
|
8
|
-
It expands into the current preferred embed code for that site
|
8
|
+
It expands into the current preferred embed code for that site’s media or raw media.
|
9
9
|
Supported media types: YouTube, Vimeo, Instagram, Twitter, Daily Motion, images, videos, audios.
|
10
10
|
|
11
11
|
|
12
12
|
## Installation
|
13
13
|
|
14
|
-
Add this line to your application
|
14
|
+
Add this line to your application’s Gemfile:
|
15
15
|
|
16
16
|
```ruby
|
17
|
-
gem
|
17
|
+
gem 'markdown_media'
|
18
18
|
```
|
19
19
|
|
20
20
|
And then execute:
|
21
21
|
|
22
|
-
```
|
22
|
+
```sh
|
23
23
|
bundle
|
24
24
|
```
|
25
25
|
|
26
26
|
Or install it yourself as:
|
27
27
|
|
28
|
-
```
|
28
|
+
```sh
|
29
29
|
gem install markdown_media
|
30
30
|
```
|
31
31
|
|
@@ -34,11 +34,11 @@ gem install markdown_media
|
|
34
34
|
|
35
35
|
### As a Writer
|
36
36
|
|
37
|
-
This a syntax that can sit on top of Markdown (or any templating format, except MediaWiki which already uses the double square bracket syntax). The purpose is to simplify adding images (with or without caption and optionally linked), videos, tweets, audio, etc for writers in a CMS. The HTML that we want for a video is different from an image. But as a writer, it
|
37
|
+
This a syntax that can sit on top of Markdown (or any templating format, except MediaWiki which already uses the double square bracket syntax). The purpose is to simplify adding images (with or without caption and optionally linked), videos, tweets, audio, etc for writers in a CMS. The HTML that we want for a video is different from an image. But as a writer, it’s conceptually the same, “here’s a piece of media and its caption, stick it in the page right here”.
|
38
38
|
|
39
|
-
So, the media embed syntax makes it so you don
|
39
|
+
So, the media embed syntax makes it so you don’t have to think about the differences between YouTube, Vimeo, Twitter and an image. Here’s how it works.
|
40
40
|
|
41
|
-
There are six pieces. Some are required. Some are optional. It must always be on one line. But for explanation here, I
|
41
|
+
There are six pieces. Some are required. Some are optional. It must always be on one line. But for explanation here, I’ll put them on separate lines, then tie it all together.
|
42
42
|
|
43
43
|
```
|
44
44
|
[[
|
@@ -51,7 +51,7 @@ type (used for Twitter video)
|
|
51
51
|
]]
|
52
52
|
```
|
53
53
|
|
54
|
-
Here
|
54
|
+
Here’s what they all mean.
|
55
55
|
|
56
56
|
- **Required**. Always put a blank line above the media embed
|
57
57
|
- **Required**. Always start the media embed with two left square brackets (no space between them).
|
@@ -64,14 +64,14 @@ Here's what they all mean.
|
|
64
64
|
|
65
65
|
### As a Developer
|
66
66
|
|
67
|
-
```
|
68
|
-
MarkdownMedia.parse(
|
67
|
+
```ruby
|
68
|
+
MarkdownMedia.parse('[[https://example.com/photo.png]]')
|
69
69
|
```
|
70
70
|
|
71
71
|
In Rails, you might also need to add `.html_safe` to avoid escaping.
|
72
72
|
|
73
|
-
```
|
74
|
-
MarkdownMedia.parse(
|
73
|
+
```ruby
|
74
|
+
MarkdownMedia.parse('[[https://example.com/photo.png]]').html_safe
|
75
75
|
```
|
76
76
|
|
77
77
|
### Examples
|
@@ -87,13 +87,13 @@ A simple image.
|
|
87
87
|
An image with a caption.
|
88
88
|
|
89
89
|
```
|
90
|
-
[[https://example.com/image.png Look at me, I
|
90
|
+
[[https://example.com/image.png Look at me, I’m a caption!]]
|
91
91
|
```
|
92
92
|
|
93
93
|
An image with Markdown in the caption.
|
94
94
|
|
95
95
|
```
|
96
|
-
[[https://example.com/image.png _Look at me_, I
|
96
|
+
[[https://example.com/image.png _Look at me_, I’m a **caption**!]]
|
97
97
|
```
|
98
98
|
|
99
99
|
An image linked to a URL (requires a caption present).
|
@@ -146,12 +146,18 @@ A video from YouTube with caption.
|
|
146
146
|
[[https://www.youtube.com/watch?v=YX40hbAHx3s P vs. NP and the Computational Complexity Zoo]]
|
147
147
|
```
|
148
148
|
|
149
|
-
YouTube
|
149
|
+
YouTube’s short URL format also works.
|
150
150
|
|
151
151
|
```
|
152
152
|
[[https://youtu.be/YX40hbAHx3s]]
|
153
153
|
```
|
154
154
|
|
155
|
+
YouTube’s embed URL format also works.
|
156
|
+
|
157
|
+
```
|
158
|
+
[[https://www.youtube.com/embed/YX40hbAHx3s]]
|
159
|
+
```
|
160
|
+
|
155
161
|
A video from Daily Motion.
|
156
162
|
|
157
163
|
```
|
@@ -164,6 +170,18 @@ A video from Twitter.
|
|
164
170
|
[[https://twitter.com/Breaking911/status/900211169734131713 type:video]]
|
165
171
|
```
|
166
172
|
|
173
|
+
A video/gif from Giphy.
|
174
|
+
|
175
|
+
```
|
176
|
+
[[https://giphy.com/gifs/cat-funny-OrNbkY7oQOrh6]]
|
177
|
+
```
|
178
|
+
|
179
|
+
A video/gif from Giphy with caption.
|
180
|
+
|
181
|
+
```
|
182
|
+
[[https://giphy.com/gifs/cat-funny-OrNbkY7oQOrh6 Dogs and cats are buddies.]]
|
183
|
+
```
|
184
|
+
|
167
185
|
#### Audio
|
168
186
|
|
169
187
|
A simple audio.
|
@@ -183,10 +201,16 @@ A simple audio with caption.
|
|
183
201
|
Any URL in a [[]] block that is unrecognized, just gets rendered into a linked URL.
|
184
202
|
|
185
203
|
```
|
186
|
-
[[https://veganstraightedge.com/cancer]]
|
204
|
+
[[https://veganstraightedge.com/cancer]]
|
205
|
+
```
|
206
|
+
|
207
|
+
That gets turned into this.
|
208
|
+
|
209
|
+
```html
|
210
|
+
<a href='https://veganstraightedge.com/cancer'>https://veganstraightedge.com/cancer</a>.
|
187
211
|
```
|
188
212
|
|
189
|
-
If you try to embed some piece of media and it renders to a URL that means that that kind of URL isn
|
213
|
+
If you try to embed some piece of media and it renders to a URL that means that that kind of URL isn’t supported yet. But don’t distress, new sites are pretty easy to add. So, raise a flag in Slack or GitHub Issues.
|
190
214
|
|
191
215
|
### Supported Media URLs
|
192
216
|
|
@@ -207,6 +231,7 @@ Here are the currently supported URLs and media types.
|
|
207
231
|
- https://youtu.be/video-id
|
208
232
|
- http://www.dailymotion.com/video/video-id_video-slug
|
209
233
|
- https://twitter.com/Breaking911/status/900211169734131713
|
234
|
+
- https://giphy.com/gifs/cat-funny-OrNbkY7oQOrh6
|
210
235
|
|
211
236
|
#### Audios
|
212
237
|
|
@@ -250,6 +275,6 @@ Your heart is as free as the air you breathe. <br>
|
|
250
275
|
The ground you stand on is liberated territory.
|
251
276
|
|
252
277
|
In legal text, *Markdown Media* is dedicated to the public domain
|
253
|
-
using Creative Commons
|
278
|
+
using Creative Commons — CC0 1.0 Universal.
|
254
279
|
|
255
|
-
[http://creativecommons.org/publicdomain/zero/1.0](http://creativecommons.org/publicdomain/zero/1.0 "Creative Commons
|
280
|
+
[http://creativecommons.org/publicdomain/zero/1.0](http://creativecommons.org/publicdomain/zero/1.0 "Creative Commons — CC0 1.0 Universal")
|
data/lib/markdown_media.rb
CHANGED
@@ -7,7 +7,7 @@ module MarkdownMedia
|
|
7
7
|
EMBED_REGEX = /\[\[\s*(http[^\]\s]+(?:\s.+)?)\s*\]\]/
|
8
8
|
|
9
9
|
class << self
|
10
|
-
def parse(text)
|
10
|
+
def parse(text, include_media: true)
|
11
11
|
output = text.gsub(EMBED_REGEX) do
|
12
12
|
embed_tag = $1
|
13
13
|
|
@@ -25,7 +25,13 @@ module MarkdownMedia
|
|
25
25
|
|
26
26
|
caption = embed_tag_pieces.join(" ")
|
27
27
|
|
28
|
-
expanded_embed(url,
|
28
|
+
expanded_embed(url,
|
29
|
+
caption: caption,
|
30
|
+
link: link,
|
31
|
+
id: id,
|
32
|
+
type: type,
|
33
|
+
klass: klass,
|
34
|
+
include_media: include_media)
|
29
35
|
end
|
30
36
|
end
|
31
37
|
|
@@ -75,55 +81,86 @@ module MarkdownMedia
|
|
75
81
|
end
|
76
82
|
end
|
77
83
|
|
78
|
-
def expanded_embed(url, caption: nil, link: nil, id: nil, type: nil, klass: nil)
|
84
|
+
def expanded_embed(url, caption: nil, link: nil, id: nil, type: nil, klass: nil, include_media: true)
|
79
85
|
url = URI.parse(url)
|
80
86
|
|
81
|
-
|
82
|
-
|
87
|
+
options = extract_options(url: url, include_media: include_media)
|
88
|
+
slug = options[:slug]
|
89
|
+
embed_id = options[:embed_id]
|
90
|
+
type ||= options[:type]
|
91
|
+
|
92
|
+
render_erb slug, {
|
93
|
+
embed_id: embed_id || url.to_s,
|
94
|
+
caption: caption,
|
95
|
+
link: link,
|
96
|
+
id: id,
|
97
|
+
type: type,
|
98
|
+
klass: klass
|
99
|
+
}
|
100
|
+
end
|
101
|
+
|
102
|
+
# TODO: there’s got to be a better way, refactor to classes
|
103
|
+
def extract_options url:, include_media: true
|
104
|
+
type = nil
|
105
|
+
|
106
|
+
if url.to_s =~ %r{youtube.com/embed}
|
83
107
|
slug = "youtube"
|
84
|
-
embed_id =
|
108
|
+
embed_id = url.path.split("/embed/")[1]
|
109
|
+
else
|
110
|
+
|
111
|
+
case url.host
|
112
|
+
when /youtube.com/
|
113
|
+
slug = "youtube"
|
114
|
+
embed_id = nil
|
85
115
|
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
116
|
+
url.query.split("&").each do |key_value_pair|
|
117
|
+
argument, value = key_value_pair.split("=")
|
118
|
+
if argument == "v"
|
119
|
+
embed_id = value
|
120
|
+
end
|
90
121
|
end
|
91
|
-
end
|
92
122
|
|
93
|
-
|
94
|
-
|
95
|
-
|
123
|
+
when "youtu.be"
|
124
|
+
slug = "youtube"
|
125
|
+
embed_id = url.path.split("/").map{ |path_piece| path_piece unless path_piece.to_s.empty? }.compact.first
|
96
126
|
|
97
|
-
|
98
|
-
|
99
|
-
|
127
|
+
when /dailymotion.com/
|
128
|
+
slug = "dailymotion"
|
129
|
+
embed_id = url.path.split("/video/").map{ |path_piece| path_piece unless path_piece.to_s.empty? }.compact.first.split("_").first
|
100
130
|
|
101
|
-
|
102
|
-
|
103
|
-
|
131
|
+
when "vimeo.com"
|
132
|
+
slug = "vimeo"
|
133
|
+
embed_id = url.path.split("/").map{ |path_piece| path_piece unless path_piece.to_s.empty? }.compact.first
|
104
134
|
|
105
|
-
|
106
|
-
|
107
|
-
|
135
|
+
when "twitter.com"
|
136
|
+
slug = "twitter"
|
137
|
+
type ||= "tweet"
|
108
138
|
|
109
|
-
|
110
|
-
|
139
|
+
when /instagram/
|
140
|
+
slug = "instagram"
|
141
|
+
|
142
|
+
when "giphy.com"
|
143
|
+
slug = "giphy"
|
144
|
+
embed_id = url.path.split("/").last.split('-').last
|
111
145
|
|
112
|
-
else
|
113
|
-
slug = case url.path
|
114
|
-
|
115
|
-
when /\.mp3|\.aac|\.wav|\.ogg|\.oga|\.m4a/
|
116
|
-
"audio"
|
117
|
-
when /\.mp4|\.avi|\.mov|\.ogv|\.webm|\.m4v|\.3gp|\.m3u8/
|
118
|
-
"video"
|
119
|
-
when /\.png|\.jpeg|\.jpg|\.gif|\.svg/
|
120
|
-
"image"
|
121
146
|
else
|
122
|
-
|
147
|
+
slug =
|
148
|
+
case url.path
|
149
|
+
when /\.mp3|\.aac|\.wav|\.ogg|\.oga|\.m4a/
|
150
|
+
"audio"
|
151
|
+
when /\.mp4|\.avi|\.mov|\.ogv|\.webm|\.m4v|\.3gp|\.m3u8/
|
152
|
+
"video"
|
153
|
+
when /\.png|\.jpeg|\.jpg|\.gif|\.svg/
|
154
|
+
"image"
|
155
|
+
else
|
156
|
+
"link"
|
157
|
+
end
|
123
158
|
end
|
124
159
|
end
|
125
160
|
|
126
|
-
|
161
|
+
slug = 'link' if include_media == false
|
162
|
+
|
163
|
+
{ slug: slug, embed_id: embed_id, type: type }
|
127
164
|
end
|
128
165
|
|
129
166
|
def render_erb(template_slug, locals)
|
@@ -0,0 +1,11 @@
|
|
1
|
+
<figure class="video-container <%= klass %>" id="<%= id %>">
|
2
|
+
<div style="width:100%;height:0;padding-bottom:56%;position:relative;">
|
3
|
+
<iframe src="https://giphy.com/embed/<%= embed_id %>" width="100%" height="100%" frameborder="0" class="giphy-embed" webkitallowfullscreen mozallowfullscreen allowFullScreen></iframe>
|
4
|
+
</div>
|
5
|
+
|
6
|
+
<% unless caption.to_s.empty? %>
|
7
|
+
<figcaption class="caption video-caption video-caption-giphy">
|
8
|
+
<%= MarkdownMedia.render_markdown caption %>
|
9
|
+
</figcaption>
|
10
|
+
<% end %>
|
11
|
+
</figure>
|
data/lib/templates/instagram.erb
CHANGED
@@ -1,14 +1,24 @@
|
|
1
|
-
<
|
2
|
-
<
|
3
|
-
|
4
|
-
|
1
|
+
<figure class="video-container <%= klass %>" id="<%= id %>">
|
2
|
+
<blockquote class="instagram-media"
|
3
|
+
data-instgrm-version="7"
|
4
|
+
style="background:#FFF; border:0; border-radius:3px; box-shadow:0 0 1px 0 rgba(0,0,0,0.5),0 1px 10px 0 rgba(0,0,0,0.15); max-width:658px; padding:0; width:99.375%; width:-webkit-calc(100% - 2px); width:calc(100% - 2px);">
|
5
|
+
<div style="padding:8px;">
|
6
|
+
<div style=" background:#F8F8F8; line-height:0; margin-top:40px; padding:50.0% 0; text-align:center; width:100%;">
|
7
|
+
<div style="background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAsCAMAAAApWqozAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAMUExURczMzPf399fX1+bm5mzY9AMAAADiSURBVDjLvZXbEsMgCES5/P8/t9FuRVCRmU73JWlzosgSIIZURCjo/ad+EQJJB4Hv8BFt+IDpQoCx1wjOSBFhh2XssxEIYn3ulI/6MNReE07UIWJEv8UEOWDS88LY97kqyTliJKKtuYBbruAyVh5wOHiXmpi5we58Ek028czwyuQdLKPG1Bkb4NnM+VeAnfHqn1k4+GPT6uGQcvu2h2OVuIf/gWUFyy8OWEpdyZSa3aVCqpVoVvzZZ2VTnn2wU8qzVjDDetO90GSy9mVLqtgYSy231MxrY6I2gGqjrTY0L8fxCxfCBbhWrsYYAAAAAElFTkSuQmCC); display:block; height:44px; margin:0 auto -44px; position:relative; top:-22px; width:44px;"></div>
|
8
|
+
</div>
|
9
|
+
|
10
|
+
<p style=" color:#c9c8cd; font-family:Arial,sans-serif; font-size:14px; line-height:17px; margin-bottom:0; margin-top:8px; overflow:hidden; padding:8px 0 7px; text-align:center; text-overflow:ellipsis; white-space:nowrap;">
|
11
|
+
<a href="<%= embed_id.to_s %>" style=" color:#c9c8cd; font-family:Arial,sans-serif; font-size:14px; font-style:normal; font-weight:normal; line-height:17px; text-decoration:none;" target="_blank">
|
12
|
+
<%= embed_id.to_s %>
|
13
|
+
</a>
|
14
|
+
</p>
|
5
15
|
</div>
|
16
|
+
</blockquote>
|
17
|
+
<script async defer src="https://platform.instagram.com/en_US/embeds.js"></script>
|
6
18
|
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
</blockquote>
|
14
|
-
<script async defer src="https://platform.instagram.com/en_US/embeds.js"></script>
|
19
|
+
<% unless caption.to_s.empty? %>
|
20
|
+
<figcaption class="caption video-caption" style="max-width:658px;">
|
21
|
+
<%= MarkdownMedia.render_markdown caption %>
|
22
|
+
</figcaption>
|
23
|
+
<% end %>
|
24
|
+
</figure>
|
data/lib/templates/link.erb
CHANGED
@@ -1 +1,3 @@
|
|
1
|
-
<a href="<%= embed_id.to_s %>" id="<%= id %>" class="<%= klass %>"
|
1
|
+
<a href="<%= embed_id.to_s %>" id="<%= id %>" class="<%= klass %>">
|
2
|
+
<%= caption.to_s.empty? ? embed_id.to_s.sub(/^https*:\/\//, "").sub(/\/$/, "") : caption %>
|
3
|
+
</a>
|
data/markdown_media.gemspec
CHANGED
@@ -28,9 +28,9 @@ Gem::Specification.new do |spec|
|
|
28
28
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
29
29
|
spec.require_paths = ["lib"]
|
30
30
|
|
31
|
-
spec.add_development_dependency "bundler"
|
32
|
-
spec.add_development_dependency "rake"
|
33
|
-
spec.add_development_dependency "rspec"
|
31
|
+
spec.add_development_dependency "bundler"
|
32
|
+
spec.add_development_dependency "rake"
|
33
|
+
spec.add_development_dependency "rspec"
|
34
34
|
|
35
35
|
spec.add_runtime_dependency "kramdown"
|
36
36
|
end
|
metadata
CHANGED
@@ -1,57 +1,57 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: markdown_media
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 1.7.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Shane Becker
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-01-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
19
|
+
version: '0'
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - "
|
24
|
+
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '
|
26
|
+
version: '0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rake
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - "
|
31
|
+
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
33
|
+
version: '0'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- - "
|
38
|
+
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '
|
40
|
+
version: '0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rspec
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- - "
|
45
|
+
- - ">="
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: '
|
47
|
+
version: '0'
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- - "
|
52
|
+
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: '
|
54
|
+
version: '0'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: kramdown
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -90,6 +90,7 @@ files:
|
|
90
90
|
- lib/markdown_media/version.rb
|
91
91
|
- lib/templates/audio.erb
|
92
92
|
- lib/templates/dailymotion.erb
|
93
|
+
- lib/templates/giphy.erb
|
93
94
|
- lib/templates/image.erb
|
94
95
|
- lib/templates/instagram.erb
|
95
96
|
- lib/templates/link.erb
|
@@ -102,7 +103,7 @@ homepage: https://github.com/veganstraightedge/markdown_media
|
|
102
103
|
licenses:
|
103
104
|
- CC0
|
104
105
|
metadata: {}
|
105
|
-
post_install_message:
|
106
|
+
post_install_message:
|
106
107
|
rdoc_options: []
|
107
108
|
require_paths:
|
108
109
|
- lib
|
@@ -117,9 +118,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
117
118
|
- !ruby/object:Gem::Version
|
118
119
|
version: '0'
|
119
120
|
requirements: []
|
120
|
-
|
121
|
-
|
122
|
-
signing_key:
|
121
|
+
rubygems_version: 3.1.4
|
122
|
+
signing_key:
|
123
123
|
specification_version: 4
|
124
124
|
summary: A [[ URL ]] syntax to embed media into views.
|
125
125
|
test_files: []
|