markdown_videos 0.1.0 → 0.1.1

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
  !binary "U0hBMQ==":
3
- metadata.gz: d1f9e1dcb78017d103441d5c63b0da0ede87775d
4
- data.tar.gz: d6b03551a6f6aea6de4f739b1f9d5fb2becffdb3
3
+ metadata.gz: bca9063d5eb7dd88466325ac8100073c5111e805
4
+ data.tar.gz: d2a304156bb0a6a24753a98ca4e810353d72d9e7
5
5
  SHA512:
6
- metadata.gz: 171c683b7328db61a5448b482eeaa2643c9cc25d9b22cbd37b471c8f5e0556a9d9a57ef008b115dd8e8761d4de5eb1906f46f8b1a07b23c4b32172accc591e89
7
- data.tar.gz: facc284b37332c4ae24bc000bb4a2ab519e5270b9f81689794c7f5193359af89350fdb85fdb11f0b3173eb76de2ad3305c562160902f1a905b15a9882a809b15
6
+ metadata.gz: a0da59e38bf6f22c6ae1ae9d1c4b29160f39cb124f61edb8549587c87aabb13bac1e9aae8dcc5182907f736e14b067e51971b2a40a4f458eac6ad8211172231f
7
+ data.tar.gz: b4388cf7f60178543d928c332da087ce20f3fe030d52f1608ba7341ff2e864014e29e1a077d5448998ccb7786ca06ce418ea9731ed05474048ca4f26c2692bb2
@@ -14,7 +14,7 @@ module MarkdownVideos
14
14
 
15
15
  # http://rubular.com/r/8Xb4s9ukXy
16
16
  youtube: {
17
- regexp: /^!\[([^\]]+)\]\((https?:\/\/(?:youtu.be\/|www.youtube.com\/(?:watch\?v=|embed\/))([\w\-]{4,16})\??([\w\-\=]+)?)\)$/,
17
+ regexp: /!\[([^\]]*)\]\((https?:\/\/(?:youtu.be\/|www.youtube.com\/(?:watch\?v=|embed\/))([\w\-]{4,16})\??([\w\-\=]+)?)\)/,
18
18
  markup: '<iframe width="560" height="315" title="%s" src="%s"%s frameborder="0" allowfullscreen></iframe>',
19
19
  url: "https://www.youtube.com/embed/%s",
20
20
  url_parameters: [:start]
@@ -22,7 +22,7 @@ module MarkdownVideos
22
22
 
23
23
  # http://rubular.com/r/Upo2dmGbIJ
24
24
  vimeo: {
25
- regexp: /^!\[([^\]]+)\]\((https?:\/\/(?:(?:player\.)?vimeo.com\/(?:video\/)?)([0-9]{4,16})\??([\w\-\=]+)?)\)$/,
25
+ regexp: /!\[([^\]]*)\]\((https?:\/\/(?:(?:player\.)?vimeo.com\/(?:video\/)?)([0-9]{4,16})\??([\w\-\=]+)?)\)/,
26
26
  markup: '<iframe title="%s" src="%s" width="500" height="281"%s frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>',
27
27
  url: "https://player.vimeo.com/video/%s",
28
28
  url_parameters: []
@@ -1,3 +1,3 @@
1
1
  module MarkdownVideos
2
- VERSION = "0.1.0".freeze
2
+ VERSION = "0.1.1".freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: markdown_videos
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Capripot
@@ -76,7 +76,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
76
76
  requirements:
77
77
  - - ! '>='
78
78
  - !ruby/object:Gem::Version
79
- version: '0'
79
+ version: '2.0'
80
80
  required_rubygems_version: !ruby/object:Gem::Requirement
81
81
  requirements:
82
82
  - - ! '>='