markdown_media 1.7.0 → 1.8.0

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
  SHA256:
3
- metadata.gz: 16042959f63276782a51a0ba97464089d6c6811adfd01cfb5b2716fad4f4bd63
4
- data.tar.gz: 73518ef8fa11dd100ba4d48a4ac63b0bdfb6e0b0c8a6596af229ae1025bde46f
3
+ metadata.gz: 9efdde1477ac05186f394efb42e867b31fe39cc3f605094d4ab0081e0df2e616
4
+ data.tar.gz: 2231240d060c40bec4082333e495ad780ee319ae1c6e595870eb25c4fb971966
5
5
  SHA512:
6
- metadata.gz: 54f8455ae1329dcdaf788f4bede41cc4fead9db0a57aadd277dda643abe53cddb8a227a7967c3804dff2652d2de99aa960f780aa21a805b5fd87892666469c6e
7
- data.tar.gz: 89f0b56692c2ed81352394decd441e10bbb9db7ce99fd3209ef5b7e7bd2ba00daea255173e097c4ffa568d4d3942f3b338d2a38a5e824a1a1740fb9937e7f3ff
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.6.0](https://img.shields.io/badge/VERSION-1.6.0-green.svg)
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
 
@@ -1,3 +1,3 @@
1
1
  module MarkdownMedia
2
- VERSION = "1.7.0"
2
+ VERSION = "1.8.0"
3
3
  end
@@ -143,6 +143,10 @@ module MarkdownMedia
143
143
  slug = "giphy"
144
144
  embed_id = url.path.split("/").last.split('-').last
145
145
 
146
+ when "kolektiva.media"
147
+ slug = "kolektiva"
148
+ embed_id = url.path.split("/").last
149
+
146
150
  else
147
151
  slug =
148
152
  case url.path
@@ -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-vimeo">
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>
@@ -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" gesture="media" allow="encrypted-media" allowfullscreen></iframe>
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.7.0
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: 2021-01-11 00:00:00.000000000 Z
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.1.4
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.
data/.travis.yml DELETED
@@ -1,7 +0,0 @@
1
- sudo: false
2
- language: ruby
3
- rvm:
4
- - 2.2.0
5
- - 2.3.0
6
- - 2.4.0
7
- before_install: gem install bundler -v 1.14.5