Граф коммитов

127 Коммитов

Автор SHA1 Сообщение Дата
svn 2f4570e742 * remove trailing spaces.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48922 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-12-22 12:31:59 +00:00
suke 14c5bd12ad * test/win32ole/test_win32ole_event.rb: some tests are
executed on standard Windows OS without ADO.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48921 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-12-22 12:31:45 +00:00
suke 03a6d033af * test/win32ole/test_win32ole_event.rb: test_s_new_exception is
executed on standard Windows OS without ADO.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48909 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-12-21 01:56:04 +00:00
suke afe1bbeb4e test/win32ole/test_win32ole_variant.rb
(test_conversion_time2date_with_msec): test by using only
assert_in_delta  to avoid to fail when converting Time object with
999999999 nanoseconds into VT_DATE Variant.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47686 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-09-22 11:01:22 +00:00
suke 8bb93fc8ae ext/win32ole/win32ole.c (rbtime2vtdate, vtdate2rbtime): fix
the bug in conversion of milliseconds. [Bug #10258]

test/win32ole/test_win32ole_variant.rb
(test_conversion_dbl2date_with_msec,
test_conversion_time2date_with_msec): use assert_in_delta instead
of assert_equal to treat an acceptable error range.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47658 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-09-21 02:18:37 +00:00
suke 6057695c87 * ext/win32ole/win32ole_variant.c (ole_val2variant_err,
ole_val2variantdata, Init_win32ole_variant): support VT_ERROR
  variant with error code. add WIN32OLE_VARIANT::NoParam.
* test/win32ole/test_win32ole_variant.rb(test_c_noparam,
  test_vt_error_noparam): ditto.
* ext/win32ole/win32ole.c: ditto.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47432 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-09-06 07:52:04 +00:00
suke c5487618f5 * ext/win32ole/win32ole.c (rbtime2vtdate): try to convert millisecond
of Time object to millisecond of VT_DATE VARIANT.
* test/win32ole/test_win32ole_variant.rb
  (test_conversion_time2date_with_msec): ditto.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47343 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-09-01 11:16:57 +00:00
suke ef7b9bf382 * ext/win32ole/win32ole.c (vtdate2rbtime): try to convert millisecond
of VT_DATE VARIANT to nsec of Time object.
* test/win32ole/test_win32ole_variant.rb
  (test_conversion_dbl2date_with_msec): ditto.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47297 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-08-27 10:57:28 +00:00
suke 108c4e4495 * ext/win32ole/win32ole.c(fole_s_connect, fole_initialize): raise a
security error with the tainted string object.
* ext/win32ole/win32ole_event.c(ev_advise): ditto.
* test/win32ole/test_win32ole.rb(test_s_new_exc_svr_tainted,
  test_s_new_exc_host_tainted): ditto.
* test/win32ole/test_win32ole_event.rb(test_s_new_exc_tainted): ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47274 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-08-25 11:18:17 +00:00
suke 707ff7bfb7 * ext/win32ole/win32ole_typelib.c (foletypelib_version): return
version string.

* test/win32ole/test_win32ole_typelib.rb (test_version): ditto.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47096 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-08-07 12:52:25 +00:00
suke 2906d58a10 * test/win32ole/test_win32ole_record.rb: add for WIN32OLE_RECORD
test(need .NET Framework 3.5 to run test).



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47062 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-08-04 12:52:56 +00:00
suke d89c763528 * ext/win32ole/win32ole.c (folevariant_initialize): WIN32OLE_VARIANT
does not support VT_RECORD. VT_RECORD should be supported in
  WIN32OLE_RECORD.

* test/win32ole/test_win32ole_variant.rb (test_s_new_vt_record_exc):
  ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46867 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-07-18 13:40:41 +00:00
usa 9e5f063138 * test/win32ole: get rid of warnings (unused variable).
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45257 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-03-02 19:21:57 +00:00
suke 04976ab678 * ext/win32ole/win32ole.c (folevariant_initialize): check type of
element of array.

* test/win32ole/test_win32ole_variant.rb (test_s_new_ary): ditto.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42886 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-09-08 05:06:20 +00:00
nobu 311960cdaf win32ole.c: check arity
* ext/win32ole/win32ole.c (fole_missing): should check actual argument
  count before accessing.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40184 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-04-08 08:19:32 +00:00
usa dd210d8fbc * test/win32ole/test_err_in_callback.rb (TestErrInCallBack#setup):
allow using different drive for source and build directories.
  this may fixes a minor problem of r39834.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39837 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-03-20 08:52:04 +00:00
usa 46048d6d1b * test/win32ole/test_err_in_callback.rb (TestErrInCallBack#setup): use
relative path to get rid of "too long commandline" error.

* ChangeLog: fixed wrong description.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39834 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-03-20 06:24:14 +00:00
usa 119aa9d295 * test/win32ole/test_err_in_callback.rb: revert r39823 (debug code).
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39833 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-03-20 06:21:46 +00:00
usa e0b74f8a4d * test/win32ole/test_err_in_callback.rb: debug print. I'll remove this later.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39823 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-03-19 08:40:39 +00:00
usa ac454412ab * test/win32ole/test_err_in_callback.rb
(TestErrInCallBack#test_err_in_callback): shouldn't create a file in
  source directory.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39809 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-03-18 05:47:37 +00:00
nobu 0c61c3b67b win32ole.rb: use TracePoint
* ext/win32ole/lib/win32ole.rb: use TracePoint to hook all thread
  creation not only by Thread.new and to get rid of interference with
  svar scope.  [Bug #7681] [ruby-core:51365]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38848 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-01-16 09:45:48 +00:00
suke 92a7da1900 * ext/win32ole/win32ole.c (ole_set_byref): support VT_UI8|VT_BYREF,
VT_I8|VT_BYREF in cygwin and mingw.
	  
* ext/win32ole/win32ole.c (ole_variant2val): ditto.

* test/win32ole/test_win32ole_variant.rb (test_s_new_with_i8_byref):
  ditto.

* test/win32ole/test_win32ole_variant.rb (test_s_new_with_ui8_byref):
  ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38787 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-01-11 22:59:51 +00:00
suke a00a9a28fb * test/win32ole/test_win32ole_type.rb (test_implemented_ole_types):
IShellDispatch6 bundled in Windows 8. Thanks to phasis68 (Heesob
  Park).  [ruby-core:49580][Bug #7403]



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37758 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-11-20 12:34:21 +00:00
usa bba3ceafa5 * test/win32ole/test_win32ole.rb: follow other test files.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37490 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-11-06 05:43:47 +00:00
usa f2fc82fc2a * test/win32ole/test_win32ole.rb: now source encoding is UTF-8, so
binary strings in old scripts are dangerous.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37489 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-11-06 05:39:36 +00:00
suke 906b2110d9 * test/win32ole/test_win32ole_variant.rb: setting WIN32OLE.locale
to pass some assertion.  Thanks to Hiroshi Shirosaki.
  [ruby-core:46873][Bug #6814]



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36641 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-08-06 10:21:12 +00:00
luislavena fa608f4af2 Fix win32ole test failure under mingw-w64 (x64-mingw32)
* test/win32ole/test_win32ole_method.rb (is_ruby64?): Correct platform
  used to identify mingw-w64 (x64-mingw32). Patch by Hiroshi Shirosaki.
  [ruby-core:46651][Bug #6782]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36508 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-07-23 23:10:03 +00:00
usa 7a514fc6f1 * test/win32ole/test_win32ole_event.rb (TestWIN32OLE_EVENT): use
standard skip method to skip tests.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36425 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-07-18 00:36:01 +00:00
suke 263cd01a31 * test/win32ole/test_win32ole.rb (test_s_codepage_changed):
FileSystemObject only supports ANSI or UTF-16LE encoding.
  Patch by h.shirosaki (Hiroshi Shirosaki) [ruby-trunk - Bug #6650]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36306 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-07-04 10:17:03 +00:00
luislavena 030111ac9c * test/win32ole/test_win32ole.rb (test_s_codepage_changed):
FileSystemObject only supports ANSI or UTF-16LE encoding.
  Patch by bosko (Bosko Ivanisevic) [ruby-trunk - Bug #6650]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36246 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-06-28 12:33:12 +00:00
suke 3761e00f87 * test/win32ole/test_win32ole_variant.rb: use skip method to skip the test.
* test/win32ole/test_win32ole_variant_outarg.rb: ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32756 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-07-30 08:36:47 +00:00
suke e845e35fa3 * test/win32ole/test_err_in_callback.rb (test_err_in_callback):
skip test if ADODB.connection is not available.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32640 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-07-23 10:13:53 +00:00
nobu 3a47cf3395 * remove trailing spaces.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31573 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-05-15 11:55:52 +00:00
usa 69a248a073 * test/win32ole/test_err_in_callback.rb (teardown): remove tmp file
only when it exists.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29924 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-11-25 01:03:52 +00:00
suke 22c791e163 test/win32ole/test_folderitem2_invokeverb.rb: refactoring.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29498 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-10-14 14:23:03 +00:00
suke b1085abaeb * ext/win32ole/win32ole.c (reg_get_val): expand environment in
the pathname. [Bug #3907]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29495 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-10-14 11:56:10 +00:00
arton 4ad4083b16 Change creating shortcut verb to 'Link' [Bug #3339]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29399 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-10-03 11:45:17 +00:00
suke cb8deae606 test/win32ole/test_thread.rb: add for win32ole with Thread.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29394 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-10-02 14:03:03 +00:00
suke 835da2f07b * test/win32ole/test_win32ole_method.rb (is_ruby64): check
ruby binary is mswin64 or mingw64. [ruby-dev:41756]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28476 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-29 10:49:38 +00:00
suke 392255310c * test/win32ole/test_win32ole_method.rb (test_offset_vtbl): check
that Ruby is 32bit or 64bit binary in order to get correct offset
  value. [ruby-dev:41741]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28456 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-28 11:38:48 +00:00
suke 7e195fa734 * test/win32ole/test_win32ole_method.rb (test_offset_vtbl): check
that OS is Windows 32bit or Windows 64bit in order to get
  correct offset value.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28442 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-25 23:05:32 +00:00
suke c3a13f6cc4 * ext/win32ole/win32ole.c (ole_invoke): raise NoMethodError
when COM method is not found. [ruby-core:30160] [Bug #3277]

* test/win32ole/test_win32ole.rb (test_no_method_error): ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27922 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-20 11:55:10 +00:00
usa 55400cb80f * test/win32ole/test_folderitem2_invokeverb.rb (test_invokeverb): should use
assert_equal instead of assert in such cases.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27887 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-19 09:03:51 +00:00
suke de1324fb7f * test/win32ole/test_folderitem2_invokeverb.rb (test_invokeverb):
run test only when "Create Shortcut (&S)" menu is found. 
  [ruby-core:29550] [Bug #1602]



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27360 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-16 14:55:42 +00:00
suke b3c318bffd * ext/win32ole/win32ole.c (foleparam_initialize): add foleparam_initialize
to check argument of WIN32OLE_PARAM.new

* test/win32ole/test_win32ole_param.rb (test_s_new): add some assertion
  to test WIN32OLE_PARAM.new


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26184 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-12-27 01:51:54 +00:00
suke 904abb1d9b * ext/win32ole/win32ole.c (vtdate2rbtime): VT_DATE variant object
is converted to Time object now. 

* test/win32ole/test_win32ole_variant.rb (test_s_new_with_nil,
  test_conversion_time2date, test_conversion_str2date,
  test_conversion_vt_date, test_set_value): ditto.

* ext/win32ole/win32ole.c (rbtime2vtdate): refactoring. 


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24220 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-07-21 07:27:08 +00:00
suke 6d7ddc3b29 * test/win32ole/test_win32ole.rb (test_s_codepage_changed,
test_s_locale_set, test_s_locale_change): skip test if Japanese
  locale is not installed. [ruby-core:23806]
	
* test/win32ole/test_win32ole_variant.rb (test_conversion_str2cy):
  ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24153 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-07-16 12:06:23 +00:00
nobu 287a34ae0d * {ext,lib,test}/**/*.rb: removed trailing spaces.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22784 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-06 03:56:38 +00:00
suke 696e6a9b76 * ext/win32ole/win32ole.c (fole_s_connect, fole_initialize,
folevariant_initialize): check argument type of WIN32OLE.connect,
  WIN32OLE.new, WIN32OLE_VARIANT.new.

* test/win32ole/test_win32ole.rb (test_s_new_exc, test_s_connect_exc):
  ditto.

* test/win32ole/test_win32ole_variant.rb (test_s_new_exc): ditto.

* test/win32ole/test_win32ole_method.rb: add assertion of
  WIN32OLE_METHOD.new.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20113 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-11-06 12:38:49 +00:00
suke 1dead12e7f * test/win32ole/test_win32ole_event.rb: rename test class.
* test/win32ole/test_win32ole_variant_outarg.rb: add in order
  to use ADO instead of Internet Explorer.
  remove test/win32ole/test_win32ole_variant_with_ie.rb.

* test/win32ole/orig_data.csv: ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20091 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-11-02 15:41:02 +00:00