htmlclipping 0.1.5 → 0.1.6
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/htmlclipping.rb +2 -2
- data/lib/htmlclipping.rb~ +1 -1
- metadata +21 -16
data/lib/htmlclipping.rb
CHANGED
@@ -33,7 +33,7 @@
|
|
33
33
|
require 'iconv'
|
34
34
|
|
35
35
|
class HtmlClipping
|
36
|
-
Version = '0.1.
|
36
|
+
Version = '0.1.6'
|
37
37
|
|
38
38
|
# html:: The HTML of the referring web page.
|
39
39
|
# referred_uri:: The URI that is being referred to.
|
@@ -43,7 +43,7 @@ class HtmlClipping
|
|
43
43
|
if @contents =~ %r{<meta[^>]*charset=("|')?(.*?)('|")}i
|
44
44
|
begin
|
45
45
|
@converter = Iconv.new( 'utf8', $2 )
|
46
|
-
rescue Errno::EINVAL
|
46
|
+
rescue Errno::EINVAL, Iconv::InvalidEncoding
|
47
47
|
# skip it
|
48
48
|
end
|
49
49
|
end
|
data/lib/htmlclipping.rb~
CHANGED
metadata
CHANGED
@@ -1,41 +1,46 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
|
-
rubygems_version: 0.8.
|
2
|
+
rubygems_version: 0.8.11
|
3
3
|
specification_version: 1
|
4
4
|
name: htmlclipping
|
5
5
|
version: !ruby/object:Gem::Version
|
6
|
-
version: 0.1.
|
7
|
-
date:
|
6
|
+
version: 0.1.6
|
7
|
+
date: 2006-04-15 00:00:00 -04:00
|
8
8
|
summary: HtmlClipping generates excerpts from an HTML page that has a link pointing to a particular URI.
|
9
9
|
require_paths:
|
10
|
-
|
10
|
+
- lib
|
11
11
|
email: sera@fhwang.net
|
12
12
|
homepage: http://htmlclipping.rubyforge.org/
|
13
13
|
rubyforge_project:
|
14
|
-
description:
|
15
|
-
particular URI. It removes most HTML markup, bolds the link text, and trims the
|
16
|
-
resulting text to a fixed number of characters. I developed it to help me track
|
17
|
-
referers to my website, though I suppose it might have other uses."
|
14
|
+
description: HtmlClipping generates excerpts from an HTML page that has a link pointing to a particular URI. It removes most HTML markup, bolds the link text, and trims the resulting text to a fixed number of characters. I developed it to help me track referers to my website, though I suppose it might have other uses.
|
18
15
|
autorequire: htmlclipping
|
19
16
|
default_executable:
|
20
17
|
bindir: bin
|
21
18
|
has_rdoc: false
|
22
19
|
required_ruby_version: !ruby/object:Gem::Version::Requirement
|
23
20
|
requirements:
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
version: 0.0.0
|
21
|
+
- - ">"
|
22
|
+
- !ruby/object:Gem::Version
|
23
|
+
version: 0.0.0
|
28
24
|
version:
|
29
25
|
platform: ruby
|
26
|
+
signing_key:
|
27
|
+
cert_chain:
|
30
28
|
authors:
|
31
|
-
|
29
|
+
- Francis Hwang
|
32
30
|
files:
|
33
|
-
|
34
|
-
|
31
|
+
- lib/htmlclipping.rb
|
32
|
+
- lib/htmlclipping.rb~
|
35
33
|
test_files: []
|
34
|
+
|
36
35
|
rdoc_options: []
|
36
|
+
|
37
37
|
extra_rdoc_files: []
|
38
|
+
|
38
39
|
executables: []
|
40
|
+
|
39
41
|
extensions: []
|
42
|
+
|
40
43
|
requirements: []
|
41
|
-
|
44
|
+
|
45
|
+
dependencies: []
|
46
|
+
|