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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4207bab9e5a5c740e63a0f43d3da16675cd258dc
4
- data.tar.gz: fda3306ba81053247d2163b88d2f24ac9075e5d8
3
+ metadata.gz: c30a3e4ceb89d5ea4c013c87591ba9da16508190
4
+ data.tar.gz: a26ab728526bca28249248e1c3bd9d1d480896db
5
5
  SHA512:
6
- metadata.gz: 7a79c9a15abaf3fae16931af4c87977f1b9bb4b785b1ff503d46190a99bda73ec73d12041d422ff874362fd3f8db2588f991524887eab17d7b070db26dfb1d1e
7
- data.tar.gz: 6201c71878a6a239526b03100bbdc52126e71c4c735e3ffd68b3aa80fac817ecdef1fad4bb6c1e649dc5f3797fb173c857a6b444e65149c6f8a1e495739323e2
6
+ metadata.gz: 33112019adeb61f541198d3dc3b118fd1adbdea1584233380fa5eace54d92fca879538e3577c7da472a7da0a9148187746b04ffabae99e8e1892f6446f977d28
7
+ data.tar.gz: 8b54ee6e5b17dee86cf3311c01e7e32da4c6ff0a4b1684f03d1b2b3d69556310fd1eb416c5d4bed2a0c24f099da122ebfa7e35d1c47efa7c6fcaf6895a6ad047
data/CHANGELOG CHANGED
@@ -1,3 +1,7 @@
1
+ == 1.2.2 2016-06-17
2
+
3
+ * Fix <iframe> to not be self-closing tag
4
+
1
5
  == 1.2.1 2016-03-21
2
6
 
3
7
  * Fix bug with nested url / center tags
@@ -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],
@@ -1,3 +1,3 @@
1
1
  module BBRuby
2
- VERSION = '1.2.1'
2
+ VERSION = '1.2.2'
3
3
  end
@@ -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"/>', '[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 id="ytplayer" type="text/html" width="640" height="390" src="http://www.youtube.com/embed/abc123" frameborder="0"/>', '[youtube]http://youtube.com/watch?v=E4Fbk52Mk1w[/youtube][youtube]http://youtube.com/watch?v=abc123[/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"></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.1
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-03-21 00:00:00.000000000 Z
11
+ date: 2016-06-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake