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 CHANGED
@@ -1,3 +1,8 @@
1
+ == 1.2.6 / 2008-07-21
2
+
3
+ - Fix FileClass#expand_path to work properly on darwin (issue #2)
4
+ - Guard against Enumerable#sum clash with active support (issue #3)
5
+
1
6
  == 1.2.5 / 2008-02-16
2
7
 
3
8
  - Make all tests pass on ruby 1.9.
@@ -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
- # Hmmm, FIXME: won't work on windows i think. on windows it will prepend
134
- # the current drive i believe. may just need to strip the first 2 chars.
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
@@ -67,7 +67,7 @@ module Ole # :nodoc:
67
67
  class FormatError < StandardError # :nodoc:
68
68
  end
69
69
 
70
- VERSION = '1.2.5'
70
+ VERSION = '1.2.6'
71
71
 
72
72
  # options used at creation time
73
73
  attr_reader :params
@@ -44,13 +44,16 @@ module Enumerable # :nodoc:
44
44
  end
45
45
  end
46
46
 
47
- def sum initial=0
48
- inject(initial) { |a, b| a + b }
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.5
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/ranges_io.rb
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/support.rb
38
+ - lib/ole/property_set.rb
39
+ - lib/ole/ranges_io.rb
34
40
  - lib/ole/storage.rb
35
- - lib/ole/base.rb
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/test_filesystem.rb
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
- has_rdoc: true
50
- homepage: http://code.google.com/p/ruby-ole
51
- post_install_message:
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
- require_paths:
60
- - lib
61
- required_ruby_version: !ruby/object:Gem::Requirement
62
- requirements:
63
- - - ">="
64
- - !ruby/object:Gem::Version
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
- rubyforge_project: ruby-ole
76
- rubygems_version: 1.0.1
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
+