markdown_media 1.7.0 → 2.0.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
- data/markdown_media.gemspec +1 -1
- metadata +6 -5
- 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: 021a0c32dd5b6528863916a2b0ce34d1a7ebb15ef4cb96010ba7c337859775c7
|
4
|
+
data.tar.gz: 4ce41d546fc4254ed31d673531eda4191b23446d6bfb6e5868db2a6c60b78aae
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cb9bcd855a77501ddd6de560af34b7f12a796eda7080f711b7af352a773a1059448b7ceece5b49ccce391bd5aab5dafee4c520b40d5d89b9b873965aca89762b
|
7
|
+
data.tar.gz: 5484564aac555c685c0f64ec7f5c7db2df018c09aa9aaa2fef9a7ce572f39edfc76a1ace01f6acf7a739d105e3aafe371889e0cb32062a0cb98197d97ea82d3c
|
@@ -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
|
4
|
+
![Version 2.0.0](https://img.shields.io/badge/VERSION-2.0.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">
|
data/markdown_media.gemspec
CHANGED
@@ -18,7 +18,7 @@ Gem::Specification.new do |spec|
|
|
18
18
|
spec.homepage = "https://github.com/veganstraightedge/markdown_media"
|
19
19
|
spec.license = "CC0"
|
20
20
|
|
21
|
-
spec.required_ruby_version = ">=
|
21
|
+
spec.required_ruby_version = ">= 3.3"
|
22
22
|
|
23
23
|
spec.files = `git ls-files -z`.split("\x0").reject do |f|
|
24
24
|
f.match(%r{^(test|spec|features)/})
|
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:
|
4
|
+
version: 2.0.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
|
@@ -111,14 +112,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
111
112
|
requirements:
|
112
113
|
- - ">="
|
113
114
|
- !ruby/object:Gem::Version
|
114
|
-
version: '
|
115
|
+
version: '3.3'
|
115
116
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
116
117
|
requirements:
|
117
118
|
- - ">="
|
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.
|