ubbparser 0.2.0 → 0.3.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.
Files changed (3) hide show
  1. checksums.yaml +6 -14
  2. data/lib/ubbparser.rb +6 -2
  3. metadata +5 -5
checksums.yaml CHANGED
@@ -1,15 +1,7 @@
1
1
  ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: !binary |-
4
- OTBjNDUzMDNhMzY4YmY1YTg3YTYyMjk2ZTE4ZjM1NWFlMWI2YWZlOQ==
5
- data.tar.gz: !binary |-
6
- M2FlY2RjODJmM2IzZjJiMTI2YzcwNDcyMGI4NTExNDczNzc3YjdhYg==
7
- !binary "U0hBNTEy":
8
- metadata.gz: !binary |-
9
- NGEyMWIyMmNiYTEzZDFjYmVlZGJiZWJlM2UzNjg3MWUxM2U1YWY0MGVkMWQ4
10
- ZTE4YzQzNGI0NjFhYzJiZTgzNWRmZmM1NjVjZTUzYmQxNzFmY2NlMDg5NjQ5
11
- MmM1ZTg3NmM5NzlhMzQ2NjFjN2E3ZjQ3MmNhNjQ3OTExMjY0MTQ=
12
- data.tar.gz: !binary |-
13
- YjhkMjQwMzA4YzUwNjMwM2NmNTQzZDQ5MjJmMGFhOWI1YzhhMGEyOTg5NTA5
14
- OGI4ZDEzNGEyNWQ4ZTQ0NjQ5MzY3ZDdhZjZlNTYxNjgyNjI2NGRhY2MwN2Nj
15
- NmNlYWZjMzFmMzIzNGM1Yjc5NzM3YmMxZDcwN2MxNmY2NjNhNzI=
2
+ SHA1:
3
+ metadata.gz: d55eb4558c50729182e08df40664a73946080aff
4
+ data.tar.gz: 9eb8f9ca266f0f7cab85ed17f868d92bec5dd04f
5
+ SHA512:
6
+ metadata.gz: 048a7dfd72d54139036ecc94ac78c04f55a78445867e98f7a9acd68e56aaa86dfe3f83de0cd18dfa1b337462545f5bef4a55a78ba4c9380cf5ea4dc86c681d72
7
+ data.tar.gz: 164c5215fa641b81484cd58459d0b26ecf7e6ac7d680629897e9f5b88421a9072018d4597613960d3e9cce748ac836189ff48bdb26802cc897de417a07e84edd
data/lib/ubbparser.rb CHANGED
@@ -527,8 +527,12 @@ module UBBParser
527
527
  attributes[:width] ||= 560
528
528
  attributes[:height] ||= 315
529
529
  attributes[:class] = parse_options[:class_youtube] || 'ubb-youtube'
530
- videoid = !inner_text.match(/^[^\?\&]$/).nil? ? inner_text : inner_text.scan(/(\?|&)v=([^\&]*)/)[0][1]
531
- src = "http://www.youtube.com/embed/#{videoid}"
530
+ if inner_text.include?("videoseries?list=")
531
+ src = inner_text
532
+ else
533
+ videoid = !inner_text.match(/^[^\?\&]$/).nil? ? inner_text : inner_text.scan(/(\?|&)v=([^\&]*)/)[0][1]
534
+ src = "http://www.youtube.com/embed/#{videoid}"
535
+ end
532
536
  return render_iframe(src, attributes, parse_options)
533
537
  end
534
538
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ubbparser
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Taco Jan Osinga
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-03-24 00:00:00.000000000 Z
11
+ date: 2015-11-07 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: A simple and flexibel ubb parser.
14
14
  email: info@osingasoftware.nl
@@ -27,17 +27,17 @@ require_paths:
27
27
  - lib
28
28
  required_ruby_version: !ruby/object:Gem::Requirement
29
29
  requirements:
30
- - - ! '>='
30
+ - - ">="
31
31
  - !ruby/object:Gem::Version
32
32
  version: '0'
33
33
  required_rubygems_version: !ruby/object:Gem::Requirement
34
34
  requirements:
35
- - - ! '>='
35
+ - - ">="
36
36
  - !ruby/object:Gem::Version
37
37
  version: '0'
38
38
  requirements: []
39
39
  rubyforge_project:
40
- rubygems_version: 2.0.7
40
+ rubygems_version: 2.4.8
41
41
  signing_key:
42
42
  specification_version: 4
43
43
  summary: UBB Parser