xsv 1.0.3 → 1.0.4

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 284b7b6ce94f03f8dfd74d77275a4ad2838f44bf9370a4ed2f5f6dba23ad513b
4
- data.tar.gz: cc18f35656e7596c49c1f14e134071f12575204bb8237284cfbb49d2c924728f
3
+ metadata.gz: 3f3abfccfccc78bc42a10cd71a1c1579b4498acee6b3f6e96b19da0aa13f27c6
4
+ data.tar.gz: fc317c12354721f08d6ad757f147c9ba6fcf2b8cc73cc0500ae5d17e1f5675a4
5
5
  SHA512:
6
- metadata.gz: 81ef3af200fb019556e1d5093bfc6f01457f0557c5314f088e707ba25274e74e0c90f914d3133de66a0fb27a398c5b1f8ad3e30d9c55f85772ad029160bfcd05
7
- data.tar.gz: a4631f63c346ddfa449181d1e4de685eac9720f87ec296f0cd335e7487ad5ad8e9e973d1caf8893c37038b78f1665bdaeb853ada501f7b813dc8bda36e85c7b6
6
+ metadata.gz: 92e917efe5443041dc3ac24e38518541dfedc834eaa17b866800b85a356a2072f6bf0f52c4bc977b9c4ba115a2a4f5401d782408d4528bbe44781f0c92a44161
7
+ data.tar.gz: edca02d81bafea0cdf80665448d69d39325de475144dcfac10f4e4cde77a413cd3a4aed0b269b0eae88bde9b0c4723c4e1ce3608969f36af41630a4a480bc5a8
@@ -0,0 +1,32 @@
1
+ # This workflow uses actions that are not certified by GitHub.
2
+ # They are provided by a third-party and are governed by
3
+ # separate terms of service, privacy policy, and support
4
+ # documentation.
5
+ # This workflow will download a prebuilt Ruby version, install dependencies and run tests with Rake
6
+ # For more information see: https://github.com/marketplace/actions/setup-ruby-jruby-and-truffleruby
7
+
8
+ name: Ruby
9
+
10
+ on:
11
+ push:
12
+ branches: [ master ]
13
+ pull_request:
14
+ branches: [ master ]
15
+
16
+ jobs:
17
+ test:
18
+
19
+ runs-on: ubuntu-latest
20
+ strategy:
21
+ matrix:
22
+ ruby-version: ['2.6', '2.7', '3.0', 'jruby', 'truffleruby']
23
+
24
+ steps:
25
+ - uses: actions/checkout@v2
26
+ - name: Set up Ruby
27
+ uses: ruby/setup-ruby@v1
28
+ with:
29
+ ruby-version: ${{ matrix.ruby-version }}
30
+ bundler-cache: true # runs 'bundle install' and caches installed gems automatically
31
+ - name: Run tests
32
+ run: bundle exec rake
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Xsv Changelog
2
2
 
3
+ ## 1.0.4 2021-07-05
4
+
5
+ - Support for custom date/time columns
6
+
3
7
  ## 1.0.3 2021-05-06
4
8
 
5
9
  - Handle nil number formats correctly (regression in Xsv 1.0.2, #29)
data/README.md CHANGED
@@ -4,7 +4,7 @@
4
4
  [![Yard Docs](http://img.shields.io/badge/yard-docs-blue.svg)](https://rubydoc.info/github/martijn/xsv)
5
5
  [![Gem Version](https://badge.fury.io/rb/xsv.svg)](https://badge.fury.io/rb/xsv)
6
6
 
7
- Xsv is a fast, lightweight, pure Ruby parser for Office Open XML spreadsheet files
7
+ Xsv is a fast, lightweight, pure Ruby parser for ISO/IEC 29500 Office Open XML spreadsheet files
8
8
  (commonly known as Excel or .xlsx files). It strives to be minimal in the
9
9
  sense that it provides nothing a CSV reader wouldn't, meaning it only
10
10
  deals with minimal formatting and cannot create or modify documents.
@@ -107,6 +107,8 @@ module Xsv
107
107
  end
108
108
  when 'b'
109
109
  @current_value == '1'
110
+ when 'd'
111
+ DateTime.parse(@current_value)
110
112
  else
111
113
  raise Xsv::Error, "Encountered unknown column type #{@current_cell[:t]}"
112
114
  end
data/lib/xsv/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Xsv
4
- VERSION = '1.0.3'
4
+ VERSION = '1.0.4'
5
5
  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: 1.0.3
4
+ version: 1.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Martijn Storck
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-05-06 00:00:00.000000000 Z
11
+ date: 2021-07-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubyzip
@@ -83,8 +83,8 @@ executables: []
83
83
  extensions: []
84
84
  extra_rdoc_files: []
85
85
  files:
86
+ - ".github/workflows/ruby.yml"
86
87
  - ".gitignore"
87
- - ".travis.yml"
88
88
  - CHANGELOG.md
89
89
  - Gemfile
90
90
  - LICENSE.txt
data/.travis.yml DELETED
@@ -1,10 +0,0 @@
1
- ---
2
- sudo: false
3
- language: ruby
4
- cache: bundler
5
- rvm:
6
- - 2.5.8
7
- - 3.0
8
- - truffleruby
9
- - jruby
10
- before_install: gem install bundler