glib2 0.90.5-x86-mingw32 → 0.90.6-x86-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- data/ChangeLog +79 -0
- data/Rakefile +8 -65
- data/ext/glib2/rbglib.h +1 -1
- data/ext/glib2/rbgobj_type.c +1 -1
- data/lib/1.8/glib2.so +0 -0
- data/lib/1.9/glib2.so +0 -0
- data/lib/glib2.rb +2 -2
- data/lib/gnome2-raketask.rb +185 -0
- data/lib/gnome2-win32-binary-downloader.rb +49 -9
- data/lib/mkmf-gnome2.rb +55 -43
- data/test-unit/History.txt +5 -0
- data/test-unit/html/index.html +2 -2
- data/test-unit/html/index.html.ja +2 -2
- data/test-unit/lib/test/unit/assertions.rb +9 -4
- data/test-unit/lib/test/unit/autorunner.rb +13 -1
- data/test-unit/lib/test/unit/testsuite.rb +4 -2
- data/test-unit/lib/test/unit/version.rb +1 -1
- data/test-unit/test/test-testcase.rb +11 -3
- data/test-unit/test/test_assertions.rb +24 -3
- data/vendor/local/bin/glib-genmarshal.exe +0 -0
- data/vendor/local/bin/glib-gettextize +2 -2
- data/vendor/local/bin/glib-mkenums +1 -1
- data/vendor/local/bin/gobject-query.exe +0 -0
- data/vendor/local/bin/gspawn-win32-helper-console.exe +0 -0
- data/vendor/local/bin/gspawn-win32-helper.exe +0 -0
- data/vendor/local/bin/libgio-2.0-0.dll +0 -0
- data/vendor/local/bin/libglib-2.0-0.dll +0 -0
- data/vendor/local/bin/libgmodule-2.0-0.dll +0 -0
- data/vendor/local/bin/libgobject-2.0-0.dll +0 -0
- data/vendor/local/bin/libgthread-2.0-0.dll +0 -0
- data/vendor/local/lib/gio-2.0.lib +0 -0
- data/vendor/local/lib/glib-2.0.lib +0 -0
- data/vendor/local/lib/glib-2.0/include/glibconfig.h +1 -1
- data/vendor/local/lib/gmodule-2.0.lib +0 -0
- data/vendor/local/lib/gobject-2.0.lib +0 -0
- data/vendor/local/lib/gthread-2.0.lib +0 -0
- data/vendor/local/lib/libgio-2.0.dll.a +0 -0
- data/vendor/local/lib/libglib-2.0.dll.a +0 -0
- data/vendor/local/lib/libgmodule-2.0.dll.a +0 -0
- data/vendor/local/lib/libgobject-2.0.dll.a +0 -0
- data/vendor/local/lib/libgthread-2.0.dll.a +0 -0
- data/vendor/local/lib/pkgconfig/gio-2.0.pc +2 -2
- data/vendor/local/lib/pkgconfig/gio-windows-2.0.pc +2 -2
- data/vendor/local/lib/pkgconfig/glib-2.0.pc +2 -2
- data/vendor/local/lib/pkgconfig/gmodule-2.0.pc +2 -2
- data/vendor/local/lib/pkgconfig/gmodule-no-export-2.0.pc +2 -2
- data/vendor/local/lib/pkgconfig/gobject-2.0.pc +2 -2
- data/vendor/local/lib/pkgconfig/gthread-2.0.pc +2 -2
- data/vendor/local/manifest/{glib-dev_2.26.0-2_win32.mft → glib-dev_2.26.1-1_win32.mft} +4 -4
- data/vendor/local/manifest/{glib_2.26.0-2_win32.mft → glib_2.26.1-1_win32.mft} +2 -2
- data/vendor/local/share/doc/{glib-2.26.0 → glib-2.26.1}/COPYING +0 -0
- data/vendor/local/share/doc/{glib-dev-2.26.0 → glib-dev-2.26.1}/COPYING +0 -0
- data/vendor/local/share/gtk-doc/html/gio/GAppInfo.html +47 -47
- data/vendor/local/share/gtk-doc/html/gio/GAsyncInitable.html +19 -19
- data/vendor/local/share/gtk-doc/html/gio/GAsyncResult.html +16 -16
- data/vendor/local/share/gtk-doc/html/gio/GBufferedInputStream.html +30 -30
- data/vendor/local/share/gtk-doc/html/gio/GBufferedOutputStream.html +24 -24
- data/vendor/local/share/gtk-doc/html/gio/GCancellable.html +25 -25
- data/vendor/local/share/gtk-doc/html/gio/GCharsetConverter.html +19 -19
- data/vendor/local/share/gtk-doc/html/gio/GConverter.html +17 -17
- data/vendor/local/share/gtk-doc/html/gio/GCredentials.html +17 -17
- data/vendor/local/share/gtk-doc/html/gio/GDBusAuthObserver.html +14 -14
- data/vendor/local/share/gtk-doc/html/gio/GDBusConnection.html +81 -81
- data/vendor/local/share/gtk-doc/html/gio/GDBusMessage.html +65 -65
- data/vendor/local/share/gtk-doc/html/gio/GDBusMethodInvocation.html +24 -24
- data/vendor/local/share/gtk-doc/html/gio/GDBusProxy.html +52 -52
- data/vendor/local/share/gtk-doc/html/gio/GDBusServer.html +29 -29
- data/vendor/local/share/gtk-doc/html/gio/GDataInputStream.html +51 -51
- data/vendor/local/share/gtk-doc/html/gio/GDataOutputStream.html +26 -26
- data/vendor/local/share/gtk-doc/html/gio/GDrive.html +46 -46
- data/vendor/local/share/gtk-doc/html/gio/GEmblem.html +20 -20
- data/vendor/local/share/gtk-doc/html/gio/GEmblemedIcon.html +15 -15
- data/vendor/local/share/gtk-doc/html/gio/GFile.html +221 -231
- data/vendor/local/share/gtk-doc/html/gio/GFileDescriptorBased.html +12 -12
- data/vendor/local/share/gtk-doc/html/gio/GFileEnumerator.html +22 -22
- data/vendor/local/share/gtk-doc/html/gio/GFileIOStream.html +15 -15
- data/vendor/local/share/gtk-doc/html/gio/GFileIcon.html +16 -16
- data/vendor/local/share/gtk-doc/html/gio/GFileInfo.html +157 -157
- data/vendor/local/share/gtk-doc/html/gio/GFileInputStream.html +14 -14
- data/vendor/local/share/gtk-doc/html/gio/GFileMonitor.html +21 -21
- data/vendor/local/share/gtk-doc/html/gio/GFileOutputStream.html +15 -15
- data/vendor/local/share/gtk-doc/html/gio/GFilenameCompleter.html +20 -20
- data/vendor/local/share/gtk-doc/html/gio/GFilterInputStream.html +16 -16
- data/vendor/local/share/gtk-doc/html/gio/GFilterOutputStream.html +16 -16
- data/vendor/local/share/gtk-doc/html/gio/GIOModule.html +16 -16
- data/vendor/local/share/gtk-doc/html/gio/GIOStream.html +24 -24
- data/vendor/local/share/gtk-doc/html/gio/GIcon.html +17 -17
- data/vendor/local/share/gtk-doc/html/gio/GInetAddress.html +53 -53
- data/vendor/local/share/gtk-doc/html/gio/GInetSocketAddress.html +17 -17
- data/vendor/local/share/gtk-doc/html/gio/GInitable.html +19 -19
- data/vendor/local/share/gtk-doc/html/gio/GInputStream.html +23 -23
- data/vendor/local/share/gtk-doc/html/gio/GLoadableIcon.html +16 -16
- data/vendor/local/share/gtk-doc/html/gio/GMemoryInputStream.html +14 -14
- data/vendor/local/share/gtk-doc/html/gio/GMemoryOutputStream.html +24 -24
- data/vendor/local/share/gtk-doc/html/gio/GMount.html +48 -48
- data/vendor/local/share/gtk-doc/html/gio/GMountOperation.html +43 -43
- data/vendor/local/share/gtk-doc/html/gio/GNetworkAddress.html +21 -21
- data/vendor/local/share/gtk-doc/html/gio/GNetworkService.html +22 -22
- data/vendor/local/share/gtk-doc/html/gio/GOutputStream.html +28 -28
- data/vendor/local/share/gtk-doc/html/gio/GPermission.html +24 -24
- data/vendor/local/share/gtk-doc/html/gio/GProxy.html +16 -16
- data/vendor/local/share/gtk-doc/html/gio/GProxyAddress.html +24 -24
- data/vendor/local/share/gtk-doc/html/gio/GProxyResolver.html +17 -17
- data/vendor/local/share/gtk-doc/html/gio/GResolver.html +27 -27
- data/vendor/local/share/gtk-doc/html/gio/GSeekable.html +18 -18
- data/vendor/local/share/gtk-doc/html/gio/GSettings.html +83 -108
- data/vendor/local/share/gtk-doc/html/gio/GSettingsBackend.html +23 -23
- data/vendor/local/share/gtk-doc/html/gio/GSimpleAsyncResult.html +33 -33
- data/vendor/local/share/gtk-doc/html/gio/GSimplePermission.html +12 -12
- data/vendor/local/share/gtk-doc/html/gio/GSocket.html +79 -79
- data/vendor/local/share/gtk-doc/html/gio/GSocketAddress.html +20 -20
- data/vendor/local/share/gtk-doc/html/gio/GSocketClient.html +60 -64
- data/vendor/local/share/gtk-doc/html/gio/GSocketConnectable.html +23 -23
- data/vendor/local/share/gtk-doc/html/gio/GSocketConnection.html +19 -19
- data/vendor/local/share/gtk-doc/html/gio/GSocketControlMessage.html +15 -15
- data/vendor/local/share/gtk-doc/html/gio/GSocketListener.html +36 -40
- data/vendor/local/share/gtk-doc/html/gio/GSocketService.html +17 -17
- data/vendor/local/share/gtk-doc/html/gio/GTcpConnection.html +16 -16
- data/vendor/local/share/gtk-doc/html/gio/GThemedIcon.html +28 -28
- data/vendor/local/share/gtk-doc/html/gio/GThreadedSocketService.html +19 -19
- data/vendor/local/share/gtk-doc/html/gio/GUnixConnection.html +14 -14
- data/vendor/local/share/gtk-doc/html/gio/GUnixCredentialsMessage.html +18 -18
- data/vendor/local/share/gtk-doc/html/gio/GUnixFDList.html +25 -25
- data/vendor/local/share/gtk-doc/html/gio/GUnixFDMessage.html +26 -26
- data/vendor/local/share/gtk-doc/html/gio/GUnixInputStream.html +18 -18
- data/vendor/local/share/gtk-doc/html/gio/GUnixOutputStream.html +18 -18
- data/vendor/local/share/gtk-doc/html/gio/GUnixSocketAddress.html +28 -28
- data/vendor/local/share/gtk-doc/html/gio/GVfs.html +29 -29
- data/vendor/local/share/gtk-doc/html/gio/GVolume.html +40 -40
- data/vendor/local/share/gtk-doc/html/gio/GVolumeMonitor.html +33 -33
- data/vendor/local/share/gtk-doc/html/gio/GZlibCompressor.html +19 -19
- data/vendor/local/share/gtk-doc/html/gio/GZlibDecompressor.html +16 -16
- data/vendor/local/share/gtk-doc/html/gio/annotation-glossary.html +4 -4
- data/vendor/local/share/gtk-doc/html/gio/api-index-2-18.html +4 -4
- data/vendor/local/share/gtk-doc/html/gio/api-index-2-20.html +4 -4
- data/vendor/local/share/gtk-doc/html/gio/api-index-2-22.html +4 -4
- data/vendor/local/share/gtk-doc/html/gio/api-index-2-24.html +4 -4
- data/vendor/local/share/gtk-doc/html/gio/api-index-2-26.html +4 -4
- data/vendor/local/share/gtk-doc/html/gio/api-index-deprecated.html +4 -4
- data/vendor/local/share/gtk-doc/html/gio/api-index-full.html +4 -8
- data/vendor/local/share/gtk-doc/html/gio/async.html +4 -4
- data/vendor/local/share/gtk-doc/html/gio/ch01.html +5 -5
- data/vendor/local/share/gtk-doc/html/gio/ch02.html +5 -5
- data/vendor/local/share/gtk-doc/html/gio/ch03.html +21 -21
- data/vendor/local/share/gtk-doc/html/gio/ch24.html +5 -5
- data/vendor/local/share/gtk-doc/html/gio/ch25.html +9 -9
- data/vendor/local/share/gtk-doc/html/gio/ch25s02.html +6 -6
- data/vendor/local/share/gtk-doc/html/gio/ch25s03.html +7 -7
- data/vendor/local/share/gtk-doc/html/gio/ch26.html +8 -8
- data/vendor/local/share/gtk-doc/html/gio/ch26s02.html +7 -7
- data/vendor/local/share/gtk-doc/html/gio/ch26s03.html +25 -25
- data/vendor/local/share/gtk-doc/html/gio/ch26s04.html +7 -7
- data/vendor/local/share/gtk-doc/html/gio/ch26s05.html +6 -6
- data/vendor/local/share/gtk-doc/html/gio/ch26s06.html +6 -6
- data/vendor/local/share/gtk-doc/html/gio/ch26s07.html +70 -5
- data/vendor/local/share/gtk-doc/html/gio/ch27.html +8 -8
- data/vendor/local/share/gtk-doc/html/gio/ch27s02.html +23 -23
- data/vendor/local/share/gtk-doc/html/gio/ch27s03.html +8 -8
- data/vendor/local/share/gtk-doc/html/gio/ch27s04.html +7 -7
- data/vendor/local/share/gtk-doc/html/gio/ch27s05.html +7 -7
- data/vendor/local/share/gtk-doc/html/gio/ch27s06.html +7 -7
- data/vendor/local/share/gtk-doc/html/gio/conversion.html +4 -4
- data/vendor/local/share/gtk-doc/html/gio/extending-gio.html +12 -12
- data/vendor/local/share/gtk-doc/html/gio/extending.html +4 -4
- data/vendor/local/share/gtk-doc/html/gio/failable_initialization.html +4 -4
- data/vendor/local/share/gtk-doc/html/gio/file_mon.html +4 -4
- data/vendor/local/share/gtk-doc/html/gio/file_ops.html +4 -4
- data/vendor/local/share/gtk-doc/html/gio/gdbus-convenience.html +4 -4
- data/vendor/local/share/gtk-doc/html/gio/gdbus-lowlevel.html +4 -4
- data/vendor/local/share/gtk-doc/html/gio/gdbus.html +19 -19
- data/vendor/local/share/gtk-doc/html/gio/gio-D-Bus-Addresses.html +13 -13
- data/vendor/local/share/gtk-doc/html/gio/gio-D-Bus-Introspection-Data.html +44 -44
- data/vendor/local/share/gtk-doc/html/gio/gio-D-Bus-Utilities.html +13 -13
- data/vendor/local/share/gtk-doc/html/gio/gio-Desktop-file-based-GAppInfo.html +20 -20
- data/vendor/local/share/gtk-doc/html/gio/gio-Extension-Points.html +23 -23
- data/vendor/local/share/gtk-doc/html/gio/gio-GContentType.html +18 -18
- data/vendor/local/share/gtk-doc/html/gio/gio-GConverterInputstream.html +15 -15
- data/vendor/local/share/gtk-doc/html/gio/gio-GConverterOutputstream.html +15 -15
- data/vendor/local/share/gtk-doc/html/gio/gio-GDBusError.html +20 -20
- data/vendor/local/share/gtk-doc/html/gio/gio-GFileAttribute.html +27 -33
- data/vendor/local/share/gtk-doc/html/gio/gio-GIOError.html +11 -11
- data/vendor/local/share/gtk-doc/html/gio/gio-GIOScheduler.html +13 -13
- data/vendor/local/share/gtk-doc/html/gio/gio-GSrvTarget.html +16 -16
- data/vendor/local/share/gtk-doc/html/gio/gio-Owning-Bus-Names.html +16 -16
- data/vendor/local/share/gtk-doc/html/gio/gio-Unix-Mounts.html +45 -45
- data/vendor/local/share/gtk-doc/html/gio/gio-Watching-Bus-Names.html +15 -15
- data/vendor/local/share/gtk-doc/html/gio/gio-hierarchy.html +4 -4
- data/vendor/local/share/gtk-doc/html/gio/gio-querymodules.html +7 -7
- data/vendor/local/share/gtk-doc/html/gio/gio.devhelp +9 -10
- data/vendor/local/share/gtk-doc/html/gio/gio.devhelp2 +9 -10
- data/vendor/local/share/gtk-doc/html/gio/glib-compile-schemas.html +11 -11
- data/vendor/local/share/gtk-doc/html/gio/highlevel-socket.html +4 -4
- data/vendor/local/share/gtk-doc/html/gio/icons.html +4 -4
- data/vendor/local/share/gtk-doc/html/gio/index.html +8 -8
- data/vendor/local/share/gtk-doc/html/gio/index.sgml +0 -1
- data/vendor/local/share/gtk-doc/html/gio/migrating.html +7 -7
- data/vendor/local/share/gtk-doc/html/gio/networking.html +4 -4
- data/vendor/local/share/gtk-doc/html/gio/permissions.html +4 -4
- data/vendor/local/share/gtk-doc/html/gio/pt01.html +5 -5
- data/vendor/local/share/gtk-doc/html/gio/pt02.html +5 -5
- data/vendor/local/share/gtk-doc/html/gio/resolver.html +4 -4
- data/vendor/local/share/gtk-doc/html/gio/settings.html +4 -4
- data/vendor/local/share/gtk-doc/html/gio/streaming.html +4 -4
- data/vendor/local/share/gtk-doc/html/gio/tools.html +4 -4
- data/vendor/local/share/gtk-doc/html/gio/types.html +4 -4
- data/vendor/local/share/gtk-doc/html/gio/utils.html +4 -4
- data/vendor/local/share/gtk-doc/html/gio/volume_mon.html +4 -4
- data/vendor/local/share/gtk-doc/html/glib/annotation-glossary.html +10 -4
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-10.html +4 -4
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-12.html +4 -4
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-14.html +4 -4
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-16.html +4 -4
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-18.html +4 -4
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-2.html +4 -4
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-20.html +4 -4
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-22.html +4 -4
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-24.html +4 -4
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-26.html +4 -4
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-4.html +4 -4
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-6.html +5 -9
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-8.html +4 -4
- data/vendor/local/share/gtk-doc/html/glib/api-index-deprecated.html +4 -4
- data/vendor/local/share/gtk-doc/html/glib/api-index-full.html +9 -33
- data/vendor/local/share/gtk-doc/html/glib/glib-Arrays.html +53 -53
- data/vendor/local/share/gtk-doc/html/glib/glib-Asynchronous-Queues.html +38 -38
- data/vendor/local/share/gtk-doc/html/glib/glib-Atomic-Operations.html +21 -21
- data/vendor/local/share/gtk-doc/html/glib/glib-Automatic-String-Completion.html +32 -32
- data/vendor/local/share/gtk-doc/html/glib/glib-Balanced-Binary-Trees.html +36 -36
- data/vendor/local/share/gtk-doc/html/glib/glib-Base64-Encoding.html +15 -15
- data/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html +38 -38
- data/vendor/local/share/gtk-doc/html/glib/glib-Bookmark-file-parser.html +49 -49
- data/vendor/local/share/gtk-doc/html/glib/glib-Byte-Arrays.html +40 -40
- data/vendor/local/share/gtk-doc/html/glib/glib-Byte-Order-Macros.html +70 -70
- data/vendor/local/share/gtk-doc/html/glib/glib-Caches.html +22 -22
- data/vendor/local/share/gtk-doc/html/glib/glib-Character-Set-Conversion.html +42 -46
- data/vendor/local/share/gtk-doc/html/glib/glib-Commandline-option-parser.html +45 -45
- data/vendor/local/share/gtk-doc/html/glib/glib-Data-Checksums.html +23 -23
- data/vendor/local/share/gtk-doc/html/glib/glib-Datasets.html +21 -21
- data/vendor/local/share/gtk-doc/html/glib/glib-Date-and-Time-Functions.html +83 -83
- data/vendor/local/share/gtk-doc/html/glib/glib-Double-ended-Queues.html +62 -62
- data/vendor/local/share/gtk-doc/html/glib/glib-Doubly-Linked-Lists.html +97 -97
- data/vendor/local/share/gtk-doc/html/glib/glib-Dynamic-Loading-of-Modules.html +31 -31
- data/vendor/local/share/gtk-doc/html/glib/glib-Error-Reporting.html +31 -31
- data/vendor/local/share/gtk-doc/html/glib/glib-File-Utilities.html +50 -50
- data/vendor/local/share/gtk-doc/html/glib/glib-GDateTime.html +112 -118
- data/vendor/local/share/gtk-doc/html/glib/glib-GTimeZone.html +22 -22
- data/vendor/local/share/gtk-doc/html/glib/glib-GVariant.html +227 -261
- data/vendor/local/share/gtk-doc/html/glib/glib-GVariantType.html +91 -107
- data/vendor/local/share/gtk-doc/html/glib/glib-Glob-style-pattern-matching.html +16 -16
- data/vendor/local/share/gtk-doc/html/glib/glib-Hash-Tables.html +60 -60
- data/vendor/local/share/gtk-doc/html/glib/glib-Hook-Functions.html +66 -66
- data/vendor/local/share/gtk-doc/html/glib/glib-Hostname-Utilities.html +12 -12
- data/vendor/local/share/gtk-doc/html/glib/glib-I18N.html +26 -26
- data/vendor/local/share/gtk-doc/html/glib/glib-IO-Channels.html +72 -72
- data/vendor/local/share/gtk-doc/html/glib/glib-Key-value-file-parser.html +78 -78
- data/vendor/local/share/gtk-doc/html/glib/glib-Keyed-Data-Lists.html +25 -25
- data/vendor/local/share/gtk-doc/html/glib/glib-Lexical-Scanner.html +51 -51
- data/vendor/local/share/gtk-doc/html/glib/glib-Limits-of-Basic-Types.html +37 -37
- data/vendor/local/share/gtk-doc/html/glib/glib-Memory-Allocation.html +38 -38
- data/vendor/local/share/gtk-doc/html/glib/glib-Memory-Allocators.html +15 -15
- data/vendor/local/share/gtk-doc/html/glib/glib-Memory-Chunks.html +45 -45
- data/vendor/local/share/gtk-doc/html/glib/glib-Memory-Slices.html +21 -21
- data/vendor/local/share/gtk-doc/html/glib/glib-Message-Logging.html +64 -109
- data/vendor/local/share/gtk-doc/html/glib/glib-Miscellaneous-Macros.html +65 -65
- data/vendor/local/share/gtk-doc/html/glib/glib-Miscellaneous-Utility-Functions.html +97 -97
- data/vendor/local/share/gtk-doc/html/glib/glib-N-ary-Trees.html +80 -80
- data/vendor/local/share/gtk-doc/html/glib/glib-Numerical-Definitions.html +19 -19
- data/vendor/local/share/gtk-doc/html/glib/glib-Perl-compatible-regular-expressions.html +50 -50
- data/vendor/local/share/gtk-doc/html/glib/glib-Pointer-Arrays.html +41 -41
- data/vendor/local/share/gtk-doc/html/glib/glib-Quarks.html +20 -20
- data/vendor/local/share/gtk-doc/html/glib/glib-Random-Numbers.html +34 -34
- data/vendor/local/share/gtk-doc/html/glib/glib-Relations-and-Tuples.html +35 -35
- data/vendor/local/share/gtk-doc/html/glib/glib-Sequences.html +45 -45
- data/vendor/local/share/gtk-doc/html/glib/glib-Shell-related-Utilities.html +16 -16
- data/vendor/local/share/gtk-doc/html/glib/glib-Simple-XML-Subset-Parser.html +29 -29
- data/vendor/local/share/gtk-doc/html/glib/glib-Singly-Linked-Lists.html +87 -87
- data/vendor/local/share/gtk-doc/html/glib/glib-Spawning-Processes.html +20 -20
- data/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html +27 -27
- data/vendor/local/share/gtk-doc/html/glib/glib-String-Chunks.html +22 -22
- data/vendor/local/share/gtk-doc/html/glib/glib-String-Utility-Functions.html +154 -154
- data/vendor/local/share/gtk-doc/html/glib/glib-Strings.html +93 -93
- data/vendor/local/share/gtk-doc/html/glib/glib-Testing.html +73 -73
- data/vendor/local/share/gtk-doc/html/glib/glib-The-Main-Event-Loop.html +122 -128
- data/vendor/local/share/gtk-doc/html/glib/glib-Thread-Pools.html +25 -25
- data/vendor/local/share/gtk-doc/html/glib/glib-Threads.html +134 -134
- data/vendor/local/share/gtk-doc/html/glib/glib-Timers.html +19 -19
- data/vendor/local/share/gtk-doc/html/glib/glib-Trash-Stacks.html +12 -12
- data/vendor/local/share/gtk-doc/html/glib/glib-Type-Conversion-Macros.html +14 -14
- data/vendor/local/share/gtk-doc/html/glib/glib-URI-Functions.html +19 -19
- data/vendor/local/share/gtk-doc/html/glib/glib-Unicode-Manipulation.html +97 -97
- data/vendor/local/share/gtk-doc/html/glib/glib-Version-Information.html +16 -119
- data/vendor/local/share/gtk-doc/html/glib/glib-Warnings-and-Assertions.html +25 -25
- data/vendor/local/share/gtk-doc/html/glib/glib-Windows-Compatibility-Functions.html +33 -33
- data/vendor/local/share/gtk-doc/html/glib/glib-building.html +29 -29
- data/vendor/local/share/gtk-doc/html/glib/glib-changes.html +8 -8
- data/vendor/local/share/gtk-doc/html/glib/glib-compiling.html +6 -6
- data/vendor/local/share/gtk-doc/html/glib/glib-core.html +4 -4
- data/vendor/local/share/gtk-doc/html/glib/glib-cross-compiling.html +20 -20
- data/vendor/local/share/gtk-doc/html/glib/glib-data-types.html +4 -4
- data/vendor/local/share/gtk-doc/html/glib/glib-fundamentals.html +4 -4
- data/vendor/local/share/gtk-doc/html/glib/glib-gettextize.html +11 -11
- data/vendor/local/share/gtk-doc/html/glib/glib-regex-syntax.html +83 -83
- data/vendor/local/share/gtk-doc/html/glib/glib-resources.html +10 -10
- data/vendor/local/share/gtk-doc/html/glib/glib-running.html +30 -30
- data/vendor/local/share/gtk-doc/html/glib/glib-utilities.html +4 -4
- data/vendor/local/share/gtk-doc/html/glib/glib.devhelp +30 -36
- data/vendor/local/share/gtk-doc/html/glib/glib.devhelp2 +30 -36
- data/vendor/local/share/gtk-doc/html/glib/glib.html +4 -4
- data/vendor/local/share/gtk-doc/html/glib/gtester-report.html +11 -11
- data/vendor/local/share/gtk-doc/html/glib/gtester.html +11 -11
- data/vendor/local/share/gtk-doc/html/glib/gvariant-format-strings.html +44 -44
- data/vendor/local/share/gtk-doc/html/glib/index.html +5 -5
- data/vendor/local/share/gtk-doc/html/glib/index.sgml +1 -6
- data/vendor/local/share/gtk-doc/html/glib/tools.html +4 -4
- data/vendor/local/share/gtk-doc/html/gobject/GBinding.html +31 -31
- data/vendor/local/share/gtk-doc/html/gobject/GTypeModule.html +22 -22
- data/vendor/local/share/gtk-doc/html/gobject/GTypePlugin.html +20 -20
- data/vendor/local/share/gtk-doc/html/gobject/annotation-glossary.html +4 -4
- data/vendor/local/share/gtk-doc/html/gobject/api-index-2-10.html +4 -4
- data/vendor/local/share/gtk-doc/html/gobject/api-index-2-12.html +4 -4
- data/vendor/local/share/gtk-doc/html/gobject/api-index-2-14.html +4 -4
- data/vendor/local/share/gtk-doc/html/gobject/api-index-2-18.html +4 -4
- data/vendor/local/share/gtk-doc/html/gobject/api-index-2-2.html +4 -4
- data/vendor/local/share/gtk-doc/html/gobject/api-index-2-22.html +4 -4
- data/vendor/local/share/gtk-doc/html/gobject/api-index-2-24.html +4 -4
- data/vendor/local/share/gtk-doc/html/gobject/api-index-2-26.html +4 -4
- data/vendor/local/share/gtk-doc/html/gobject/api-index-2-4.html +4 -4
- data/vendor/local/share/gtk-doc/html/gobject/api-index-2-6.html +4 -4
- data/vendor/local/share/gtk-doc/html/gobject/api-index-2-8.html +4 -4
- data/vendor/local/share/gtk-doc/html/gobject/api-index-deprecated.html +4 -4
- data/vendor/local/share/gtk-doc/html/gobject/api-index-full.html +4 -4
- data/vendor/local/share/gtk-doc/html/gobject/ch01s02.html +8 -8
- data/vendor/local/share/gtk-doc/html/gobject/ch06s03.html +5 -5
- data/vendor/local/share/gtk-doc/html/gobject/chapter-gobject.html +5 -5
- data/vendor/local/share/gtk-doc/html/gobject/chapter-gtype.html +7 -7
- data/vendor/local/share/gtk-doc/html/gobject/chapter-intro.html +7 -7
- data/vendor/local/share/gtk-doc/html/gobject/chapter-signal.html +15 -15
- data/vendor/local/share/gtk-doc/html/gobject/glib-genmarshal.html +23 -23
- data/vendor/local/share/gtk-doc/html/gobject/glib-mkenums.html +17 -17
- data/vendor/local/share/gtk-doc/html/gobject/gobject-Boxed-Types.html +26 -26
- data/vendor/local/share/gtk-doc/html/gobject/gobject-Closures.html +74 -74
- data/vendor/local/share/gtk-doc/html/gobject/gobject-Enumeration-and-Flag-Types.html +44 -44
- data/vendor/local/share/gtk-doc/html/gobject/gobject-GParamSpec.html +71 -71
- data/vendor/local/share/gtk-doc/html/gobject/gobject-Generic-values.html +36 -36
- data/vendor/local/share/gtk-doc/html/gobject/gobject-Signals.html +71 -71
- data/vendor/local/share/gtk-doc/html/gobject/gobject-Standard-Parameter-and-Value-Types.html +262 -262
- data/vendor/local/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html +97 -97
- data/vendor/local/share/gtk-doc/html/gobject/gobject-Type-Information.html +158 -158
- data/vendor/local/share/gtk-doc/html/gobject/gobject-Value-arrays.html +37 -37
- data/vendor/local/share/gtk-doc/html/gobject/gobject-Varargs-Value-Collection.html +13 -13
- data/vendor/local/share/gtk-doc/html/gobject/gobject-memory.html +7 -7
- data/vendor/local/share/gtk-doc/html/gobject/gobject-properties.html +9 -9
- data/vendor/local/share/gtk-doc/html/gobject/gobject-query.html +11 -11
- data/vendor/local/share/gtk-doc/html/gobject/gobject.devhelp +8 -8
- data/vendor/local/share/gtk-doc/html/gobject/gobject.devhelp2 +8 -8
- data/vendor/local/share/gtk-doc/html/gobject/gtype-conventions.html +7 -7
- data/vendor/local/share/gtk-doc/html/gobject/gtype-instantiable-classed.html +5 -5
- data/vendor/local/share/gtk-doc/html/gobject/gtype-non-instantiable-classed.html +6 -6
- data/vendor/local/share/gtk-doc/html/gobject/gtype-non-instantiable.html +4 -4
- data/vendor/local/share/gtk-doc/html/gobject/howto-gobject-chainup.html +6 -6
- data/vendor/local/share/gtk-doc/html/gobject/howto-gobject-code.html +4 -4
- data/vendor/local/share/gtk-doc/html/gobject/howto-gobject-construction.html +4 -4
- data/vendor/local/share/gtk-doc/html/gobject/howto-gobject-destruction.html +4 -4
- data/vendor/local/share/gtk-doc/html/gobject/howto-gobject-methods.html +10 -10
- data/vendor/local/share/gtk-doc/html/gobject/howto-gobject.html +9 -9
- data/vendor/local/share/gtk-doc/html/gobject/howto-interface-implement.html +5 -5
- data/vendor/local/share/gtk-doc/html/gobject/howto-interface-properties.html +8 -8
- data/vendor/local/share/gtk-doc/html/gobject/howto-interface.html +5 -5
- data/vendor/local/share/gtk-doc/html/gobject/howto-signals.html +7 -7
- data/vendor/local/share/gtk-doc/html/gobject/index.html +11 -11
- data/vendor/local/share/gtk-doc/html/gobject/pr01.html +5 -5
- data/vendor/local/share/gtk-doc/html/gobject/pt01.html +8 -8
- data/vendor/local/share/gtk-doc/html/gobject/pt02.html +9 -9
- data/vendor/local/share/gtk-doc/html/gobject/pt03.html +6 -6
- data/vendor/local/share/gtk-doc/html/gobject/rn01.html +5 -5
- data/vendor/local/share/gtk-doc/html/gobject/rn02.html +5 -5
- data/vendor/local/share/gtk-doc/html/gobject/signal.html +12 -12
- data/vendor/local/share/gtk-doc/html/gobject/tools-ginspector.html +4 -4
- data/vendor/local/share/gtk-doc/html/gobject/tools-gob.html +4 -4
- data/vendor/local/share/gtk-doc/html/gobject/tools-gtkdoc.html +4 -4
- data/vendor/local/share/gtk-doc/html/gobject/tools-refdb.html +4 -4
- data/vendor/local/share/gtk-doc/html/gobject/tools-vala.html +4 -4
- data/vendor/local/share/locale/bg/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/ca@valencia/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/cs/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/de/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/el/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/en_GB/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/eu/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/fr/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/gl/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/he/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/hu/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/id/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/it/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/ja/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/lt/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/pl/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/pt/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/pt_BR/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/ru/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/sl/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/man/man1/glib-genmarshal.1 +15 -6
- data/vendor/local/share/man/man1/glib-mkenums.1 +12 -3
- data/vendor/local/share/man/man1/gobject-query.1 +13 -4
- data/vendor/local/src/tml/packaging/{glib_2.26.0-2_win32.log → glib_2.26.1-1_win32.log} +549 -558
- data/vendor/local/src/tml/packaging/{glib_2.26.0-2_win32.sh → glib_2.26.1-1_win32.sh} +2 -2
- metadata +860 -857
data/lib/mkmf-gnome2.rb
CHANGED
@@ -9,6 +9,7 @@
|
|
9
9
|
# license of Ruby-GNOME2.
|
10
10
|
#
|
11
11
|
|
12
|
+
require 'English'
|
12
13
|
require 'mkmf'
|
13
14
|
begin
|
14
15
|
require 'pkg-config'
|
@@ -58,10 +59,11 @@ def setup_win32(target_name, base_dir=nil)
|
|
58
59
|
base_dir ||= Pathname($0).dirname.parent.parent.expand_path
|
59
60
|
base_dir = Pathname(base_dir) if base_dir.is_a?(String)
|
60
61
|
binary_base_dir = base_dir + "vendor" + "local"
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
62
|
+
if binary_base_dir.exist?
|
63
|
+
$CFLAGS += " -I#{binary_base_dir}/include"
|
64
|
+
pkg_config_dir = binary_base_dir + "lib" + "pkgconfig"
|
65
|
+
PKGConfig.add_path(pkg_config_dir.to_s)
|
66
|
+
end
|
65
67
|
true
|
66
68
|
else
|
67
69
|
false
|
@@ -69,7 +71,7 @@ def setup_win32(target_name, base_dir=nil)
|
|
69
71
|
end
|
70
72
|
end
|
71
73
|
|
72
|
-
#add_depend_package("glib2", "
|
74
|
+
#add_depend_package("glib2", "ext/glib2", "/...../ruby-gnome2")
|
73
75
|
def add_depend_package(target_name, target_srcdir, top_srcdir, options={})
|
74
76
|
[top_srcdir, $configure_args['--topdir']].each do |topdir|
|
75
77
|
topdir = File.expand_path(topdir)
|
@@ -93,12 +95,23 @@ def add_depend_package(target_name, target_srcdir, top_srcdir, options={})
|
|
93
95
|
next unless File.exist?(target_build_dir_full_path)
|
94
96
|
$INCFLAGS = "-I#{target_build_dir_full_path} #{$INCFLAGS}"
|
95
97
|
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
98
|
+
case RUBY_PLATFORM
|
99
|
+
when /cygwin|mingw|mswin32/
|
100
|
+
case RUBY_PLATFORM
|
101
|
+
when /cygwin|mingw/
|
102
|
+
$LDFLAGS << " -L#{target_build_dir_full_path}"
|
103
|
+
$libs << " -lruby-#{target_name}"
|
104
|
+
when /mswin32/
|
105
|
+
$DLDFLAGS << " /libpath:#{target_build_dir_full_path}"
|
106
|
+
$libs << " libruby-#{target_name}.lib"
|
107
|
+
end
|
108
|
+
target_base_dir = Pathname.new(target_source_dir_full_path).parent.parent
|
109
|
+
target_binary_base_dir = target_base_dir + "vendor" + "local"
|
110
|
+
if target_binary_base_dir.exist?
|
111
|
+
$INCFLAGS = "-I#{target_binary_base_dir}/include #{$INCFLAGS}"
|
112
|
+
target_pkg_config_dir = target_binary_base_dir + "lib" + "pkgconfig"
|
113
|
+
PKGConfig.add_path(target_pkg_config_dir.to_s)
|
114
|
+
end
|
102
115
|
end
|
103
116
|
end
|
104
117
|
end
|
@@ -239,8 +252,17 @@ end
|
|
239
252
|
# This is used for the library which doesn't support version info.
|
240
253
|
def make_version_header(app_name, pkgname, dir = "src")
|
241
254
|
version = PKGConfig.modversion(pkgname).split(/\./)
|
255
|
+
version = "2.0b7".split(/\./)
|
242
256
|
(0..2).each do |v|
|
243
257
|
version[v] = "0" unless version[v]
|
258
|
+
if /\A(\d+)/ =~ version[v]
|
259
|
+
number = $1
|
260
|
+
tag = $POSTMATCH
|
261
|
+
unless tag.empty?
|
262
|
+
version[v] = number
|
263
|
+
version[3] = tag
|
264
|
+
end
|
265
|
+
end
|
244
266
|
end
|
245
267
|
filename = "rb#{app_name.downcase}version.h"
|
246
268
|
|
@@ -251,6 +273,12 @@ def make_version_header(app_name, pkgname, dir = "src")
|
|
251
273
|
FileUtils.mkdir_p(dir)
|
252
274
|
out = File.open(File.join(dir, filename), "w")
|
253
275
|
|
276
|
+
version_definitions = []
|
277
|
+
["MAJOR", "MINOR", "MICRO", "TAG"].each_with_index do |type, i|
|
278
|
+
_version = version[i]
|
279
|
+
next if _version.nil?
|
280
|
+
version_definitions << "#define #{app_name}_#{type}_VERSION (#{_version})"
|
281
|
+
end
|
254
282
|
out.print %Q[/* -*- c-file-style: "ruby"; indent-tabs-mode: nil -*- */
|
255
283
|
/************************************************
|
256
284
|
|
@@ -263,9 +291,7 @@ def make_version_header(app_name, pkgname, dir = "src")
|
|
263
291
|
#ifndef __RB#{app_name}_VERSION_H__
|
264
292
|
#define __RB#{app_name}_VERSION_H__
|
265
293
|
|
266
|
-
#
|
267
|
-
#define #{app_name}_MINOR_VERSION (#{version[1]})
|
268
|
-
#define #{app_name}_MICRO_VERSION (#{version[2]})
|
294
|
+
#{version_definitions.join("\n")}
|
269
295
|
|
270
296
|
#define #{app_name}_CHECK_VERSION(major,minor,micro) \\
|
271
297
|
(#{app_name}_MAJOR_VERSION > (major) || \\
|
@@ -320,48 +346,34 @@ def glib_mkenums(prefix, files, g_type_prefix, include_files, options={})
|
|
320
346
|
end
|
321
347
|
|
322
348
|
def check_cairo(options={})
|
323
|
-
return false unless PKGConfig.have_package('cairo')
|
324
|
-
|
325
349
|
rcairo_source_dir = options[:rcairo_source_dir]
|
326
350
|
if rcairo_source_dir and !File.exist?(rcairo_source_dir)
|
327
351
|
rcairo_source_dir = nil
|
328
352
|
end
|
329
|
-
|
330
|
-
have_rb_cairo_h = have_header('rb_cairo.h')
|
331
|
-
unless have_rb_cairo_h
|
353
|
+
if rcairo_source_dir.nil?
|
332
354
|
begin
|
333
355
|
require 'rubygems'
|
334
|
-
|
335
|
-
|
336
|
-
|
337
|
-
if rcairo_gem
|
338
|
-
rcairo_source_dir = rcairo_gem.full_gem_path
|
339
|
-
rb_cairo_h_dir = File.join(rcairo_source_dir, "ext", "cairo")
|
340
|
-
$CFLAGS += " -I#{rb_cairo_h_dir} "
|
341
|
-
have_rb_cairo_h = have_header('rb_cairo.h')
|
342
|
-
else
|
343
|
-
require "cairo"
|
344
|
-
rcairo_source_dir = File.dirname($".grep(/cairo\.(?!rb\z)\w+\z/).first)
|
345
|
-
rb_cairo_h_dir = rcairo_source_dir
|
346
|
-
$CFLAGS += " -I#{rcairo_h_dir} "
|
347
|
-
have_rb_cairo_h = have_header('rb_cairo.h')
|
356
|
+
cairo_gem_spec = Gem.source_index.find_name("cairo").last
|
357
|
+
if cairo_gem_spec
|
358
|
+
rcairo_source_dir = cairo_gem_spec.full_gem_path
|
348
359
|
end
|
349
360
|
rescue LoadError
|
350
361
|
end
|
351
362
|
end
|
363
|
+
return false if rcairo_source_dir.nil?
|
352
364
|
|
353
|
-
if
|
354
|
-
|
355
|
-
|
356
|
-
|
357
|
-
|
358
|
-
options[:target_build_dir] = build_dir
|
359
|
-
end
|
360
|
-
add_depend_package("cairo", "ext/cairo", rcairo_source_dir, options)
|
361
|
-
$defs << "-DRUBY_CAIRO_PLATFORM_WIN32"
|
365
|
+
if /mingw|cygwin|mswin32/ =~ RUBY_PLATFORM
|
366
|
+
options = {}
|
367
|
+
build_dir = "tmp/#{RUBY_PLATFORM}/cairo/#{RUBY_VERSION}"
|
368
|
+
if File.exist?(File.join(rcairo_source_dir, build_dir))
|
369
|
+
options[:target_build_dir] = build_dir
|
362
370
|
end
|
371
|
+
add_depend_package("cairo", "ext/cairo", rcairo_source_dir, options)
|
372
|
+
$defs << "-DRUBY_CAIRO_PLATFORM_WIN32"
|
363
373
|
end
|
364
|
-
|
374
|
+
|
375
|
+
$CFLAGS += " -I#{rcairo_source_dir}/ext/cairo"
|
376
|
+
PKGConfig.have_package('cairo') and have_header('rb_cairo.h')
|
365
377
|
end
|
366
378
|
|
367
379
|
add_include_path = Proc.new do |dir_variable|
|
data/test-unit/History.txt
CHANGED
data/test-unit/html/index.html
CHANGED
@@ -78,7 +78,7 @@ require "test/unit"</pre>
|
|
78
78
|
</p>
|
79
79
|
<h3 id="test-unit-latest">test-unit: The latest release</h3>
|
80
80
|
<p>
|
81
|
-
2.1.
|
81
|
+
2.1.2 is the latest release. It had been released at 2010-11-25.
|
82
82
|
</p>
|
83
83
|
<h3 id="test-unit-install">test-unit: Install</h3>
|
84
84
|
<p>
|
@@ -112,7 +112,7 @@ require "test/unit"</pre>
|
|
112
112
|
</p>
|
113
113
|
<h3 id="test-unit-notify-latest">test-unit-notify: The latest release</h3>
|
114
114
|
<p>
|
115
|
-
0.0
|
115
|
+
0.1.0 is the latest release. It had been released at 2010-11-25.
|
116
116
|
</p>
|
117
117
|
<h3 id="test-unit-notify-install">test-unit-notify: Install</h3>
|
118
118
|
<p>
|
@@ -91,7 +91,7 @@ require "test/unit"</pre>
|
|
91
91
|
</p>
|
92
92
|
<h3 id="test-unit-latest">test-unit最新リリース</h3>
|
93
93
|
<p>
|
94
|
-
2010-
|
94
|
+
2010-11-25にリリースされた2.1.2が最新リリースです。
|
95
95
|
</p>
|
96
96
|
<h3 id="test-unit-install">test-unitのインストール</h3>
|
97
97
|
<p>
|
@@ -133,7 +133,7 @@ require "test/unit"</pre>
|
|
133
133
|
</p>
|
134
134
|
<h3 id="test-unit-notify-latest">test-unit-notify最新リリース</h3>
|
135
135
|
<p>
|
136
|
-
2010-
|
136
|
+
2010-11-25にリリースされた0.1.0が最新リリースです。
|
137
137
|
</p>
|
138
138
|
<h3 id="test-unit-notify-install">test-unit-notifyのインストール</h3>
|
139
139
|
<p>
|
@@ -579,6 +579,7 @@ EOT
|
|
579
579
|
"The arguments must respond to to_f; " +
|
580
580
|
"the #{name} did not")
|
581
581
|
end
|
582
|
+
delta = delta.to_f
|
582
583
|
assert_operator(delta, :>=, 0.0, "The delta should not be negative")
|
583
584
|
end
|
584
585
|
|
@@ -597,12 +598,16 @@ EOT
|
|
597
598
|
if normalized_actual < normalized_expected - normalized_delta
|
598
599
|
relation_format = "<<?> < <?>-<?>(?) <= <?>+<?>(?)>"
|
599
600
|
relation_arguments = [actual_float,
|
600
|
-
expected_float, delta,
|
601
|
-
|
601
|
+
expected_float, delta,
|
602
|
+
normalized_expected - normalized_delta,
|
603
|
+
expected_float, delta,
|
604
|
+
normalized_expected + normalized_delta]
|
602
605
|
elsif normalized_expected - normalized_delta < normalized_actual
|
603
606
|
relation_format = "<<?>-<?>(?) <= <?>+<?>(?) < <?>>"
|
604
|
-
relation_arguments = [expected_float, delta,
|
605
|
-
|
607
|
+
relation_arguments = [expected_float, delta,
|
608
|
+
normalized_expected - normalized_delta,
|
609
|
+
expected_float, delta,
|
610
|
+
normalized_expected + normalized_delta,
|
606
611
|
actual_float]
|
607
612
|
end
|
608
613
|
|
@@ -7,6 +7,7 @@ module Test
|
|
7
7
|
RUNNERS = {}
|
8
8
|
COLLECTORS = {}
|
9
9
|
ADDITIONAL_OPTIONS = []
|
10
|
+
PREPARE_HOOKS = []
|
10
11
|
|
11
12
|
class << self
|
12
13
|
def register_runner(id, runner_builder=Proc.new)
|
@@ -43,15 +44,20 @@ module Test
|
|
43
44
|
def setup_option(option_builder=Proc.new)
|
44
45
|
ADDITIONAL_OPTIONS << option_builder
|
45
46
|
end
|
47
|
+
|
48
|
+
def prepare(hook=Proc.new)
|
49
|
+
PREPARE_HOOKS << hook
|
50
|
+
end
|
46
51
|
end
|
47
52
|
|
48
53
|
def self.run(force_standalone=false, default_dir=nil, argv=ARGV, &block)
|
49
54
|
r = new(force_standalone || standalone?, &block)
|
50
55
|
r.base = default_dir
|
56
|
+
r.prepare
|
51
57
|
r.process_args(argv)
|
52
58
|
r.run
|
53
59
|
end
|
54
|
-
|
60
|
+
|
55
61
|
def self.standalone?
|
56
62
|
return false unless("-e" == $0)
|
57
63
|
ObjectSpace.each_object(Class) do |klass|
|
@@ -123,6 +129,12 @@ module Test
|
|
123
129
|
yield(self) if block_given?
|
124
130
|
end
|
125
131
|
|
132
|
+
def prepare
|
133
|
+
PREPARE_HOOKS.each do |handler|
|
134
|
+
handler.call(self)
|
135
|
+
end
|
136
|
+
end
|
137
|
+
|
126
138
|
def process_args(args = ARGV)
|
127
139
|
begin
|
128
140
|
args.unshift(*@default_arguments)
|
@@ -27,6 +27,7 @@ module Test
|
|
27
27
|
@name = name
|
28
28
|
@tests = []
|
29
29
|
@test_case = test_case
|
30
|
+
@n_tests = 0
|
30
31
|
end
|
31
32
|
|
32
33
|
# Runs the tests and/or suites contained in this
|
@@ -34,7 +35,8 @@ module Test
|
|
34
35
|
def run(result, &progress_block)
|
35
36
|
yield(STARTED, name)
|
36
37
|
run_startup(result)
|
37
|
-
@tests.
|
38
|
+
while test = @tests.shift
|
39
|
+
@n_tests += test.size
|
38
40
|
test.run(result, &progress_block)
|
39
41
|
end
|
40
42
|
run_shutdown(result)
|
@@ -55,7 +57,7 @@ module Test
|
|
55
57
|
# i.e. if the suite contains other suites, it counts the
|
56
58
|
# tests within those suites, not the suites themselves.
|
57
59
|
def size
|
58
|
-
total_size =
|
60
|
+
total_size = @n_tests
|
59
61
|
@tests.each { |test| total_size += test.size }
|
60
62
|
total_size
|
61
63
|
end
|
@@ -284,8 +284,15 @@ module Test
|
|
284
284
|
def test_startup_shutdown
|
285
285
|
called = []
|
286
286
|
test_case = Class.new(TestCase) do
|
287
|
-
@@called = called
|
288
287
|
class << self
|
288
|
+
def called
|
289
|
+
@@called
|
290
|
+
end
|
291
|
+
|
292
|
+
def called=(called)
|
293
|
+
@@called = called
|
294
|
+
end
|
295
|
+
|
289
296
|
def startup
|
290
297
|
@@called << :startup
|
291
298
|
end
|
@@ -294,13 +301,14 @@ module Test
|
|
294
301
|
@@called << :shutdown
|
295
302
|
end
|
296
303
|
end
|
304
|
+
self.called = called
|
297
305
|
|
298
306
|
def setup
|
299
|
-
|
307
|
+
self.class.called << :setup
|
300
308
|
end
|
301
309
|
|
302
310
|
def teardown
|
303
|
-
|
311
|
+
self.class.called << :teardown
|
304
312
|
end
|
305
313
|
|
306
314
|
def test1
|
@@ -813,14 +813,20 @@ EOM
|
|
813
813
|
assert_respond_to(:symbol, :non_existent, "message")
|
814
814
|
}
|
815
815
|
end
|
816
|
-
|
817
|
-
def
|
816
|
+
|
817
|
+
def test_assert_in_delta_pass
|
818
818
|
check_nothing_fails {
|
819
819
|
assert_in_delta(1.4, 1.4, 0)
|
820
820
|
}
|
821
|
+
end
|
822
|
+
|
823
|
+
def test_assert_in_delta_pass_with_message
|
821
824
|
check_nothing_fails {
|
822
825
|
assert_in_delta(0.5, 0.4, 0.1, "message")
|
823
826
|
}
|
827
|
+
end
|
828
|
+
|
829
|
+
def test_assert_in_delta_pass_float_like_object
|
824
830
|
check_nothing_fails {
|
825
831
|
float_thing = Object.new
|
826
832
|
def float_thing.to_f
|
@@ -828,6 +834,15 @@ EOM
|
|
828
834
|
end
|
829
835
|
assert_in_delta(0.1, float_thing, 0.1)
|
830
836
|
}
|
837
|
+
end
|
838
|
+
|
839
|
+
def test_assert_in_delta_pass_string_delta
|
840
|
+
check_nothing_fails do
|
841
|
+
assert_in_delta("0.5", 0.4, 0.1)
|
842
|
+
end
|
843
|
+
end
|
844
|
+
|
845
|
+
def test_assert_in_delta_fail_with_message
|
831
846
|
check_fails("message.\n" +
|
832
847
|
"<0.5> expected but was\n" +
|
833
848
|
"<0.4> (tolerance <0.05>).\n" +
|
@@ -836,6 +851,9 @@ EOM
|
|
836
851
|
"<<0.4> < <0.5>-<0.05>(0.45) <= <0.5>+<0.05>(0.55)>") {
|
837
852
|
assert_in_delta(0.5, 0.4, 0.05, "message")
|
838
853
|
}
|
854
|
+
end
|
855
|
+
|
856
|
+
def test_assert_in_delta_fail_because_not_float_like_object
|
839
857
|
object = Object.new
|
840
858
|
inspected_object = AssertionMessage.convert(object)
|
841
859
|
check_fails("The arguments must respond to to_f; " +
|
@@ -844,12 +862,15 @@ EOM
|
|
844
862
|
"(Class: <Object>)") {
|
845
863
|
assert_in_delta(object, 0.4, 0.1)
|
846
864
|
}
|
865
|
+
end
|
866
|
+
|
867
|
+
def test_assert_in_delta_fail_because_negaitve_delta
|
847
868
|
check_fails("The delta should not be negative.\n" +
|
848
869
|
"<-0.1> expected to be\n>=\n<0.0>.") {
|
849
870
|
assert_in_delta(0.5, 0.4, -0.1, "message")
|
850
871
|
}
|
851
872
|
end
|
852
|
-
|
873
|
+
|
853
874
|
def test_assert_send
|
854
875
|
object = Object.new
|
855
876
|
class << object
|
Binary file
|
@@ -38,11 +38,11 @@ Usage: glib-gettextize [OPTION]... [package-dir]
|
|
38
38
|
-f, --force force writing of new files even if old exist
|
39
39
|
Report bugs to http://bugzilla.gnome.org/."
|
40
40
|
package=glib
|
41
|
-
version=2.26.
|
41
|
+
version=2.26.1
|
42
42
|
try_ln_s=:
|
43
43
|
|
44
44
|
# Directory where the sources are stored.
|
45
|
-
prefix=c:/devel/target/
|
45
|
+
prefix=c:/devel/target/059c48de6b739307c37648aba3005b29
|
46
46
|
case `uname` in
|
47
47
|
MINGW32*)
|
48
48
|
prefix="`dirname $0`/.."
|
@@ -128,7 +128,7 @@ sub parse_entries {
|
|
128
128
|
}
|
129
129
|
|
130
130
|
sub version {
|
131
|
-
print "glib-mkenums version glib-2.26.
|
131
|
+
print "glib-mkenums version glib-2.26.1\n";
|
132
132
|
print "glib-mkenums comes with ABSOLUTELY NO WARRANTY.\n";
|
133
133
|
print "You may redistribute copies of glib-mkenums under the terms of\n";
|
134
134
|
print "the GNU General Public License which can be found in the\n";
|