write_xlsx_rails 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
@@ -8,7 +8,7 @@ module WriteXlsxRails
|
|
8
8
|
end
|
9
9
|
|
10
10
|
def self.call(template)
|
11
|
-
<<-TEMPLATE
|
11
|
+
<<-TEMPLATE.gsub(/\n/, ';').gsub('{{source}}', template.source)
|
12
12
|
require 'stringio'
|
13
13
|
|
14
14
|
__io = StringIO.new
|
@@ -16,7 +16,7 @@ module WriteXlsxRails
|
|
16
16
|
__workbook_defined = defined? workbook
|
17
17
|
workbook = WriteXLSX.new(__io) unless __workbook_defined
|
18
18
|
|
19
|
-
|
19
|
+
{{source}}
|
20
20
|
|
21
21
|
workbook.close unless __workbook_defined
|
22
22
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: write_xlsx_rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-07-
|
12
|
+
date: 2013-07-30 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: write_xlsx
|