xcellus 2.0 → 2.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/xcellus.rb +3 -3
- 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: f30264010017bef1df03fe7f48b8fbe1609f674e
|
4
|
+
data.tar.gz: 4fad5ba70b53ccb7b1bc07cde4b6aca81ae74124
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5d1ae0cd29635adb6edb73ab824956a2e8bf54baa6dd67333b60d16c818f6b30d8fa3f23868f80fe6c1722f73708d776669eeb2b6f4d46b6d327e793b534b2fe
|
7
|
+
data.tar.gz: 9f8732f80764183a664d9d823b0d51cedda6566eb1eadf2ecd6cf3a6d3844d6ad327102882adbbc891e5188a51c0e346107bf7519cf93d95cd8115dda8626b7a
|
data/lib/xcellus.rb
CHANGED
@@ -4,7 +4,7 @@ require 'json'
|
|
4
4
|
|
5
5
|
# Xcellus provides a clean interface to an underlying, native XLSX parser/writer
|
6
6
|
module Xcellus
|
7
|
-
VERSION = '2.0'.freeze
|
7
|
+
VERSION = '2.0.1'.freeze
|
8
8
|
|
9
9
|
class << self
|
10
10
|
# Transforms a provided array of objects into a XLSX file, and returns it as
|
@@ -125,10 +125,10 @@ module Xcellus
|
|
125
125
|
# structure of Xcellus::transform, with the difference that it creates (when
|
126
126
|
# necessary) sheets, and appends data to them.
|
127
127
|
def append(data)
|
128
|
-
unless
|
128
|
+
unless data.kind_of? Array
|
129
129
|
raise ArgumentError, 'Xcellus.append only accepts Arrays'
|
130
130
|
end
|
131
|
-
StringIO.new(Xcellus::_transform(
|
131
|
+
StringIO.new(Xcellus::_transform(data.to_json))
|
132
132
|
end
|
133
133
|
end
|
134
134
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: xcellus
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 2.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Victor Gama
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-07-
|
11
|
+
date: 2018-07-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake-compiler
|