write_xlsx 0.85.9 → 0.85.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Changes +3 -0
- data/lib/write_xlsx/format.rb +1 -1
- data/lib/write_xlsx/version.rb +1 -1
- data/test/worksheet/test_format.rb +17 -0
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 46ee9d7976dffd23442ab3dc1c87eb79d11786b5c6c9747f805a018a22330698
|
4
|
+
data.tar.gz: 43c1478b3d812cc7ba3d3d616b9fe9c14ef58b0e63c565d3d90378cdad6cdb92
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 626c6f160305d4a67487c10174d45daf37cd7e9eef9736f5d6adbf44219e0aa996f52dc07564b3124141cc94d3d286acf9631176b913cf91e733de8ef0fda16d
|
7
|
+
data.tar.gz: a1d8170e68cbd7ee0f06a5b9ea00aa801bf990a6a06090ce0abe275bd84bd8c1201740e30735b887761a57e0d28357431e6a3d5a5e17a995b6fe2d5ff2c7a43a
|
data/Changes
CHANGED
data/lib/write_xlsx/format.rb
CHANGED
@@ -506,7 +506,7 @@ def self.color(color_code)
|
|
506
506
|
def set_align(location)
|
507
507
|
return unless location # No default
|
508
508
|
|
509
|
-
location.downcase
|
509
|
+
location = location.downcase
|
510
510
|
|
511
511
|
set_text_h_align(1) if location == 'left'
|
512
512
|
set_text_h_align(2) if location == 'centre'
|
data/lib/write_xlsx/version.rb
CHANGED
@@ -1 +1 @@
|
|
1
|
-
WriteXLSX_VERSION = "0.85.
|
1
|
+
WriteXLSX_VERSION = "0.85.10"
|
@@ -0,0 +1,17 @@
|
|
1
|
+
# -*- coding: utf-8 -*-
|
2
|
+
require 'helper'
|
3
|
+
require 'write_xlsx'
|
4
|
+
require 'stringio'
|
5
|
+
|
6
|
+
class TestFormat < Test::Unit::TestCase
|
7
|
+
def setup
|
8
|
+
@workbook = WriteXLSX.new(StringIO.new)
|
9
|
+
@format = @workbook.add_format
|
10
|
+
end
|
11
|
+
|
12
|
+
def test_set_align_with_frozen_parameter
|
13
|
+
assert_nothing_raised do
|
14
|
+
@format.set_align('LEFT'.freeze)
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: write_xlsx
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.85.
|
4
|
+
version: 0.85.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Hideo NAKAMURA
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-10-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rubyzip
|
@@ -1621,6 +1621,7 @@ files:
|
|
1621
1621
|
- test/worksheet/test_convert_date_time_03.rb
|
1622
1622
|
- test/worksheet/test_convert_date_time_04.rb
|
1623
1623
|
- test/worksheet/test_extract_filter_tokens.rb
|
1624
|
+
- test/worksheet/test_format.rb
|
1624
1625
|
- test/worksheet/test_parse_filter_expression.rb
|
1625
1626
|
- test/worksheet/test_position_object.rb
|
1626
1627
|
- test/worksheet/test_repeat_formula.rb
|
@@ -3133,6 +3134,7 @@ test_files:
|
|
3133
3134
|
- test/worksheet/test_convert_date_time_03.rb
|
3134
3135
|
- test/worksheet/test_convert_date_time_04.rb
|
3135
3136
|
- test/worksheet/test_extract_filter_tokens.rb
|
3137
|
+
- test/worksheet/test_format.rb
|
3136
3138
|
- test/worksheet/test_parse_filter_expression.rb
|
3137
3139
|
- test/worksheet/test_position_object.rb
|
3138
3140
|
- test/worksheet/test_repeat_formula.rb
|