bb-ruby 1.3.0 → 1.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.travis.yml +1 -0
- 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 +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 8505ade43e68cff0d8ac4e55c711aea4eba7b4b3
|
|
4
|
+
data.tar.gz: 2b8b6481e05358ebdc9ae34f1d442602b4cb8024
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c7706eb9a31f555a0f7a270060a226b092e0a7030fa8f7b071b4b24dbb82c0b20b5df69dc93859b7fc661c7c216cf0ab3ff27448bf57dec0d4e1565f9919ee31
|
|
7
|
+
data.tar.gz: d2b2a9f4dbf48b15a3fc9f2c03631acaa764257c456baa27bba69857aa6298386ce2684a682b0a668b5f062fbf421f452fabd1c818923f6469e053906f4365ad
|
data/.travis.yml
CHANGED
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="
|
|
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="
|
|
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],
|
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="
|
|
147
|
-
assert_equal '<iframe id="ytplayer" type="text/html" width="640" height="390" src="
|
|
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.
|
|
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:
|
|
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.
|
|
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
|