rogerdpack-sane 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/sane.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
require 'require_all' # require_all, require_rel
|
2
|
-
require_rel '
|
1
|
+
require 'require_all' # require_all, require_rel
|
2
|
+
require_rel 'sane_ruby' # for enumerable extra #map(:symbol)
|
3
3
|
|
4
4
|
# require 'facets/file' ===>
|
5
5
|
class File
|
@@ -17,9 +17,13 @@ class File
|
|
17
17
|
end
|
18
18
|
end unless self.respond_to?(:write)
|
19
19
|
|
20
|
-
|
21
|
-
|
20
|
+
def self.binread(path)
|
21
|
+
File.open(path, "rb") do |file|
|
22
|
+
return file.read
|
23
|
+
end
|
24
|
+
end unless self.respond_to?(:binread)
|
22
25
|
|
26
|
+
end
|
23
27
|
|
24
28
|
class Object
|
25
29
|
|
File without changes
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rogerdpack-sane
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Roger Pack
|
@@ -34,7 +34,7 @@ extra_rdoc_files:
|
|
34
34
|
files:
|
35
35
|
- README
|
36
36
|
- lib/sane.rb
|
37
|
-
- lib/enumerable-extra.rb
|
37
|
+
- lib/sane_ruby/enumerable-extra.rb
|
38
38
|
- lib/_dbg.rb
|
39
39
|
has_rdoc: false
|
40
40
|
homepage: http://github.com/rogerdpack/sane_ruby
|