glib2 3.2.5-x64-mingw32 → 3.2.6-x64-mingw32

Sign up to get free protection for your applications and to get access to all the features.
Files changed (325) hide show
  1. checksums.yaml +4 -4
  2. data/COPYING.LIB +502 -0
  3. data/README.md +42 -0
  4. data/Rakefile +8 -7
  5. data/ext/glib2/glib2.def +5 -0
  6. data/ext/glib2/rbglib-gc.c +89 -0
  7. data/ext/glib2/rbglib-variant-type.c +17 -0
  8. data/ext/glib2/rbglib.c +3 -0
  9. data/ext/glib2/rbglib.h +6 -1
  10. data/ext/glib2/rbglib2conversions.h +1 -1
  11. data/ext/glib2/rbgobj_boxed.c +49 -30
  12. data/ext/glib2/rbgobj_closure.c +3 -2
  13. data/ext/glib2/rbgobj_convert.c +1 -2
  14. data/ext/glib2/rbgobj_enums.c +32 -14
  15. data/ext/glib2/rbgobj_flags.c +31 -14
  16. data/ext/glib2/rbgobj_param.c +43 -23
  17. data/ext/glib2/rbgobj_signal.c +78 -66
  18. data/ext/glib2/rbgobj_type.c +22 -10
  19. data/ext/glib2/rbgobject.h +2 -0
  20. data/ext/glib2/rbgprivate.h +11 -0
  21. data/glib2.gemspec +48 -0
  22. data/lib/2.2/glib2.so +0 -0
  23. data/lib/2.3/glib2.so +0 -0
  24. data/lib/2.4/glib2.so +0 -0
  25. data/lib/2.5/glib2.so +0 -0
  26. data/lib/gnome2/rake/package-task.rb +17 -5
  27. data/lib/gnome2/rake/package.rb +2 -2
  28. data/lib/gnome2/rake/windows-binary-build-task.rb +39 -6
  29. data/lib/mkmf-gnome2.rb +4 -3
  30. data/sample/bookmarkfile.rb +2 -2
  31. data/sample/type-register.rb +6 -6
  32. data/sample/type-register2.rb +6 -6
  33. data/test/{test_enum.rb → test-enum.rb} +0 -0
  34. data/test/{test_file_utils.rb → test-file-utils.rb} +0 -0
  35. data/test/{test_flags.rb → test-flags.rb} +0 -0
  36. data/test/{test_glib2.rb → test-glib2.rb} +0 -0
  37. data/test/{test_key_file.rb → test-key-file.rb} +0 -0
  38. data/test/{test_mkenums.rb → test-mkenums.rb} +0 -0
  39. data/test/{test_poll_fd.rb → test-poll-fd.rb} +0 -0
  40. data/test/{test_signal.rb → test-signal.rb} +34 -2
  41. data/test/{test_source.rb → test-source.rb} +0 -0
  42. data/test/{test_spawn.rb → test-spawn.rb} +0 -0
  43. data/test/{test_timeout.rb → test-timeout.rb} +0 -0
  44. data/test/{test_unicode.rb → test-unicode.rb} +0 -0
  45. data/test/{test_utils.rb → test-utils.rb} +0 -0
  46. data/test/{test_value.rb → test-value.rb} +0 -0
  47. data/test/test-variant.rb +27 -0
  48. data/test/{test_win32.rb → test-win32.rb} +0 -0
  49. data/vendor/local/bin/asn1Coding.exe +0 -0
  50. data/vendor/local/bin/asn1Decoding.exe +0 -0
  51. data/vendor/local/bin/asn1Parser.exe +0 -0
  52. data/vendor/local/bin/envsubst.exe +0 -0
  53. data/vendor/local/bin/gdbus.exe +0 -0
  54. data/vendor/local/bin/gettext.exe +0 -0
  55. data/vendor/local/bin/gio-querymodules.exe +0 -0
  56. data/vendor/local/bin/gio.exe +0 -0
  57. data/vendor/local/bin/glib-compile-resources.exe +0 -0
  58. data/vendor/local/bin/glib-compile-schemas.exe +0 -0
  59. data/vendor/local/bin/glib-genmarshal +1 -1
  60. data/vendor/local/bin/glib-gettextize +1 -1
  61. data/vendor/local/bin/glib-mkenums +4 -2
  62. data/vendor/local/bin/gobject-query.exe +0 -0
  63. data/vendor/local/bin/gresource.exe +0 -0
  64. data/vendor/local/bin/gsettings.exe +0 -0
  65. data/vendor/local/bin/gspawn-win64-helper-console.exe +0 -0
  66. data/vendor/local/bin/gspawn-win64-helper.exe +0 -0
  67. data/vendor/local/bin/iconv.exe +0 -0
  68. data/vendor/local/bin/idn2.exe +0 -0
  69. data/vendor/local/bin/libasprintf-0.dll +0 -0
  70. data/vendor/local/bin/libcharset-1.dll +0 -0
  71. data/vendor/local/bin/libffi-6.dll +0 -0
  72. data/vendor/local/bin/libgio-2.0-0.dll +0 -0
  73. data/vendor/local/bin/libglib-2.0-0.dll +0 -0
  74. data/vendor/local/bin/libgmodule-2.0-0.dll +0 -0
  75. data/vendor/local/bin/libgmp-10.dll +0 -0
  76. data/vendor/local/bin/libgnutls-30.dll +0 -0
  77. data/vendor/local/bin/libgobject-2.0-0.dll +0 -0
  78. data/vendor/local/bin/libgthread-2.0-0.dll +0 -0
  79. data/vendor/local/bin/libhogweed-4-2.dll +0 -0
  80. data/vendor/local/bin/libiconv-2.dll +0 -0
  81. data/vendor/local/bin/libidn2-0.dll +0 -0
  82. data/vendor/local/bin/libintl-8.dll +0 -0
  83. data/vendor/local/bin/libnettle-6-2.dll +0 -0
  84. data/vendor/local/bin/libp11-kit-0.dll +0 -0
  85. data/vendor/local/bin/libpcre-1.dll +0 -0
  86. data/vendor/local/bin/libpcrecpp-0.dll +0 -0
  87. data/vendor/local/bin/libpcreposix-0.dll +0 -0
  88. data/vendor/local/bin/libtasn1-6.dll +0 -0
  89. data/vendor/local/bin/nettle-hash.exe +0 -0
  90. data/vendor/local/bin/nettle-lfib-stream.exe +0 -0
  91. data/vendor/local/bin/nettle-pbkdf2.exe +0 -0
  92. data/vendor/local/bin/ngettext.exe +0 -0
  93. data/vendor/local/bin/p11-kit.exe +0 -0
  94. data/vendor/local/bin/pcregrep.exe +0 -0
  95. data/vendor/local/bin/pcretest.exe +0 -0
  96. data/vendor/local/bin/pkcs1-conv.exe +0 -0
  97. data/vendor/local/bin/sexp-conv.exe +0 -0
  98. data/vendor/local/bin/trust.exe +0 -0
  99. data/vendor/local/include/idn2.h +5 -3
  100. data/vendor/local/include/p11-kit-1/p11-kit/iter.h +25 -1
  101. data/vendor/local/include/p11-kit-1/p11-kit/p11-kit.h +6 -0
  102. data/vendor/local/include/p11-kit-1/p11-kit/pkcs11.h +133 -4
  103. data/vendor/local/include/p11-kit-1/p11-kit/pkcs11x.h +1 -0
  104. data/vendor/local/include/p11-kit-1/p11-kit/remote.h +15 -0
  105. data/vendor/local/include/p11-kit-1/p11-kit/uri.h +32 -12
  106. data/vendor/local/lib/gio/modules/libgiognutls.dll +0 -0
  107. data/vendor/local/lib/glib-2.0/include/glibconfig.h +1 -1
  108. data/vendor/local/lib/libasprintf.a +0 -0
  109. data/vendor/local/lib/libasprintf.dll.a +0 -0
  110. data/vendor/local/lib/libasprintf.la +1 -1
  111. data/vendor/local/lib/libcharset.a +0 -0
  112. data/vendor/local/lib/libcharset.dll.a +0 -0
  113. data/vendor/local/lib/libcharset.la +1 -1
  114. data/vendor/local/lib/libffi.dll.a +0 -0
  115. data/vendor/local/lib/libffi.la +1 -1
  116. data/vendor/local/lib/libgio-2.0.dll.a +0 -0
  117. data/vendor/local/lib/libgio-2.0.la +2 -2
  118. data/vendor/local/lib/libglib-2.0.dll.a +0 -0
  119. data/vendor/local/lib/libglib-2.0.la +2 -2
  120. data/vendor/local/lib/libgmodule-2.0.dll.a +0 -0
  121. data/vendor/local/lib/libgmodule-2.0.la +2 -2
  122. data/vendor/local/lib/libgmp.dll.a +0 -0
  123. data/vendor/local/lib/libgnutls.dll.a +0 -0
  124. data/vendor/local/lib/libgnutls.la +1 -1
  125. data/vendor/local/lib/libgobject-2.0.dll.a +0 -0
  126. data/vendor/local/lib/libgobject-2.0.la +2 -2
  127. data/vendor/local/lib/libgthread-2.0.dll.a +0 -0
  128. data/vendor/local/lib/libgthread-2.0.la +2 -2
  129. data/vendor/local/lib/libhogweed.dll.a +0 -0
  130. data/vendor/local/lib/libiconv.dll.a +0 -0
  131. data/vendor/local/lib/libiconv.la +1 -1
  132. data/vendor/local/lib/libidn2.a +0 -0
  133. data/vendor/local/lib/libidn2.dll.a +0 -0
  134. data/vendor/local/lib/libidn2.la +2 -2
  135. data/vendor/local/lib/libintl.a +0 -0
  136. data/vendor/local/lib/libintl.dll.a +0 -0
  137. data/vendor/local/lib/libintl.la +1 -1
  138. data/vendor/local/lib/libnettle.dll.a +0 -0
  139. data/vendor/local/lib/libp11-kit.dll.a +0 -0
  140. data/vendor/local/lib/libp11-kit.la +3 -3
  141. data/vendor/local/lib/libpcre.a +0 -0
  142. data/vendor/local/lib/libpcre.dll.a +0 -0
  143. data/vendor/local/lib/libpcre.la +1 -1
  144. data/vendor/local/lib/libpcrecpp.dll.a +0 -0
  145. data/vendor/local/lib/libpcrecpp.la +1 -1
  146. data/vendor/local/lib/libpcreposix.a +0 -0
  147. data/vendor/local/lib/libpcreposix.dll.a +0 -0
  148. data/vendor/local/lib/libpcreposix.la +1 -1
  149. data/vendor/local/lib/libtasn1.dll.a +0 -0
  150. data/vendor/local/lib/pkcs11/p11-kit-trust.dll +0 -0
  151. data/vendor/local/lib/pkcs11/p11-kit-trust.dll.a +0 -0
  152. data/vendor/local/lib/pkcs11/p11-kit-trust.la +3 -3
  153. data/vendor/local/lib/pkgconfig/gio-2.0.pc +1 -1
  154. data/vendor/local/lib/pkgconfig/gio-windows-2.0.pc +1 -1
  155. data/vendor/local/lib/pkgconfig/glib-2.0.pc +1 -1
  156. data/vendor/local/lib/pkgconfig/gmodule-2.0.pc +1 -1
  157. data/vendor/local/lib/pkgconfig/gmodule-export-2.0.pc +1 -1
  158. data/vendor/local/lib/pkgconfig/gmodule-no-export-2.0.pc +1 -1
  159. data/vendor/local/lib/pkgconfig/gobject-2.0.pc +1 -1
  160. data/vendor/local/lib/pkgconfig/gthread-2.0.pc +1 -1
  161. data/vendor/local/lib/pkgconfig/libidn2.pc +1 -1
  162. data/vendor/local/lib/pkgconfig/p11-kit-1.pc +1 -1
  163. data/vendor/local/libexec/p11-kit/p11-kit-remote.exe +0 -0
  164. data/vendor/local/libexec/p11-kit/p11-kit-server.exe +0 -0
  165. data/vendor/local/share/gdb/auto-load/home/vagrant/ruby-gnome2/glib2/vendor/local/lib/{libglib-2.0.so.0.5600.0-gdb.py → libglib-2.0.so.0.5600.1-gdb.py} +0 -0
  166. data/vendor/local/share/gdb/auto-load/home/vagrant/ruby-gnome2/glib2/vendor/local/lib/{libgobject-2.0.so.0.5600.0-gdb.py → libgobject-2.0.so.0.5600.1-gdb.py} +0 -0
  167. data/vendor/local/share/glib-2.0/codegen/__init__.pyc +0 -0
  168. data/vendor/local/share/glib-2.0/codegen/__init__.pyo +0 -0
  169. data/vendor/local/share/glib-2.0/codegen/codegen.pyc +0 -0
  170. data/vendor/local/share/glib-2.0/codegen/codegen.pyo +0 -0
  171. data/vendor/local/share/glib-2.0/codegen/codegen_docbook.pyc +0 -0
  172. data/vendor/local/share/glib-2.0/codegen/codegen_docbook.pyo +0 -0
  173. data/vendor/local/share/glib-2.0/codegen/codegen_main.pyc +0 -0
  174. data/vendor/local/share/glib-2.0/codegen/codegen_main.pyo +0 -0
  175. data/vendor/local/share/glib-2.0/codegen/config.py +1 -1
  176. data/vendor/local/share/glib-2.0/codegen/config.pyc +0 -0
  177. data/vendor/local/share/glib-2.0/codegen/config.pyo +0 -0
  178. data/vendor/local/share/glib-2.0/codegen/dbustypes.pyc +0 -0
  179. data/vendor/local/share/glib-2.0/codegen/dbustypes.pyo +0 -0
  180. data/vendor/local/share/glib-2.0/codegen/parser.pyc +0 -0
  181. data/vendor/local/share/glib-2.0/codegen/parser.pyo +0 -0
  182. data/vendor/local/share/glib-2.0/codegen/utils.pyc +0 -0
  183. data/vendor/local/share/glib-2.0/codegen/utils.pyo +0 -0
  184. data/vendor/local/share/glib-2.0/gdb/gobject_gdb.py +1 -1
  185. data/vendor/local/share/gtk-doc/html/gio/GApplication.html +35 -13
  186. data/vendor/local/share/gtk-doc/html/gio/gio.html +0 -4
  187. data/vendor/local/share/gtk-doc/html/gio/index.html +1 -1
  188. data/vendor/local/share/gtk-doc/html/glib/glib-Commandline-option-parser.html +2 -2
  189. data/vendor/local/share/gtk-doc/html/glib/glib-Doubly-Linked-Lists.html +2 -2
  190. data/vendor/local/share/gtk-doc/html/glib/glib-Error-Reporting.html +1 -1
  191. data/vendor/local/share/gtk-doc/html/glib/glib-File-Utilities.html +1 -1
  192. data/vendor/local/share/gtk-doc/html/glib/glib-GVariant.html +2 -2
  193. data/vendor/local/share/gtk-doc/html/glib/glib-Keyed-Data-Lists.html +3 -3
  194. data/vendor/local/share/gtk-doc/html/glib/glib-Memory-Allocation.html +3 -3
  195. data/vendor/local/share/gtk-doc/html/glib/glib-Miscellaneous-Macros.html +1 -1
  196. data/vendor/local/share/gtk-doc/html/glib/glib-Miscellaneous-Utility-Functions.html +4 -4
  197. data/vendor/local/share/gtk-doc/html/glib/glib-Singly-Linked-Lists.html +2 -2
  198. data/vendor/local/share/gtk-doc/html/glib/glib-Spawning-Processes.html +3 -3
  199. data/vendor/local/share/gtk-doc/html/glib/glib-Testing.html +4 -4
  200. data/vendor/local/share/gtk-doc/html/glib/glib-The-Main-Event-Loop.html +4 -4
  201. data/vendor/local/share/gtk-doc/html/glib/glib-Threads.html +4 -4
  202. data/vendor/local/share/gtk-doc/html/glib/glib-UNIX-specific-utilities-and-integration.html +1 -1
  203. data/vendor/local/share/gtk-doc/html/glib/glib-Version-Information.html +1 -1
  204. data/vendor/local/share/gtk-doc/html/glib/glib-Windows-Compatibility-Functions.html +1 -1
  205. data/vendor/local/share/gtk-doc/html/glib/index.html +1 -1
  206. data/vendor/local/share/gtk-doc/html/gobject/index.html +1 -1
  207. data/vendor/local/share/gtk-doc/html/libidn2/api-index-full.html +4 -10
  208. data/vendor/local/share/gtk-doc/html/libidn2/home.png +0 -0
  209. data/vendor/local/share/gtk-doc/html/libidn2/index.html +3 -3
  210. data/vendor/local/share/gtk-doc/html/libidn2/left-insensitive.png +0 -0
  211. data/vendor/local/share/gtk-doc/html/libidn2/left.png +0 -0
  212. data/vendor/local/share/gtk-doc/html/libidn2/libidn2-idn2.html +67 -75
  213. data/vendor/local/share/gtk-doc/html/libidn2/libidn2.devhelp2 +1 -0
  214. data/vendor/local/share/gtk-doc/html/libidn2/libidn2.html +2 -2
  215. data/vendor/local/share/gtk-doc/html/libidn2/right-insensitive.png +0 -0
  216. data/vendor/local/share/gtk-doc/html/libidn2/right.png +0 -0
  217. data/vendor/local/share/gtk-doc/html/libidn2/style.css +4 -0
  218. data/vendor/local/share/gtk-doc/html/libidn2/up-insensitive.png +0 -0
  219. data/vendor/local/share/gtk-doc/html/libidn2/up.png +0 -0
  220. data/vendor/local/share/gtk-doc/html/p11-kit/config-example.html +3 -3
  221. data/vendor/local/share/gtk-doc/html/p11-kit/config-files.html +3 -3
  222. data/vendor/local/share/gtk-doc/html/p11-kit/config.html +3 -3
  223. data/vendor/local/share/gtk-doc/html/p11-kit/devel-building-style.html +3 -3
  224. data/vendor/local/share/gtk-doc/html/p11-kit/devel-building.html +4 -4
  225. data/vendor/local/share/gtk-doc/html/p11-kit/devel-commands.html +3 -3
  226. data/vendor/local/share/gtk-doc/html/p11-kit/devel-debugging.html +3 -3
  227. data/vendor/local/share/gtk-doc/html/p11-kit/devel-paths.html +3 -3
  228. data/vendor/local/share/gtk-doc/html/p11-kit/devel-testing.html +4 -4
  229. data/vendor/local/share/gtk-doc/html/p11-kit/devel.html +5 -5
  230. data/vendor/local/share/gtk-doc/html/p11-kit/index.html +5 -4
  231. data/vendor/local/share/gtk-doc/html/p11-kit/p11-kit-Deprecated.html +3 -3
  232. data/vendor/local/share/gtk-doc/html/p11-kit/p11-kit-Future.html +292 -19
  233. data/vendor/local/share/gtk-doc/html/p11-kit/p11-kit-Modules.html +22 -16
  234. data/vendor/local/share/gtk-doc/html/p11-kit/p11-kit-PIN-Callbacks.html +19 -19
  235. data/vendor/local/share/gtk-doc/html/p11-kit/p11-kit-URIs.html +262 -21
  236. data/vendor/local/share/gtk-doc/html/p11-kit/p11-kit-Utilities.html +5 -5
  237. data/vendor/local/share/gtk-doc/html/p11-kit/p11-kit.devhelp2 +21 -1
  238. data/vendor/local/share/gtk-doc/html/p11-kit/p11-kit.html +18 -5
  239. data/vendor/local/share/gtk-doc/html/p11-kit/pkcs11-conf.html +6 -4
  240. data/vendor/local/share/gtk-doc/html/p11-kit/reference.html +43 -3
  241. data/vendor/local/share/gtk-doc/html/p11-kit/remoting.html +230 -0
  242. data/vendor/local/share/gtk-doc/html/p11-kit/sharing-managed.html +3 -3
  243. data/vendor/local/share/gtk-doc/html/p11-kit/sharing.html +5 -5
  244. data/vendor/local/share/gtk-doc/html/p11-kit/tools.html +3 -3
  245. data/vendor/local/share/gtk-doc/html/p11-kit/trust-disable.html +3 -3
  246. data/vendor/local/share/gtk-doc/html/p11-kit/trust-glib-networking.html +3 -3
  247. data/vendor/local/share/gtk-doc/html/p11-kit/trust-module.html +5 -5
  248. data/vendor/local/share/gtk-doc/html/p11-kit/trust-nss.html +3 -3
  249. data/vendor/local/share/gtk-doc/html/p11-kit/trust.html +42 -7
  250. data/vendor/local/share/info/libidn2.info +94 -54
  251. data/vendor/local/share/locale/cs/LC_MESSAGES/libidn2.mo +0 -0
  252. data/vendor/local/share/locale/da/LC_MESSAGES/libidn2.mo +0 -0
  253. data/vendor/local/share/locale/de/LC_MESSAGES/libidn2.mo +0 -0
  254. data/vendor/local/share/locale/eo/LC_MESSAGES/libidn2.mo +0 -0
  255. data/vendor/local/share/locale/es/LC_MESSAGES/glib20.mo +0 -0
  256. data/vendor/local/share/locale/es/LC_MESSAGES/libidn2.mo +0 -0
  257. data/vendor/local/share/locale/fi/LC_MESSAGES/libidn2.mo +0 -0
  258. data/vendor/local/share/locale/fr/LC_MESSAGES/libidn2.mo +0 -0
  259. data/vendor/local/share/locale/fur/LC_MESSAGES/libidn2.mo +0 -0
  260. data/vendor/local/share/locale/hr/LC_MESSAGES/libidn2.mo +0 -0
  261. data/vendor/local/share/locale/hu/LC_MESSAGES/libidn2.mo +0 -0
  262. data/vendor/local/share/locale/id/LC_MESSAGES/libidn2.mo +0 -0
  263. data/vendor/local/share/locale/it/LC_MESSAGES/libidn2.mo +0 -0
  264. data/vendor/local/share/locale/ja/LC_MESSAGES/libidn2.mo +0 -0
  265. data/vendor/local/share/locale/nl/LC_MESSAGES/libidn2.mo +0 -0
  266. data/vendor/local/share/locale/pl/LC_MESSAGES/libidn2.mo +0 -0
  267. data/vendor/local/share/locale/pt/LC_MESSAGES/glib20.mo +0 -0
  268. data/vendor/local/share/locale/pt_BR/LC_MESSAGES/libidn2.mo +0 -0
  269. data/vendor/local/share/locale/ro/LC_MESSAGES/glib-networking.mo +0 -0
  270. data/vendor/local/share/locale/ro/LC_MESSAGES/libidn2.mo +0 -0
  271. data/vendor/local/share/locale/ru/LC_MESSAGES/glib-networking.mo +0 -0
  272. data/vendor/local/share/locale/sk/LC_MESSAGES/glib20.mo +0 -0
  273. data/vendor/local/share/locale/sl/LC_MESSAGES/glib-networking.mo +0 -0
  274. data/vendor/local/share/locale/sl/LC_MESSAGES/glib20.mo +0 -0
  275. data/vendor/local/share/locale/sr/LC_MESSAGES/libidn2.mo +0 -0
  276. data/vendor/local/share/locale/sv/LC_MESSAGES/glib-networking.mo +0 -0
  277. data/vendor/local/share/locale/sv/LC_MESSAGES/libidn2.mo +0 -0
  278. data/vendor/local/share/locale/uk/LC_MESSAGES/libidn2.mo +0 -0
  279. data/vendor/local/share/locale/vi/LC_MESSAGES/libidn2.mo +0 -0
  280. data/vendor/local/share/locale/zh_CN/LC_MESSAGES/glib-networking.mo +0 -0
  281. data/vendor/local/share/locale/zh_CN/LC_MESSAGES/libidn2.mo +0 -0
  282. data/vendor/local/share/man/man1/gapplication.1 +1 -1
  283. data/vendor/local/share/man/man1/gdbus-codegen.1 +1 -1
  284. data/vendor/local/share/man/man1/gdbus.1 +1 -1
  285. data/vendor/local/share/man/man1/gio-querymodules.1 +1 -1
  286. data/vendor/local/share/man/man1/gio.1 +1 -6
  287. data/vendor/local/share/man/man1/glib-compile-resources.1 +1 -1
  288. data/vendor/local/share/man/man1/glib-compile-schemas.1 +1 -1
  289. data/vendor/local/share/man/man1/glib-genmarshal.1 +1 -1
  290. data/vendor/local/share/man/man1/glib-gettextize.1 +1 -1
  291. data/vendor/local/share/man/man1/glib-mkenums.1 +1 -1
  292. data/vendor/local/share/man/man1/gobject-query.1 +1 -1
  293. data/vendor/local/share/man/man1/gresource.1 +1 -1
  294. data/vendor/local/share/man/man1/gsettings.1 +1 -1
  295. data/vendor/local/share/man/man1/gtester-report.1 +1 -1
  296. data/vendor/local/share/man/man1/gtester.1 +1 -1
  297. data/vendor/local/share/man/man3/idn2_check_version.3 +1 -1
  298. data/vendor/local/share/man/man3/idn2_free.3 +1 -1
  299. data/vendor/local/share/man/man3/idn2_lookup_u8.3 +1 -1
  300. data/vendor/local/share/man/man3/idn2_lookup_ul.3 +1 -1
  301. data/vendor/local/share/man/man3/idn2_register_u8.3 +1 -1
  302. data/vendor/local/share/man/man3/idn2_register_ul.3 +3 -2
  303. data/vendor/local/share/man/man3/idn2_strerror.3 +1 -1
  304. data/vendor/local/share/man/man3/idn2_strerror_name.3 +1 -1
  305. data/vendor/local/share/man/man3/idn2_to_ascii_4i.3 +6 -3
  306. data/vendor/local/share/man/man3/idn2_to_ascii_4z.3 +6 -3
  307. data/vendor/local/share/man/man3/idn2_to_ascii_8z.3 +6 -3
  308. data/vendor/local/share/man/man3/idn2_to_ascii_lz.3 +6 -3
  309. data/vendor/local/share/man/man3/idn2_to_unicode_44i.3 +1 -1
  310. data/vendor/local/share/man/man3/idn2_to_unicode_4z4z.3 +1 -1
  311. data/vendor/local/share/man/man3/idn2_to_unicode_8z4z.3 +1 -1
  312. data/vendor/local/share/man/man3/idn2_to_unicode_8z8z.3 +1 -1
  313. data/vendor/local/share/man/man3/idn2_to_unicode_8zlz.3 +1 -1
  314. data/vendor/local/share/man/man3/idn2_to_unicode_lzlz.3 +1 -1
  315. data/vendor/local/share/p11-kit/modules/p11-kit-trust.module +3 -0
  316. data/version.rb +30 -0
  317. metadata +52 -71
  318. data/vendor/local/share/installed-tests/glib-networking/certificate.test +0 -3
  319. data/vendor/local/share/installed-tests/glib-networking/connection.test +0 -3
  320. data/vendor/local/share/installed-tests/glib-networking/dtls-connection.test +0 -3
  321. data/vendor/local/share/installed-tests/glib-networking/file-database.test +0 -3
  322. data/vendor/local/share/installed-tests/glib-networking/pkcs11-array.test +0 -3
  323. data/vendor/local/share/installed-tests/glib-networking/pkcs11-pin.test +0 -3
  324. data/vendor/local/share/installed-tests/glib-networking/pkcs11-slot.test +0 -3
  325. data/vendor/local/share/installed-tests/glib-networking/pkcs11-util.test +0 -3
@@ -0,0 +1,42 @@
1
+ # Ruby/GLib2
2
+
3
+ Ruby/GLib2 is a Ruby binding of GLib-2.12.x.
4
+
5
+ ## Requirements
6
+
7
+ Ruby >= 1.9.x: http://www.ruby-lang.org/
8
+ pkg-config.rb: http://github.com/rcairo/pkg-config
9
+ GLib >= 2.12.x: http://www.gtk.org/
10
+
11
+ ## Install (RubyGems)
12
+
13
+ ```
14
+ % sudo gem install glib2
15
+ ```
16
+ Windows:
17
+
18
+ ```
19
+ > gem install glib2 --platform x86-mingw32
20
+ ```
21
+
22
+ ## Install (traditional)
23
+
24
+ Install ruby-1.9.x or later, pkg-config.rb and GLib-2.12.x.
25
+
26
+ ```
27
+ % ruby extconf.rb
28
+ % make
29
+ % sudo make install
30
+ ```
31
+
32
+ ## Copying
33
+
34
+ Copyright (c) 2002-2010 Ruby-GNOME2 Project Team
35
+
36
+ This program is free software.
37
+ You can distribute/modify this program under the terms of
38
+ the GNU LESSER GENERAL PUBLIC LICENSE Version 2.1.
39
+
40
+ ## Project Website
41
+
42
+ https://ruby-gnome2.osdn.jp/
data/Rakefile CHANGED
@@ -26,7 +26,10 @@ libffi_lib_dir = nil
26
26
 
27
27
  build_host = nil
28
28
 
29
- package_task = GNOME2::Rake::PackageTask.new do |package|
29
+ package_name = File.basename(__dir__)
30
+ spec = Gem::Specification.load("#{package_name}.gemspec")
31
+
32
+ package_task = GNOME2::Rake::PackageTask.new(spec, __dir__) do |package|
30
33
  bin_dir = (package.windows.absolute_binary_dir + "bin").to_s
31
34
  include_dir = (package.windows.absolute_binary_dir + "include").to_s
32
35
  glib2_include_dir = File.join(include_dir, "glib-2.0")
@@ -34,7 +37,6 @@ package_task = GNOME2::Rake::PackageTask.new do |package|
34
37
 
35
38
  build_host = package.windows.build_host
36
39
 
37
- package.summary = "Ruby/GLib2 is a Ruby binding of GLib-2.x."
38
40
  package.description = "Ruby/GLib2 is a Ruby binding of GLib-2.x."
39
41
  package.dependency.gem.runtime = [
40
42
  ["pkg-config", ">= 1.2.2"],
@@ -88,13 +90,12 @@ package_task = GNOME2::Rake::PackageTask.new do |package|
88
90
  :name => "glib",
89
91
  :download_site => :gnome,
90
92
  :label => "GLib",
91
- :version => "2.56.0",
93
+ :version => "2.56.1",
92
94
  :compression_method => "xz",
93
95
  :windows => {
94
96
  :need_autoreconf => true,
95
97
  :patches => [
96
98
  "glib-2.54.1-add-missing-exeext.diff",
97
- "glib-2.56.0-add-missing-weekday-full-is-locale.patch",
98
99
  ],
99
100
  :built_file => "bin/libglib-2.0-0.dll",
100
101
  },
@@ -137,7 +138,7 @@ package_task = GNOME2::Rake::PackageTask.new do |package|
137
138
  :download_site => :gnu,
138
139
  :download_name => "libidn",
139
140
  :label => "Libidn2",
140
- :version => "2.0.4",
141
+ :version => "2.0.5",
141
142
  :windows => {
142
143
  :built_file => "bin/libidn2-0.dll",
143
144
  },
@@ -146,7 +147,7 @@ package_task = GNOME2::Rake::PackageTask.new do |package|
146
147
  :name => "p11-glue/p11-kit",
147
148
  :download_site => :github,
148
149
  :label => "p11-kit",
149
- :version => "0.23.3",
150
+ :version => "0.23.12",
150
151
  :windows => {
151
152
  :built_file => "bin/libp11-kit-0.dll",
152
153
  },
@@ -173,7 +174,7 @@ package_task = GNOME2::Rake::PackageTask.new do |package|
173
174
  :name => "glib-networking",
174
175
  :download_site => :gnome,
175
176
  :label => "glib-networking",
176
- :version => "2.56.0",
177
+ :version => "2.56.1",
177
178
  :compression_method => "xz",
178
179
  :windows => {
179
180
  :meson_args => [
@@ -70,6 +70,7 @@ EXPORTS
70
70
  rbgobj_get_signal_call_func
71
71
  rbgobj_add_constants
72
72
  rbgobj_constant_remap
73
+ rbgobj_signal_new
73
74
  rbgobj_signal_wrap
74
75
  g_rclosure_new
75
76
  g_rclosure_new_call
@@ -165,6 +166,10 @@ EXPORTS
165
166
  rbglib_int64_to_num
166
167
  rbg_variant_to_ruby
167
168
  rbg_variant_from_ruby
169
+ rbg_variant_type_from_ruby
170
+
171
+ rbg_gc_guard
172
+ rbg_gc_unguard
168
173
 
169
174
  g_source_get_type
170
175
  g_connect_flags_get_type
@@ -0,0 +1,89 @@
1
+ /* -*- c-file-style: "ruby"; indent-tabs-mode: nil -*- */
2
+ /*
3
+ * Copyright (C) 2018 Ruby-GNOME2 Project Team
4
+ *
5
+ * This library is free software; you can redistribute it and/or
6
+ * modify it under the terms of the GNU Lesser General Public
7
+ * License as published by the Free Software Foundation; either
8
+ * version 2.1 of the License, or (at your option) any later version.
9
+ *
10
+ * This library is distributed in the hope that it will be useful,
11
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13
+ * Lesser General Public License for more details.
14
+ *
15
+ * You should have received a copy of the GNU Lesser General Public
16
+ * License along with this library; if not, write to the Free Software
17
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
18
+ * MA 02110-1301 USA
19
+ */
20
+
21
+ #include "rbgprivate.h"
22
+
23
+ static GHashTable *rbg_objects = NULL;
24
+
25
+ static void
26
+ gc_marker_mark_each(gpointer key, gpointer value, gpointer user_data)
27
+ {
28
+ VALUE rb_object = (VALUE)value;
29
+ rb_gc_mark(rb_object);
30
+ }
31
+
32
+ static void
33
+ gc_marker_mark(void *data)
34
+ {
35
+ GHashTable *hash_table = data;
36
+ g_hash_table_foreach(hash_table, gc_marker_mark_each, NULL);
37
+ }
38
+
39
+ static void
40
+ gc_marker_free(void *data)
41
+ {
42
+ GHashTable *hash_table = data;
43
+ g_hash_table_unref(hash_table);
44
+ rbg_objects = NULL;
45
+ }
46
+
47
+ static const rb_data_type_t rbg_gc_marker_type = {
48
+ "GLib::GCMarker",
49
+ {
50
+ gc_marker_mark,
51
+ gc_marker_free,
52
+ NULL,
53
+ },
54
+ NULL,
55
+ NULL,
56
+ RUBY_TYPED_FREE_IMMEDIATELY,
57
+ };
58
+
59
+ void
60
+ rbg_gc_guard(gpointer key, VALUE rb_object)
61
+ {
62
+ if (!rbg_objects)
63
+ return;
64
+
65
+ g_hash_table_insert(rbg_objects,
66
+ key,
67
+ (gpointer)rb_object);
68
+ }
69
+
70
+ void
71
+ rbg_gc_unguard(gpointer key)
72
+ {
73
+ if (!rbg_objects)
74
+ return;
75
+
76
+ g_hash_table_remove(rbg_objects, key);
77
+ }
78
+
79
+ void
80
+ Init_glib_gc(void)
81
+ {
82
+ VALUE gc_marker;
83
+
84
+ rbg_objects = g_hash_table_new(g_direct_hash, g_direct_equal);
85
+ gc_marker = TypedData_Wrap_Struct(rb_cData,
86
+ &rbg_gc_marker_type,
87
+ rbg_objects);
88
+ rb_ivar_set(mGLib, rb_intern("gc_marker"), gc_marker);
89
+ }
@@ -26,6 +26,23 @@
26
26
 
27
27
  static VALUE RG_TARGET_NAMESPACE;
28
28
 
29
+ GVariantType *
30
+ rbg_variant_type_from_ruby(VALUE rb_variant_type)
31
+ {
32
+ if (NIL_P(rb_variant_type)) {
33
+ return NULL;
34
+ }
35
+
36
+ if (RB_TYPE_P(rb_variant_type, RUBY_T_STRING)) {
37
+ rb_variant_type = rb_funcall(RG_TARGET_NAMESPACE,
38
+ rb_intern("new"),
39
+ 1,
40
+ rb_variant_type);
41
+ }
42
+
43
+ return RVAL2BOXED(rb_variant_type, G_TYPE_VARIANT_TYPE);
44
+ }
45
+
29
46
  static VALUE
30
47
  rg_s_valid_p(G_GNUC_UNUSED VALUE klass, VALUE rb_string)
31
48
  {
@@ -1146,6 +1146,9 @@ union GDoubleIEEE754;
1146
1146
  rb_define_const(RG_TARGET_NAMESPACE, "PRIORITY_LOW", INT2FIX(G_PRIORITY_LOW));
1147
1147
 
1148
1148
  /* Init_mem(); */
1149
+
1150
+ Init_glib_gc();
1151
+
1149
1152
  Init_gutil();
1150
1153
  Init_gutil_callback();
1151
1154
 
@@ -36,7 +36,7 @@ extern "C" {
36
36
 
37
37
  #define RBGLIB_MAJOR_VERSION 3
38
38
  #define RBGLIB_MINOR_VERSION 2
39
- #define RBGLIB_MICRO_VERSION 5
39
+ #define RBGLIB_MICRO_VERSION 6
40
40
 
41
41
  #ifndef RB_ZALLOC
42
42
  # ifdef ZALLOC
@@ -232,6 +232,11 @@ extern guint64 rbglib_num_to_uint64(VALUE val);
232
232
  extern VALUE rbg_variant_to_ruby(GVariant *variant);
233
233
  extern GVariant *rbg_variant_from_ruby(VALUE rb_variant);
234
234
 
235
+ extern GVariantType *rbg_variant_type_from_ruby(VALUE rb_variant_type);
236
+
237
+
238
+ extern void rbg_gc_guard(gpointer key, VALUE rb_object);
239
+ extern void rbg_gc_unguard(gpointer key);
235
240
 
236
241
  #ifdef __cplusplus
237
242
  }
@@ -41,7 +41,7 @@
41
41
  #define GTIMER2RVAL(o) (BOXED2RVAL(o, G_TYPE_TIMER))
42
42
  #define RVAL2GVALUE(o) ((GValue*)RVAL2BOXED(o, G_TYPE_VALUE))
43
43
  #define GVALUE2RVAL(o) (BOXED2RVAL(o, G_TYPE_VALUE))
44
- #define RVAL2GVARIANTTYPE(o) ((GVariantType *)RVAL2BOXED(o, G_TYPE_VARIANT_TYPE))
44
+ #define RVAL2GVARIANTTYPE(o) (rbg_variant_type_from_ruby(o))
45
45
  #define GVARIANTTYPE2RVAL(o) (BOXED2RVAL(o, G_TYPE_VARIANT_TYPE))
46
46
 
47
47
  #define RVAL2GIOCONDITION(o) (RVAL2GFLAGS(o, G_TYPE_IO_CONDITION))
@@ -1,6 +1,6 @@
1
1
  /* -*- c-file-style: "ruby"; indent-tabs-mode: nil -*- */
2
2
  /*
3
- * Copyright (C) 2011-2017 Ruby-GNOME2 Project Team
3
+ * Copyright (C) 2011-2018 Ruby-GNOME2 Project Team
4
4
  * Copyright (C) 2002,2003 Masahiro Sakai
5
5
  *
6
6
  * This library is free software; you can redistribute it and/or
@@ -26,8 +26,9 @@
26
26
  VALUE RG_TARGET_NAMESPACE;
27
27
 
28
28
  static void
29
- boxed_mark(boxed_holder *holder)
29
+ boxed_mark(void *data)
30
30
  {
31
+ boxed_holder *holder = data;
31
32
  const RGObjClassInfo *cinfo;
32
33
 
33
34
  cinfo = GTYPE2CINFO_NO_CREATE(holder->type);
@@ -36,8 +37,9 @@ boxed_mark(boxed_holder *holder)
36
37
  }
37
38
 
38
39
  static void
39
- boxed_free(boxed_holder *holder)
40
+ boxed_free(void *data)
40
41
  {
42
+ boxed_holder *holder = data;
41
43
  const RGObjClassInfo *cinfo;
42
44
 
43
45
  cinfo = GTYPE2CINFO_NO_CREATE(holder->type);
@@ -50,6 +52,26 @@ boxed_free(boxed_holder *holder)
50
52
  xfree(holder);
51
53
  }
52
54
 
55
+ static const rb_data_type_t rg_glib_boxed_type = {
56
+ "GLib::Boxed",
57
+ {
58
+ boxed_mark,
59
+ boxed_free,
60
+ NULL,
61
+ },
62
+ NULL,
63
+ NULL,
64
+ RUBY_TYPED_FREE_IMMEDIATELY,
65
+ };
66
+
67
+ static boxed_holder *
68
+ rbgobj_boxed_get_raw(VALUE rb_boxed)
69
+ {
70
+ boxed_holder *holder;
71
+ TypedData_Get_Struct(rb_boxed, boxed_holder, &rg_glib_boxed_type, holder);
72
+ return holder;
73
+ }
74
+
53
75
  /**********************************************************************/
54
76
 
55
77
  VALUE
@@ -57,18 +79,20 @@ rbgobj_boxed_alloc_func(VALUE klass)
57
79
  {
58
80
  const RGObjClassInfo *cinfo = rbgobj_lookup_class(klass);
59
81
  boxed_holder *holder;
60
- VALUE result;
82
+ VALUE rb_boxed;
61
83
 
62
84
  if (cinfo->gtype == G_TYPE_BOXED)
63
85
  rb_raise(rb_eTypeError, "abstract class");
64
86
 
65
- result = Data_Make_Struct(klass, boxed_holder,
66
- boxed_mark, boxed_free, holder);
87
+ rb_boxed = TypedData_Make_Struct(klass,
88
+ boxed_holder,
89
+ &rg_glib_boxed_type,
90
+ holder);
67
91
  holder->type = cinfo->gtype;
68
92
  holder->boxed = NULL;
69
93
  holder->own = FALSE;
70
94
 
71
- return result;
95
+ return rb_boxed;
72
96
  }
73
97
 
74
98
  static VALUE
@@ -102,21 +126,14 @@ static VALUE
102
126
  rg_inspect(VALUE self)
103
127
  {
104
128
  boxed_holder *holder;
105
- gchar *s;
106
- VALUE result;
107
-
108
- Data_Get_Struct(self, boxed_holder, holder);
109
-
110
- s = g_strdup_printf("#<%s:%p ptr=%p own=%s>",
111
- rb_class2name(CLASS_OF(self)),
112
- (void *)self,
113
- holder->boxed,
114
- holder->own ? "true" : "false");
115
129
 
116
- result = rb_str_new2(s);
117
- g_free(s);
130
+ holder = rbgobj_boxed_get_raw(self);
118
131
 
119
- return result;
132
+ return rb_sprintf("#<%" PRIsVALUE ":%p ptr=%p own=%s>",
133
+ CLASS_OF(self),
134
+ (gpointer)self,
135
+ holder->boxed,
136
+ holder->own ? "true" : "false");
120
137
  }
121
138
 
122
139
  static VALUE
@@ -131,8 +148,8 @@ rg_initialize_copy(VALUE self, VALUE orig)
131
148
  rb_raise(rb_eTypeError, "wrong argument class");
132
149
  }
133
150
 
134
- Data_Get_Struct(self, boxed_holder, holder1);
135
- Data_Get_Struct(orig, boxed_holder, holder2);
151
+ holder1 = rbgobj_boxed_get_raw(self);
152
+ holder2 = rbgobj_boxed_get_raw(orig);
136
153
 
137
154
  holder1->boxed = g_boxed_copy(holder2->type, holder2->boxed);
138
155
  holder1->own = TRUE;
@@ -156,7 +173,7 @@ void
156
173
  rbgobj_boxed_initialize(VALUE obj, gpointer boxed)
157
174
  {
158
175
  boxed_holder *holder;
159
- Data_Get_Struct(obj, boxed_holder, holder);
176
+ holder = rbgobj_boxed_get_raw(obj);
160
177
  holder->boxed = boxed;
161
178
  holder->own = TRUE;
162
179
  }
@@ -167,13 +184,15 @@ rbgobj_boxed_get_default(VALUE obj, GType gtype)
167
184
  boxed_holder *holder;
168
185
 
169
186
  if (!RVAL2CBOOL(rb_obj_is_kind_of(obj, GTYPE2CLASS(gtype))))
170
- rb_raise(rb_eArgError, "invalid argument %s (expect %s)",
171
- rb_class2name(CLASS_OF(obj)),
172
- rb_class2name(GTYPE2CLASS(gtype)));
187
+ rb_raise(rb_eArgError,
188
+ "invalid argument %" PRIsVALUE " (expect %" PRIsVALUE ")",
189
+ CLASS_OF(obj),
190
+ GTYPE2CLASS(gtype));
173
191
 
174
- Data_Get_Struct(obj, boxed_holder, holder);
192
+ holder = rbgobj_boxed_get_raw(obj);
175
193
  if (!holder->boxed)
176
- rb_raise(rb_eArgError, "uninitialize %s", rb_class2name(CLASS_OF(obj)));
194
+ rb_raise(rb_eArgError, "uninitialize %" PRIsVALUE,
195
+ CLASS_OF(obj));
177
196
 
178
197
  return holder->boxed;
179
198
  }
@@ -201,7 +220,7 @@ rbgobj_make_boxed_raw(gpointer p, GType gtype, VALUE klass, gint flags)
201
220
 
202
221
  result = rbgobj_boxed_alloc_func(klass);
203
222
 
204
- Data_Get_Struct(result, boxed_holder, holder);
223
+ holder = rbgobj_boxed_get_raw(result);
205
224
 
206
225
  if (flags & RBGOBJ_BOXED_NOT_COPY) {
207
226
  holder->boxed = p;
@@ -250,7 +269,7 @@ rbgobj_boxed_unown(VALUE boxed)
250
269
  {
251
270
  boxed_holder *holder;
252
271
 
253
- Data_Get_Struct(boxed, boxed_holder, holder);
272
+ holder = rbgobj_boxed_get_raw(boxed);
254
273
 
255
274
  if (!holder->own) {
256
275
  rb_raise(rb_eArgError,
@@ -46,7 +46,7 @@ static VALUE
46
46
  rclosure_default_g2r_func(guint num, const GValue *values)
47
47
  {
48
48
  guint i;
49
- VALUE args = rb_ary_new2(num);
49
+ VALUE args = rb_ary_new_capa(num);
50
50
  for (i = 0; i < num; i++)
51
51
  rb_ary_store(args, i, GVAL2RVAL(&values[i]));
52
52
  return args;
@@ -290,12 +290,13 @@ g_rclosure_attach(GClosure *closure, VALUE object)
290
290
  static VALUE cGLibObject = Qnil;
291
291
  GRClosure *rclosure = (GRClosure *)closure;
292
292
 
293
+ rbgobj_add_relative(object, rclosure->rb_holder);
294
+
293
295
  if (NIL_P(cGLibObject)) {
294
296
  cGLibObject = rb_const_get(mGLib, rb_intern("Object"));
295
297
  }
296
298
  if (rb_obj_is_kind_of(object, cGLibObject)) {
297
299
  GObject *gobject;
298
- rbgobj_object_add_relative(object, rclosure->rb_holder);
299
300
  gobject = RVAL2GOBJ(object);
300
301
  rclosure->count++;
301
302
  g_object_weak_ref(gobject, rclosure_weak_notify, rclosure);