win32ole 1.9.0 → 1.9.2

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: 3c9eb6d552cac131c2a19f600e387a50d40e69cc07dcca4d481e697509ea3689
4
- data.tar.gz: 1c0adf4ba2890d7b4cb072dd50eccf7a1978e6fc57dfb1100d71278b0a6271b8
3
+ metadata.gz: d86e74a4eb46131e265c72a5519aef608d0661971d2264c6455684a243271896
4
+ data.tar.gz: ddd1753f0c7dc074bb44d77b7e86a4b68a65cee1b69bbd8584eafd0a9158d5c9
5
5
  SHA512:
6
- metadata.gz: 0ffef61b6ab22005a27ddaeb2e1f6a85f994494d43899348573976a862c7deea5221430f6bb0539f9e9ccee1faf4e0ba86db1fc4c734d70bd1901ec3625977f9
7
- data.tar.gz: e16cb7c1312b3654fde7f653368372262f786eba624d068196b0aea91419148ad212c3f9ac24b0cae12f8bbff3ca5b6769011292f18915da45ffed34ca688714
6
+ metadata.gz: ae998719808517629032bb7c296f5b6358db9b1ce4e8d0243dbefb152c71e555f2ba8bb808ba2e4699b92da8af9cc9ff2f6d551bb08b5bbc920a0aaa839d8f84
7
+ data.tar.gz: 20e46d83bd753ddd9504546772ebf36d89632a55cd5e2e5648323019df6450313fbc079d0498e86e78f476edf2aaaf8203b04486cc0c2540beee57a5977cfa32
data/.rdoc_options ADDED
@@ -0,0 +1,2 @@
1
+ ---
2
+ main_page: README.md
@@ -32,6 +32,7 @@ def create_win32ole_makefile
32
32
  spec or 'no'
33
33
  end
34
34
  $defs << "-DRB_THREAD_SPECIFIC=#{spec}" if spec
35
+ have_func(%[rb_deprecate_constant(Qnil, "")])
35
36
  create_makefile("win32ole")
36
37
  end
37
38
  end
@@ -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.0"
30
+ #define WIN32OLE_VERSION "1.9.2"
31
31
 
32
32
  typedef HRESULT (STDAPICALLTYPE FNCOCREATEINSTANCEEX)
33
33
  (REFCLSID, IUnknown*, DWORD, COSERVERINFO*, DWORD, MULTI_QI*);
@@ -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, "WIN32OLERuntimeError", eWIN32OLERuntimeError);
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, "WIN32OLEQueryInterfaceError", eWIN32OLEQueryInterfaceError);
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, "WIN32OLE_EVENT", cWIN32OLE_EVENT);
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, "WIN32OLE_METHOD", cWIN32OLE_METHOD);
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, "WIN32OLE_PARAM", cWIN32OLE_PARAM);
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, "WIN32OLE_RECORD", cWIN32OLE_RECORD);
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, "WIN32OLE_TYPE", cWIN32OLE_TYPE);
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, "WIN32OLE_TYPELIB", cWIN32OLE_TYPELIB);
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, "WIN32OLE_VARIABLE", cWIN32OLE_VARIABLE);
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, "WIN32OLE_VARIANT", cWIN32OLE_VARIANT);
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);
@@ -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
- # `olegen.rb`-generated files.
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 `olegen.rb`-generated files, that should include
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.0
4
+ version: 1.9.2
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-01 00:00:00.000000000 Z
11
+ date: 2025-04-14 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: []