mechanize 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of mechanize might be problematic. Click here for more details.

Files changed (2) hide show
  1. data/lib/mechanize.rb +2 -2
  2. metadata +5 -5
@@ -6,7 +6,7 @@
6
6
  # set cookies (I might be wrong), does not automatically redirect and has
7
7
  # problems with some html documents.
8
8
 
9
- Version = "0.1.1"
9
+ Version = "0.1.2"
10
10
 
11
11
  # required due to the missing get_fields method in Ruby 1.8.2
12
12
  $LOAD_PATH.unshift File.join(File.dirname(__FILE__), "mechanize", "net-overrides")
@@ -183,7 +183,7 @@ class Page
183
183
  private
184
184
 
185
185
  def parse_html
186
- raise "no html" if content_type() != 'text/html'
186
+ raise "no html" unless content_type() =~ /^text\/html/
187
187
 
188
188
  # construct parser and feed with HTML
189
189
  parser = HTMLTree::XMLParser.new
metadata CHANGED
@@ -1,10 +1,10 @@
1
1
  --- !ruby/object:Gem::Specification
2
- rubygems_version: 0.8.4
2
+ rubygems_version: 0.8.6
3
3
  specification_version: 1
4
4
  name: mechanize
5
5
  version: !ruby/object:Gem::Version
6
- version: 0.1.1
7
- date: 2005-02-17
6
+ version: 0.1.2
7
+ date: 2005-03-16
8
8
  summary: Automated web-browsing.
9
9
  require_paths:
10
10
  - lib
@@ -28,11 +28,12 @@ authors:
28
28
  - Michael Neumann
29
29
  files:
30
30
  - test
31
- - lib
32
31
  - examples
32
+ - lib
33
33
  - mechanize.gemspec
34
34
  - README
35
35
  - test/test_parsing.rb
36
+ - examples/rubyforge.rb
36
37
  - lib/mechanize
37
38
  - lib/mechanize.rb
38
39
  - lib/mechanize/net-overrides
@@ -41,7 +42,6 @@ files:
41
42
  - lib/mechanize/net-overrides/net/protocol.rb
42
43
  - lib/mechanize/net-overrides/net/http.rb
43
44
  - lib/mechanize/net-overrides/net/https.rb
44
- - examples/rubyforge.rb
45
45
  test_files: []
46
46
  rdoc_options: []
47
47
  extra_rdoc_files: []