eat 0.0.4 → 0.0.5

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/eat.rb +2 -2
  2. data/lib/eat/version.rb +1 -1
  3. metadata +4 -4
data/lib/eat.rb CHANGED
@@ -20,7 +20,7 @@ module Eat
20
20
  case uri.scheme
21
21
  when nil
22
22
  if ::File.readable? uri.path
23
- ::IO.read uri.path
23
+ ::File.read uri.path
24
24
  else
25
25
  `sudo /bin/cat #{uri.path}`
26
26
  end
@@ -41,4 +41,4 @@ module Eat
41
41
  end
42
42
  end
43
43
 
44
- ::Object.send :include, ::Eat::ObjectExtensions
44
+ ::Object.send(:include, ::Eat::ObjectExtensions) unless ::Object.method_defined?(:eat)
data/lib/eat/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Eat
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  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: 23
4
+ hash: 21
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 4
10
- version: 0.0.4
9
+ - 5
10
+ version: 0.0.5
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-01-20 00:00:00 -06:00
18
+ date: 2011-01-24 00:00:00 -06:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency