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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 16042959f63276782a51a0ba97464089d6c6811adfd01cfb5b2716fad4f4bd63
4
- data.tar.gz: 73518ef8fa11dd100ba4d48a4ac63b0bdfb6e0b0c8a6596af229ae1025bde46f
3
+ metadata.gz: 021a0c32dd5b6528863916a2b0ce34d1a7ebb15ef4cb96010ba7c337859775c7
4
+ data.tar.gz: 4ce41d546fc4254ed31d673531eda4191b23446d6bfb6e5868db2a6c60b78aae
5
5
  SHA512:
6
- metadata.gz: 54f8455ae1329dcdaf788f4bede41cc4fead9db0a57aadd277dda643abe53cddb8a227a7967c3804dff2652d2de99aa960f780aa21a805b5fd87892666469c6e
7
- data.tar.gz: 89f0b56692c2ed81352394decd441e10bbb9db7ce99fd3209ef5b7e7bd2ba00daea255173e097c4ffa568d4d3942f3b338d2a38a5e824a1a1740fb9937e7f3ff
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 1.6.0](https://img.shields.io/badge/VERSION-1.6.0-green.svg)
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
 
@@ -1,3 +1,3 @@
1
1
  module MarkdownMedia
2
- VERSION = "1.7.0"
2
+ VERSION = "2.0.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">
@@ -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 = ">= 2.2"
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: 1.7.0
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: 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
@@ -111,14 +112,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
111
112
  requirements:
112
113
  - - ">="
113
114
  - !ruby/object:Gem::Version
114
- version: '2.2'
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.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