xcellus 2.0 → 2.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/xcellus.rb +3 -3
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bac93b8471393ce3d5e92154698d54864149a4d8
4
- data.tar.gz: ef401569deab2ef3820e55ea65680ee8bfd1682a
3
+ metadata.gz: f30264010017bef1df03fe7f48b8fbe1609f674e
4
+ data.tar.gz: 4fad5ba70b53ccb7b1bc07cde4b6aca81ae74124
5
5
  SHA512:
6
- metadata.gz: c5de44ea299ba6910ef178e2b48a35b8368247afb43ad6334a7aa22f31c0409785c0ed0943f7b93b07972d55ceb20e34325a9620b9e52a45ce7754dc3c381386
7
- data.tar.gz: 5a7c6ef8f8a30b53141a151c8a32320c355929aac12d19d6885e085bfcbc64b9254ac1d59ad12dc30c1442b357e20e052a0c3f98c8e5ec5b20340f6b79eb38b0
6
+ metadata.gz: 5d1ae0cd29635adb6edb73ab824956a2e8bf54baa6dd67333b60d16c818f6b30d8fa3f23868f80fe6c1722f73708d776669eeb2b6f4d46b6d327e793b534b2fe
7
+ data.tar.gz: 9f8732f80764183a664d9d823b0d51cedda6566eb1eadf2ecd6cf3a6d3844d6ad327102882adbbc891e5188a51c0e346107bf7519cf93d95cd8115dda8626b7a
@@ -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 input.kind_of? Array
128
+ unless data.kind_of? Array
129
129
  raise ArgumentError, 'Xcellus.append only accepts Arrays'
130
130
  end
131
- StringIO.new(Xcellus::_transform(input.to_json))
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: '2.0'
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-19 00:00:00.000000000 Z
11
+ date: 2018-07-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake-compiler