windows_com 2.0.0 → 2.0.1

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
  SHA1:
3
- metadata.gz: 8fd412b3685ad9f5901bd3f89dbf2b6a477fa884
4
- data.tar.gz: 29d1847667d2b8e406c09b9fab9afd5785e0f545
3
+ metadata.gz: 79365cec9cf59dcbbfa1e01800a75d4da9ac1823
4
+ data.tar.gz: 5a5b303116664c5be8fd5f010066e226d2f35082
5
5
  SHA512:
6
- metadata.gz: dadc3e3d21b5f52341fee37cee3ed18024d305fc8e547d1adb959dc2d323f3c235a4402d5a115902ddb86c9e9a7fcc717a0e8ca86bdfeed6a3a3ca54519326e2
7
- data.tar.gz: 3ddeeffb332b95f21147f2300edca335c5848025850289647b142e56ba3feb01426bda38d845ca0001e9d4d4234f567f5a08461d07fe0ea87364977392f78aee
6
+ metadata.gz: b73bae98990bbd2dd412d1d4bdd0db6c36126015db6ea9051ea1fde0739a8188f54482c15fc034fdd010bfa636198b729c4b3d39533abb3dc711903c6a8f30a9
7
+ data.tar.gz: ebbba18335f2adc9152950c2ba421f97cd9a2f12297c7d5fa0d8e2c9b37fb9a8b2574b355587584daa39b103845f3ba1e5be82a7a5d09e20942f9edd0a570ad3
data/RELNOTES.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release Notes
2
2
 
3
+ ## 2.0.1
4
+
5
+ Allow COMInterface_ instances to be passed to code expecting pointers without calling #vptr
6
+
3
7
  ## 2.0.0
4
8
 
5
9
  - Add COMCallback module for implementing COM objects on the Ruby/FFI side
@@ -90,7 +90,7 @@ def OnCreate(hwnd,
90
90
  xtra[:uich] = UICH.new(xtra[:uif])
91
91
  xtra[:uia] = UIA.new(xtra[:uich])
92
92
 
93
- xtra[:uif].Initialize(hwnd, xtra[:uia].vptr)
93
+ xtra[:uif].Initialize(hwnd, xtra[:uia])
94
94
  xtra[:uif].LoadUI(LoadUIDll(), L('APPLICATION_RIBBON'))
95
95
 
96
96
  0
@@ -1,6 +1,6 @@
1
1
  require 'ffi'
2
2
 
3
- WINDOWS_COM_VERSION = '2.0.0'
3
+ WINDOWS_COM_VERSION = '2.0.1'
4
4
 
5
5
  WINDOWS_COM_OLE_INIT = true unless defined?(WINDOWS_COM_OLE_INIT)
6
6
  WINDOWS_COM_TRACE_CALLBACK_REFCOUNT = false unless defined?(WINDOWS_COM_TRACE_CALLBACK_REFCOUNT)
@@ -184,6 +184,10 @@ module WindowsCOM
184
184
 
185
185
  attr_reader :vptr, :vtbl
186
186
 
187
+ def to_ptr
188
+ @vptr.pointer
189
+ end
190
+
187
191
  self::Vtbl.members.each { |name, sig|
188
192
  define_method(name) { |*args|
189
193
  hresult = @vtbl[name].call(@vptr, *args)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: windows_com
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Radoslav Peev