markdown_media 1.7.0 → 1.8.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/tests.yml +20 -0
- data/README.md +8 -2
- data/lib/markdown_media/version.rb +1 -1
- data/lib/markdown_media.rb +4 -0
- data/lib/templates/dailymotion.erb +1 -1
- data/lib/templates/kolektiva.erb +9 -0
- data/lib/templates/youtube.erb +1 -1
- metadata +5 -4
- data/.travis.yml +0 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9efdde1477ac05186f394efb42e867b31fe39cc3f605094d4ab0081e0df2e616
|
4
|
+
data.tar.gz: 2231240d060c40bec4082333e495ad780ee319ae1c6e595870eb25c4fb971966
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d57f9da1923537874eca7bd81fc0e5f20c61aa7f3ee9acc2cdf551ea05ad5ef96be02c829df8c7ca77dc56dbff20e3e4ae7cbd9f5c707e7a99033c99d3ecee59
|
7
|
+
data.tar.gz: e358eda3f2bc3f71cf779a454c345509e7ead78d941a4ac8087354dbd73dd42915aee6b7ecec5d5d506ff8a4dfc913408d0a51a0a19ef124b99111c6496b9472
|
@@ -0,0 +1,20 @@
|
|
1
|
+
on: [push]
|
2
|
+
|
3
|
+
name: specs
|
4
|
+
|
5
|
+
jobs:
|
6
|
+
run:
|
7
|
+
runs-on: ubuntu-latest
|
8
|
+
|
9
|
+
steps:
|
10
|
+
- name: Checkout repository
|
11
|
+
uses: actions/checkout@main
|
12
|
+
|
13
|
+
- name: Set up Ruby
|
14
|
+
uses: ruby/setup-ruby@master
|
15
|
+
with:
|
16
|
+
ruby-version: 3.3
|
17
|
+
bundler-cache: true
|
18
|
+
|
19
|
+
- name: Run RSpec
|
20
|
+
run: bundle exec rspec
|
data/README.md
CHANGED
@@ -1,8 +1,7 @@
|
|
1
1
|
# Markdown Media
|
2
2
|
|
3
|
-
[![Build Status](https://travis-ci.org/veganstraightedge/markdown_media.svg?branch=master)](https://travis-ci.org/veganstraightedge/markdown_media)
|
4
3
|
[![Code Climate](https://codeclimate.com/github/veganstraightedge/markdown_media/badges/gpa.svg)](https://codeclimate.com/github/veganstraightedge/markdown_media)
|
5
|
-
![Version 1.
|
4
|
+
![Version 1.8.0](https://img.shields.io/badge/VERSION-1.8.0-green.svg)
|
6
5
|
|
7
6
|
This syntax uses doubles square brackets on each side of a URL and optional options.
|
8
7
|
It expands into the current preferred embed code for that site’s media or raw media.
|
@@ -266,6 +265,13 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
|
|
266
265
|
|
267
266
|
Bug reports and pull requests are welcome on GitHub at https://github.com/veganstraightedge/markdown_media. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
|
268
267
|
|
268
|
+
### Contributors
|
269
|
+
|
270
|
+
* Shane Becker <veganstraightedge@gmail.com>
|
271
|
+
* Morgan Fogarty <mofo37@gmail.com>
|
272
|
+
* Matt Pruitt <guitsaru@gmail.com>
|
273
|
+
* Justin Lavoie <just1602@riseup.net>
|
274
|
+
* astronaut-wannabe <contact@astronaut-wannabe.com>
|
269
275
|
|
270
276
|
## License
|
271
277
|
|
data/lib/markdown_media.rb
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
<iframe frameborder="0" src="//www.dailymotion.com/embed/video/<%= embed_id %>" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>
|
3
3
|
|
4
4
|
<% unless caption.to_s.empty? %>
|
5
|
-
<figcaption class="caption video-caption video-caption-
|
5
|
+
<figcaption class="caption video-caption video-caption-dailymotion">
|
6
6
|
<%= MarkdownMedia.render_markdown caption %>
|
7
7
|
</figcaption>
|
8
8
|
<% end %>
|
@@ -0,0 +1,9 @@
|
|
1
|
+
<figure class="video-container <%= klass %>" id="<%= id %>">
|
2
|
+
<iframe src="https://kolektiva.media/videos/embed/<%= embed_id %>" frameborder="0" allowfullscreen sandbox="allow-same-origin allow-scripts allow-popups"></iframe>
|
3
|
+
|
4
|
+
<% unless caption.to_s.empty? %>
|
5
|
+
<figcaption class="caption video-caption video-caption-kolektiva">
|
6
|
+
<%= MarkdownMedia.render_markdown caption %>
|
7
|
+
</figcaption>
|
8
|
+
<% end %>
|
9
|
+
</figure>
|
data/lib/templates/youtube.erb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
<figure class="video-container <%= klass %>" id="<%= id %>">
|
2
|
-
<iframe src="https://www.youtube.com/embed/<%= embed_id %>" frameborder="0"
|
2
|
+
<iframe credentialless allowfullscreen referrerpolicy="no-referrer" sandbox="allow-scripts allow-same-origin" allow="accelerometer 'none'; ambient-light-sensor 'none'; autoplay 'none'; battery 'none'; bluetooth 'none'; browsing-topics 'none'; camera 'none'; ch-ua 'none'; display-capture 'none'; domain-agent 'none'; document-domain 'none'; encrypted-media 'none'; execution-while-not-rendered 'none'; execution-while-out-of-viewport 'none'; gamepad 'none'; geolocation 'none'; gyroscope 'none'; hid 'none'; identity-credentials-get 'none'; idle-detection 'none'; keyboard-map 'none'; local-fonts 'none'; magnetometer 'none'; microphone 'none'; midi 'none'; navigation-override 'none'; otp-credentials 'none'; payment 'none'; picture-in-picture 'none'; publickey-credentials-create 'none'; publickey-credentials-get 'none'; screen-wake-lock 'none'; serial 'none'; speaker-selection 'none'; sync-xhr 'none'; usb 'none'; web-share 'none'; window-management 'none'; xr-spatial-tracking 'none'" csp="sandbox allow-scripts allow-same-origin;" src="https://www.youtube-nocookie.com/embed/<%= embed_id %>" frameborder="0" loading="lazy" ></iframe>
|
3
3
|
|
4
4
|
<% unless caption.to_s.empty? %>
|
5
5
|
<figcaption class="caption video-caption video-caption-youtube">
|
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.
|
4
|
+
version: 1.8.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Shane Becker
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-04-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -76,9 +76,9 @@ executables: []
|
|
76
76
|
extensions: []
|
77
77
|
extra_rdoc_files: []
|
78
78
|
files:
|
79
|
+
- ".github/workflows/tests.yml"
|
79
80
|
- ".gitignore"
|
80
81
|
- ".rspec"
|
81
|
-
- ".travis.yml"
|
82
82
|
- CODE_OF_CONDUCT.md
|
83
83
|
- Gemfile
|
84
84
|
- LICENSE.md
|
@@ -93,6 +93,7 @@ files:
|
|
93
93
|
- lib/templates/giphy.erb
|
94
94
|
- lib/templates/image.erb
|
95
95
|
- lib/templates/instagram.erb
|
96
|
+
- lib/templates/kolektiva.erb
|
96
97
|
- lib/templates/link.erb
|
97
98
|
- lib/templates/twitter.erb
|
98
99
|
- lib/templates/video.erb
|
@@ -118,7 +119,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
118
119
|
- !ruby/object:Gem::Version
|
119
120
|
version: '0'
|
120
121
|
requirements: []
|
121
|
-
rubygems_version: 3.
|
122
|
+
rubygems_version: 3.5.9
|
122
123
|
signing_key:
|
123
124
|
specification_version: 4
|
124
125
|
summary: A [[ URL ]] syntax to embed media into views.
|