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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 7c783195b2805f1968847903953f28c369539484
4
- data.tar.gz: 9faf2d6ee457d0c93693cc4446c7cda2688fcfca
2
+ SHA256:
3
+ metadata.gz: 16042959f63276782a51a0ba97464089d6c6811adfd01cfb5b2716fad4f4bd63
4
+ data.tar.gz: 73518ef8fa11dd100ba4d48a4ac63b0bdfb6e0b0c8a6596af229ae1025bde46f
5
5
  SHA512:
6
- metadata.gz: 73d5056d1e39114551b9b50af7098428c9dc0d88e27915b2bbce98484a62d5bde01f47301cc61730c06ef10c3ff59f5216d5c419aca657bcd8ac30c83867bd97
7
- data.tar.gz: 9521dfa197f1955358fe12a434044cc2982d0d48d354b093982643d75ef96bf17c52b14f62d5cd0191594146fb10c3a5ff50ee7b4477ceab2e30d1b358cff550
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.0.0](https://img.shields.io/badge/VERSION-1.2.1-green.svg)
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's media or raw media.
8
+ It expands into the current preferred embed code for that sites 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's Gemfile:
14
+ Add this line to your applications Gemfile:
15
15
 
16
16
  ```ruby
17
- gem "markdown_media"
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's conceptually the same, "here's a piece of media and its caption, stick it in the page right here".
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, its conceptually the same, heres 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't have to think about the differences between YouTube, Vimeo, Twitter and an image. Here's how it works.
39
+ So, the media embed syntax makes it so you dont have to think about the differences between YouTube, Vimeo, Twitter and an image. Heres 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'll put them on separate lines, then tie it all together.
41
+ There are six pieces. Some are required. Some are optional. It must always be on one line. But for explanation here, Ill 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's what they all mean.
54
+ Heres 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("[[https://example.com/photo.png]]")
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("[[https://example.com/photo.png]]").html_safe
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'm a caption!]]
90
+ [[https://example.com/image.png Look at me, Im 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'm a **caption**!]]
96
+ [[https://example.com/image.png _Look at me_, Im 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's short URL format also works.
149
+ YouTubes 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]] gets turned into <a href="https://veganstraightedge.com/cancer">https://veganstraightedge.com/cancer</a>.
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't supported yet. But don't distress, new sites are pretty easy to add. So, raise a flag in Slack or GitHub Issues.
213
+ If you try to embed some piece of media and it renders to a URL that means that that kind of URL isnt supported yet. But dont 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 -- CC0 1.0 Universal.
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 &mdash; CC0 1.0 Universal")
280
+ [http://creativecommons.org/publicdomain/zero/1.0](http://creativecommons.org/publicdomain/zero/1.0 "Creative Commons CC0 1.0 Universal")
@@ -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, caption: caption, link: link, id: id, type: type, klass: klass)
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
- case url.host
82
- when /youtube.com/
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 = nil
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
- url.query.split("&").each do |key_value_pair|
87
- argument, value = key_value_pair.split("=")
88
- if argument == "v"
89
- embed_id = value
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
- when "youtu.be"
94
- slug = "youtube"
95
- embed_id = url.path.split("/").map{ |path_piece| path_piece unless path_piece.to_s.empty? }.compact.first
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
- when /dailymotion.com/
98
- slug = "dailymotion"
99
- embed_id = url.path.split("/video/").map{ |path_piece| path_piece unless path_piece.to_s.empty? }.compact.first.split("_").first
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
- when "vimeo.com"
102
- slug = "vimeo"
103
- embed_id = url.path.split("/").map{ |path_piece| path_piece unless path_piece.to_s.empty? }.compact.first
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
- when "twitter.com"
106
- slug = "twitter"
107
- type ||= "tweet"
135
+ when "twitter.com"
136
+ slug = "twitter"
137
+ type ||= "tweet"
108
138
 
109
- when /instagram/
110
- slug = "instagram"
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
- "link"
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
- render_erb slug, { embed_id: embed_id || url.to_s, caption: caption, link: link, id: id, type: type, klass: klass }
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)
@@ -1,3 +1,3 @@
1
1
  module MarkdownMedia
2
- VERSION = "1.3"
2
+ VERSION = "1.7.0"
3
3
  end
@@ -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>
@@ -1,14 +1,24 @@
1
- <blockquote class="instagram-media <%= klass %>" id="<%= id %>" data-instgrm-version="7" 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); margin: 1px; max-width:658px; padding:0; width:99.375%; width:-webkit-calc(100% - 2px); width:calc(100% - 2px);">
2
- <div style="padding:8px;">
3
- <div style=" background:#F8F8F8; line-height:0; margin-top:40px; padding:50.0% 0; text-align:center; width:100%;">
4
- <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>
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
- <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;">
8
- <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">
9
- <%= embed_id.to_s %>
10
- </a>
11
- </p>
12
- </div>
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>
@@ -1 +1,3 @@
1
- <a href="<%= embed_id.to_s %>" id="<%= id %>" class="<%= klass %>"><%= caption.to_s.empty? ? embed_id.to_s.sub(/^https*:\/\//, "").sub(/\/$/, "") : caption %></a>
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>
@@ -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", "~> 1.14"
32
- spec.add_development_dependency "rake", "~> 10.0"
33
- spec.add_development_dependency "rspec", "~> 3.7"
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: '1.3'
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: 2017-12-19 00:00:00.000000000 Z
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: '1.14'
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: '1.14'
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: '10.0'
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: '10.0'
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: '3.7'
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: '3.7'
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
- rubyforge_project:
121
- rubygems_version: 2.6.13
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: []