ruby-ole 1.2.5 → 1.2.6
Sign up to get free protection for your applications and to get access to all the features.
- data/ChangeLog +5 -0
- data/lib/ole/file_system.rb +2 -3
- data/lib/ole/storage.rb +1 -1
- data/lib/ole/support.rb +5 -2
- metadata +50 -57
data/ChangeLog
CHANGED
data/lib/ole/file_system.rb
CHANGED
@@ -130,9 +130,8 @@ module Ole # :nodoc:
|
|
130
130
|
path = "#{pwd}/#{path}" unless path =~ /^\//
|
131
131
|
# at this point its already absolute. we use File.expand_path
|
132
132
|
# just for the .. and . handling
|
133
|
-
#
|
134
|
-
|
135
|
-
if RUBY_PLATFORM =~ /win/o
|
133
|
+
# No longer use RUBY_PLATFORM =~ /win/ as it matches darwin. better way?
|
134
|
+
if File::ALT_SEPARATOR == "\\"
|
136
135
|
File.expand_path(path)[2..-1]
|
137
136
|
else
|
138
137
|
File.expand_path path
|
data/lib/ole/storage.rb
CHANGED
data/lib/ole/support.rb
CHANGED
@@ -44,13 +44,16 @@ module Enumerable # :nodoc:
|
|
44
44
|
end
|
45
45
|
end
|
46
46
|
|
47
|
-
|
48
|
-
|
47
|
+
unless [].respond_to? :sum
|
48
|
+
def sum initial=0
|
49
|
+
inject(initial) { |a, b| a + b }
|
50
|
+
end
|
49
51
|
end
|
50
52
|
end
|
51
53
|
|
52
54
|
# move to support?
|
53
55
|
class IO # :nodoc:
|
56
|
+
# Copy data from IO-like object +src+, to +dst+
|
54
57
|
def self.copy src, dst
|
55
58
|
until src.eof?
|
56
59
|
buf = src.read(4096)
|
metadata
CHANGED
@@ -1,54 +1,66 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
|
+
rubygems_version: 0.9.4
|
3
|
+
specification_version: 1
|
2
4
|
name: ruby-ole
|
3
5
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
6
|
+
version: 1.2.6
|
7
|
+
date: 2008-07-21 00:00:00 -04:00
|
8
|
+
summary: Ruby OLE library.
|
9
|
+
require_paths:
|
10
|
+
- lib
|
11
|
+
email: aquasync@gmail.com
|
12
|
+
homepage: http://code.google.com/p/ruby-ole
|
13
|
+
rubyforge_project: ruby-ole
|
14
|
+
description: A library for easy read/write access to OLE compound documents for Ruby.
|
15
|
+
autorequire:
|
16
|
+
default_executable:
|
17
|
+
bindir: bin
|
18
|
+
has_rdoc: true
|
19
|
+
required_ruby_version: !ruby/object:Gem::Version::Requirement
|
20
|
+
requirements:
|
21
|
+
- - ">"
|
22
|
+
- !ruby/object:Gem::Version
|
23
|
+
version: 0.0.0
|
24
|
+
version:
|
5
25
|
platform: ruby
|
26
|
+
signing_key:
|
27
|
+
cert_chain:
|
28
|
+
post_install_message:
|
6
29
|
authors:
|
7
30
|
- Charles Lowe
|
8
|
-
autorequire:
|
9
|
-
bindir: bin
|
10
|
-
cert_chain: []
|
11
|
-
|
12
|
-
date: 2008-02-16 00:00:00 +11:00
|
13
|
-
default_executable:
|
14
|
-
dependencies: []
|
15
|
-
|
16
|
-
description: A library for easy read/write access to OLE compound documents for Ruby.
|
17
|
-
email: aquasync@gmail.com
|
18
|
-
executables:
|
19
|
-
- oletool
|
20
|
-
extensions: []
|
21
|
-
|
22
|
-
extra_rdoc_files: []
|
23
|
-
|
24
31
|
files:
|
25
32
|
- Rakefile
|
26
33
|
- ChangeLog
|
27
34
|
- data/propids.yaml
|
28
35
|
- bin/oletool
|
29
|
-
- lib/ole/
|
30
|
-
- lib/ole/property_set.rb
|
31
|
-
- lib/ole/types.rb
|
36
|
+
- lib/ole/base.rb
|
32
37
|
- lib/ole/file_system.rb
|
33
|
-
- lib/ole/
|
38
|
+
- lib/ole/property_set.rb
|
39
|
+
- lib/ole/ranges_io.rb
|
34
40
|
- lib/ole/storage.rb
|
35
|
-
- lib/ole/
|
41
|
+
- lib/ole/support.rb
|
42
|
+
- lib/ole/types.rb
|
43
|
+
- test/test_filesystem.rb
|
44
|
+
- test/test_mbat.rb
|
36
45
|
- test/test_property_set.rb
|
37
46
|
- test/test_ranges_io.rb
|
38
|
-
- test/test_types.rb
|
39
|
-
- test/test_mbat.rb
|
40
|
-
- test/test_support.rb
|
41
47
|
- test/test_storage.rb
|
42
|
-
- test/
|
48
|
+
- test/test_support.rb
|
49
|
+
- test/test_types.rb
|
50
|
+
- test/test.doc
|
43
51
|
- test/test_word_6.doc
|
44
52
|
- test/test_word_95.doc
|
45
|
-
- test/test.doc
|
46
53
|
- test/test_word_97.doc
|
47
54
|
- test/oleWithDirs.ole
|
48
55
|
- test/test_SummaryInformation
|
49
|
-
|
50
|
-
|
51
|
-
|
56
|
+
test_files:
|
57
|
+
- test/test_filesystem.rb
|
58
|
+
- test/test_mbat.rb
|
59
|
+
- test/test_property_set.rb
|
60
|
+
- test/test_ranges_io.rb
|
61
|
+
- test/test_storage.rb
|
62
|
+
- test/test_support.rb
|
63
|
+
- test/test_types.rb
|
52
64
|
rdoc_options:
|
53
65
|
- --main
|
54
66
|
- README
|
@@ -56,32 +68,13 @@ rdoc_options:
|
|
56
68
|
- ruby-ole documentation
|
57
69
|
- --tab-width
|
58
70
|
- "2"
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
version: "0"
|
66
|
-
version:
|
67
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
68
|
-
requirements:
|
69
|
-
- - ">="
|
70
|
-
- !ruby/object:Gem::Version
|
71
|
-
version: "0"
|
72
|
-
version:
|
71
|
+
extra_rdoc_files: []
|
72
|
+
|
73
|
+
executables:
|
74
|
+
- oletool
|
75
|
+
extensions: []
|
76
|
+
|
73
77
|
requirements: []
|
74
78
|
|
75
|
-
|
76
|
-
|
77
|
-
signing_key:
|
78
|
-
specification_version: 2
|
79
|
-
summary: Ruby OLE library.
|
80
|
-
test_files:
|
81
|
-
- test/test_property_set.rb
|
82
|
-
- test/test_ranges_io.rb
|
83
|
-
- test/test_types.rb
|
84
|
-
- test/test_mbat.rb
|
85
|
-
- test/test_support.rb
|
86
|
-
- test/test_storage.rb
|
87
|
-
- test/test_filesystem.rb
|
79
|
+
dependencies: []
|
80
|
+
|