htmlclipping 0.1.5 → 0.1.6

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. data/lib/htmlclipping.rb +2 -2
  2. data/lib/htmlclipping.rb~ +1 -1
  3. metadata +21 -16
@@ -33,7 +33,7 @@
33
33
  require 'iconv'
34
34
 
35
35
  class HtmlClipping
36
- Version = '0.1.5'
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
@@ -33,7 +33,7 @@
33
33
  require 'iconv'
34
34
 
35
35
  class HtmlClipping
36
- Version = '0.1.4'
36
+ Version = '0.1.5'
37
37
 
38
38
  # html:: The HTML of the referring web page.
39
39
  # referred_uri:: The URI that is being referred to.
metadata CHANGED
@@ -1,41 +1,46 @@
1
1
  --- !ruby/object:Gem::Specification
2
- rubygems_version: 0.8.6
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.5
7
- date: 2005-12-25
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
- - lib
10
+ - lib
11
11
  email: sera@fhwang.net
12
12
  homepage: http://htmlclipping.rubyforge.org/
13
13
  rubyforge_project:
14
- description: "HtmlClipping generates excerpts from an HTML page that has a link pointing to a
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
- - !ruby/object:Gem::Version
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
- - Francis Hwang
29
+ - Francis Hwang
32
30
  files:
33
- - lib/htmlclipping.rb
34
- - lib/htmlclipping.rb~
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
- dependencies: []
44
+
45
+ dependencies: []
46
+