youtube-embed 0.0.1 → 1.0.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: eee7226c806fa32c594e95735e0c4c1f8bbb92ca
4
- data.tar.gz: 816194cb5cc2c7e2efbf77d7a308a7b499fea5fe
3
+ metadata.gz: 76bfc2d37598f0b8d7c9d2a9be41b3c65db61955
4
+ data.tar.gz: 67a08cb1b6887af924c84c634efc216fb7d1efb0
5
5
  SHA512:
6
- metadata.gz: 8e52de25c74404c51d0bef967a398459416f355007c2a4611aabf3f4a66be73d279fe8a0fac01fa7e5d46498e4d809d0741ec5352c54cbf698ccf183a3ea80c6
7
- data.tar.gz: fd5644fed4b9bee21a9d2e4fdeeda4179546c2168436580e56d2bea828f124f5c46bd96a5813d10ba17fcaea7e2644ddb56e204a067a945570542cd0e6e6f6da
6
+ metadata.gz: 8279edd6257456fa4a8a1744ad56073f947a69707538935882219c65e571d49595f255d0a4f6aba593a06e7eccb15c02aed31babfcdf05a01265cd0ea3b67242
7
+ data.tar.gz: 869ed8808294413ca582fa29b3f1bac5dc710bee66a8b436c9c81617696c957d07ca8c0253ebf82e73beffceab051da4f9feddf8be6d805ad30ec250626e4dbf
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # YoutubeEmbed
2
2
 
3
- This library allows to parse given YouTube video url and generate html code for embed video on your page
3
+ This library allows you to parse a YouTube video url and generate html code for embedding video in your page.
4
4
 
5
5
  ## Installation
6
6
 
@@ -1,3 +1,3 @@
1
1
  module YoutubeEmbed
2
- VERSION = "0.0.1"
2
+ VERSION = "1.0.0"
3
3
  end
@@ -51,7 +51,12 @@ module YoutubeEmbed
51
51
  end
52
52
 
53
53
  def iframe
54
- %(<iframe width="#{width}" height="#{height}" src="#{embed_url}" frameborder="0"#{' allowfullscreen' if allow_fullscreen?}></iframe>)
54
+ result = %(<iframe width="#{width}" height="#{height}" src="#{embed_url}" frameborder="0"#{' allowfullscreen' if allow_fullscreen?}></iframe>)
55
+ if result.respond_to?(:html_safe)
56
+ result.html_safe
57
+ else
58
+ result
59
+ end
55
60
  end
56
61
  end
57
62
  end
@@ -9,7 +9,7 @@ Gem::Specification.new do |spec|
9
9
  spec.authors = ["Ildar Shaynurov"]
10
10
  spec.email = ["shaynurov@gmail.com"]
11
11
  spec.summary = %q{Parse youtube video url and generate iframe html}
12
- spec.homepage = ""
12
+ spec.homepage = "https://github.com/shir/youtube-embed"
13
13
  spec.license = "MIT"
14
14
 
15
15
  spec.files = `git ls-files -z`.split("\x0")
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: youtube-embed
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ildar Shaynurov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-04-08 00:00:00.000000000 Z
11
+ date: 2016-04-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -73,7 +73,7 @@ files:
73
73
  - spec/lib/youtube_embed_spec.rb
74
74
  - spec/spec_helper.rb
75
75
  - youtube-embed.gemspec
76
- homepage: ''
76
+ homepage: https://github.com/shir/youtube-embed
77
77
  licenses:
78
78
  - MIT
79
79
  metadata: {}