bb-ruby 1.3.0 → 1.4.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
  SHA1:
3
- metadata.gz: e425b7b6390fbaa0035e4055b12a3b8321731152
4
- data.tar.gz: f9872b3a94f7d1056b95a584a94bae4034ef6e88
3
+ metadata.gz: 8505ade43e68cff0d8ac4e55c711aea4eba7b4b3
4
+ data.tar.gz: 2b8b6481e05358ebdc9ae34f1d442602b4cb8024
5
5
  SHA512:
6
- metadata.gz: d48ec523dd3bba11fb0b89e276d3bd6108fc564b5e61f39dacfb8585fde58cbee50dcacd507a2bd1f091e9e08c5a6dadcbf71b68a668fd84312d4c5eecc72ba0
7
- data.tar.gz: ad743f27403f0b04a0623a1c677d6a5cc216f632b29c9abcdf14682b7837abc64bf318e6d4f73d5850e5d535514b547607b5aaf7c61e942c5a03538c8e2599e9
6
+ metadata.gz: c7706eb9a31f555a0f7a270060a226b092e0a7030fa8f7b071b4b24dbb82c0b20b5df69dc93859b7fc661c7c216cf0ab3ff27448bf57dec0d4e1565f9919ee31
7
+ data.tar.gz: d2b2a9f4dbf48b15a3fc9f2c03631acaa764257c456baa27bba69857aa6298386ce2684a682b0a668b5f062fbf421f452fabd1c818923f6469e053906f4365ad
@@ -1,6 +1,7 @@
1
1
  sudo: false
2
2
  language: ruby
3
3
  rvm:
4
+ - 2.4.1
4
5
  - 2.3.0
5
6
  - 2.2.4
6
7
  - 2.1.8
data/CHANGELOG CHANGED
@@ -1,3 +1,7 @@
1
+ == 1.4.0 2017-07-12
2
+
3
+ Add support for loading YouTube iframe over proper protocol
4
+
1
5
  == 1.3.0 2016-11-07
2
6
 
3
7
  * Added #any_bb_tags? and .bbcode_formatted? methods
@@ -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"></iframe>',
186
+ '<iframe id="ytplayer" type="text/html" width="640" height="390" src="//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"></iframe>',
193
+ '<iframe id="ytplayer" type="text/html" width="640" height="390" src="//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.3.0'
2
+ VERSION = '1.4.0'
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"></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
146
+ assert_equal '<iframe id="ytplayer" type="text/html" width="640" height="390" src="//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="//youtube.com/embed/E4Fbk52Mk1w" frameborder="0"></iframe><iframe id="ytplayer" type="text/html" width="640" height="390" src="//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.3.0
4
+ version: 1.4.0
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-07 00:00:00.000000000 Z
11
+ date: 2017-07-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -77,7 +77,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
77
77
  version: '0'
78
78
  requirements: []
79
79
  rubyforge_project:
80
- rubygems_version: 2.5.1
80
+ rubygems_version: 2.6.11
81
81
  signing_key:
82
82
  specification_version: 4
83
83
  summary: BBRuby is a BBCode implementation for Ruby. It will convert strings with