bb-ruby 1.2.1 → 1.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG +4 -0
- data/lib/bb-ruby.rb +2 -2
- data/lib/bb-ruby/version.rb +1 -1
- data/test/bb-ruby_test.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c30a3e4ceb89d5ea4c013c87591ba9da16508190
|
4
|
+
data.tar.gz: a26ab728526bca28249248e1c3bd9d1d480896db
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 33112019adeb61f541198d3dc3b118fd1adbdea1584233380fa5eace54d92fca879538e3577c7da472a7da0a9148187746b04ffabae99e8e1892f6446f977d28
|
7
|
+
data.tar.gz: 8b54ee6e5b17dee86cf3311c01e7e32da4c6ff0a4b1684f03d1b2b3d69556310fd1eb416c5d4bed2a0c24f099da122ebfa7e35d1c47efa7c6fcaf6895a6ad047
|
data/CHANGELOG
CHANGED
data/lib/bb-ruby.rb
CHANGED
@@ -183,14 +183,14 @@ module BBRuby
|
|
183
183
|
'YouTube' => [
|
184
184
|
/\[youtube\](.*?)\?v=([\w\d\-]+).*?\[\/youtube\]/im,
|
185
185
|
# '<object width="400" height="330"><param name="movie" value="http://www.youtube.com/v/\2"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/\2" type="application/x-shockwave-flash" wmode="transparent" width="400" height="330"></embed></object>',
|
186
|
-
'<iframe id="ytplayer" type="text/html" width="640" height="390" src="http://www.youtube.com/embed/\2" frameborder="0"
|
186
|
+
'<iframe id="ytplayer" type="text/html" width="640" height="390" src="http://www.youtube.com/embed/\2" frameborder="0"></iframe>',
|
187
187
|
'Display a video from YouTube.com',
|
188
188
|
'[youtube]http://youtube.com/watch?v=E4Fbk52Mk1w[/youtube]',
|
189
189
|
:video],
|
190
190
|
'YouTube (Alternative)' => [
|
191
191
|
/\[youtube\](.*?)\/v\/([\w\d\-]+)\[\/youtube\]/im,
|
192
192
|
# '<object width="400" height="330"><param name="movie" value="http://www.youtube.com/v/\2"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/\2" type="application/x-shockwave-flash" wmode="transparent" width="400" height="330"></embed></object>',
|
193
|
-
'<iframe id="ytplayer" type="text/html" width="640" height="390" src="http://www.youtube.com/embed/\2" frameborder="0"
|
193
|
+
'<iframe id="ytplayer" type="text/html" width="640" height="390" src="http://www.youtube.com/embed/\2" frameborder="0"></iframe>',
|
194
194
|
'Display a video from YouTube.com (alternative format)',
|
195
195
|
'[youtube]http://youtube.com/watch/v/E4Fbk52Mk1w[/youtube]',
|
196
196
|
:video],
|
data/lib/bb-ruby/version.rb
CHANGED
data/test/bb-ruby_test.rb
CHANGED
@@ -143,8 +143,8 @@ class TestBBRuby < Test::Unit::TestCase
|
|
143
143
|
def test_youtube
|
144
144
|
# Uncomment below if using 4:3 format youtube video embed
|
145
145
|
# assert_equal assert_equal '<iframe id="ytplayer" type="text/html" width="320" height="265" src="http://www.youtube.com/embed/E4Fbk52Mk1w" frameborder="0"/>', '[youtube]http://youtube.com/watch?v=E4Fbk52Mk1w[/youtube]'.bbcode_to_html
|
146
|
-
assert_equal '<iframe id="ytplayer" type="text/html" width="640" height="390" src="http://www.youtube.com/embed/E4Fbk52Mk1w" frameborder="0"
|
147
|
-
assert_equal '<iframe id="ytplayer" type="text/html" width="640" height="390" src="http://www.youtube.com/embed/E4Fbk52Mk1w" frameborder="0"
|
146
|
+
assert_equal '<iframe id="ytplayer" type="text/html" width="640" height="390" src="http://www.youtube.com/embed/E4Fbk52Mk1w" frameborder="0"></iframe>', '[youtube]http://youtube.com/watch?v=E4Fbk52Mk1w[/youtube]'.bbcode_to_html
|
147
|
+
assert_equal '<iframe id="ytplayer" type="text/html" width="640" height="390" src="http://www.youtube.com/embed/E4Fbk52Mk1w" frameborder="0"></iframe><iframe id="ytplayer" type="text/html" width="640" height="390" src="http://www.youtube.com/embed/abc123" frameborder="0"></iframe>', '[youtube]http://youtube.com/watch?v=E4Fbk52Mk1w[/youtube][youtube]http://youtube.com/watch?v=abc123[/youtube]'.bbcode_to_html
|
148
148
|
end
|
149
149
|
|
150
150
|
def test_vimeo
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bb-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Craig P. Jolicoeur
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-06-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|