ruby-ole 1.2.12.1 → 1.2.12.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d4b9f789eeefdd26977c36ef660404cc1093f9c1
4
- data.tar.gz: 9fd760f019af2b6cb4511b338bf92062cb31de5b
3
+ metadata.gz: c5de7fda7dfecd4e2063b8b6e5a2effe19d388cf
4
+ data.tar.gz: 5bce556cf3ed7b3558d5c3b5436e4463efef80b1
5
5
  SHA512:
6
- metadata.gz: 9858b03e6f66e6bdec13a4a1ebf56dfb601c5ea461a860a5e56a6321a7104e41b29b3d4d166d4975af582ebb4c7d3d667ec633d9081edf453dfb2f37197a1b64
7
- data.tar.gz: a70888d4e0c3e736ed0ae5e1389d1c2dcaa696954ad65a7542e6ad7138de828aed7306f0af3177b78ebc37a7bb5830c6acc7093d41ebf2d6e75dfd78544ccae8
6
+ metadata.gz: 0c230e5836eae8c88d0cf5cc10e9903952dbd6c6a15044aa93e0d5401c388f6bbd2087e7c9c713f849491c75ea0d48b8299c4f469b3780b8eafc10080175caa4
7
+ data.tar.gz: 42179de2f869b579f4a211c83b1b710b9995edf21448662d6ce815b9a58ef440937abe544dfcef2018f2fe7bb30af36cbe073a67c548fa44a0ab54d7f72af3ec
data/ChangeLog CHANGED
@@ -1,3 +1,7 @@
1
+ == 1.2.12.2 / 2019-03-12
2
+
3
+ - Fix to work with frozen string literals (github #24, taichi-ishitani).
4
+
1
5
  == 1.2.12.1 / 2017-03-12
2
6
 
3
7
  - Integer unification for ruby 2.4.0+ (github #19, koic).
@@ -156,7 +156,7 @@ class RangesIO
156
156
 
157
157
  # read bytes from file, to a maximum of +limit+, or all available if unspecified.
158
158
  def read limit=nil
159
- data = ''
159
+ data = ''.dup
160
160
  return data if eof?
161
161
  limit ||= size
162
162
  pos, len = @ranges[@active]
@@ -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
@@ -2,7 +2,7 @@
2
2
 
3
3
  module Ole # :nodoc:
4
4
  class Storage
5
- VERSION = '1.2.12.1'
5
+ VERSION = '1.2.12.2'
6
6
  end
7
7
  end
8
8
 
@@ -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|
@@ -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|
@@ -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.12.1
4
+ version: 1.2.12.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Charles Lowe
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-03-12 00:00:00.000000000 Z
11
+ date: 2019-03-12 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,65 +19,65 @@ 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
- - ruby-ole.gemspec
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/types/base.rb
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/file_system.rb
40
- - test/test_ranges_io.rb
41
- - test/test_storage.rb
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/test_mbat.rb
46
- - test/test_types.rb
47
+ - test/test_ranges_io.rb
48
+ - test/test_storage.rb
47
49
  - test/test_support.rb
48
- - test/test_word_95.doc
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
79
  rubyforge_project: ruby-ole
80
- rubygems_version: 2.0.14
80
+ rubygems_version: 2.5.2.1
81
81
  signing_key:
82
82
  specification_version: 4
83
83
  summary: Ruby OLE library.