ruby-ole 1.2.10 → 1.2.10.1
Sign up to get free protection for your applications and to get access to all the features.
- data/bin/oletool +0 -1
- data/lib/ole/storage/base.rb +5 -2
- data/lib/ole/types/base.rb +5 -1
- metadata +16 -6
data/bin/oletool
CHANGED
data/lib/ole/storage/base.rb
CHANGED
@@ -21,7 +21,7 @@ module Ole # :nodoc:
|
|
21
21
|
class FormatError < StandardError # :nodoc:
|
22
22
|
end
|
23
23
|
|
24
|
-
VERSION = '1.2.10'
|
24
|
+
VERSION = '1.2.10.1'
|
25
25
|
|
26
26
|
# options used at creation time
|
27
27
|
attr_reader :params
|
@@ -143,7 +143,10 @@ module Ole # :nodoc:
|
|
143
143
|
end
|
144
144
|
|
145
145
|
@root = @dirents.to_tree.first
|
146
|
-
|
146
|
+
# silence this warning by default, its not really important (issue #5).
|
147
|
+
# fairly common one appears to be "R" (from office OS X?) which smells
|
148
|
+
# like some kind of UTF16 snafu, but scottwillson also has had some kanji...
|
149
|
+
#Log.warn "root name was #{@root.name.inspect}" unless @root.name == 'Root Entry'
|
147
150
|
unused = @dirents.reject(&:idx).length
|
148
151
|
Log.warn "#{unused} unused directories" if unused > 0
|
149
152
|
|
data/lib/ole/types/base.rb
CHANGED
@@ -70,7 +70,11 @@ module Ole # :nodoc:
|
|
70
70
|
m = month - 3
|
71
71
|
jd = day + (153 * m + 2) / 5 + 365 * y + y / 4 - y / 100 + y / 400 - 32045
|
72
72
|
fr = hour / 24.0 + min / 1440.0 + sec / 86400.0
|
73
|
-
new
|
73
|
+
# avoid new!, as it was actually new0 in older versions of ruby (<=1.8.4?)
|
74
|
+
# see issue #4. this is equivalent, but doesn't rely on the aliasing used
|
75
|
+
obj = allocate
|
76
|
+
obj.send :initialize, jd + fr - 0.5, 0, ITALY
|
77
|
+
obj
|
74
78
|
end
|
75
79
|
|
76
80
|
def self.from_time time
|
metadata
CHANGED
@@ -1,7 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruby-ole
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
|
4
|
+
prerelease: false
|
5
|
+
segments:
|
6
|
+
- 1
|
7
|
+
- 2
|
8
|
+
- 10
|
9
|
+
- 1
|
10
|
+
version: 1.2.10.1
|
5
11
|
platform: ruby
|
6
12
|
authors:
|
7
13
|
- Charles Lowe
|
@@ -9,7 +15,7 @@ autorequire:
|
|
9
15
|
bindir: bin
|
10
16
|
cert_chain: []
|
11
17
|
|
12
|
-
date:
|
18
|
+
date: 2010-03-19 00:00:00 -04:00
|
13
19
|
default_executable:
|
14
20
|
dependencies: []
|
15
21
|
|
@@ -55,6 +61,8 @@ files:
|
|
55
61
|
- test/test_SummaryInformation
|
56
62
|
has_rdoc: true
|
57
63
|
homepage: http://code.google.com/p/ruby-ole
|
64
|
+
licenses: []
|
65
|
+
|
58
66
|
post_install_message:
|
59
67
|
rdoc_options:
|
60
68
|
- --main
|
@@ -69,20 +77,22 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
69
77
|
requirements:
|
70
78
|
- - ">="
|
71
79
|
- !ruby/object:Gem::Version
|
80
|
+
segments:
|
81
|
+
- 0
|
72
82
|
version: "0"
|
73
|
-
version:
|
74
83
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
75
84
|
requirements:
|
76
85
|
- - ">="
|
77
86
|
- !ruby/object:Gem::Version
|
87
|
+
segments:
|
88
|
+
- 0
|
78
89
|
version: "0"
|
79
|
-
version:
|
80
90
|
requirements: []
|
81
91
|
|
82
92
|
rubyforge_project: ruby-ole
|
83
|
-
rubygems_version: 1.3.
|
93
|
+
rubygems_version: 1.3.6
|
84
94
|
signing_key:
|
85
|
-
specification_version:
|
95
|
+
specification_version: 3
|
86
96
|
summary: Ruby OLE library.
|
87
97
|
test_files:
|
88
98
|
- test/test_ranges_io.rb
|