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.
Files changed (408) hide show
  1. data/ChangeLog +79 -0
  2. data/Rakefile +8 -65
  3. data/ext/glib2/rbglib.h +1 -1
  4. data/ext/glib2/rbgobj_type.c +1 -1
  5. data/lib/1.8/glib2.so +0 -0
  6. data/lib/1.9/glib2.so +0 -0
  7. data/lib/glib2.rb +2 -2
  8. data/lib/gnome2-raketask.rb +185 -0
  9. data/lib/gnome2-win32-binary-downloader.rb +49 -9
  10. data/lib/mkmf-gnome2.rb +55 -43
  11. data/test-unit/History.txt +5 -0
  12. data/test-unit/html/index.html +2 -2
  13. data/test-unit/html/index.html.ja +2 -2
  14. data/test-unit/lib/test/unit/assertions.rb +9 -4
  15. data/test-unit/lib/test/unit/autorunner.rb +13 -1
  16. data/test-unit/lib/test/unit/testsuite.rb +4 -2
  17. data/test-unit/lib/test/unit/version.rb +1 -1
  18. data/test-unit/test/test-testcase.rb +11 -3
  19. data/test-unit/test/test_assertions.rb +24 -3
  20. data/vendor/local/bin/glib-genmarshal.exe +0 -0
  21. data/vendor/local/bin/glib-gettextize +2 -2
  22. data/vendor/local/bin/glib-mkenums +1 -1
  23. data/vendor/local/bin/gobject-query.exe +0 -0
  24. data/vendor/local/bin/gspawn-win32-helper-console.exe +0 -0
  25. data/vendor/local/bin/gspawn-win32-helper.exe +0 -0
  26. data/vendor/local/bin/libgio-2.0-0.dll +0 -0
  27. data/vendor/local/bin/libglib-2.0-0.dll +0 -0
  28. data/vendor/local/bin/libgmodule-2.0-0.dll +0 -0
  29. data/vendor/local/bin/libgobject-2.0-0.dll +0 -0
  30. data/vendor/local/bin/libgthread-2.0-0.dll +0 -0
  31. data/vendor/local/lib/gio-2.0.lib +0 -0
  32. data/vendor/local/lib/glib-2.0.lib +0 -0
  33. data/vendor/local/lib/glib-2.0/include/glibconfig.h +1 -1
  34. data/vendor/local/lib/gmodule-2.0.lib +0 -0
  35. data/vendor/local/lib/gobject-2.0.lib +0 -0
  36. data/vendor/local/lib/gthread-2.0.lib +0 -0
  37. data/vendor/local/lib/libgio-2.0.dll.a +0 -0
  38. data/vendor/local/lib/libglib-2.0.dll.a +0 -0
  39. data/vendor/local/lib/libgmodule-2.0.dll.a +0 -0
  40. data/vendor/local/lib/libgobject-2.0.dll.a +0 -0
  41. data/vendor/local/lib/libgthread-2.0.dll.a +0 -0
  42. data/vendor/local/lib/pkgconfig/gio-2.0.pc +2 -2
  43. data/vendor/local/lib/pkgconfig/gio-windows-2.0.pc +2 -2
  44. data/vendor/local/lib/pkgconfig/glib-2.0.pc +2 -2
  45. data/vendor/local/lib/pkgconfig/gmodule-2.0.pc +2 -2
  46. data/vendor/local/lib/pkgconfig/gmodule-no-export-2.0.pc +2 -2
  47. data/vendor/local/lib/pkgconfig/gobject-2.0.pc +2 -2
  48. data/vendor/local/lib/pkgconfig/gthread-2.0.pc +2 -2
  49. data/vendor/local/manifest/{glib-dev_2.26.0-2_win32.mft → glib-dev_2.26.1-1_win32.mft} +4 -4
  50. data/vendor/local/manifest/{glib_2.26.0-2_win32.mft → glib_2.26.1-1_win32.mft} +2 -2
  51. data/vendor/local/share/doc/{glib-2.26.0 → glib-2.26.1}/COPYING +0 -0
  52. data/vendor/local/share/doc/{glib-dev-2.26.0 → glib-dev-2.26.1}/COPYING +0 -0
  53. data/vendor/local/share/gtk-doc/html/gio/GAppInfo.html +47 -47
  54. data/vendor/local/share/gtk-doc/html/gio/GAsyncInitable.html +19 -19
  55. data/vendor/local/share/gtk-doc/html/gio/GAsyncResult.html +16 -16
  56. data/vendor/local/share/gtk-doc/html/gio/GBufferedInputStream.html +30 -30
  57. data/vendor/local/share/gtk-doc/html/gio/GBufferedOutputStream.html +24 -24
  58. data/vendor/local/share/gtk-doc/html/gio/GCancellable.html +25 -25
  59. data/vendor/local/share/gtk-doc/html/gio/GCharsetConverter.html +19 -19
  60. data/vendor/local/share/gtk-doc/html/gio/GConverter.html +17 -17
  61. data/vendor/local/share/gtk-doc/html/gio/GCredentials.html +17 -17
  62. data/vendor/local/share/gtk-doc/html/gio/GDBusAuthObserver.html +14 -14
  63. data/vendor/local/share/gtk-doc/html/gio/GDBusConnection.html +81 -81
  64. data/vendor/local/share/gtk-doc/html/gio/GDBusMessage.html +65 -65
  65. data/vendor/local/share/gtk-doc/html/gio/GDBusMethodInvocation.html +24 -24
  66. data/vendor/local/share/gtk-doc/html/gio/GDBusProxy.html +52 -52
  67. data/vendor/local/share/gtk-doc/html/gio/GDBusServer.html +29 -29
  68. data/vendor/local/share/gtk-doc/html/gio/GDataInputStream.html +51 -51
  69. data/vendor/local/share/gtk-doc/html/gio/GDataOutputStream.html +26 -26
  70. data/vendor/local/share/gtk-doc/html/gio/GDrive.html +46 -46
  71. data/vendor/local/share/gtk-doc/html/gio/GEmblem.html +20 -20
  72. data/vendor/local/share/gtk-doc/html/gio/GEmblemedIcon.html +15 -15
  73. data/vendor/local/share/gtk-doc/html/gio/GFile.html +221 -231
  74. data/vendor/local/share/gtk-doc/html/gio/GFileDescriptorBased.html +12 -12
  75. data/vendor/local/share/gtk-doc/html/gio/GFileEnumerator.html +22 -22
  76. data/vendor/local/share/gtk-doc/html/gio/GFileIOStream.html +15 -15
  77. data/vendor/local/share/gtk-doc/html/gio/GFileIcon.html +16 -16
  78. data/vendor/local/share/gtk-doc/html/gio/GFileInfo.html +157 -157
  79. data/vendor/local/share/gtk-doc/html/gio/GFileInputStream.html +14 -14
  80. data/vendor/local/share/gtk-doc/html/gio/GFileMonitor.html +21 -21
  81. data/vendor/local/share/gtk-doc/html/gio/GFileOutputStream.html +15 -15
  82. data/vendor/local/share/gtk-doc/html/gio/GFilenameCompleter.html +20 -20
  83. data/vendor/local/share/gtk-doc/html/gio/GFilterInputStream.html +16 -16
  84. data/vendor/local/share/gtk-doc/html/gio/GFilterOutputStream.html +16 -16
  85. data/vendor/local/share/gtk-doc/html/gio/GIOModule.html +16 -16
  86. data/vendor/local/share/gtk-doc/html/gio/GIOStream.html +24 -24
  87. data/vendor/local/share/gtk-doc/html/gio/GIcon.html +17 -17
  88. data/vendor/local/share/gtk-doc/html/gio/GInetAddress.html +53 -53
  89. data/vendor/local/share/gtk-doc/html/gio/GInetSocketAddress.html +17 -17
  90. data/vendor/local/share/gtk-doc/html/gio/GInitable.html +19 -19
  91. data/vendor/local/share/gtk-doc/html/gio/GInputStream.html +23 -23
  92. data/vendor/local/share/gtk-doc/html/gio/GLoadableIcon.html +16 -16
  93. data/vendor/local/share/gtk-doc/html/gio/GMemoryInputStream.html +14 -14
  94. data/vendor/local/share/gtk-doc/html/gio/GMemoryOutputStream.html +24 -24
  95. data/vendor/local/share/gtk-doc/html/gio/GMount.html +48 -48
  96. data/vendor/local/share/gtk-doc/html/gio/GMountOperation.html +43 -43
  97. data/vendor/local/share/gtk-doc/html/gio/GNetworkAddress.html +21 -21
  98. data/vendor/local/share/gtk-doc/html/gio/GNetworkService.html +22 -22
  99. data/vendor/local/share/gtk-doc/html/gio/GOutputStream.html +28 -28
  100. data/vendor/local/share/gtk-doc/html/gio/GPermission.html +24 -24
  101. data/vendor/local/share/gtk-doc/html/gio/GProxy.html +16 -16
  102. data/vendor/local/share/gtk-doc/html/gio/GProxyAddress.html +24 -24
  103. data/vendor/local/share/gtk-doc/html/gio/GProxyResolver.html +17 -17
  104. data/vendor/local/share/gtk-doc/html/gio/GResolver.html +27 -27
  105. data/vendor/local/share/gtk-doc/html/gio/GSeekable.html +18 -18
  106. data/vendor/local/share/gtk-doc/html/gio/GSettings.html +83 -108
  107. data/vendor/local/share/gtk-doc/html/gio/GSettingsBackend.html +23 -23
  108. data/vendor/local/share/gtk-doc/html/gio/GSimpleAsyncResult.html +33 -33
  109. data/vendor/local/share/gtk-doc/html/gio/GSimplePermission.html +12 -12
  110. data/vendor/local/share/gtk-doc/html/gio/GSocket.html +79 -79
  111. data/vendor/local/share/gtk-doc/html/gio/GSocketAddress.html +20 -20
  112. data/vendor/local/share/gtk-doc/html/gio/GSocketClient.html +60 -64
  113. data/vendor/local/share/gtk-doc/html/gio/GSocketConnectable.html +23 -23
  114. data/vendor/local/share/gtk-doc/html/gio/GSocketConnection.html +19 -19
  115. data/vendor/local/share/gtk-doc/html/gio/GSocketControlMessage.html +15 -15
  116. data/vendor/local/share/gtk-doc/html/gio/GSocketListener.html +36 -40
  117. data/vendor/local/share/gtk-doc/html/gio/GSocketService.html +17 -17
  118. data/vendor/local/share/gtk-doc/html/gio/GTcpConnection.html +16 -16
  119. data/vendor/local/share/gtk-doc/html/gio/GThemedIcon.html +28 -28
  120. data/vendor/local/share/gtk-doc/html/gio/GThreadedSocketService.html +19 -19
  121. data/vendor/local/share/gtk-doc/html/gio/GUnixConnection.html +14 -14
  122. data/vendor/local/share/gtk-doc/html/gio/GUnixCredentialsMessage.html +18 -18
  123. data/vendor/local/share/gtk-doc/html/gio/GUnixFDList.html +25 -25
  124. data/vendor/local/share/gtk-doc/html/gio/GUnixFDMessage.html +26 -26
  125. data/vendor/local/share/gtk-doc/html/gio/GUnixInputStream.html +18 -18
  126. data/vendor/local/share/gtk-doc/html/gio/GUnixOutputStream.html +18 -18
  127. data/vendor/local/share/gtk-doc/html/gio/GUnixSocketAddress.html +28 -28
  128. data/vendor/local/share/gtk-doc/html/gio/GVfs.html +29 -29
  129. data/vendor/local/share/gtk-doc/html/gio/GVolume.html +40 -40
  130. data/vendor/local/share/gtk-doc/html/gio/GVolumeMonitor.html +33 -33
  131. data/vendor/local/share/gtk-doc/html/gio/GZlibCompressor.html +19 -19
  132. data/vendor/local/share/gtk-doc/html/gio/GZlibDecompressor.html +16 -16
  133. data/vendor/local/share/gtk-doc/html/gio/annotation-glossary.html +4 -4
  134. data/vendor/local/share/gtk-doc/html/gio/api-index-2-18.html +4 -4
  135. data/vendor/local/share/gtk-doc/html/gio/api-index-2-20.html +4 -4
  136. data/vendor/local/share/gtk-doc/html/gio/api-index-2-22.html +4 -4
  137. data/vendor/local/share/gtk-doc/html/gio/api-index-2-24.html +4 -4
  138. data/vendor/local/share/gtk-doc/html/gio/api-index-2-26.html +4 -4
  139. data/vendor/local/share/gtk-doc/html/gio/api-index-deprecated.html +4 -4
  140. data/vendor/local/share/gtk-doc/html/gio/api-index-full.html +4 -8
  141. data/vendor/local/share/gtk-doc/html/gio/async.html +4 -4
  142. data/vendor/local/share/gtk-doc/html/gio/ch01.html +5 -5
  143. data/vendor/local/share/gtk-doc/html/gio/ch02.html +5 -5
  144. data/vendor/local/share/gtk-doc/html/gio/ch03.html +21 -21
  145. data/vendor/local/share/gtk-doc/html/gio/ch24.html +5 -5
  146. data/vendor/local/share/gtk-doc/html/gio/ch25.html +9 -9
  147. data/vendor/local/share/gtk-doc/html/gio/ch25s02.html +6 -6
  148. data/vendor/local/share/gtk-doc/html/gio/ch25s03.html +7 -7
  149. data/vendor/local/share/gtk-doc/html/gio/ch26.html +8 -8
  150. data/vendor/local/share/gtk-doc/html/gio/ch26s02.html +7 -7
  151. data/vendor/local/share/gtk-doc/html/gio/ch26s03.html +25 -25
  152. data/vendor/local/share/gtk-doc/html/gio/ch26s04.html +7 -7
  153. data/vendor/local/share/gtk-doc/html/gio/ch26s05.html +6 -6
  154. data/vendor/local/share/gtk-doc/html/gio/ch26s06.html +6 -6
  155. data/vendor/local/share/gtk-doc/html/gio/ch26s07.html +70 -5
  156. data/vendor/local/share/gtk-doc/html/gio/ch27.html +8 -8
  157. data/vendor/local/share/gtk-doc/html/gio/ch27s02.html +23 -23
  158. data/vendor/local/share/gtk-doc/html/gio/ch27s03.html +8 -8
  159. data/vendor/local/share/gtk-doc/html/gio/ch27s04.html +7 -7
  160. data/vendor/local/share/gtk-doc/html/gio/ch27s05.html +7 -7
  161. data/vendor/local/share/gtk-doc/html/gio/ch27s06.html +7 -7
  162. data/vendor/local/share/gtk-doc/html/gio/conversion.html +4 -4
  163. data/vendor/local/share/gtk-doc/html/gio/extending-gio.html +12 -12
  164. data/vendor/local/share/gtk-doc/html/gio/extending.html +4 -4
  165. data/vendor/local/share/gtk-doc/html/gio/failable_initialization.html +4 -4
  166. data/vendor/local/share/gtk-doc/html/gio/file_mon.html +4 -4
  167. data/vendor/local/share/gtk-doc/html/gio/file_ops.html +4 -4
  168. data/vendor/local/share/gtk-doc/html/gio/gdbus-convenience.html +4 -4
  169. data/vendor/local/share/gtk-doc/html/gio/gdbus-lowlevel.html +4 -4
  170. data/vendor/local/share/gtk-doc/html/gio/gdbus.html +19 -19
  171. data/vendor/local/share/gtk-doc/html/gio/gio-D-Bus-Addresses.html +13 -13
  172. data/vendor/local/share/gtk-doc/html/gio/gio-D-Bus-Introspection-Data.html +44 -44
  173. data/vendor/local/share/gtk-doc/html/gio/gio-D-Bus-Utilities.html +13 -13
  174. data/vendor/local/share/gtk-doc/html/gio/gio-Desktop-file-based-GAppInfo.html +20 -20
  175. data/vendor/local/share/gtk-doc/html/gio/gio-Extension-Points.html +23 -23
  176. data/vendor/local/share/gtk-doc/html/gio/gio-GContentType.html +18 -18
  177. data/vendor/local/share/gtk-doc/html/gio/gio-GConverterInputstream.html +15 -15
  178. data/vendor/local/share/gtk-doc/html/gio/gio-GConverterOutputstream.html +15 -15
  179. data/vendor/local/share/gtk-doc/html/gio/gio-GDBusError.html +20 -20
  180. data/vendor/local/share/gtk-doc/html/gio/gio-GFileAttribute.html +27 -33
  181. data/vendor/local/share/gtk-doc/html/gio/gio-GIOError.html +11 -11
  182. data/vendor/local/share/gtk-doc/html/gio/gio-GIOScheduler.html +13 -13
  183. data/vendor/local/share/gtk-doc/html/gio/gio-GSrvTarget.html +16 -16
  184. data/vendor/local/share/gtk-doc/html/gio/gio-Owning-Bus-Names.html +16 -16
  185. data/vendor/local/share/gtk-doc/html/gio/gio-Unix-Mounts.html +45 -45
  186. data/vendor/local/share/gtk-doc/html/gio/gio-Watching-Bus-Names.html +15 -15
  187. data/vendor/local/share/gtk-doc/html/gio/gio-hierarchy.html +4 -4
  188. data/vendor/local/share/gtk-doc/html/gio/gio-querymodules.html +7 -7
  189. data/vendor/local/share/gtk-doc/html/gio/gio.devhelp +9 -10
  190. data/vendor/local/share/gtk-doc/html/gio/gio.devhelp2 +9 -10
  191. data/vendor/local/share/gtk-doc/html/gio/glib-compile-schemas.html +11 -11
  192. data/vendor/local/share/gtk-doc/html/gio/highlevel-socket.html +4 -4
  193. data/vendor/local/share/gtk-doc/html/gio/icons.html +4 -4
  194. data/vendor/local/share/gtk-doc/html/gio/index.html +8 -8
  195. data/vendor/local/share/gtk-doc/html/gio/index.sgml +0 -1
  196. data/vendor/local/share/gtk-doc/html/gio/migrating.html +7 -7
  197. data/vendor/local/share/gtk-doc/html/gio/networking.html +4 -4
  198. data/vendor/local/share/gtk-doc/html/gio/permissions.html +4 -4
  199. data/vendor/local/share/gtk-doc/html/gio/pt01.html +5 -5
  200. data/vendor/local/share/gtk-doc/html/gio/pt02.html +5 -5
  201. data/vendor/local/share/gtk-doc/html/gio/resolver.html +4 -4
  202. data/vendor/local/share/gtk-doc/html/gio/settings.html +4 -4
  203. data/vendor/local/share/gtk-doc/html/gio/streaming.html +4 -4
  204. data/vendor/local/share/gtk-doc/html/gio/tools.html +4 -4
  205. data/vendor/local/share/gtk-doc/html/gio/types.html +4 -4
  206. data/vendor/local/share/gtk-doc/html/gio/utils.html +4 -4
  207. data/vendor/local/share/gtk-doc/html/gio/volume_mon.html +4 -4
  208. data/vendor/local/share/gtk-doc/html/glib/annotation-glossary.html +10 -4
  209. data/vendor/local/share/gtk-doc/html/glib/api-index-2-10.html +4 -4
  210. data/vendor/local/share/gtk-doc/html/glib/api-index-2-12.html +4 -4
  211. data/vendor/local/share/gtk-doc/html/glib/api-index-2-14.html +4 -4
  212. data/vendor/local/share/gtk-doc/html/glib/api-index-2-16.html +4 -4
  213. data/vendor/local/share/gtk-doc/html/glib/api-index-2-18.html +4 -4
  214. data/vendor/local/share/gtk-doc/html/glib/api-index-2-2.html +4 -4
  215. data/vendor/local/share/gtk-doc/html/glib/api-index-2-20.html +4 -4
  216. data/vendor/local/share/gtk-doc/html/glib/api-index-2-22.html +4 -4
  217. data/vendor/local/share/gtk-doc/html/glib/api-index-2-24.html +4 -4
  218. data/vendor/local/share/gtk-doc/html/glib/api-index-2-26.html +4 -4
  219. data/vendor/local/share/gtk-doc/html/glib/api-index-2-4.html +4 -4
  220. data/vendor/local/share/gtk-doc/html/glib/api-index-2-6.html +5 -9
  221. data/vendor/local/share/gtk-doc/html/glib/api-index-2-8.html +4 -4
  222. data/vendor/local/share/gtk-doc/html/glib/api-index-deprecated.html +4 -4
  223. data/vendor/local/share/gtk-doc/html/glib/api-index-full.html +9 -33
  224. data/vendor/local/share/gtk-doc/html/glib/glib-Arrays.html +53 -53
  225. data/vendor/local/share/gtk-doc/html/glib/glib-Asynchronous-Queues.html +38 -38
  226. data/vendor/local/share/gtk-doc/html/glib/glib-Atomic-Operations.html +21 -21
  227. data/vendor/local/share/gtk-doc/html/glib/glib-Automatic-String-Completion.html +32 -32
  228. data/vendor/local/share/gtk-doc/html/glib/glib-Balanced-Binary-Trees.html +36 -36
  229. data/vendor/local/share/gtk-doc/html/glib/glib-Base64-Encoding.html +15 -15
  230. data/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html +38 -38
  231. data/vendor/local/share/gtk-doc/html/glib/glib-Bookmark-file-parser.html +49 -49
  232. data/vendor/local/share/gtk-doc/html/glib/glib-Byte-Arrays.html +40 -40
  233. data/vendor/local/share/gtk-doc/html/glib/glib-Byte-Order-Macros.html +70 -70
  234. data/vendor/local/share/gtk-doc/html/glib/glib-Caches.html +22 -22
  235. data/vendor/local/share/gtk-doc/html/glib/glib-Character-Set-Conversion.html +42 -46
  236. data/vendor/local/share/gtk-doc/html/glib/glib-Commandline-option-parser.html +45 -45
  237. data/vendor/local/share/gtk-doc/html/glib/glib-Data-Checksums.html +23 -23
  238. data/vendor/local/share/gtk-doc/html/glib/glib-Datasets.html +21 -21
  239. data/vendor/local/share/gtk-doc/html/glib/glib-Date-and-Time-Functions.html +83 -83
  240. data/vendor/local/share/gtk-doc/html/glib/glib-Double-ended-Queues.html +62 -62
  241. data/vendor/local/share/gtk-doc/html/glib/glib-Doubly-Linked-Lists.html +97 -97
  242. data/vendor/local/share/gtk-doc/html/glib/glib-Dynamic-Loading-of-Modules.html +31 -31
  243. data/vendor/local/share/gtk-doc/html/glib/glib-Error-Reporting.html +31 -31
  244. data/vendor/local/share/gtk-doc/html/glib/glib-File-Utilities.html +50 -50
  245. data/vendor/local/share/gtk-doc/html/glib/glib-GDateTime.html +112 -118
  246. data/vendor/local/share/gtk-doc/html/glib/glib-GTimeZone.html +22 -22
  247. data/vendor/local/share/gtk-doc/html/glib/glib-GVariant.html +227 -261
  248. data/vendor/local/share/gtk-doc/html/glib/glib-GVariantType.html +91 -107
  249. data/vendor/local/share/gtk-doc/html/glib/glib-Glob-style-pattern-matching.html +16 -16
  250. data/vendor/local/share/gtk-doc/html/glib/glib-Hash-Tables.html +60 -60
  251. data/vendor/local/share/gtk-doc/html/glib/glib-Hook-Functions.html +66 -66
  252. data/vendor/local/share/gtk-doc/html/glib/glib-Hostname-Utilities.html +12 -12
  253. data/vendor/local/share/gtk-doc/html/glib/glib-I18N.html +26 -26
  254. data/vendor/local/share/gtk-doc/html/glib/glib-IO-Channels.html +72 -72
  255. data/vendor/local/share/gtk-doc/html/glib/glib-Key-value-file-parser.html +78 -78
  256. data/vendor/local/share/gtk-doc/html/glib/glib-Keyed-Data-Lists.html +25 -25
  257. data/vendor/local/share/gtk-doc/html/glib/glib-Lexical-Scanner.html +51 -51
  258. data/vendor/local/share/gtk-doc/html/glib/glib-Limits-of-Basic-Types.html +37 -37
  259. data/vendor/local/share/gtk-doc/html/glib/glib-Memory-Allocation.html +38 -38
  260. data/vendor/local/share/gtk-doc/html/glib/glib-Memory-Allocators.html +15 -15
  261. data/vendor/local/share/gtk-doc/html/glib/glib-Memory-Chunks.html +45 -45
  262. data/vendor/local/share/gtk-doc/html/glib/glib-Memory-Slices.html +21 -21
  263. data/vendor/local/share/gtk-doc/html/glib/glib-Message-Logging.html +64 -109
  264. data/vendor/local/share/gtk-doc/html/glib/glib-Miscellaneous-Macros.html +65 -65
  265. data/vendor/local/share/gtk-doc/html/glib/glib-Miscellaneous-Utility-Functions.html +97 -97
  266. data/vendor/local/share/gtk-doc/html/glib/glib-N-ary-Trees.html +80 -80
  267. data/vendor/local/share/gtk-doc/html/glib/glib-Numerical-Definitions.html +19 -19
  268. data/vendor/local/share/gtk-doc/html/glib/glib-Perl-compatible-regular-expressions.html +50 -50
  269. data/vendor/local/share/gtk-doc/html/glib/glib-Pointer-Arrays.html +41 -41
  270. data/vendor/local/share/gtk-doc/html/glib/glib-Quarks.html +20 -20
  271. data/vendor/local/share/gtk-doc/html/glib/glib-Random-Numbers.html +34 -34
  272. data/vendor/local/share/gtk-doc/html/glib/glib-Relations-and-Tuples.html +35 -35
  273. data/vendor/local/share/gtk-doc/html/glib/glib-Sequences.html +45 -45
  274. data/vendor/local/share/gtk-doc/html/glib/glib-Shell-related-Utilities.html +16 -16
  275. data/vendor/local/share/gtk-doc/html/glib/glib-Simple-XML-Subset-Parser.html +29 -29
  276. data/vendor/local/share/gtk-doc/html/glib/glib-Singly-Linked-Lists.html +87 -87
  277. data/vendor/local/share/gtk-doc/html/glib/glib-Spawning-Processes.html +20 -20
  278. data/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html +27 -27
  279. data/vendor/local/share/gtk-doc/html/glib/glib-String-Chunks.html +22 -22
  280. data/vendor/local/share/gtk-doc/html/glib/glib-String-Utility-Functions.html +154 -154
  281. data/vendor/local/share/gtk-doc/html/glib/glib-Strings.html +93 -93
  282. data/vendor/local/share/gtk-doc/html/glib/glib-Testing.html +73 -73
  283. data/vendor/local/share/gtk-doc/html/glib/glib-The-Main-Event-Loop.html +122 -128
  284. data/vendor/local/share/gtk-doc/html/glib/glib-Thread-Pools.html +25 -25
  285. data/vendor/local/share/gtk-doc/html/glib/glib-Threads.html +134 -134
  286. data/vendor/local/share/gtk-doc/html/glib/glib-Timers.html +19 -19
  287. data/vendor/local/share/gtk-doc/html/glib/glib-Trash-Stacks.html +12 -12
  288. data/vendor/local/share/gtk-doc/html/glib/glib-Type-Conversion-Macros.html +14 -14
  289. data/vendor/local/share/gtk-doc/html/glib/glib-URI-Functions.html +19 -19
  290. data/vendor/local/share/gtk-doc/html/glib/glib-Unicode-Manipulation.html +97 -97
  291. data/vendor/local/share/gtk-doc/html/glib/glib-Version-Information.html +16 -119
  292. data/vendor/local/share/gtk-doc/html/glib/glib-Warnings-and-Assertions.html +25 -25
  293. data/vendor/local/share/gtk-doc/html/glib/glib-Windows-Compatibility-Functions.html +33 -33
  294. data/vendor/local/share/gtk-doc/html/glib/glib-building.html +29 -29
  295. data/vendor/local/share/gtk-doc/html/glib/glib-changes.html +8 -8
  296. data/vendor/local/share/gtk-doc/html/glib/glib-compiling.html +6 -6
  297. data/vendor/local/share/gtk-doc/html/glib/glib-core.html +4 -4
  298. data/vendor/local/share/gtk-doc/html/glib/glib-cross-compiling.html +20 -20
  299. data/vendor/local/share/gtk-doc/html/glib/glib-data-types.html +4 -4
  300. data/vendor/local/share/gtk-doc/html/glib/glib-fundamentals.html +4 -4
  301. data/vendor/local/share/gtk-doc/html/glib/glib-gettextize.html +11 -11
  302. data/vendor/local/share/gtk-doc/html/glib/glib-regex-syntax.html +83 -83
  303. data/vendor/local/share/gtk-doc/html/glib/glib-resources.html +10 -10
  304. data/vendor/local/share/gtk-doc/html/glib/glib-running.html +30 -30
  305. data/vendor/local/share/gtk-doc/html/glib/glib-utilities.html +4 -4
  306. data/vendor/local/share/gtk-doc/html/glib/glib.devhelp +30 -36
  307. data/vendor/local/share/gtk-doc/html/glib/glib.devhelp2 +30 -36
  308. data/vendor/local/share/gtk-doc/html/glib/glib.html +4 -4
  309. data/vendor/local/share/gtk-doc/html/glib/gtester-report.html +11 -11
  310. data/vendor/local/share/gtk-doc/html/glib/gtester.html +11 -11
  311. data/vendor/local/share/gtk-doc/html/glib/gvariant-format-strings.html +44 -44
  312. data/vendor/local/share/gtk-doc/html/glib/index.html +5 -5
  313. data/vendor/local/share/gtk-doc/html/glib/index.sgml +1 -6
  314. data/vendor/local/share/gtk-doc/html/glib/tools.html +4 -4
  315. data/vendor/local/share/gtk-doc/html/gobject/GBinding.html +31 -31
  316. data/vendor/local/share/gtk-doc/html/gobject/GTypeModule.html +22 -22
  317. data/vendor/local/share/gtk-doc/html/gobject/GTypePlugin.html +20 -20
  318. data/vendor/local/share/gtk-doc/html/gobject/annotation-glossary.html +4 -4
  319. data/vendor/local/share/gtk-doc/html/gobject/api-index-2-10.html +4 -4
  320. data/vendor/local/share/gtk-doc/html/gobject/api-index-2-12.html +4 -4
  321. data/vendor/local/share/gtk-doc/html/gobject/api-index-2-14.html +4 -4
  322. data/vendor/local/share/gtk-doc/html/gobject/api-index-2-18.html +4 -4
  323. data/vendor/local/share/gtk-doc/html/gobject/api-index-2-2.html +4 -4
  324. data/vendor/local/share/gtk-doc/html/gobject/api-index-2-22.html +4 -4
  325. data/vendor/local/share/gtk-doc/html/gobject/api-index-2-24.html +4 -4
  326. data/vendor/local/share/gtk-doc/html/gobject/api-index-2-26.html +4 -4
  327. data/vendor/local/share/gtk-doc/html/gobject/api-index-2-4.html +4 -4
  328. data/vendor/local/share/gtk-doc/html/gobject/api-index-2-6.html +4 -4
  329. data/vendor/local/share/gtk-doc/html/gobject/api-index-2-8.html +4 -4
  330. data/vendor/local/share/gtk-doc/html/gobject/api-index-deprecated.html +4 -4
  331. data/vendor/local/share/gtk-doc/html/gobject/api-index-full.html +4 -4
  332. data/vendor/local/share/gtk-doc/html/gobject/ch01s02.html +8 -8
  333. data/vendor/local/share/gtk-doc/html/gobject/ch06s03.html +5 -5
  334. data/vendor/local/share/gtk-doc/html/gobject/chapter-gobject.html +5 -5
  335. data/vendor/local/share/gtk-doc/html/gobject/chapter-gtype.html +7 -7
  336. data/vendor/local/share/gtk-doc/html/gobject/chapter-intro.html +7 -7
  337. data/vendor/local/share/gtk-doc/html/gobject/chapter-signal.html +15 -15
  338. data/vendor/local/share/gtk-doc/html/gobject/glib-genmarshal.html +23 -23
  339. data/vendor/local/share/gtk-doc/html/gobject/glib-mkenums.html +17 -17
  340. data/vendor/local/share/gtk-doc/html/gobject/gobject-Boxed-Types.html +26 -26
  341. data/vendor/local/share/gtk-doc/html/gobject/gobject-Closures.html +74 -74
  342. data/vendor/local/share/gtk-doc/html/gobject/gobject-Enumeration-and-Flag-Types.html +44 -44
  343. data/vendor/local/share/gtk-doc/html/gobject/gobject-GParamSpec.html +71 -71
  344. data/vendor/local/share/gtk-doc/html/gobject/gobject-Generic-values.html +36 -36
  345. data/vendor/local/share/gtk-doc/html/gobject/gobject-Signals.html +71 -71
  346. data/vendor/local/share/gtk-doc/html/gobject/gobject-Standard-Parameter-and-Value-Types.html +262 -262
  347. data/vendor/local/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html +97 -97
  348. data/vendor/local/share/gtk-doc/html/gobject/gobject-Type-Information.html +158 -158
  349. data/vendor/local/share/gtk-doc/html/gobject/gobject-Value-arrays.html +37 -37
  350. data/vendor/local/share/gtk-doc/html/gobject/gobject-Varargs-Value-Collection.html +13 -13
  351. data/vendor/local/share/gtk-doc/html/gobject/gobject-memory.html +7 -7
  352. data/vendor/local/share/gtk-doc/html/gobject/gobject-properties.html +9 -9
  353. data/vendor/local/share/gtk-doc/html/gobject/gobject-query.html +11 -11
  354. data/vendor/local/share/gtk-doc/html/gobject/gobject.devhelp +8 -8
  355. data/vendor/local/share/gtk-doc/html/gobject/gobject.devhelp2 +8 -8
  356. data/vendor/local/share/gtk-doc/html/gobject/gtype-conventions.html +7 -7
  357. data/vendor/local/share/gtk-doc/html/gobject/gtype-instantiable-classed.html +5 -5
  358. data/vendor/local/share/gtk-doc/html/gobject/gtype-non-instantiable-classed.html +6 -6
  359. data/vendor/local/share/gtk-doc/html/gobject/gtype-non-instantiable.html +4 -4
  360. data/vendor/local/share/gtk-doc/html/gobject/howto-gobject-chainup.html +6 -6
  361. data/vendor/local/share/gtk-doc/html/gobject/howto-gobject-code.html +4 -4
  362. data/vendor/local/share/gtk-doc/html/gobject/howto-gobject-construction.html +4 -4
  363. data/vendor/local/share/gtk-doc/html/gobject/howto-gobject-destruction.html +4 -4
  364. data/vendor/local/share/gtk-doc/html/gobject/howto-gobject-methods.html +10 -10
  365. data/vendor/local/share/gtk-doc/html/gobject/howto-gobject.html +9 -9
  366. data/vendor/local/share/gtk-doc/html/gobject/howto-interface-implement.html +5 -5
  367. data/vendor/local/share/gtk-doc/html/gobject/howto-interface-properties.html +8 -8
  368. data/vendor/local/share/gtk-doc/html/gobject/howto-interface.html +5 -5
  369. data/vendor/local/share/gtk-doc/html/gobject/howto-signals.html +7 -7
  370. data/vendor/local/share/gtk-doc/html/gobject/index.html +11 -11
  371. data/vendor/local/share/gtk-doc/html/gobject/pr01.html +5 -5
  372. data/vendor/local/share/gtk-doc/html/gobject/pt01.html +8 -8
  373. data/vendor/local/share/gtk-doc/html/gobject/pt02.html +9 -9
  374. data/vendor/local/share/gtk-doc/html/gobject/pt03.html +6 -6
  375. data/vendor/local/share/gtk-doc/html/gobject/rn01.html +5 -5
  376. data/vendor/local/share/gtk-doc/html/gobject/rn02.html +5 -5
  377. data/vendor/local/share/gtk-doc/html/gobject/signal.html +12 -12
  378. data/vendor/local/share/gtk-doc/html/gobject/tools-ginspector.html +4 -4
  379. data/vendor/local/share/gtk-doc/html/gobject/tools-gob.html +4 -4
  380. data/vendor/local/share/gtk-doc/html/gobject/tools-gtkdoc.html +4 -4
  381. data/vendor/local/share/gtk-doc/html/gobject/tools-refdb.html +4 -4
  382. data/vendor/local/share/gtk-doc/html/gobject/tools-vala.html +4 -4
  383. data/vendor/local/share/locale/bg/LC_MESSAGES/glib20.mo +0 -0
  384. data/vendor/local/share/locale/ca@valencia/LC_MESSAGES/glib20.mo +0 -0
  385. data/vendor/local/share/locale/cs/LC_MESSAGES/glib20.mo +0 -0
  386. data/vendor/local/share/locale/de/LC_MESSAGES/glib20.mo +0 -0
  387. data/vendor/local/share/locale/el/LC_MESSAGES/glib20.mo +0 -0
  388. data/vendor/local/share/locale/en_GB/LC_MESSAGES/glib20.mo +0 -0
  389. data/vendor/local/share/locale/eu/LC_MESSAGES/glib20.mo +0 -0
  390. data/vendor/local/share/locale/fr/LC_MESSAGES/glib20.mo +0 -0
  391. data/vendor/local/share/locale/gl/LC_MESSAGES/glib20.mo +0 -0
  392. data/vendor/local/share/locale/he/LC_MESSAGES/glib20.mo +0 -0
  393. data/vendor/local/share/locale/hu/LC_MESSAGES/glib20.mo +0 -0
  394. data/vendor/local/share/locale/id/LC_MESSAGES/glib20.mo +0 -0
  395. data/vendor/local/share/locale/it/LC_MESSAGES/glib20.mo +0 -0
  396. data/vendor/local/share/locale/ja/LC_MESSAGES/glib20.mo +0 -0
  397. data/vendor/local/share/locale/lt/LC_MESSAGES/glib20.mo +0 -0
  398. data/vendor/local/share/locale/pl/LC_MESSAGES/glib20.mo +0 -0
  399. data/vendor/local/share/locale/pt/LC_MESSAGES/glib20.mo +0 -0
  400. data/vendor/local/share/locale/pt_BR/LC_MESSAGES/glib20.mo +0 -0
  401. data/vendor/local/share/locale/ru/LC_MESSAGES/glib20.mo +0 -0
  402. data/vendor/local/share/locale/sl/LC_MESSAGES/glib20.mo +0 -0
  403. data/vendor/local/share/man/man1/glib-genmarshal.1 +15 -6
  404. data/vendor/local/share/man/man1/glib-mkenums.1 +12 -3
  405. data/vendor/local/share/man/man1/gobject-query.1 +13 -4
  406. data/vendor/local/src/tml/packaging/{glib_2.26.0-2_win32.log → glib_2.26.1-1_win32.log} +549 -558
  407. data/vendor/local/src/tml/packaging/{glib_2.26.0-2_win32.sh → glib_2.26.1-1_win32.sh} +2 -2
  408. 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
- $CFLAGS += " -I#{binary_base_dir}/include"
62
- pkg_config_dir = binary_base_dir + "lib" + "pkgconfig"
63
- PKGConfig.add_path(pkg_config_dir.to_s)
64
- PKGConfig.set_override_variable("prefix", binary_base_dir.to_s)
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", "glib/src", "/...../ruby-gnome2")
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
- if /cygwin|mingw/ =~ RUBY_PLATFORM
97
- $libs << " -lruby-#{target_name}"
98
- $LDFLAGS << " -L#{target_build_dir_full_path}"
99
- elsif /mswin32/ =~ RUBY_PLATFORM
100
- $DLDFLAGS << " /libpath:#{target_build_dir_full_path}"
101
- $libs << " libruby-#{target_name}.lib"
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
- #define #{app_name}_MAJOR_VERSION (#{version[0]})
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
- $CFLAGS += " -I#{rcairo_source_dir}/ext/cairo" if rcairo_source_dir
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
- rcairo_gem = Gem.cache.find_name("cairo").sort_by do |gem|
335
- gem.version
336
- end.last
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 have_rb_cairo_h
354
- if /mingw|cygwin|mswin32/ =~ RUBY_PLATFORM
355
- options = {}
356
- build_dir = "tmp/#{RUBY_PLATFORM}/cairo/#{RUBY_VERSION}"
357
- if File.exist?(File.join(rcairo_source_dir, build_dir))
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
- have_rb_cairo_h
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|
@@ -1,3 +1,8 @@
1
+ === 2.1.2 / 2010-11-25
2
+
3
+ * 1 enhanchement
4
+ * support auto runner prepare hook.
5
+
1
6
  === 2.1.1 / 2010-07-29
2
7
 
3
8
  * 1 bug fix
@@ -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.1 is the latest release. It had been released at 2010-07-29.
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.1 is the latest release. It had been released at 2010-07-17.
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-07-29にリリースされた2.1.1が最新リリースです。
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-07-17にリリースされた0.0.1が最新リリースです。
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, expected_float - delta,
601
- expected_float, delta, expected_float + delta]
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, expected_float - delta,
605
- expected_float, delta, expected_float + delta,
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.each do |test|
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 = 0
60
+ total_size = @n_tests
59
61
  @tests.each { |test| total_size += test.size }
60
62
  total_size
61
63
  end
@@ -2,6 +2,6 @@
2
2
  # HACK: quick and dirty to get integrated into the new project - ryan
3
3
  module Test
4
4
  module Unit
5
- VERSION = '2.1.2'
5
+ VERSION = '2.1.3'
6
6
  end
7
7
  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
- @@called << :setup
307
+ self.class.called << :setup
300
308
  end
301
309
 
302
310
  def teardown
303
- @@called << :teardown
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 test_assert_in_delta
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.0
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/c2a2ac5b8143772ac09bf90d51bafa5f
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.0\n";
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";