bbcoder 0.1.3 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/lib/bbcoder/version.rb +1 -1
  2. data/lib/bbcoder.rb +6 -0
  3. metadata +6 -6
@@ -1,3 +1,3 @@
1
1
  class BBCoder
2
- VERSION = "0.1.3"
2
+ VERSION = "0.1.4"
3
3
  end
data/lib/bbcoder.rb CHANGED
@@ -59,5 +59,11 @@ BBCoder.configure do
59
59
  tag :img, :match => /^.*(png|bmp|jpg|gif)$/ do
60
60
  %(<a href="#{content}"><img src="#{content}" /></a>)
61
61
  end
62
+
63
+ tag :youtube do
64
+ <<-EOS
65
+ <iframe width="560" height="349" src="http://www.youtube.com/embed/#{content}" frameborder="0" allowfullscreen></iframe>
66
+ EOS
67
+ end
62
68
  end
63
69
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bbcoder
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,12 +9,12 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-07-21 00:00:00.000000000 -04:00
12
+ date: 2011-07-25 00:00:00.000000000 -04:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rspec
17
- requirement: &15548820 !ruby/object:Gem::Requirement
17
+ requirement: &7189200 !ruby/object:Gem::Requirement
18
18
  none: false
19
19
  requirements:
20
20
  - - ! '>='
@@ -22,10 +22,10 @@ dependencies:
22
22
  version: '0'
23
23
  type: :development
24
24
  prerelease: false
25
- version_requirements: *15548820
25
+ version_requirements: *7189200
26
26
  - !ruby/object:Gem::Dependency
27
27
  name: rr
28
- requirement: &15548280 !ruby/object:Gem::Requirement
28
+ requirement: &7188660 !ruby/object:Gem::Requirement
29
29
  none: false
30
30
  requirements:
31
31
  - - ! '>='
@@ -33,7 +33,7 @@ dependencies:
33
33
  version: '0'
34
34
  type: :development
35
35
  prerelease: false
36
- version_requirements: *15548280
36
+ version_requirements: *7188660
37
37
  description: A gem for parsing bbcode that doesn't rely on regular expressions
38
38
  email:
39
39
  - machinist@asceth.com