win32ole 1.9.0 → 1.9.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rdoc_options +2 -0
- data/ext/win32ole/extconf.rb +1 -0
- data/ext/win32ole/win32ole.c +1 -1
- data/ext/win32ole/win32ole.h +4 -0
- data/ext/win32ole/win32ole_error.c +4 -2
- data/ext/win32ole/win32ole_event.c +2 -1
- data/ext/win32ole/win32ole_method.c +2 -1
- data/ext/win32ole/win32ole_param.c +2 -1
- data/ext/win32ole/win32ole_record.c +2 -1
- data/ext/win32ole/win32ole_type.c +2 -1
- data/ext/win32ole/win32ole_typelib.c +2 -1
- data/ext/win32ole/win32ole_variable.c +2 -1
- data/ext/win32ole/win32ole_variant.c +2 -1
- data/lib/win32ole/property.rb +2 -2
- metadata +6 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 496b73aa5bbd03adaadf85d2c382f1de63b6a3acf9cafd621a6557eb13d14a6f
|
4
|
+
data.tar.gz: 6ec51f1528e1423bbe98cf21b3d3b2a0a54106c9e34b1aedcef02d7f945d6b1e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e3737f6c48e5a74d400f3b81a462ff97327b7e847ea16b35fb88ced45b9d3d1e78b2b1b933909c7503c85f810bd83614ad4fa846d31bd0263e464d0a9e914809
|
7
|
+
data.tar.gz: 77a60ea7d2dd01dc2ec0375fa24343708768779b77d6b9007feaaf765d0f7d8fdc6ba433c432229cb51a21f62c1f01cb446d7ec2f3b424b08985d3a6c0af1a40
|
data/.rdoc_options
ADDED
data/ext/win32ole/extconf.rb
CHANGED
data/ext/win32ole/win32ole.c
CHANGED
@@ -27,7 +27,7 @@
|
|
27
27
|
const IID IID_IMultiLanguage2 = {0xDCCFC164, 0x2B38, 0x11d2, {0xB7, 0xEC, 0x00, 0xC0, 0x4F, 0x8F, 0x5D, 0x9A}};
|
28
28
|
#endif
|
29
29
|
|
30
|
-
#define WIN32OLE_VERSION "1.9.
|
30
|
+
#define WIN32OLE_VERSION "1.9.1"
|
31
31
|
|
32
32
|
typedef HRESULT (STDAPICALLTYPE FNCOCREATEINSTANCEEX)
|
33
33
|
(REFCLSID, IUnknown*, DWORD, COSERVERINFO*, DWORD, MULTI_QI*);
|
data/ext/win32ole/win32ole.h
CHANGED
@@ -94,6 +94,10 @@
|
|
94
94
|
#define NUM2UI8 RB_NUM2UINT
|
95
95
|
#endif
|
96
96
|
|
97
|
+
#ifndef HAVE_RB_DEPRECATE_CONSTANT
|
98
|
+
# define rb_deprecate_constant(mod, name) (void)0
|
99
|
+
#endif
|
100
|
+
|
97
101
|
#define OLE_ADDREF(X) (X) ? ((X)->lpVtbl->AddRef(X)) : 0
|
98
102
|
#define OLE_RELEASE(X) (X) ? ((X)->lpVtbl->Release(X)) : 0
|
99
103
|
#define OLE_FREE(x) {\
|
@@ -84,7 +84,8 @@ Init_win32ole_error(void)
|
|
84
84
|
*/
|
85
85
|
eWIN32OLERuntimeError = rb_define_class_under(cWIN32OLE, "RuntimeError", rb_eRuntimeError);
|
86
86
|
/* Alias of WIN32OLE::RuntimeError, for the backward compatibility */
|
87
|
-
rb_define_const(rb_cObject, "
|
87
|
+
rb_define_const(rb_cObject, "WIN32OLE" "RuntimeError", eWIN32OLERuntimeError);
|
88
|
+
rb_deprecate_constant(rb_cObject, "WIN32OLE" "RuntimeError");
|
88
89
|
/*
|
89
90
|
* Document-class: WIN32OLE::QueryInterfaceError
|
90
91
|
*
|
@@ -92,5 +93,6 @@ Init_win32ole_error(void)
|
|
92
93
|
*/
|
93
94
|
eWIN32OLEQueryInterfaceError = rb_define_class_under(cWIN32OLE, "QueryInterfaceError", eWIN32OLERuntimeError);
|
94
95
|
/* Alias of WIN32OLE::QueryInterfaceError, for the backward compatibility */
|
95
|
-
rb_define_const(rb_cObject, "
|
96
|
+
rb_define_const(rb_cObject, "WIN32OLE" "QueryInterfaceError", eWIN32OLEQueryInterfaceError);
|
97
|
+
rb_deprecate_constant(rb_cObject, "WIN32OLE" "QueryInterfaceError");
|
96
98
|
}
|
@@ -1266,7 +1266,8 @@ Init_win32ole_event(void)
|
|
1266
1266
|
id_events = rb_intern("events");
|
1267
1267
|
cWIN32OLE_EVENT = rb_define_class_under(cWIN32OLE, "Event", rb_cObject);
|
1268
1268
|
/* Alias of WIN32OLE::Event, for the backward compatibility */
|
1269
|
-
rb_define_const(rb_cObject, "
|
1269
|
+
rb_define_const(rb_cObject, "WIN32OLE" "_EVENT", cWIN32OLE_EVENT);
|
1270
|
+
rb_deprecate_constant(rb_cObject, "WIN32OLE" "_EVENT");
|
1270
1271
|
rb_define_singleton_method(cWIN32OLE_EVENT, "message_loop", fev_s_msg_loop, 0);
|
1271
1272
|
rb_define_alloc_func(cWIN32OLE_EVENT, fev_s_allocate);
|
1272
1273
|
rb_define_method(cWIN32OLE_EVENT, "initialize", fev_initialize, -1);
|
@@ -929,7 +929,8 @@ void Init_win32ole_method(void)
|
|
929
929
|
{
|
930
930
|
cWIN32OLE_METHOD = rb_define_class_under(cWIN32OLE, "Method", rb_cObject);
|
931
931
|
/* Alias of WIN32OLE::Method, for the backward compatibility */
|
932
|
-
rb_define_const(rb_cObject, "
|
932
|
+
rb_define_const(rb_cObject, "WIN32OLE" "_METHOD", cWIN32OLE_METHOD);
|
933
|
+
rb_deprecate_constant(rb_cObject, "WIN32OLE" "_METHOD");
|
933
934
|
rb_define_alloc_func(cWIN32OLE_METHOD, folemethod_s_allocate);
|
934
935
|
rb_define_method(cWIN32OLE_METHOD, "initialize", folemethod_initialize, 2);
|
935
936
|
rb_define_method(cWIN32OLE_METHOD, "name", folemethod_name, 0);
|
@@ -424,7 +424,8 @@ Init_win32ole_param(void)
|
|
424
424
|
{
|
425
425
|
cWIN32OLE_PARAM = rb_define_class_under(cWIN32OLE, "Param", rb_cObject);
|
426
426
|
/* Alias of WIN32OLE::Param, for the backward compatibility */
|
427
|
-
rb_define_const(rb_cObject, "
|
427
|
+
rb_define_const(rb_cObject, "WIN32OLE" "_PARAM", cWIN32OLE_PARAM);
|
428
|
+
rb_deprecate_constant(rb_cObject, "WIN32OLE" "_PARAM");
|
428
429
|
rb_define_alloc_func(cWIN32OLE_PARAM, foleparam_s_allocate);
|
429
430
|
rb_define_method(cWIN32OLE_PARAM, "initialize", foleparam_initialize, 2);
|
430
431
|
rb_define_method(cWIN32OLE_PARAM, "name", foleparam_name, 0);
|
@@ -596,7 +596,8 @@ Init_win32ole_record(void)
|
|
596
596
|
{
|
597
597
|
cWIN32OLE_RECORD = rb_define_class_under(cWIN32OLE, "Record", rb_cObject);
|
598
598
|
/* Alias of WIN32OLE::Record, for the backward compatibility */
|
599
|
-
rb_define_const(rb_cObject, "
|
599
|
+
rb_define_const(rb_cObject, "WIN32OLE" "_RECORD", cWIN32OLE_RECORD);
|
600
|
+
rb_deprecate_constant(rb_cObject, "WIN32OLE" "_RECORD");
|
600
601
|
rb_define_alloc_func(cWIN32OLE_RECORD, folerecord_s_allocate);
|
601
602
|
rb_define_method(cWIN32OLE_RECORD, "initialize", folerecord_initialize, 2);
|
602
603
|
rb_define_method(cWIN32OLE_RECORD, "to_h", folerecord_to_h, 0);
|
@@ -892,7 +892,8 @@ void Init_win32ole_type(void)
|
|
892
892
|
{
|
893
893
|
cWIN32OLE_TYPE = rb_define_class_under(cWIN32OLE, "Type", rb_cObject);
|
894
894
|
/* Alias of WIN32OLE::Type, for the backward compatibility */
|
895
|
-
rb_define_const(rb_cObject, "
|
895
|
+
rb_define_const(rb_cObject, "WIN32OLE" "_TYPE", cWIN32OLE_TYPE);
|
896
|
+
rb_deprecate_constant(rb_cObject, "WIN32OLE" "_TYPE");
|
896
897
|
rb_define_singleton_method(cWIN32OLE_TYPE, "ole_classes", foletype_s_ole_classes, 1);
|
897
898
|
rb_define_singleton_method(cWIN32OLE_TYPE, "typelibs", foletype_s_typelibs, 0);
|
898
899
|
rb_define_singleton_method(cWIN32OLE_TYPE, "progids", foletype_s_progids, 0);
|
@@ -829,7 +829,8 @@ Init_win32ole_typelib(void)
|
|
829
829
|
{
|
830
830
|
cWIN32OLE_TYPELIB = rb_define_class_under(cWIN32OLE, "TypeLib", rb_cObject);
|
831
831
|
/* Alias of WIN32OLE::TypeLib, for the backward compatibility */
|
832
|
-
rb_define_const(rb_cObject, "
|
832
|
+
rb_define_const(rb_cObject, "WIN32OLE" "_TYPELIB", cWIN32OLE_TYPELIB);
|
833
|
+
rb_deprecate_constant(rb_cObject, "WIN32OLE" "_TYPELIB");
|
833
834
|
rb_define_singleton_method(cWIN32OLE_TYPELIB, "typelibs", foletypelib_s_typelibs, 0);
|
834
835
|
rb_define_alloc_func(cWIN32OLE_TYPELIB, foletypelib_s_allocate);
|
835
836
|
rb_define_method(cWIN32OLE_TYPELIB, "initialize", foletypelib_initialize, -2);
|
@@ -371,7 +371,8 @@ void Init_win32ole_variable(void)
|
|
371
371
|
{
|
372
372
|
cWIN32OLE_VARIABLE = rb_define_class_under(cWIN32OLE, "Variable", rb_cObject);
|
373
373
|
/* Alias of WIN32OLE::Variable, for the backward compatibility */
|
374
|
-
rb_define_const(rb_cObject, "
|
374
|
+
rb_define_const(rb_cObject, "WIN32OLE" "_VARIABLE", cWIN32OLE_VARIABLE);
|
375
|
+
rb_deprecate_constant(rb_cObject, "WIN32OLE" "_VARIABLE");
|
375
376
|
rb_undef_alloc_func(cWIN32OLE_VARIABLE);
|
376
377
|
rb_define_method(cWIN32OLE_VARIABLE, "name", folevariable_name, 0);
|
377
378
|
rb_define_method(cWIN32OLE_VARIABLE, "ole_type", folevariable_ole_type, 0);
|
@@ -697,7 +697,8 @@ Init_win32ole_variant(void)
|
|
697
697
|
#undef rb_intern
|
698
698
|
cWIN32OLE_VARIANT = rb_define_class_under(cWIN32OLE, "Variant", rb_cObject);
|
699
699
|
/* Alias of WIN32OLE::Variant, for the backward compatibility */
|
700
|
-
rb_define_const(rb_cObject, "
|
700
|
+
rb_define_const(rb_cObject, "WIN32OLE" "_VARIANT", cWIN32OLE_VARIANT);
|
701
|
+
rb_deprecate_constant(rb_cObject, "WIN32OLE" "_VARIANT");
|
701
702
|
rb_define_alloc_func(cWIN32OLE_VARIANT, folevariant_s_allocate);
|
702
703
|
rb_define_singleton_method(cWIN32OLE_VARIANT, "array", folevariant_s_array, 2);
|
703
704
|
rb_define_method(cWIN32OLE_VARIANT, "initialize", folevariant_initialize, -2);
|
data/lib/win32ole/property.rb
CHANGED
@@ -4,7 +4,7 @@ class WIN32OLE
|
|
4
4
|
end
|
5
5
|
|
6
6
|
# OLEProperty is a helper class of Property with arguments, used by
|
7
|
-
#
|
7
|
+
# +olegen.rb+-generated files.
|
8
8
|
class WIN32OLE::Property
|
9
9
|
# :stopdoc:
|
10
10
|
def initialize(obj, dispid, gettypes, settypes)
|
@@ -23,7 +23,7 @@ class WIN32OLE::Property
|
|
23
23
|
end
|
24
24
|
|
25
25
|
module WIN32OLE::VariantType
|
26
|
-
# Alias for
|
26
|
+
# Alias for +olegen.rb+-generated files, that should include
|
27
27
|
# WIN32OLE::VARIANT.
|
28
28
|
OLEProperty = WIN32OLE::Property
|
29
29
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: win32ole
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.9.
|
4
|
+
version: 1.9.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Masaki Suketa
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-12-17 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Provides an interface for OLE Automation in Ruby
|
14
14
|
email:
|
@@ -19,6 +19,7 @@ extensions:
|
|
19
19
|
extra_rdoc_files: []
|
20
20
|
files:
|
21
21
|
- ".document"
|
22
|
+
- ".rdoc_options"
|
22
23
|
- BSDL
|
23
24
|
- COPYING
|
24
25
|
- README.md
|
@@ -66,7 +67,7 @@ licenses:
|
|
66
67
|
metadata:
|
67
68
|
homepage_uri: https://github.com/ruby/win32ole
|
68
69
|
source_code_uri: https://github.com/ruby/win32ole
|
69
|
-
post_install_message:
|
70
|
+
post_install_message:
|
70
71
|
rdoc_options: []
|
71
72
|
require_paths:
|
72
73
|
- lib
|
@@ -82,7 +83,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
82
83
|
version: '0'
|
83
84
|
requirements: []
|
84
85
|
rubygems_version: 3.5.11
|
85
|
-
signing_key:
|
86
|
+
signing_key:
|
86
87
|
specification_version: 4
|
87
88
|
summary: Provides an interface for OLE Automation in Ruby
|
88
89
|
test_files: []
|