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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ee225c252867f895e976e92e0cf2d1fa0617c8d1ab08277dced0f8c53037f0ae
4
- data.tar.gz: 846527548749de579fc47f7cdd0df9826032fcb1b15cd500c441e6ffd339c3fa
3
+ metadata.gz: 46ee9d7976dffd23442ab3dc1c87eb79d11786b5c6c9747f805a018a22330698
4
+ data.tar.gz: 43c1478b3d812cc7ba3d3d616b9fe9c14ef58b0e63c565d3d90378cdad6cdb92
5
5
  SHA512:
6
- metadata.gz: 89fe866dcb96df87a917ddf9ef666d5583c5ece4c20424020fffbf55a648e1cbc8fa9cd6c6acd25e979528108c653414879fd020533e20740f7024c1a4678e69
7
- data.tar.gz: e065e79287b82fe2b423cf119c008d92dc4c7f982acf1d98a4feb3da1d1ead8d8f8a8cc3c40e62162cf6315408875806366eeb6b058cd65f64197492cf0fe0bb
6
+ metadata.gz: 626c6f160305d4a67487c10174d45daf37cd7e9eef9736f5d6adbf44219e0aa996f52dc07564b3124141cc94d3d286acf9631176b913cf91e733de8ef0fda16d
7
+ data.tar.gz: a1d8170e68cbd7ee0f06a5b9ea00aa801bf990a6a06090ce0abe275bd84bd8c1201740e30735b887761a57e0d28357431e6a3d5a5e17a995b6fe2d5ff2c7a43a
data/Changes CHANGED
@@ -1,5 +1,8 @@
1
1
  Change history of write_xlsx rubygem.
2
2
 
3
+ 2020-10-23 v0.85.10
4
+ Fix frozen string litterals problems in Format#set_align
5
+
3
6
  2020-09-07 v0.85.9
4
7
  apply pull-request #59 and #60
5
8
 
@@ -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'
@@ -1 +1 @@
1
- WriteXLSX_VERSION = "0.85.9"
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.9
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-09-07 00:00:00.000000000 Z
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