openxml-xlsx 0.2.1 → 0.2.2

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
  SHA1:
3
- metadata.gz: cf97fca37d93bb918cf53acf4f16e51bd69ad988
4
- data.tar.gz: ea53a316d8c2f9557f09b45b18d867a17698b82d
3
+ metadata.gz: d61f2ae12bcfbe276088e8172480efa22194e4ed
4
+ data.tar.gz: 4dcf9a6ef13ea7c79eb3d88049dfdcc35fdeffdc
5
5
  SHA512:
6
- metadata.gz: f1ed21177c8bd24d6a2769b0d39053cbb94db3f02becd6e3e1e20fdb9e7945638239add0a8ce8023105c2b50e8e2e9e9984e9c4e56b8cb252c069d57924842a0
7
- data.tar.gz: 0a59ab0b1b49a4470dfa0e6a1767db21bd03dbbfa9e217a2968551da9a324659dfbb6ab3b17bf9cb326ce55bd16c374e6bda64be5ef2f18a82a69eac99a879a4
6
+ metadata.gz: 0bc7e70cf470296d11d348673b54ecbc1dd0d93312150481d21f4d19cb5c0571577c1000ab8fc2dedf8d0d89130ffdba380e25e2b07528dca480912e4f5f479f
7
+ data.tar.gz: 28e539380f129e2c243fbb5dd682fa945699c7f66febbcefc44838405cdd9bdc87baa0d40dcf3b78d2ce37751433c40b2e4d9296a650fcd58681df2872fd6aeb
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- openxml-xlsx (0.2.1)
4
+ openxml-xlsx (0.2.2)
5
5
  nokogiri
6
6
  openxml-package (>= 0.2.0)
7
7
 
@@ -11,17 +11,18 @@ module OpenXml
11
11
  @column = options.fetch(:column)
12
12
  @value = options[:value]
13
13
  case value
14
- when String
15
- @type = :string
16
- @string_id = package.string_ref(value)
17
- when Date then
14
+ when Numeric
15
+ @type = :general
16
+ when Date
18
17
  @type = :date
19
18
  @serial_date = to_serial_date(value)
20
- when Time then
19
+ when Time
21
20
  @type = :time
22
21
  @serial_time = to_serial_time(value)
23
22
  else
24
- @type = :general
23
+ @value = value.to_s
24
+ @type = :string
25
+ @string_id = package.string_ref(value)
25
26
  end
26
27
  @style = package.style_ref(options[:style]) if options.key? :style
27
28
  @formula = options[:formula]
@@ -1,5 +1,5 @@
1
1
  module OpenXml
2
2
  module Xlsx
3
- VERSION = "0.2.1"
3
+ VERSION = "0.2.2"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: openxml-xlsx
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bob Lail
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2015-11-30 00:00:00.000000000 Z
11
+ date: 2015-12-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri