calco 0.2.1 → 0.2.2
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 +4 -4
- data/examples/multiplication_tables.rb +1 -1
- data/lib/calco/engines/office_file_manager.rb +2 -2
- data/lib/calco/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 507cdbcaa385a6becc61829b8d3432e566fc6259
|
|
4
|
+
data.tar.gz: 3bcf9d4313dc311cf55f669c4b5247b60b3d9fa9
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 867581b216ffe4d43cd5e3bde1a2225eeb475ddf00b7fdfe22bb5647fbe776b214a1414af54debbe14437b79caba5522da99664805283aa215d314f4ba6223bc
|
|
7
|
+
data.tar.gz: 2bf8f355d1c68efd51d1f2d1c9566716fbb8e8ebddc192017ea2b9fa173921bc599a5a524f33c648d102a474a8d09d6a6ada6c38fe2fd12e93e63d93b1a7d6cd
|
|
@@ -16,7 +16,7 @@ def relative_path file
|
|
|
16
16
|
File.join(File.dirname(__FILE__), file)
|
|
17
17
|
end
|
|
18
18
|
|
|
19
|
-
engine = Calco::OfficeEngine.new(relative_path('multiplication_tables.ods')
|
|
19
|
+
engine = Calco::OfficeEngine.new(relative_path('multiplication_tables.ods'))
|
|
20
20
|
|
|
21
21
|
doc = spreadsheet(engine) do
|
|
22
22
|
|
|
@@ -19,7 +19,7 @@ module Calco
|
|
|
19
19
|
|
|
20
20
|
temp_file = Tempfile.new("office-gen-sheet-")
|
|
21
21
|
|
|
22
|
-
stream = open(temp_file, 'w:utf-8')
|
|
22
|
+
stream = File.open(temp_file, 'w:utf-8')
|
|
23
23
|
|
|
24
24
|
h[k] = Descriptor.new(stream, temp_file, false)
|
|
25
25
|
|
|
@@ -74,7 +74,7 @@ module Calco
|
|
|
74
74
|
|
|
75
75
|
Zip::File.open(@ods_template) do |zipfile|
|
|
76
76
|
content = zipfile.read("content.xml")
|
|
77
|
-
open(content_xml_file, "w") {|out| out.write content}
|
|
77
|
+
File.open(content_xml_file, "w") {|out| out.write content}
|
|
78
78
|
end
|
|
79
79
|
|
|
80
80
|
end
|
data/lib/calco/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: calco
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Jean Lazarou
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2015-
|
|
11
|
+
date: 2015-03-24 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rspec
|