eat 0.0.6 → 0.0.7

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/lib/eat.rb CHANGED
@@ -16,7 +16,7 @@ module Eat
16
16
 
17
17
  module ObjectExtensions
18
18
  def eat(filesystem_path_or_uri)
19
- uri = ::URI.parse filesystem_path_or_uri
19
+ uri = ::URI.parse filesystem_path_or_uri.to_s
20
20
  case uri.scheme
21
21
  when 'file', nil
22
22
  if ::File.readable? uri.path
data/lib/eat/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Eat
2
- VERSION = "0.0.6"
2
+ VERSION = "0.0.7"
3
3
  end
data/test/test_eat.rb CHANGED
@@ -21,6 +21,10 @@ class TestEat < Test::Unit::TestCase
21
21
  assert eat("file://#{File.expand_path(__FILE__)}").include?('class TestEat < Test::Unit::TestCase')
22
22
  end
23
23
 
24
+ def test_uri
25
+ assert eat(::URI.parse('http://brighterplanet.com/robots.txt')).include?('User-agent')
26
+ end
27
+
24
28
  def test_http
25
29
  assert eat('http://brighterplanet.com/robots.txt').include?('User-agent')
26
30
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: eat
3
3
  version: !ruby/object:Gem::Version
4
- hash: 19
4
+ hash: 17
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 6
10
- version: 0.0.6
9
+ - 7
10
+ version: 0.0.7
11
11
  platform: ruby
12
12
  authors:
13
13
  - Seamus Abshere
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-03-29 00:00:00 -05:00
18
+ date: 2011-04-13 00:00:00 -05:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency