ruby-ole 1.2.12.1 → 1.2.13
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.
- checksums.yaml +5 -5
- data/ChangeLog +9 -0
- data/bin/oletool +2 -1
- data/lib/ole/ranges_io.rb +1 -1
- data/lib/ole/storage/base.rb +1 -1
- data/lib/ole/storage/version.rb +1 -1
- data/lib/ole/support.rb +1 -1
- data/ruby-ole.gemspec +0 -1
- data/test/test_filesystem.rb +3 -3
- data/test/test_storage.rb +1 -1
- metadata +31 -32
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 69e250ffd1193512350d29013c4913657015e0a70a1c9b9fc5a5b7619a628da8
|
4
|
+
data.tar.gz: 299952e097a3c3798c3a38dab26425c9244631552b0e6ffece771a288f517d8f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6bdcc433f5890c47abfeb176a76a47fa748710ff7e9dfe1b20d603af036e5e5c356043d13835b089b2d6c92696acf152620ec0b43be2e3786a6e1b9304fd26d2
|
7
|
+
data.tar.gz: 1f2fef23c8c445b3743093a625c19a87e26a6a213c651aa8ac9352eafb0d13b67706597af1866c1f774b1c9abf4dd293536e05f8018f6863af6ade9e9cfed48f
|
data/ChangeLog
CHANGED
@@ -1,3 +1,12 @@
|
|
1
|
+
== 1.2.13 / 2024-03-28
|
2
|
+
|
3
|
+
- Drop defunct Travis sudo: false directive (github #27, olleolleolle).
|
4
|
+
- Fix broken '-y' command line option (github #20).
|
5
|
+
|
6
|
+
== 1.2.12.2 / 2019-03-12
|
7
|
+
|
8
|
+
- Fix to work with frozen string literals (github #24, taichi-ishitani).
|
9
|
+
|
1
10
|
== 1.2.12.1 / 2017-03-12
|
2
11
|
|
3
12
|
- Integer unification for ruby 2.4.0+ (github #19, koic).
|
data/bin/oletool
CHANGED
@@ -30,7 +30,8 @@ def oletool
|
|
30
30
|
when :repack
|
31
31
|
Ole::Storage.open file, 'rb+', &:repack
|
32
32
|
when :metadata
|
33
|
-
|
33
|
+
require 'yaml'
|
34
|
+
Ole::Storage.open(file) { |ole| puts ole.meta_data.to_h.to_yaml }
|
34
35
|
when :mimetype
|
35
36
|
puts Ole::Storage.open(file) { |ole| ole.meta_data.mime_type }
|
36
37
|
end
|
data/lib/ole/ranges_io.rb
CHANGED
data/lib/ole/storage/base.rb
CHANGED
@@ -315,7 +315,7 @@ module Ole # :nodoc:
|
|
315
315
|
io.binmode
|
316
316
|
repack_using_io io
|
317
317
|
end
|
318
|
-
when :mem; StringIO.open('', &method(:repack_using_io))
|
318
|
+
when :mem; StringIO.open(''.dup, &method(:repack_using_io))
|
319
319
|
else raise ArgumentError, "unknown temp backing #{temp.inspect}"
|
320
320
|
end
|
321
321
|
end
|
data/lib/ole/storage/version.rb
CHANGED
data/lib/ole/support.rb
CHANGED
@@ -135,7 +135,7 @@ module RecursivelyEnumerable # :nodoc:
|
|
135
135
|
#
|
136
136
|
# mostly a debugging aid. can specify a different block which will be called
|
137
137
|
# to provide the string form for each node.
|
138
|
-
def to_tree io='', &inspect
|
138
|
+
def to_tree io=''.dup, &inspect
|
139
139
|
inspect ||= :inspect.to_proc
|
140
140
|
io << "- #{inspect[self]}\n"
|
141
141
|
recurse = proc do |node, prefix|
|
data/ruby-ole.gemspec
CHANGED
@@ -13,7 +13,6 @@ Gem::Specification.new do |s|
|
|
13
13
|
s.email = %q{aquasync@gmail.com}
|
14
14
|
s.homepage = %q{https://github.com/aquasync/ruby-ole}
|
15
15
|
s.license = 'MIT'
|
16
|
-
s.rubyforge_project = %q{ruby-ole}
|
17
16
|
|
18
17
|
s.executables = ['oletool']
|
19
18
|
s.files = ['README.rdoc', 'COPYING', 'Rakefile', 'ChangeLog', 'ruby-ole.gemspec']
|
data/test/test_filesystem.rb
CHANGED
@@ -879,14 +879,14 @@ end
|
|
879
879
|
|
880
880
|
class OleUnicodeTest < Test::Unit::TestCase
|
881
881
|
def setup
|
882
|
-
@io = StringIO.new ''
|
882
|
+
@io = StringIO.new ''.dup
|
883
883
|
end
|
884
884
|
|
885
885
|
def test_unicode
|
886
886
|
# in ruby-1.8, encoding is assumed to be UTF-8 (and converted with iconv).
|
887
887
|
# in ruby-1.9, UTF-8 should work also, but probably shouldn't be using fixed
|
888
888
|
# TO_UTF16 iconv for other encodings.
|
889
|
-
resume = "R\xc3\xa9sum\xc3\xa9"
|
889
|
+
resume = "R\xc3\xa9sum\xc3\xa9".dup
|
890
890
|
resume.force_encoding Encoding::UTF_8 if resume.respond_to? :encoding
|
891
891
|
Ole::Storage.open @io do |ole|
|
892
892
|
ole.file.open(resume, 'w') { |f| f.write 'Skills: writing bad unit tests' }
|
@@ -908,7 +908,7 @@ class OleUnicodeTest < Test::Unit::TestCase
|
|
908
908
|
end
|
909
909
|
|
910
910
|
def test_write_utf8_string
|
911
|
-
programmer = "programa\xC3\xA7\xC3\xA3o "
|
911
|
+
programmer = "programa\xC3\xA7\xC3\xA3o ".dup
|
912
912
|
programmer.force_encoding Encoding::UTF_8 if programmer.respond_to? :encoding
|
913
913
|
Ole::Storage.open @io do |ole|
|
914
914
|
ole.file.open '1', 'w' do |writer|
|
data/test/test_storage.rb
CHANGED
@@ -197,7 +197,7 @@ class TestStorageWrite < Test::Unit::TestCase
|
|
197
197
|
end
|
198
198
|
|
199
199
|
def test_create_from_scratch_hash
|
200
|
-
io = StringIO.new('')
|
200
|
+
io = StringIO.new(''.dup)
|
201
201
|
Ole::Storage.open(io) { }
|
202
202
|
assert_equal '6bb9d6c1cdf1656375e30991948d70c5fff63d57', sha1(io.string)
|
203
203
|
# more repack test, note invariance
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruby-ole
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.13
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Charles Lowe
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-03-28 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: A library for easy read/write access to OLE compound documents for Ruby.
|
14
14
|
email: aquasync@gmail.com
|
@@ -19,74 +19,73 @@ extra_rdoc_files:
|
|
19
19
|
- README.rdoc
|
20
20
|
- ChangeLog
|
21
21
|
files:
|
22
|
-
- README.rdoc
|
23
22
|
- COPYING
|
24
|
-
- Rakefile
|
25
23
|
- ChangeLog
|
26
|
-
-
|
24
|
+
- README.rdoc
|
25
|
+
- Rakefile
|
27
26
|
- bin/oletool
|
28
27
|
- lib/ole/base.rb
|
28
|
+
- lib/ole/file_system.rb
|
29
29
|
- lib/ole/ranges_io.rb
|
30
|
-
- lib/ole/
|
31
|
-
- lib/ole/types/property_set.rb
|
32
|
-
- lib/ole/types.rb
|
33
|
-
- lib/ole/support.rb
|
34
|
-
- lib/ole/storage/version.rb
|
30
|
+
- lib/ole/storage.rb
|
35
31
|
- lib/ole/storage/base.rb
|
36
32
|
- lib/ole/storage/file_system.rb
|
37
33
|
- lib/ole/storage/meta_data.rb
|
38
|
-
- lib/ole/storage.rb
|
39
|
-
- lib/ole/
|
40
|
-
-
|
41
|
-
-
|
34
|
+
- lib/ole/storage/version.rb
|
35
|
+
- lib/ole/support.rb
|
36
|
+
- lib/ole/types.rb
|
37
|
+
- lib/ole/types/base.rb
|
38
|
+
- lib/ole/types/property_set.rb
|
39
|
+
- ruby-ole.gemspec
|
40
|
+
- test/oleWithDirs.ole
|
41
|
+
- test/test.doc
|
42
|
+
- test/test_SummaryInformation
|
42
43
|
- test/test_filesystem.rb
|
44
|
+
- test/test_mbat.rb
|
43
45
|
- test/test_meta_data.rb
|
44
46
|
- test/test_property_set.rb
|
45
|
-
- test/
|
46
|
-
- test/
|
47
|
+
- test/test_ranges_io.rb
|
48
|
+
- test/test_storage.rb
|
47
49
|
- test/test_support.rb
|
48
|
-
- test/
|
49
|
-
- test/test.doc
|
50
|
+
- test/test_types.rb
|
50
51
|
- test/test_word_6.doc
|
52
|
+
- test/test_word_95.doc
|
51
53
|
- test/test_word_97.doc
|
52
|
-
- test/oleWithDirs.ole
|
53
|
-
- test/test_SummaryInformation
|
54
54
|
homepage: https://github.com/aquasync/ruby-ole
|
55
55
|
licenses:
|
56
56
|
- MIT
|
57
57
|
metadata: {}
|
58
58
|
post_install_message:
|
59
59
|
rdoc_options:
|
60
|
-
- --main
|
60
|
+
- "--main"
|
61
61
|
- README.rdoc
|
62
|
-
- --title
|
62
|
+
- "--title"
|
63
63
|
- ruby-ole documentation
|
64
|
-
- --tab-width
|
64
|
+
- "--tab-width"
|
65
65
|
- '2'
|
66
66
|
require_paths:
|
67
67
|
- lib
|
68
68
|
required_ruby_version: !ruby/object:Gem::Requirement
|
69
69
|
requirements:
|
70
|
-
- -
|
70
|
+
- - ">="
|
71
71
|
- !ruby/object:Gem::Version
|
72
72
|
version: '0'
|
73
73
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
74
74
|
requirements:
|
75
|
-
- -
|
75
|
+
- - ">="
|
76
76
|
- !ruby/object:Gem::Version
|
77
77
|
version: '0'
|
78
78
|
requirements: []
|
79
|
-
|
80
|
-
rubygems_version: 2.0.14
|
79
|
+
rubygems_version: 3.1.2
|
81
80
|
signing_key:
|
82
81
|
specification_version: 4
|
83
82
|
summary: Ruby OLE library.
|
84
83
|
test_files:
|
85
|
-
- test/
|
84
|
+
- test/test_mbat.rb
|
85
|
+
- test/test_property_set.rb
|
86
86
|
- test/test_storage.rb
|
87
|
-
- test/
|
87
|
+
- test/test_support.rb
|
88
88
|
- test/test_meta_data.rb
|
89
|
-
- test/
|
90
|
-
- test/
|
89
|
+
- test/test_ranges_io.rb
|
90
|
+
- test/test_filesystem.rb
|
91
91
|
- test/test_types.rb
|
92
|
-
- test/test_support.rb
|