docx 0.2.01 → 0.2.02

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- Mjc5ZDY4NzcyOGE5ZWUzZWMxZGI4ODFjMmFkOWRhNGY1YzNkMDM3Yw==
4
+ NDdiZTAyMWU2MzFmZDBhYTNlMGEyY2MwNGExODI5NWE2ZmYyZTFlZg==
5
5
  data.tar.gz: !binary |-
6
- N2I0ZjZlMjUxMjI5ZmQ4NTUwZThmY2FkNTkxYTQzYzdlNzZiMTg3Mg==
6
+ MTUyYTVmMWFiMmI5MDJiNjUzMTBjMjZhYzhlODM0OGQ4ZWM5ZTI1Yg==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- MmFjYWIxZDYzMmFhOTVkNDEyZTQ1NjI2Zjc1NmUyNzZhYTc4YTVjNTM2OTM5
10
- OTVlZWZlMDc5YTdmMDIwY2JhMzY5ZDY4NGQ4YTY1NTc1NjhlZDMwYTljNDAy
11
- NDljMjc3YTEzNWNmMjNiNjUzZjI4ZmQ5ZjYxYmMwMDNmYjQzNTk=
9
+ MjI5NjRjNDA4M2E1OGM4NTg1NDA4ZGI1ZTA2NWIyZTc5NmJjM2ZiNjcwZjA5
10
+ N2Q4NzJmNmFiOWRkMTkzNDcwYTRiODAyMTlhZGYwZmQ2ZmIxNDMzYTgyOWJi
11
+ ZmJkM2VlYzUyNTZlZTA5Mjg2ZTRkZmIzNjZjODQxZWY5ZDVmOTY=
12
12
  data.tar.gz: !binary |-
13
- MTVmMmM1ZDAyYWVkNjdjMDZmMDFjMjkwMTliNDllNWZjOWUyZGI5MWYyYjUz
14
- ODdkMWRjNDAwYTgwNTg1MmNhN2ViNDYzNjI2MGM3NzE2NGQyMjUxMjBhZDdm
15
- OTJiYzlhZjU3MWU5YjNhMDBkMzg2ZjNlZjg2MzM1OGM1MzNjNjQ=
13
+ OTcyMmI3MzkyYjM5YjFkZDEzYWY5MDljZTAwY2I4MjJjMDkzMjhhNjZhYTJh
14
+ NDI1MDcxMmJjYmEzNTQ5MDEyZTM3MTJhZWU2ZmEzYzQ1NGViZTMxMzc0YjQ4
15
+ MTMwNTI0NjJkOGQ2MzExMDlmYTk5YTdhNmQ1MzkxOTU4M2RmODM=
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -35,14 +35,14 @@ module Docx
35
35
 
36
36
  def save(path)
37
37
  update
38
- Zip::ZipFile.open(path, Zip::ZipFile::CREATE) do |out|
38
+ Zip::ZipOutputStream.open(path) do |out|
39
39
  zip.each do |entry|
40
- out.get_output_stream(entry.name) do |o|
41
- if @replace[entry.name]
42
- o.write(@replace[entry.name])
43
- else
44
- o.write(zip.read(entry.name))
45
- end
40
+ out.put_next_entry(entry.name)
41
+
42
+ if @replace[entry.name]
43
+ out.write(@replace[entry.name])
44
+ else
45
+ out.write(zip.read(entry.name))
46
46
  end
47
47
  end
48
48
  end
@@ -1,3 +1,3 @@
1
1
  module Docx
2
- VERSION = '0.2.01'
2
+ VERSION = '0.2.02'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: docx
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.01
4
+ version: 0.2.02
5
5
  platform: ruby
6
6
  authors:
7
7
  - Christopher Hunt
@@ -38,7 +38,7 @@ cert_chain:
38
38
  NEV0UFhmRQpLdFE1SGpuNFVDNTg0R0pyR01haFVnbXhMbmZleXVZWXVZTlFF
39
39
  M1VzVlVQYXl6eGtQVW9DOFZzT0orV1ZmMnMrCkcxL1VkNGRVYkVtOGdRL2J4
40
40
  bDM1TzBBdkhCcz0KLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=
41
- date: 2013-04-16 00:00:00.000000000 Z
41
+ date: 2013-06-01 00:00:00.000000000 Z
42
42
  dependencies:
43
43
  - !ruby/object:Gem::Dependency
44
44
  name: nokogiri
@@ -115,3 +115,4 @@ signing_key:
115
115
  specification_version: 4
116
116
  summary: a ruby library/gem for interacting with .docx files
117
117
  test_files: []
118
+ has_rdoc:
metadata.gz.sig CHANGED
@@ -1,2 +1,2 @@
1
- Re�\��J~�.M�W.9U�:�@
2
- �$�����v��� C��+�I��(����ɾ�Z��p��h_�ߚ�O���<�^rF�G�U�i�<%4-�띾=��B��{����.�)�4 e�x 9�?7�m3�ڌ��R�W�\�n�d�����D���y`=�q��kꝁ/%ԝ*ۚ��\��;��Q <������/-&H}�fG6wb�)DU5�H���f0d<})�'��d�� ��|�t ��M)���2�
1
+ ��g��:��PUg �v8����U���+�����L��Đ�b��V3D��-�4���V?i4�N3}�C�UfL>T����UZRވY��*.HC�8Iӹ�,/�?�(����s�]��i֟�@{��@p�����,�
2
+ MY@���Q6v�@ٸ1�ɱՆכ0aD�쫦ݕ�ќ