auto_html 1.3.3 → 1.3.4
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.
- data/README.md +3 -3
- data/Rakefile +1 -19
- data/lib/auto_html/filter.rb +2 -2
- data/lib/auto_html/filters/metacafe.rb +13 -0
- data/test/fixtures/schema.rb +5 -0
- data/test/functional/auto_html_for_test.rb +6 -0
- data/test/functional/filter_test.rb +27 -0
- data/test/test_helper.rb +1 -0
- data/test/unit/filters/dailymotion_test.rb +1 -1
- data/test/unit/filters/metacafe_test.rb +29 -0
- metadata +17 -39
- data/.gitignore +0 -2
- data/CHANGELOG.md +0 -49
- data/MIT-LICENCE +0 -20
- data/TODO +0 -12
- data/VERSION.yml +0 -4
- data/auto_html.gemspec +0 -98
- data/init.rb +0 -2
- data/rails/init.rb +0 -1
data/README.md
CHANGED
@@ -8,7 +8,7 @@ auto_html is a Rails extension for transforming URLs to appropriate resource (im
|
|
8
8
|
|
9
9
|
Transforming string with text and URLs is done with *auto_html* method:
|
10
10
|
|
11
|
-
|
11
|
+
include AutoHtml
|
12
12
|
|
13
13
|
auto_html('Hey! Checkout out: http://vukajlija.com') { simple_format; link(:target => 'blank') }
|
14
14
|
=> "<p>Hey! Checkout out: <a href='http://vukajlija.com' target='blank'>http://vukajlija.com</a></p>"
|
@@ -71,7 +71,7 @@ As from version 1.2.0 auto_html uses Rails' engine for discovering links. There
|
|
71
71
|
for Rails <= 2.3.1 use auto_html 1.1.2<br/>
|
72
72
|
for Rails >= 2.3.2 use the latest auto_html
|
73
73
|
|
74
|
-
As
|
74
|
+
As of version 1.3.0, auto_html has been tested to work with Rails 3 and Ruby 1.9.
|
75
75
|
|
76
76
|
### As a gem
|
77
77
|
|
@@ -93,4 +93,4 @@ In Rails 3.0 specify the gem in your Gemfile
|
|
93
93
|
## Credits
|
94
94
|
|
95
95
|
Author: [Dejan Simic](http://github.com/dejan)<br/>
|
96
|
-
Contributors: [Claudio Perez Gamayo](http://github.com/crossblaim), [Matt Polito](http://github.com/mattpolito), [Ryan Heneise](http://github.com/mysmallidea), [Caleb Wright](http://github.com/fabrikagency)
|
96
|
+
Contributors: [Claudio Perez Gamayo](http://github.com/crossblaim), [Matt Polito](http://github.com/mattpolito), [Ryan Heneise](http://github.com/mysmallidea), [Caleb Wright](http://github.com/fabrikagency), [Derrick Camerino](https://github.com/robustdj)
|
data/Rakefile
CHANGED
@@ -10,7 +10,7 @@ end
|
|
10
10
|
|
11
11
|
desc 'Test with recent versions of Rails'
|
12
12
|
task :test_with_recent do
|
13
|
-
versions = ['2.3.
|
13
|
+
versions = ['2.3.8', '3.0.3']
|
14
14
|
versions.each do |v|
|
15
15
|
puts "\n###### TESTING WITH RAILS #{v}"
|
16
16
|
ENV['RAILS_VERSION'] = v
|
@@ -28,21 +28,3 @@ task :test_with_installed do
|
|
28
28
|
Rake::Task['test'].execute
|
29
29
|
end
|
30
30
|
end
|
31
|
-
|
32
|
-
|
33
|
-
begin
|
34
|
-
require 'jeweler'
|
35
|
-
Jeweler::Tasks.new do |gem|
|
36
|
-
gem.name = "auto_html"
|
37
|
-
gem.summary = %{Automatically transforms urls (via domain) and includes the destination resource (Vimeo, YouTube movie, image, ...) in your document}
|
38
|
-
gem.email = "desimic@gmail.com"
|
39
|
-
gem.homepage = "http://github.com/dejan/auto_html"
|
40
|
-
gem.description = "Automatically transforms urls (via domain) and includes the destination resource (Vimeo, YouTube movie, image, ...) in your document"
|
41
|
-
gem.authors = ["Dejan Simic"]
|
42
|
-
gem.files.exclude 'test.sqlite3'
|
43
|
-
gem.has_rdoc = false
|
44
|
-
end
|
45
|
-
rescue LoadError
|
46
|
-
puts "Jeweler not available. Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com"
|
47
|
-
end
|
48
|
-
|
data/lib/auto_html/filter.rb
CHANGED
@@ -13,9 +13,9 @@ module AutoHtml
|
|
13
13
|
def apply(text, options = {})
|
14
14
|
_options = @options && @options.merge(options)
|
15
15
|
if _options
|
16
|
-
@block.call(text.dup, _options)
|
16
|
+
@block.call(text.to_s.dup, _options)
|
17
17
|
else
|
18
|
-
@block.call(text.dup)
|
18
|
+
@block.call(text.to_s.dup)
|
19
19
|
end
|
20
20
|
end
|
21
21
|
end
|
@@ -0,0 +1,13 @@
|
|
1
|
+
AutoHtml.add_filter(:metacafe).with(:width => 440, :height => 272, :show_stats => false, :autoplay => false) do |text, options|
|
2
|
+
text.gsub(/http:\/\/www\.metacafe\.com\/watch\/([A-Za-z0-9._%-]*)\/([A-Za-z0-9._%-]*)(\/)?/) do
|
3
|
+
metacafe_id = $1
|
4
|
+
metacafe_slug = $2
|
5
|
+
width = options[:width]
|
6
|
+
height = options[:height]
|
7
|
+
show_stats = options[:show_stats] ? "showStats=yes" : "showStats=no"
|
8
|
+
autoplay = options[:autoplay] ? "autoPlay=yes" : "autoPlay=no"
|
9
|
+
flash_vars = [show_stats, autoplay].join("|")
|
10
|
+
|
11
|
+
%{<div style="background:#000000;width:#{width}px;height:#{height}px"><embed flashVars="playerVars=#{flash_vars}" src="http://www.metacafe.com/fplayer/#{metacafe_id}/#{metacafe_slug}.swf" width="#{width}" height="#{height}" wmode="transparent" allowFullScreen="true" allowScriptAccess="always" name="Metacafe_#{metacafe_id}" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"></embed></div>}
|
12
|
+
end
|
13
|
+
end
|
data/test/fixtures/schema.rb
CHANGED
@@ -25,6 +25,12 @@ class AutoHtmlForTest < Test::Unit::TestCase
|
|
25
25
|
assert_equal '<p>Yo!</p>', @article.body_html
|
26
26
|
end
|
27
27
|
|
28
|
+
def test_transform_of_nil
|
29
|
+
@article = Article.new(:body => nil)
|
30
|
+
@article.save!
|
31
|
+
assert_equal '', @article.body_html
|
32
|
+
end
|
33
|
+
|
28
34
|
def test_transform_after_update
|
29
35
|
@article = Article.create!(:body => 'Yo!')
|
30
36
|
@article.update_attributes(:body => 'http://vukajlija.com')
|
@@ -0,0 +1,27 @@
|
|
1
|
+
require File.dirname(__FILE__) + '/../test_helper'
|
2
|
+
require File.dirname(__FILE__) + '/../fixture_setup'
|
3
|
+
|
4
|
+
AutoHtml.add_filter(:foo) do |text|
|
5
|
+
nil
|
6
|
+
end
|
7
|
+
|
8
|
+
AutoHtml.add_filter(:bar) do |text|
|
9
|
+
"bar"
|
10
|
+
end
|
11
|
+
|
12
|
+
class User < ActiveRecord::Base
|
13
|
+
auto_html_for :bio do
|
14
|
+
foo
|
15
|
+
foo
|
16
|
+
bar
|
17
|
+
end
|
18
|
+
end
|
19
|
+
|
20
|
+
class AutoHtmlForTest < Test::Unit::TestCase
|
21
|
+
include FixtureSetup
|
22
|
+
|
23
|
+
def test_transform_after_save
|
24
|
+
@article = User.new(:bio => 'in progress...')
|
25
|
+
assert_equal 'bar', @article.bio_html
|
26
|
+
end
|
27
|
+
end
|
data/test/test_helper.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
require File.dirname(__FILE__) + '/../unit_test_helper'
|
2
2
|
|
3
|
-
class
|
3
|
+
class DailyMotionTest < Test::Unit::TestCase
|
4
4
|
|
5
5
|
def test_transform
|
6
6
|
result = auto_html("http://www.dailymotion.com/en/featured/video/xag4p2_tempsmorttv-episode-01_shortfilms") { dailymotion }
|
@@ -0,0 +1,29 @@
|
|
1
|
+
require File.dirname(__FILE__) + '/../unit_test_helper'
|
2
|
+
|
3
|
+
class MetaCafeTest < Test::Unit::TestCase
|
4
|
+
|
5
|
+
def test_transform
|
6
|
+
result = auto_html("http://www.metacafe.com/watch/5440707/exclusive_tron_evolution_dev_diary_the_art_design") { metacafe }
|
7
|
+
assert_equal '<div style="background:#000000;width:440px;height:272px"><embed flashVars="playerVars=showStats=no|autoPlay=no" src="http://www.metacafe.com/fplayer/5440707/exclusive_tron_evolution_dev_diary_the_art_design.swf" width="440" height="272" wmode="transparent" allowFullScreen="true" allowScriptAccess="always" name="Metacafe_5440707" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"></embed></div>', result
|
8
|
+
end
|
9
|
+
|
10
|
+
def test_transform_with_dimensions
|
11
|
+
result = auto_html("http://www.metacafe.com/watch/5440707/exclusive_tron_evolution_dev_diary_the_art_design") { metacafe(:width => 500, :height => 300) }
|
12
|
+
assert_equal '<div style="background:#000000;width:500px;height:300px"><embed flashVars="playerVars=showStats=no|autoPlay=no" src="http://www.metacafe.com/fplayer/5440707/exclusive_tron_evolution_dev_diary_the_art_design.swf" width="500" height="300" wmode="transparent" allowFullScreen="true" allowScriptAccess="always" name="Metacafe_5440707" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"></embed></div>', result
|
13
|
+
end
|
14
|
+
|
15
|
+
def test_transform_with_show_stats
|
16
|
+
result = auto_html("http://www.metacafe.com/watch/5440707/exclusive_tron_evolution_dev_diary_the_art_design") { metacafe(:width => 500, :height => 300, :show_stats => true) }
|
17
|
+
assert_equal '<div style="background:#000000;width:500px;height:300px"><embed flashVars="playerVars=showStats=yes|autoPlay=no" src="http://www.metacafe.com/fplayer/5440707/exclusive_tron_evolution_dev_diary_the_art_design.swf" width="500" height="300" wmode="transparent" allowFullScreen="true" allowScriptAccess="always" name="Metacafe_5440707" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"></embed></div>', result
|
18
|
+
end
|
19
|
+
|
20
|
+
def test_transform_with_autoplay
|
21
|
+
result = auto_html("http://www.metacafe.com/watch/5440707/exclusive_tron_evolution_dev_diary_the_art_design") { metacafe(:width => 500, :height => 300, :autoplay => true) }
|
22
|
+
assert_equal '<div style="background:#000000;width:500px;height:300px"><embed flashVars="playerVars=showStats=no|autoPlay=yes" src="http://www.metacafe.com/fplayer/5440707/exclusive_tron_evolution_dev_diary_the_art_design.swf" width="500" height="300" wmode="transparent" allowFullScreen="true" allowScriptAccess="always" name="Metacafe_5440707" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"></embed></div>', result
|
23
|
+
end
|
24
|
+
|
25
|
+
def test_transform_with_options
|
26
|
+
result = auto_html("http://www.metacafe.com/watch/5440707/exclusive_tron_evolution_dev_diary_the_art_design") { metacafe(:width => 500, :height => 300, :show_stats => true, :autoplay => true) }
|
27
|
+
assert_equal '<div style="background:#000000;width:500px;height:300px"><embed flashVars="playerVars=showStats=yes|autoPlay=yes" src="http://www.metacafe.com/fplayer/5440707/exclusive_tron_evolution_dev_diary_the_art_design.swf" width="500" height="300" wmode="transparent" allowFullScreen="true" allowScriptAccess="always" name="Metacafe_5440707" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"></embed></div>', result
|
28
|
+
end
|
29
|
+
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: auto_html
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 19
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 3
|
9
|
-
-
|
10
|
-
version: 1.3.
|
9
|
+
- 4
|
10
|
+
version: 1.3.4
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Dejan Simic
|
@@ -15,29 +15,20 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date:
|
18
|
+
date: 2011-01-01 00:00:00 +01:00
|
19
19
|
default_executable:
|
20
20
|
dependencies: []
|
21
21
|
|
22
|
-
description: Automatically transforms
|
22
|
+
description: Automatically transforms URIs (via domain) and includes the destination resource (Vimeo, YouTube movie, image, ...) in your document
|
23
23
|
email: desimic@gmail.com
|
24
24
|
executables: []
|
25
25
|
|
26
26
|
extensions: []
|
27
27
|
|
28
|
-
extra_rdoc_files:
|
29
|
-
|
30
|
-
- TODO
|
28
|
+
extra_rdoc_files: []
|
29
|
+
|
31
30
|
files:
|
32
|
-
- .gitignore
|
33
|
-
- CHANGELOG.md
|
34
|
-
- MIT-LICENCE
|
35
|
-
- README.md
|
36
31
|
- Rakefile
|
37
|
-
- VERSION.yml
|
38
|
-
- auto_html.gemspec
|
39
|
-
- init.rb
|
40
|
-
- lib/auto_html.rb
|
41
32
|
- lib/auto_html/auto_html_for.rb
|
42
33
|
- lib/auto_html/base.rb
|
43
34
|
- lib/auto_html/builder.rb
|
@@ -47,17 +38,19 @@ files:
|
|
47
38
|
- lib/auto_html/filters/html_escape.rb
|
48
39
|
- lib/auto_html/filters/image.rb
|
49
40
|
- lib/auto_html/filters/link.rb
|
41
|
+
- lib/auto_html/filters/metacafe.rb
|
50
42
|
- lib/auto_html/filters/sanitize.rb
|
51
43
|
- lib/auto_html/filters/simple_format.rb
|
52
44
|
- lib/auto_html/filters/vimeo.rb
|
53
45
|
- lib/auto_html/filters/youtube.rb
|
54
46
|
- lib/auto_html/filters/youtube_js_api.rb
|
55
|
-
-
|
47
|
+
- lib/auto_html.rb
|
56
48
|
- test/fixture_setup.rb
|
57
49
|
- test/fixtures/database.yml
|
58
50
|
- test/fixtures/schema.rb
|
59
51
|
- test/functional/auto_html_for_options_test.rb
|
60
52
|
- test/functional/auto_html_for_test.rb
|
53
|
+
- test/functional/filter_test.rb
|
61
54
|
- test/test_helper.rb
|
62
55
|
- test/unit/auto_html_test.rb
|
63
56
|
- test/unit/filters/dailymotion_test.rb
|
@@ -65,20 +58,21 @@ files:
|
|
65
58
|
- test/unit/filters/html_escape_test.rb
|
66
59
|
- test/unit/filters/image_test.rb
|
67
60
|
- test/unit/filters/link_test.rb
|
61
|
+
- test/unit/filters/metacafe_test.rb
|
68
62
|
- test/unit/filters/sanitize_test.rb
|
69
63
|
- test/unit/filters/simple_format_test.rb
|
70
64
|
- test/unit/filters/vimeo_test.rb
|
71
65
|
- test/unit/filters/youtube_js_api_test.rb
|
72
66
|
- test/unit/filters/youtube_test.rb
|
73
67
|
- test/unit/unit_test_helper.rb
|
74
|
-
-
|
68
|
+
- README.md
|
75
69
|
has_rdoc: true
|
76
70
|
homepage: http://github.com/dejan/auto_html
|
77
71
|
licenses: []
|
78
72
|
|
79
73
|
post_install_message:
|
80
|
-
rdoc_options:
|
81
|
-
|
74
|
+
rdoc_options: []
|
75
|
+
|
82
76
|
require_paths:
|
83
77
|
- lib
|
84
78
|
required_ruby_version: !ruby/object:Gem::Requirement
|
@@ -105,22 +99,6 @@ rubyforge_project:
|
|
105
99
|
rubygems_version: 1.3.7
|
106
100
|
signing_key:
|
107
101
|
specification_version: 3
|
108
|
-
summary:
|
109
|
-
test_files:
|
110
|
-
|
111
|
-
- test/fixtures/schema.rb
|
112
|
-
- test/functional/auto_html_for_options_test.rb
|
113
|
-
- test/functional/auto_html_for_test.rb
|
114
|
-
- test/test_helper.rb
|
115
|
-
- test/unit/auto_html_test.rb
|
116
|
-
- test/unit/filters/dailymotion_test.rb
|
117
|
-
- test/unit/filters/google_video_test.rb
|
118
|
-
- test/unit/filters/html_escape_test.rb
|
119
|
-
- test/unit/filters/image_test.rb
|
120
|
-
- test/unit/filters/link_test.rb
|
121
|
-
- test/unit/filters/sanitize_test.rb
|
122
|
-
- test/unit/filters/simple_format_test.rb
|
123
|
-
- test/unit/filters/vimeo_test.rb
|
124
|
-
- test/unit/filters/youtube_js_api_test.rb
|
125
|
-
- test/unit/filters/youtube_test.rb
|
126
|
-
- test/unit/unit_test_helper.rb
|
102
|
+
summary: Transform URIs to appropriate markup
|
103
|
+
test_files: []
|
104
|
+
|
data/.gitignore
DELETED
data/CHANGELOG.md
DELETED
@@ -1,49 +0,0 @@
|
|
1
|
-
## 1.3.3, released 2010-09-01
|
2
|
-
* yet another Rails 3 initialization fix
|
3
|
-
|
4
|
-
## 1.3.2, released 2010-08-27
|
5
|
-
* pre-rails 3 initialization fix
|
6
|
-
|
7
|
-
## 1.3.1, released 2010-08-22
|
8
|
-
* Rails 3 initialization fix
|
9
|
-
* fixes to conform Rails 3.0.0.rc, sanitization by default in text_helpers (auto_link, simple_format)
|
10
|
-
* added vimeo html5 universal embed player
|
11
|
-
|
12
|
-
## 1.3.0, released 2010-08-14
|
13
|
-
* no need for explicit call to auto_html_prepare
|
14
|
-
* no need for DB column for cache (ie. _html)
|
15
|
-
* Rails 3 support
|
16
|
-
* correctly handle blank and nil values when applying auto_html
|
17
|
-
* more filters: youtube_js_api
|
18
|
-
* youtube filter supports html5
|
19
|
-
|
20
|
-
|
21
|
-
## 1.2.1, released 2009-10-28
|
22
|
-
|
23
|
-
* more options for vimeo filter
|
24
|
-
* switch to gemcutter
|
25
|
-
|
26
|
-
## 1.2.0, released 2009-09-26
|
27
|
-
|
28
|
-
* link filter now uses Rails' link discovery engine. Closes: <http://github.com/dejan/auto_html/issues#issue/2> and <http://github.com/dejan/auto_html/issues#issue/3> if Rails 2.3+ is in use.
|
29
|
-
* added dailymotion filter
|
30
|
-
* added sanitize filter
|
31
|
-
|
32
|
-
## 1.1.2, released 2009-09-24
|
33
|
-
|
34
|
-
* link filter fix. Closes: <http://github.com/dejan/auto_html/issues#issue/2>
|
35
|
-
|
36
|
-
## 1.1.1, released 2009-09-06
|
37
|
-
|
38
|
-
* test_helper fix
|
39
|
-
|
40
|
-
## 1.1.0, released 2009-09-05
|
41
|
-
|
42
|
-
* Plugin gemified
|
43
|
-
* AutoHtmlFor.options[:htmlized_attribute_suffix] is now AutoHtmlFor.auto_html_for_options[:htmlized_attribute_suffix]. Closes gh-1
|
44
|
-
* Removed deezer filter since deezer.com no longer provides sharing of this kind
|
45
|
-
|
46
|
-
## 1.0.0
|
47
|
-
|
48
|
-
* Stuff described here: <http://www.elctech.com/projects/auto_html-plugin>
|
49
|
-
|
data/MIT-LICENCE
DELETED
@@ -1,20 +0,0 @@
|
|
1
|
-
Copyright (c) 2009 Dejan Simic
|
2
|
-
|
3
|
-
Permission is hereby granted, free of charge, to any person obtaining
|
4
|
-
a copy of this software and associated documentation files (the
|
5
|
-
"Software"), to deal in the Software without restriction, including
|
6
|
-
without limitation the rights to use, copy, modify, merge, publish,
|
7
|
-
distribute, sublicense, and/or sell copies of the Software, and to
|
8
|
-
permit persons to whom the Software is furnished to do so, subject to
|
9
|
-
the following conditions:
|
10
|
-
|
11
|
-
The above copyright notice and this permission notice shall be
|
12
|
-
included in all copies or substantial portions of the Software.
|
13
|
-
|
14
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
15
|
-
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
16
|
-
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
17
|
-
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
18
|
-
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
19
|
-
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
20
|
-
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/TODO
DELETED
@@ -1,12 +0,0 @@
|
|
1
|
-
v 1.3
|
2
|
-
* add bunch of new filters: twitter (check campfire's markup/styling), twitpic, http://twaud.io/, see more: http://www.oembed.com/, http://api.embed.ly/
|
3
|
-
|
4
|
-
|
5
|
-
v 2
|
6
|
-
* refactoring (class/var names, code style, etc.)
|
7
|
-
* inline testing
|
8
|
-
* more tests
|
9
|
-
* test coverage
|
10
|
-
* performance testing
|
11
|
-
* oembed object as result?
|
12
|
-
* fancy filters: click to play youtube, lightbox, ...
|
data/VERSION.yml
DELETED
data/auto_html.gemspec
DELETED
@@ -1,98 +0,0 @@
|
|
1
|
-
# Generated by jeweler
|
2
|
-
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
-
# Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
|
4
|
-
# -*- encoding: utf-8 -*-
|
5
|
-
|
6
|
-
Gem::Specification.new do |s|
|
7
|
-
s.name = %q{auto_html}
|
8
|
-
s.version = "1.3.3"
|
9
|
-
|
10
|
-
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
|
-
s.authors = ["Dejan Simic"]
|
12
|
-
s.date = %q{2010-09-01}
|
13
|
-
s.description = %q{Automatically transforms urls (via domain) and includes the destination resource (Vimeo, YouTube movie, image, ...) in your document}
|
14
|
-
s.email = %q{desimic@gmail.com}
|
15
|
-
s.extra_rdoc_files = [
|
16
|
-
"README.md",
|
17
|
-
"TODO"
|
18
|
-
]
|
19
|
-
s.files = [
|
20
|
-
".gitignore",
|
21
|
-
"CHANGELOG.md",
|
22
|
-
"MIT-LICENCE",
|
23
|
-
"README.md",
|
24
|
-
"Rakefile",
|
25
|
-
"VERSION.yml",
|
26
|
-
"auto_html.gemspec",
|
27
|
-
"init.rb",
|
28
|
-
"lib/auto_html.rb",
|
29
|
-
"lib/auto_html/auto_html_for.rb",
|
30
|
-
"lib/auto_html/base.rb",
|
31
|
-
"lib/auto_html/builder.rb",
|
32
|
-
"lib/auto_html/filter.rb",
|
33
|
-
"lib/auto_html/filters/dailymotion.rb",
|
34
|
-
"lib/auto_html/filters/google_video.rb",
|
35
|
-
"lib/auto_html/filters/html_escape.rb",
|
36
|
-
"lib/auto_html/filters/image.rb",
|
37
|
-
"lib/auto_html/filters/link.rb",
|
38
|
-
"lib/auto_html/filters/sanitize.rb",
|
39
|
-
"lib/auto_html/filters/simple_format.rb",
|
40
|
-
"lib/auto_html/filters/vimeo.rb",
|
41
|
-
"lib/auto_html/filters/youtube.rb",
|
42
|
-
"lib/auto_html/filters/youtube_js_api.rb",
|
43
|
-
"rails/init.rb",
|
44
|
-
"test/fixture_setup.rb",
|
45
|
-
"test/fixtures/database.yml",
|
46
|
-
"test/fixtures/schema.rb",
|
47
|
-
"test/functional/auto_html_for_options_test.rb",
|
48
|
-
"test/functional/auto_html_for_test.rb",
|
49
|
-
"test/test_helper.rb",
|
50
|
-
"test/unit/auto_html_test.rb",
|
51
|
-
"test/unit/filters/dailymotion_test.rb",
|
52
|
-
"test/unit/filters/google_video_test.rb",
|
53
|
-
"test/unit/filters/html_escape_test.rb",
|
54
|
-
"test/unit/filters/image_test.rb",
|
55
|
-
"test/unit/filters/link_test.rb",
|
56
|
-
"test/unit/filters/sanitize_test.rb",
|
57
|
-
"test/unit/filters/simple_format_test.rb",
|
58
|
-
"test/unit/filters/vimeo_test.rb",
|
59
|
-
"test/unit/filters/youtube_js_api_test.rb",
|
60
|
-
"test/unit/filters/youtube_test.rb",
|
61
|
-
"test/unit/unit_test_helper.rb"
|
62
|
-
]
|
63
|
-
s.homepage = %q{http://github.com/dejan/auto_html}
|
64
|
-
s.rdoc_options = ["--charset=UTF-8"]
|
65
|
-
s.require_paths = ["lib"]
|
66
|
-
s.rubygems_version = %q{1.3.7}
|
67
|
-
s.summary = %q{Automatically transforms urls (via domain) and includes the destination resource (Vimeo, YouTube movie, image, ...) in your document}
|
68
|
-
s.test_files = [
|
69
|
-
"test/fixture_setup.rb",
|
70
|
-
"test/fixtures/schema.rb",
|
71
|
-
"test/functional/auto_html_for_options_test.rb",
|
72
|
-
"test/functional/auto_html_for_test.rb",
|
73
|
-
"test/test_helper.rb",
|
74
|
-
"test/unit/auto_html_test.rb",
|
75
|
-
"test/unit/filters/dailymotion_test.rb",
|
76
|
-
"test/unit/filters/google_video_test.rb",
|
77
|
-
"test/unit/filters/html_escape_test.rb",
|
78
|
-
"test/unit/filters/image_test.rb",
|
79
|
-
"test/unit/filters/link_test.rb",
|
80
|
-
"test/unit/filters/sanitize_test.rb",
|
81
|
-
"test/unit/filters/simple_format_test.rb",
|
82
|
-
"test/unit/filters/vimeo_test.rb",
|
83
|
-
"test/unit/filters/youtube_js_api_test.rb",
|
84
|
-
"test/unit/filters/youtube_test.rb",
|
85
|
-
"test/unit/unit_test_helper.rb"
|
86
|
-
]
|
87
|
-
|
88
|
-
if s.respond_to? :specification_version then
|
89
|
-
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
90
|
-
s.specification_version = 3
|
91
|
-
|
92
|
-
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
93
|
-
else
|
94
|
-
end
|
95
|
-
else
|
96
|
-
end
|
97
|
-
end
|
98
|
-
|
data/init.rb
DELETED
data/rails/init.rb
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
require 'auto_html'
|