robust_excel_ole 1.40 → 1.41
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Changelog +8 -0
- data/lib/robust_excel_ole/base.rb +1 -1
- data/lib/robust_excel_ole/cygwin.rb +1 -1
- data/lib/robust_excel_ole/excel.rb +2 -2
- data/lib/robust_excel_ole/version.rb +1 -1
- data/spec/cygwin_spec.rb +5 -0
- data/spec/data/workbook.xls +0 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c389760bffba5b9c56ece3cd94874141095f4ea9d4d372bce263025f827087c6
|
4
|
+
data.tar.gz: 3f25cc955cf6d63a9d9ba07cb0dc8f20ce9c0fee2175e35ca4d654665c683b39
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f8fe1021c9e2579bb77241b629e1cf8144a5c578607a0f879dc7336b27691d8efd5638d7de89f7427519d038cdaf4e04330e03f2842072551d23e41be0f69c38
|
7
|
+
data.tar.gz: 0d879c95b01f6803f1fd8c204ff095b601a0f40b0541b88561a4d0e5b4db0f25111f0bf242195005c060988b71248e03427fe30a0bf44192c7e8ceda7fb6a532
|
data/Changelog
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# -*- coding: utf-8 -*-
|
2
2
|
|
3
|
-
LOG_TO_STDOUT =
|
3
|
+
LOG_TO_STDOUT = true unless Object.const_defined?(:LOG_TO_STDOUT)
|
4
4
|
REO_LOG_DIR = ''.freeze unless Object.const_defined?(:REO_LOG_DIR)
|
5
5
|
REO_LOG_FILE = 'reo.log'.freeze unless Object.const_defined?(:REO_LOG_FILE)
|
6
6
|
|
@@ -47,7 +47,7 @@ module RobustExcelOle
|
|
47
47
|
|
48
48
|
# @private
|
49
49
|
def cygpath(options, path)
|
50
|
-
Open3.popen3("cygpath #{options} #{path}") { |stdin, stdout, stderr| stdout.read }[0..-2]
|
50
|
+
Open3.popen3("cygpath #{options} #{path}") { |stdin, stdout, stderr| stdout.read }[0..-2].gsub("\n", " ")
|
51
51
|
end
|
52
52
|
|
53
53
|
module_function :cygpath
|
@@ -32,7 +32,7 @@ module User32
|
|
32
32
|
extern 'DWORD SetForegroundWindow(HWND)'
|
33
33
|
extern 'LRESULT SendMessageTimeoutA(HWND, UINT, WPARAM, LPARAM, UINT, UINT, PDWORD_PTR)'
|
34
34
|
rescue Fiddle::DLError => e
|
35
|
-
|
35
|
+
trace "warning: user32.dll not found: #{e}"
|
36
36
|
end
|
37
37
|
end
|
38
38
|
|
@@ -62,7 +62,7 @@ module Oleacc
|
|
62
62
|
#extern 'HRESULT AccessibleObjectFromWindow(HWND, DWORD, void*, ppvObject)'
|
63
63
|
#extern 'HRESULT AccessibleObjectFromWindow(HWND, DWORD, struct GUID*, ppvObject)'
|
64
64
|
rescue Fiddle::DLError => e
|
65
|
-
|
65
|
+
trace "warning: oleacc.dll not found: #{e}"
|
66
66
|
end
|
67
67
|
end
|
68
68
|
|
data/spec/cygwin_spec.rb
CHANGED
@@ -10,6 +10,11 @@ include General
|
|
10
10
|
describe "on cygwin", :if => RUBY_PLATFORM =~ /cygwin/ do
|
11
11
|
describe ".cygpath" do
|
12
12
|
context "cygwin path is '/cygdrive/c/Users'" do
|
13
|
+
|
14
|
+
context "with white spaces" do
|
15
|
+
it { RobustExcelOle::Cygwin.cygpath('-w', '/cygdrive/c/Users of all').should eq 'C:\\Users of all' }
|
16
|
+
end
|
17
|
+
|
13
18
|
context "with '-w' options" do
|
14
19
|
it { RobustExcelOle::Cygwin.cygpath('-w', '/cygdrive/c/Users').should eq 'C:\\Users' }
|
15
20
|
end
|
data/spec/data/workbook.xls
CHANGED
Binary file
|
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.
|
4
|
+
version: '1.41'
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- traths
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-04-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pry
|