markdown_media 1.2.0 → 1.2.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a490d07fc7560f46e187a7588e28314974a34a8b
4
- data.tar.gz: 698f8634725452bae019b5d1c1e48d3aa26068ef
3
+ metadata.gz: 37e4b387f58ff1ddad024fba1d2d079a6e7051c9
4
+ data.tar.gz: 71f51c61389cb3ba219e211dd374c9c447a1742a
5
5
  SHA512:
6
- metadata.gz: 34caf289ccf17469ecdc0153ea6764796be4de4499acd2cac78f680b0e739a86947df8a709106ff0cf6a722d80442565782b9a996b7b34e30ccefc324de4134e
7
- data.tar.gz: 78be0c9cc7858d908285c939e7fdf368baf5ad504d0a912318b75a18936b097d1596e088261b577f6472f3442737926494a298e6a0e5bfc7eb4545dd052b3ead
6
+ metadata.gz: ff21b20aeafc8edce6c63a4cd27fef6e616dc615655c92a240bd47969797421336f209bfb00cf67705419bb0c8df84dfd5603727ba8eba1915279ea43df4c5b8
7
+ data.tar.gz: c5a358845d8fdaa8954b6445995b10fc453c62218be82dce131fdce24d65caf7605e407eaffb14b7ad371ba49604483249e32c2f991d20e0da9ad760d6b6ccf1
data/Gemfile CHANGED
@@ -2,3 +2,4 @@ source 'https://rubygems.org'
2
2
 
3
3
  # Specify your gem's dependencies in markdown_media.gemspec
4
4
  gemspec
5
+
data/README.md CHANGED
@@ -2,11 +2,11 @@
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.0-green.svg)
5
+ ![Version 1.0.0](https://img.shields.io/badge/VERSION-1.2.1-green.svg)
6
6
 
7
7
  This syntax uses doubles square brackets on each side of a URL and optional options.
8
8
  It expands into the current preferred embed code for that site's media or raw media.
9
- Supported media types: YouTube, Vimeo, Instagram, Twitter, images, videos, audios.
9
+ Supported media types: YouTube, Vimeo, Instagram, Twitter, Daily Motion, images, videos, audios.
10
10
 
11
11
 
12
12
  ## Installation
@@ -46,6 +46,8 @@ media URL
46
46
  caption
47
47
  link URL (for images only)
48
48
  HTML id
49
+ HTML class
50
+ type (used for Twitter video)
49
51
  ]]
50
52
  ```
51
53
 
@@ -181,7 +183,7 @@ A simple audio with caption.
181
183
  Any URL in a [[]] block that is unrecognized, just gets rendered into a linked URL.
182
184
 
183
185
  ```
184
- [[https://veganstraightedge.com/cancer]] gets turned into <a href="https://veganstraightedge.com/cancer">https://veganstraightedge.com</a>.
186
+ [[https://veganstraightedge.com/cancer]] gets turned into <a href="https://veganstraightedge.com/cancer">https://veganstraightedge.com/cancer</a>.
185
187
  ```
186
188
 
187
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.
@@ -204,6 +206,7 @@ Here are the currently supported URLs and media types.
204
206
  - https://www.youtube.com/watch?v=video-id
205
207
  - https://youtu.be/video-id
206
208
  - http://www.dailymotion.com/video/video-id_video-slug
209
+ - https://twitter.com/Breaking911/status/900211169734131713
207
210
 
208
211
  #### Audios
209
212
 
@@ -1,3 +1,3 @@
1
1
  module MarkdownMedia
2
- VERSION = "1.2.0"
2
+ VERSION = "1.2.1"
3
3
  end
@@ -1,4 +1,6 @@
1
- <blockquote class="twitter-<%=type %> <%= klass %>" <%= 'data-status="hidden"' if type == "video" %> data-lang="en" id="<%= id %>">
2
- <a href="<%= embed_id.to_s %>"><%= embed_id.to_s %></a>
3
- </blockquote>
4
- <script async src="//platform.twitter.com/widgets.js" charset="utf-8"></script>
1
+ <% if type == "video" %><figure class="video-container"><% end %>
2
+ <blockquote class="twitter-<%=type %> <%= klass %>" <%= 'data-status="hidden"' if type == "video" %> data-lang="en" id="<%= id %>">
3
+ <a href="<%= embed_id.to_s %>"><%= embed_id.to_s %></a>
4
+ </blockquote>
5
+ <script async src="//platform.twitter.com/widgets.js" charset="utf-8"></script>
6
+ <% if type == "video" %></figure><% end %>
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: markdown_media
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shane Becker
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-08-31 00:00:00.000000000 Z
11
+ date: 2017-10-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler