xsv 0.3.15 → 0.3.16

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 84691bdf67411e4a1e2d28c23a04e6656285247820d65c3124382261b0aba27e
4
- data.tar.gz: 2ae8332a7e5e857039b729abee1478f063663e29b4eb8b9f45a4ae3ac2632916
3
+ metadata.gz: 3ab67d9fe191b18a010c3526e270f7a528189b8a8ad4496ff5cc8100497c8dfd
4
+ data.tar.gz: 3f7aec9bad6532dda901764d7c80342ab0763370bf0475d9159cc42730a8405e
5
5
  SHA512:
6
- metadata.gz: 666a4b190de6a64d676fc5dd66d5d836255b7c5b8114f21f53ce57b9d09deaa1cfd4f644c31018a48619449d5962dd86b6bdd41355861462275601fc7486c386
7
- data.tar.gz: 3c6c957f46e31dac95f7c77f533ab43c52db1733f1d309b7a6e6bdc7e503da72963a3fe4f80a8269d46db436977bbc37c0b425203c2d75c8a6ef1be889714eb3
6
+ metadata.gz: 740bb30608da907db4ea9697587dd6da4c2cfc9032fa7196eb1dccfe1912ea77387a0545bb81980f0031f71b746cb6a7c1628aef4f1f35c2697fd68dac80379f
7
+ data.tar.gz: 288c520bf0b01a3ebb6463dba02bb63ed43eb9fa033ee5e19f1891411cc0c6554415f18455d07d94b45d4c8a56469a00e20d85794357eb48cf5106821458aee5
@@ -1,5 +1,9 @@
1
1
  # Xsv Changelog
2
2
 
3
+ ## 0.3.16 2020-06-03
4
+
5
+ - Support complex numbers (#16)
6
+
3
7
  ## 0.3.15 2020-06-02
4
8
 
5
9
  - Fix issue with workbooks that don't contain shared strings (#15)
data/README.md CHANGED
@@ -123,6 +123,14 @@ After checking out the repo, run `bin/setup` to install dependencies. Then, run
123
123
 
124
124
  To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
125
125
 
126
+ ## Performance and Benchmarks
127
+
128
+ Xsv is faster and more memory efficient than other gems because of two things: it only _reads values_ from Excel files and it's based on a SAX-based parser instead of a DOM-based parser. If you want to read some background on this, check out my blog post on
129
+ [Efficient XML parsing in Ruby](https://storck.io/posts/efficient-xml-parsing-in-ruby/).
130
+
131
+ Jamie Schembri did a shootout of Xsv against various other Excel reading gems comparing parsing speed, memory usage and allocations.
132
+ Check our his blog post: [Faster Excel parsing in Ruby](https://blog.schembri.me/post/faster-excel-parsing-in-ruby/).
133
+
126
134
  ## Contributing
127
135
 
128
136
  Bug reports and pull requests are welcome on GitHub at https://github.com/martijn/xsv.
@@ -94,6 +94,8 @@ module Xsv
94
94
  def parse_number(string)
95
95
  if string.include? "."
96
96
  string.to_f
97
+ elsif string.include? "E"
98
+ Complex(string).to_f
97
99
  else
98
100
  string.to_i
99
101
  end
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module Xsv
3
- VERSION = "0.3.15"
3
+ VERSION = "0.3.16"
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: xsv
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.15
4
+ version: 0.3.16
5
5
  platform: ruby
6
6
  authors:
7
7
  - Martijn Storck
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-06-02 00:00:00.000000000 Z
11
+ date: 2020-06-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubyzip