robust_excel_ole 1.40 → 1.42

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a3d804db077d2eb3c4eaf9a14a0e16cefcf9b6ba62b28f5e72863b76adf1fea8
4
- data.tar.gz: 72e7f2f169fa6a945380326c22b45921aa34785741fb4380317551db78a42596
3
+ metadata.gz: '038425011caf35d5dc267b6a6e49284d5d996269e0770d10be09c1c42a9e6528'
4
+ data.tar.gz: 5d85d722b01092128e4266d9d1b6c75ac88bc360322e02cb926d7ea61cfd80cb
5
5
  SHA512:
6
- metadata.gz: 188397edb880279b9c5510a6b625a11fde2b4c5366de48f90728c4689293d21096c397a4da10fe10f09ae67a234f686906b5245c6f0f9f3750e69a6c95d4ab82
7
- data.tar.gz: 927aa043117fbbec3fd517ecc9e13ea522aebc87f04bacc84ffcf334df4c7a54f285480ef597bdb2505497ef450862446915dd1d0191e99128c2932f78ba260a
6
+ metadata.gz: 9cfc57de6c50f45eb1662d3c4f15f7cd2cdd26be5a8c0f94d77bff68926fa3a8f8b93042ac868b32a6439ee67b2e05c8a55bf3b34a28c4d072269e031f04e790
7
+ data.tar.gz: e87f42403d6333c46981e4f87b15892e229238a3a4d70da935b7e44895c0ba8afd09d5a109e06fc78903a089e7196e1902a5ac3a6a248d26a163571674c72868
data/Changelog CHANGED
@@ -1,6 +1,14 @@
1
1
  # Change Log
2
2
  All notable changes to this project will be documented in this file.
3
3
 
4
+ ## [1.41] 2022-07-04
5
+
6
+ ## [1.40] 2022-31-03
7
+
8
+ ## [1.39] 2022-29-03
9
+
10
+ ## [1.38] 2022-28-03
11
+
4
12
  ## [1.37] 2021-30-11
5
13
 
6
14
  ### Added
@@ -1,6 +1,6 @@
1
1
  # -*- coding: utf-8 -*-
2
2
 
3
- LOG_TO_STDOUT = false unless Object.const_defined?(: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
- #trace "user32.dll not found: #{e}"
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
- #trace "oleacc.dll not found: #{e}"
65
+ trace "warning: oleacc.dll not found: #{e}"
66
66
  end
67
67
  end
68
68
 
@@ -1,3 +1,3 @@
1
1
  module RobustExcelOle
2
- VERSION = "1.40"
2
+ VERSION = "1.42"
3
3
  end
@@ -123,7 +123,7 @@ module RobustExcelOle
123
123
  raise TypeREOError, "provided Excel option value is neither an Excel object nor a valid option"
124
124
  end
125
125
  begin
126
- book = if File.exists?(file)
126
+ book = if File.exist?(file)
127
127
  bookstore.fetch(file, prefer_writable: !(opts[:read_only]),
128
128
  prefer_excel: (opts[:read_only] ? forced_excel : nil))
129
129
  end
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
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.40'
4
+ version: '1.42'
5
5
  platform: ruby
6
6
  authors:
7
7
  - traths
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-03-31 00:00:00.000000000 Z
11
+ date: 2023-04-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pry