robust_excel_ole 1.15 → 1.16

Sign up to get free protection for your applications and to get access to all the features.
@@ -1582,10 +1582,10 @@ describe Workbook do
1582
1582
 
1583
1583
  it "should remain the calculation mode" do
1584
1584
  book1 = Workbook.open(@simple_file1)
1585
- old_calculation = book1.excel.calculation
1585
+ old_calculation = book1.excel.properties[:calculation]
1586
1586
  Workbook.unobtrusively(@simple_file1) do |book|
1587
1587
  end
1588
- book1.excel.calculation.should == old_calculation
1588
+ book1.excel.properties[:calculation].should == old_calculation
1589
1589
  end
1590
1590
 
1591
1591
  it "should remain calculation manual" do
@@ -627,8 +627,7 @@ describe Worksheet do
627
627
  it "should color the cell" do
628
628
  @sheet1.set_namevalue_glob("new", "bar")
629
629
  @book1.Names.Item("new").RefersToRange.Interior.ColorIndex.should == -4142
630
- @book1.color_if_modified = 4
631
- @sheet1.set_namevalue_glob("new", "bar")
630
+ @sheet1.set_namevalue_glob("new", "bar", :color => 4)
632
631
  @book1.Names.Item("new").RefersToRange.Interior.ColorIndex.should == 4
633
632
  end
634
633
 
@@ -720,8 +719,7 @@ describe Worksheet do
720
719
  it "should color the cell" do
721
720
  @sheet1.set_namevalue("new", "bar")
722
721
  @book1.Names.Item("new").RefersToRange.Interior.ColorIndex.should == -4142
723
- @book1.color_if_modified = 4
724
- @sheet1.set_namevalue("new", "bar")
722
+ @sheet1.set_namevalue("new", "bar", :color => 4)
725
723
  @book1.Names.Item("new").RefersToRange.Interior.ColorIndex.should == 4
726
724
  end
727
725
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: robust_excel_ole
3
3
  version: !ruby/object:Gem::Version
4
- version: '1.15'
4
+ version: '1.16'
5
5
  platform: ruby
6
6
  authors:
7
7
  - traths
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-03-13 00:00:00.000000000 Z
11
+ date: 2020-04-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec