gio2 1.0.3-x86-mingw32 → 1.1.0-x86-mingw32

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (156) hide show
  1. data/ext/gio2/extconf.rb +4 -42
  2. data/ext/gio2/gio2.c +18 -117
  3. data/ext/gio2/gio2.h +20 -339
  4. data/ext/gio2/rbgio.c +132 -0
  5. data/ext/gio2/rbgio2.h +156 -0
  6. data/ext/gio2/rbgio2conversions.h +154 -0
  7. data/ext/gio2/rbgio2private.h +147 -0
  8. data/ext/gio2/{gappinfo.c → rbgioappinfo.c} +81 -82
  9. data/ext/gio2/rbgioapplaunchcontext.c +81 -0
  10. data/ext/gio2/{gasyncinitable.c → rbgioasyncinitable.c} +33 -30
  11. data/ext/gio2/rbgioasyncresult.c +41 -0
  12. data/ext/gio2/{gbufferedinputstream.c → rbgiobufferedinputstream.c} +37 -35
  13. data/ext/gio2/rbgiobufferedoutputstream.c +50 -0
  14. data/ext/gio2/rbgiocancellable.c +180 -0
  15. data/ext/gio2/rbgiocharsetconverter.c +57 -0
  16. data/ext/gio2/rbgiocontenttype.c +131 -0
  17. data/ext/gio2/{gconverter.c → rbgioconverter.c} +24 -28
  18. data/ext/gio2/rbgioconverterinputstream.c +43 -0
  19. data/ext/gio2/rbgioconverteroutputstream.c +43 -0
  20. data/ext/gio2/{gdatainputstream.c → rbgiodatainputstream.c} +49 -58
  21. data/ext/gio2/{gdataoutputstream.c → rbgiodataoutputstream.c} +39 -37
  22. data/ext/gio2/rbgiodesktopappinfo.c +87 -0
  23. data/ext/gio2/{gdrive.c → rbgiodrive.c} +75 -76
  24. data/ext/gio2/rbgioemblem.c +52 -0
  25. data/ext/gio2/rbgioemblemedicon.c +65 -0
  26. data/ext/gio2/{gfile.c → rbgiofile.c} +256 -266
  27. data/ext/gio2/rbgiofileattribute.c +114 -0
  28. data/ext/gio2/rbgiofileattributeinfo.c +86 -0
  29. data/ext/gio2/rbgiofileattributeinfolist.c +106 -0
  30. data/ext/gio2/rbgiofileattributematcher.c +93 -0
  31. data/ext/gio2/rbgiofiledescriptorbased.c +45 -0
  32. data/ext/gio2/{gfileenumerator.c → rbgiofileenumerator.c} +42 -40
  33. data/ext/gio2/rbgiofileicon.c +41 -0
  34. data/ext/gio2/{gfileinfo.c → rbgiofileinfo.c} +159 -163
  35. data/ext/gio2/{gfileinputstream.c → rbgiofileinputstream.c} +26 -25
  36. data/ext/gio2/{gfileiostream.c → rbgiofileiostream.c} +28 -26
  37. data/ext/gio2/rbgiofilemonitor.c +46 -0
  38. data/ext/gio2/rbgiofilenamecompleter.c +74 -0
  39. data/ext/gio2/{gfileoutputstream.c → rbgiofileoutputstream.c} +28 -26
  40. data/ext/gio2/rbgiofilterinputstream.c +28 -0
  41. data/ext/gio2/rbgiofilteroutputstream.c +28 -0
  42. data/ext/gio2/rbgioicon.c +69 -0
  43. data/ext/gio2/rbgioinetaddress.c +118 -0
  44. data/ext/gio2/rbgioinetsocketaddress.c +41 -0
  45. data/ext/gio2/{ginitable.c → rbgioinitable.c} +29 -25
  46. data/ext/gio2/{ginputstream.c → rbgioinputstream.c} +50 -48
  47. data/ext/gio2/rbgioio.c +73 -0
  48. data/ext/gio2/rbgioiomodule.c +45 -0
  49. data/ext/gio2/rbgioiomodules.c +47 -0
  50. data/ext/gio2/rbgioioscheduler.c +102 -0
  51. data/ext/gio2/rbgioioschedulerjob.c +121 -0
  52. data/ext/gio2/rbgioiostream.c +108 -0
  53. data/ext/gio2/{gloadableicon.c → rbgioloadableicon.c} +26 -24
  54. data/ext/gio2/rbgiomemoryinputstream.c +67 -0
  55. data/ext/gio2/rbgiomemoryoutputstream.c +44 -0
  56. data/ext/gio2/{gmount.c → rbgiomount.c} +70 -68
  57. data/ext/gio2/rbgiomountoperation.c +53 -0
  58. data/ext/gio2/rbgionetworkaddress.c +59 -0
  59. data/ext/gio2/rbgionetworkservice.c +45 -0
  60. data/ext/gio2/{goutputstream.c → rbgiooutputstream.c} +61 -62
  61. data/ext/gio2/{gresolver.c → rbgioresolver.c} +50 -48
  62. data/ext/gio2/rbgioseekable.c +91 -0
  63. data/ext/gio2/rbgiosimpleasyncresult.c +155 -0
  64. data/ext/gio2/{gsocket.c → rbgiosocket.c} +74 -76
  65. data/ext/gio2/rbgiosocketaddress.c +34 -0
  66. data/ext/gio2/rbgiosocketaddressenumerator.c +83 -0
  67. data/ext/gio2/{gsocketclient.c → rbgiosocketclient.c} +41 -39
  68. data/ext/gio2/rbgiosocketconnectable.c +41 -0
  69. data/ext/gio2/rbgiosocketconnection.c +66 -0
  70. data/ext/gio2/rbgiosocketconnectionfactory.c +39 -0
  71. data/ext/gio2/rbgiosocketcontrolmessage.c +82 -0
  72. data/ext/gio2/{gsocketlistener.c → rbgiosocketlistener.c} +49 -47
  73. data/ext/gio2/rbgiosocketservice.c +66 -0
  74. data/ext/gio2/rbgiosrvtarget.c +76 -0
  75. data/ext/gio2/rbgiotcpconnection.c +28 -0
  76. data/ext/gio2/rbgiothemedicon.c +83 -0
  77. data/ext/gio2/rbgiothreadedsocketservice.c +43 -0
  78. data/ext/gio2/rbgiounixconnection.c +71 -0
  79. data/ext/gio2/rbgiounixfdlist.c +115 -0
  80. data/ext/gio2/rbgiounixfdmessage.c +74 -0
  81. data/ext/gio2/rbgiounixinputstream.c +51 -0
  82. data/ext/gio2/rbgiounixmount.c +164 -0
  83. data/ext/gio2/rbgiounixmountmonitor.c +66 -0
  84. data/ext/gio2/rbgiounixmountpoint.c +136 -0
  85. data/ext/gio2/rbgiounixmountpoints.c +58 -0
  86. data/ext/gio2/rbgiounixmounts.c +58 -0
  87. data/ext/gio2/rbgiounixoutputstream.c +51 -0
  88. data/ext/gio2/rbgiounixsocketaddress.c +69 -0
  89. data/ext/gio2/rbgiovfs.c +84 -0
  90. data/ext/gio2/rbgiovolume.c +193 -0
  91. data/ext/gio2/rbgiovolumemonitor.c +77 -0
  92. data/ext/gio2/rbgiozlibcompressor.c +52 -0
  93. data/ext/gio2/rbgiozlibdecompressor.c +45 -0
  94. data/ext/gio2/util.c +57 -60
  95. data/lib/1.8/gio2.so +0 -0
  96. data/lib/1.9/gio2.so +0 -0
  97. data/lib/gio2/deprecated.rb +102 -0
  98. data/lib/gio2.rb +14 -12
  99. metadata +100 -88
  100. data/ChangeLog +0 -129
  101. data/ext/gio2/gapplaunchcontext.c +0 -79
  102. data/ext/gio2/gasyncresult.c +0 -39
  103. data/ext/gio2/gbufferedoutputstream.c +0 -48
  104. data/ext/gio2/gcancellable.c +0 -177
  105. data/ext/gio2/gcharsetconverter.c +0 -55
  106. data/ext/gio2/gcontenttype.c +0 -128
  107. data/ext/gio2/gconverterinputstream.c +0 -41
  108. data/ext/gio2/gconverteroutputstream.c +0 -41
  109. data/ext/gio2/gdesktopappinfo.c +0 -88
  110. data/ext/gio2/gemblem.c +0 -52
  111. data/ext/gio2/gemblemedicon.c +0 -63
  112. data/ext/gio2/gfileattribute.c +0 -111
  113. data/ext/gio2/gfileattributeinfo.c +0 -89
  114. data/ext/gio2/gfileattributeinfolist.c +0 -109
  115. data/ext/gio2/gfileattributematcher.c +0 -90
  116. data/ext/gio2/gfiledescriptorbased.c +0 -42
  117. data/ext/gio2/gfileicon.c +0 -39
  118. data/ext/gio2/gfilemonitor.c +0 -44
  119. data/ext/gio2/gfilenamecompleter.c +0 -72
  120. data/ext/gio2/gfilterinputstream.c +0 -27
  121. data/ext/gio2/gfilteroutputstream.c +0 -27
  122. data/ext/gio2/gicon.c +0 -67
  123. data/ext/gio2/ginetaddress.c +0 -116
  124. data/ext/gio2/ginetsocketaddress.c +0 -38
  125. data/ext/gio2/gioerror.c +0 -70
  126. data/ext/gio2/giomodule.c +0 -63
  127. data/ext/gio2/gioscheduler.c +0 -193
  128. data/ext/gio2/giostream.c +0 -106
  129. data/ext/gio2/gmemoryinputstream.c +0 -65
  130. data/ext/gio2/gmemoryoutputstream.c +0 -41
  131. data/ext/gio2/gmountoperation.c +0 -66
  132. data/ext/gio2/gnetworkaddress.c +0 -57
  133. data/ext/gio2/gnetworkservice.c +0 -43
  134. data/ext/gio2/gseekable.c +0 -89
  135. data/ext/gio2/gsimpleasyncresult.c +0 -153
  136. data/ext/gio2/gsocketaddress.c +0 -33
  137. data/ext/gio2/gsocketconnectable.c +0 -97
  138. data/ext/gio2/gsocketconnection.c +0 -75
  139. data/ext/gio2/gsocketcontrolmessage.c +0 -80
  140. data/ext/gio2/gsocketservice.c +0 -64
  141. data/ext/gio2/gsrvtarget.c +0 -77
  142. data/ext/gio2/gtcpconnection.c +0 -27
  143. data/ext/gio2/gthemedicon.c +0 -81
  144. data/ext/gio2/gthreadedsocketservice.c +0 -40
  145. data/ext/gio2/gunixconnection.c +0 -69
  146. data/ext/gio2/gunixfdlist.c +0 -112
  147. data/ext/gio2/gunixfdmessage.c +0 -72
  148. data/ext/gio2/gunixinputstream.c +0 -49
  149. data/ext/gio2/gunixmounts.c +0 -343
  150. data/ext/gio2/gunixoutputstream.c +0 -49
  151. data/ext/gio2/gunixsocketaddress.c +0 -67
  152. data/ext/gio2/gvfs.c +0 -82
  153. data/ext/gio2/gvolume.c +0 -191
  154. data/ext/gio2/gvolumemonitor.c +0 -75
  155. data/ext/gio2/gzlibcompressor.c +0 -50
  156. data/ext/gio2/gzlibdecompressor.c +0 -43
data/ext/gio2/util.c CHANGED
@@ -1,30 +1,38 @@
1
- /* -*- c-file-style: "ruby" -*- */
1
+ /* -*- c-file-style: "ruby"; indent-tabs-mode: nil -*- */
2
2
  /*
3
- * Ruby/GIO: a Ruby binding of gio-2.0.x.
4
- * Copyright (C) 2008-2009 Ruby-GNOME2 Project Team
3
+ * Copyright (C) 2011 Ruby-GNOME2 Project Team
4
+ * Copyright (C) 2008-2009 Ruby-GNOME2 Project Team
5
5
  *
6
- * This library is free software; you can redistribute it and/or
7
- * modify it under the terms of the GNU Lesser General Public
8
- * License as published by the Free Software Foundation; either
9
- * version 2.1 of the License.
6
+ * This library is free software; you can redistribute it and/or
7
+ * modify it under the terms of the GNU Lesser General Public
8
+ * License as published by the Free Software Foundation; either
9
+ * version 2.1 of the License, or (at your option) any later version.
10
10
  *
11
- * This library is distributed in the hope that it will be useful,
12
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
- * Lesser General Public License for more details.
11
+ * This library is distributed in the hope that it will be useful,
12
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
+ * Lesser General Public License for more details.
15
15
  *
16
- * You should have received a copy of the GNU Lesser General Public
17
- * License along with this library; if not, write to the Free Software
18
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
16
+ * You should have received a copy of the GNU Lesser General Public
17
+ * License along with this library; if not, write to the Free Software
18
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
19
+ * MA 02110-1301 USA
19
20
  */
20
21
 
21
- #include "gio2.h"
22
+ #include "rbgio2private.h"
23
+
24
+
25
+ #ifndef HAVE_RB_ERRINFO
26
+ # define rb_errinfo() (ruby_errinfo)
27
+ #endif
28
+
22
29
 
23
30
  static ID s_id_enum_name;
24
31
  static ID s_id_errors;
25
32
 
26
33
  static VALUE s_errors;
27
34
 
35
+
28
36
  VALUE
29
37
  rbgio_cstr_to_rval_tainted(const char *string, gsize length)
30
38
  {
@@ -117,23 +125,45 @@ rbgio_fds_to_ary_free(gint *fds)
117
125
  rbgio_fds_to_ary_free_ensure, (VALUE)fds);
118
126
  }
119
127
 
120
- GList *
121
- rbgio_gfile_ary_to_glist(VALUE ary)
128
+ struct rbgio_gfile_ary_to_glist_args {
129
+ VALUE ary;
130
+ long n;
131
+ GList *result;
132
+ };
133
+
134
+ static VALUE
135
+ rbgio_gfile_ary_to_glist_body(VALUE value)
122
136
  {
123
- int i, n;
124
- volatile GFile *file;
125
- GList *list = NULL;
137
+ long i;
138
+ struct rbgio_gfile_ary_to_glist_args *args = (struct rbgio_gfile_ary_to_glist_args *)value;
126
139
 
127
- ary = rb_ary_to_ary(ary);
128
- n = RARRAY_LEN(ary);
140
+ for (i = 0; i < args->n; i++)
141
+ args->result = g_list_append(args->result, RVAL2GFILE(RARRAY_PTR(args->ary)[i]));
129
142
 
130
- for (i = 0; i < n; i++)
131
- file = RVAL2GFILE(RARRAY_PTR(ary)[i]);
143
+ return Qnil;
144
+ }
132
145
 
133
- for (i = 0; i < n; i++)
134
- list = g_list_append(list, RVAL2GFILE(RARRAY_PTR(ary)[i]));
146
+ static G_GNUC_NORETURN VALUE
147
+ rbgio_gfile_ary_to_glist_rescue(VALUE value)
148
+ {
149
+ g_list_free(((struct rbgio_gfile_ary_to_glist_args *)value)->result);
135
150
 
136
- return list;
151
+ rb_exc_raise(rb_errinfo());
152
+ }
153
+
154
+ GList *
155
+ rbgio_gfile_ary_to_glist(VALUE value)
156
+ {
157
+ struct rbgio_gfile_ary_to_glist_args args;
158
+
159
+ args.ary = rb_ary_to_ary(value);
160
+ args.n = RARRAY_LEN(args.ary);
161
+ args.result = NULL;
162
+
163
+ rb_rescue(rbgio_gfile_ary_to_glist_body, (VALUE)&args,
164
+ rbgio_gfile_ary_to_glist_rescue, (VALUE)&args);
165
+
166
+ return args.result;
137
167
  }
138
168
 
139
169
  GList *
@@ -165,39 +195,6 @@ rbgio_rval_to_gtimeval(VALUE value, GTimeVal *time)
165
195
  }
166
196
  }
167
197
 
168
- VALUE
169
- rbgio_str_vector_to_ary(const gchar * const *vector)
170
- {
171
- int i, n;
172
- VALUE ary;
173
-
174
- if (vector == NULL)
175
- return Qnil;
176
-
177
- for (i = n = 0; vector[i] != NULL; i++)
178
- n++;
179
- ary = rb_ary_new2(n);
180
- for (i = 0; i < n; i++)
181
- RARRAY_PTR(ary)[i] = CSTR2RVAL(vector[i]);
182
-
183
- return ary;
184
- }
185
-
186
- static VALUE
187
- rbgio_str_vector_to_ary_free_ensure(gchar **vector)
188
- {
189
- g_strfreev(vector);
190
-
191
- return Qnil;
192
- }
193
-
194
- VALUE
195
- rbgio_str_vector_to_ary_free(gchar **vector)
196
- {
197
- return rb_ensure(rbgio_str_vector_to_ary, (VALUE)vector,
198
- rbgio_str_vector_to_ary_free_ensure, (VALUE)vector);
199
- }
200
-
201
198
  struct async_ready_callback_data
202
199
  {
203
200
  GAsyncResult *result;
data/lib/1.8/gio2.so CHANGED
Binary file
data/lib/1.9/gio2.so CHANGED
Binary file
@@ -0,0 +1,102 @@
1
+ module GLib
2
+ extend GLib::Deprecatable
3
+ define_deprecated_const :AppInfo, 'Gio::AppInfo'
4
+ define_deprecated_const :AppLaunchContext, 'Gio::AppLaunchContext'
5
+ define_deprecated_const :AskPasswordFlags, 'Gio::AskPasswordFlags'
6
+ define_deprecated_const :AsyncInitable, 'Gio::AsyncInitable'
7
+ define_deprecated_const :AsyncResult, 'Gio::AsyncResult'
8
+ define_deprecated_const :BufferedInputStream, 'Gio::BufferedInputStream'
9
+ define_deprecated_const :BufferedOutputStream, 'Gio::BufferedOutputStream'
10
+ define_deprecated_const :Cancellable, 'Gio::Cancellable'
11
+ define_deprecated_const :CharsetConverter, 'Gio::CharsetConverter'
12
+ define_deprecated_const :ContentType, 'Gio::ContentType'
13
+ define_deprecated_const :Converter, 'Gio::Converter'
14
+ define_deprecated_const :ConverterInputStream, 'Gio::ConverterInputStream'
15
+ define_deprecated_const :ConverterOutputStream, 'Gio::ConverterOutputStream'
16
+ define_deprecated_const :DataInputStream, 'Gio::DataInputStream'
17
+ define_deprecated_const :DataOutputStream, 'Gio::DataOutputStream'
18
+ define_deprecated_const :DataStreamByteOrder, 'Gio::DataStreamByteOrder'
19
+ define_deprecated_const :DataStreamNewlineType, 'Gio::DataStreamNewlineType'
20
+ define_deprecated_const :DesktopAppInfo, 'Gio::DesktopAppInfo'
21
+ define_deprecated_const :Drive, 'Gio::Drive'
22
+ define_deprecated_const :Emblem, 'Gio::Emblem'
23
+ define_deprecated_const :EmblemedIcon, 'Gio::EmblemedIcon'
24
+ define_deprecated_const :File, 'Gio::File'
25
+ define_deprecated_const :FileAttribute, 'Gio::FileAttribute'
26
+ define_deprecated_const :FileAttributeInfo, 'Gio::FileAttributeInfo'
27
+ define_deprecated_const :FileAttributeMatcher, 'Gio::FileAttributeMatcher'
28
+ define_deprecated_const :FileDescriptorBased, 'Gio::FileDescriptorBased'
29
+ define_deprecated_const :FileEnumerator, 'Gio::FileEnumerator'
30
+ define_deprecated_const :FileIOStream, 'Gio::FileIOStream'
31
+ define_deprecated_const :FileIcon, 'Gio::FileIcon'
32
+ define_deprecated_const :FileInfo, 'Gio::FileInfo'
33
+ define_deprecated_const :FileInputStream, 'Gio::FileInputStream'
34
+ define_deprecated_const :FileMonitor, 'Gio::FileMonitor'
35
+ define_deprecated_const :FileOutputStream, 'Gio::FileOutputStream'
36
+ define_deprecated_const :FilenameCompleter, 'Gio::FilenameCompleter'
37
+ define_deprecated_const :FilesystemPreviewType, 'Gio::FilesystemPreviewType'
38
+ define_deprecated_const :FilterInputStream, 'Gio::FilterInputStream'
39
+ define_deprecated_const :FilterOutputStream, 'Gio::FilterOutputStream'
40
+ define_deprecated_const :IO, 'Gio::IO'
41
+ define_deprecated_const :IOModule, 'Gio::IOModule'
42
+ define_deprecated_const :IOModules, 'Gio::IOModules'
43
+ define_deprecated_const :IOScheduler, 'Gio::IOScheduler'
44
+ define_deprecated_const :IOSchedulerJob, 'Gio::IOSchedulerJob'
45
+ define_deprecated_const :IOStream, 'Gio::IOStream'
46
+ define_deprecated_const :Icon, 'Gio::Icon'
47
+ define_deprecated_const :InetAddress, 'Gio::InetAddress'
48
+ define_deprecated_const :InetSocketAddress, 'Gio::InetSocketAddress'
49
+ define_deprecated_const :Initable, 'Gio::Initable'
50
+ define_deprecated_const :InputStream, 'Gio::InputStream'
51
+ define_deprecated_const :LoadableIcon, 'Gio::LoadableIcon'
52
+ define_deprecated_const :MemoryInputStream, 'Gio::MemoryInputStream'
53
+ define_deprecated_const :MemoryOutputStream, 'Gio::MemoryOutputStream'
54
+ define_deprecated_const :Mount, 'Gio::Mount'
55
+ define_deprecated_const :MountOperation, 'Gio::MountOperation'
56
+ define_deprecated_const :NetworkAddress, 'Gio::NetworkAddress'
57
+ define_deprecated_const :NetworkService, 'Gio::NetworkService'
58
+ define_deprecated_const :OutputStream, 'Gio::OutputStream'
59
+ define_deprecated_const :PasswordSave, 'Gio::PasswordSave'
60
+ define_deprecated_const :Resolver, 'Gio::Resolver'
61
+ define_deprecated_const :Seekable, 'Gio::Seekable'
62
+ define_deprecated_const :SimpleAsyncResult, 'Gio::SimpleAsyncResult'
63
+ define_deprecated_const :Socket, 'Gio::Socket'
64
+ define_deprecated_const :SocketAddress, 'Gio::SocketAddress'
65
+ define_deprecated_const :SocketAddressEnumerator, 'Gio::SocketAddressEnumerator'
66
+ define_deprecated_const :SocketClient, 'Gio::SocketClient'
67
+ define_deprecated_const :SocketConnectable, 'Gio::SocketConnectable'
68
+ define_deprecated_const :SocketConnection, 'Gio::SocketConnection'
69
+ define_deprecated_const :SocketConnectionFactory, 'Gio::SocketConnectionFactory'
70
+ define_deprecated_const :SocketControlMessage, 'Gio::SocketControlMessage'
71
+ define_deprecated_const :SocketListener, 'Gio::SocketListener'
72
+ define_deprecated_const :SocketService, 'Gio::SocketService'
73
+ define_deprecated_const :SrvTarget, 'Gio::SrvTarget'
74
+ define_deprecated_const :TcpConnection, 'Gio::TcpConnection'
75
+ define_deprecated_const :ThemedIcon, 'Gio::ThemedIcon'
76
+ define_deprecated_const :ThreadedSocketService, 'Gio::ThreadedSocketService'
77
+ define_deprecated_const :UnixConnection, 'Gio::UnixConnection'
78
+ define_deprecated_const :UnixFDList, 'Gio::UnixFDList'
79
+ define_deprecated_const :UnixFDMessage, 'Gio::UnixFDMessage'
80
+ define_deprecated_const :UnixInputStream, 'Gio::UnixInputStream'
81
+ define_deprecated_const :UnixMount, 'Gio::UnixMount'
82
+ define_deprecated_const :UnixMountMonitor, 'Gio::UnixMountMonitor'
83
+ define_deprecated_const :UnixMountPoint, 'Gio::UnixMountPoint'
84
+ define_deprecated_const :UnixMountPoints, 'Gio::UnixMountPoints'
85
+ define_deprecated_const :UnixMounts, 'Gio::UnixMounts'
86
+ define_deprecated_const :UnixOutputStream, 'Gio::UnixOutputStream'
87
+ define_deprecated_const :UnixSocketAddress, 'Gio::UnixSocketAddress'
88
+ define_deprecated_const :Vfs, 'Gio::Vfs'
89
+ define_deprecated_const :Volume, 'Gio::Volume'
90
+ define_deprecated_const :VolumeMonitor, 'Gio::VolumeMonitor'
91
+ define_deprecated_const :ZlibCompressor, 'Gio::ZlibCompressor'
92
+ define_deprecated_const :ZlibDecompressor, 'Gio::ZlibDecompressor'
93
+ define_deprecated_enums 'Gio::FilesystemPreviewType', 'FILESYSTEM_PREVIEW_TYPE'
94
+ define_deprecated_enums 'Gio::DataStreamByteOrder', 'DATA_STREAM_BYTE_ORDER'
95
+ define_deprecated_enums 'Gio::DataStreamNewlineType', 'DATA_STREAM_NEWLINE_TYPE'
96
+ define_deprecated_flags 'Gio::AskPasswordFlags', 'ASK_PASSWORD'
97
+ define_deprecated_enums 'Gio::PasswordSave', 'PASSWORD_SAVE'
98
+ define_deprecated_singleton_method :gio_has_unix?, :warn => "Use 'Gio.has_unix?'." do |_self|
99
+ Gio.has_unix?
100
+ end
101
+ end
102
+
data/lib/gio2.rb CHANGED
@@ -11,7 +11,9 @@ rescue LoadError
11
11
  require "gio2.so"
12
12
  end
13
13
 
14
- class GLib::DataInputStream
14
+ require "gio2/deprecated"
15
+
16
+ class Gio::DataInputStream
15
17
  include Enumerable
16
18
 
17
19
  def each
@@ -45,8 +47,8 @@ private
45
47
  # TODO: Add #each_byte?
46
48
  end
47
49
 
48
- if GLib.const_defined? :DesktopAppInfo
49
- class GLib::DesktopAppInfo
50
+ if Gio.const_defined? :DesktopAppInfo
51
+ class Gio::DesktopAppInfo
50
52
  class << self
51
53
  def desktop_env=(desktop_env)
52
54
  set_desktop_env desktop_env
@@ -56,7 +58,7 @@ if GLib.const_defined? :DesktopAppInfo
56
58
  end
57
59
  end
58
60
 
59
- module GLib::File
61
+ module Gio::File
60
62
  include Enumerable
61
63
 
62
64
  def eql?(other)
@@ -75,7 +77,7 @@ module GLib::File
75
77
  end
76
78
  end
77
79
 
78
- class GLib::FileEnumerator
80
+ class Gio::FileEnumerator
79
81
  include Enumerable
80
82
 
81
83
  def each(cancellable = nil)
@@ -109,25 +111,25 @@ private
109
111
  end
110
112
  end
111
113
 
112
- class GLib::FileInfo
114
+ class Gio::FileInfo
113
115
  def directory?
114
- file_type == GLib::File::Type::DIRECTORY
116
+ file_type == Gio::File::Type::DIRECTORY
115
117
  end
116
118
  end
117
119
 
118
- module GLib::Icon
120
+ module Gio::Icon
119
121
  def eql?(other)
120
122
  self === other and self == other
121
123
  end
122
124
  end
123
125
 
124
- class GLib::InputStream
126
+ class Gio::InputStream
125
127
  def pending=(pending)
126
128
  pending ? set_pending : clear_pending
127
129
  end
128
130
  end
129
131
 
130
- class GLib::Resolver
132
+ class Gio::Resolver
131
133
  class << self
132
134
  def default=(default)
133
135
  set_default default
@@ -136,7 +138,7 @@ class GLib::Resolver
136
138
  end
137
139
  end
138
140
 
139
- module GLib::SocketConnectable
141
+ module Gio::SocketConnectable
140
142
  include Enumerable
141
143
 
142
144
  def each(cancellable = nil)
@@ -147,7 +149,7 @@ module GLib::SocketConnectable
147
149
  end
148
150
  end
149
151
 
150
- class GLib::UnixFDList
152
+ class Gio::UnixFDList
151
153
  include Enumerable
152
154
 
153
155
  def each
metadata CHANGED
@@ -1,21 +1,21 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gio2
3
3
  version: !ruby/object:Gem::Version
4
- hash: 17
4
+ hash: 19
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
+ - 1
8
9
  - 0
9
- - 3
10
- version: 1.0.3
10
+ version: 1.1.0
11
11
  platform: x86-mingw32
12
12
  authors:
13
- - The Ruby-GNOME2 Proejct Team
13
+ - The Ruby-GNOME2 Project Team
14
14
  autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-09-18 00:00:00 Z
18
+ date: 2012-01-05 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: glib2
@@ -25,12 +25,12 @@ dependencies:
25
25
  requirements:
26
26
  - - ">="
27
27
  - !ruby/object:Gem::Version
28
- hash: 17
28
+ hash: 19
29
29
  segments:
30
30
  - 1
31
+ - 1
31
32
  - 0
32
- - 3
33
- version: 1.0.3
33
+ version: 1.1.0
34
34
  type: :runtime
35
35
  version_requirements: *id001
36
36
  description: Ruby/GIO2 is a Ruby binding of gio-2.x.
@@ -42,95 +42,107 @@ extensions: []
42
42
  extra_rdoc_files: []
43
43
 
44
44
  files:
45
- - ChangeLog
46
45
  - README
47
46
  - Rakefile
48
47
  - extconf.rb
49
48
  - lib/gio2.rb
50
- - ext/gio2/gunixfdlist.c
51
- - ext/gio2/gasyncinitable.c
52
- - ext/gio2/gfilemonitor.c
53
- - ext/gio2/gappinfo.c
54
- - ext/gio2/gfileiostream.c
55
- - ext/gio2/ginetaddress.c
56
- - ext/gio2/gzlibdecompressor.c
57
- - ext/gio2/ginetsocketaddress.c
58
- - ext/gio2/gfileenumerator.c
59
- - ext/gio2/gfileattributeinfo.c
60
- - ext/gio2/gfileinfo.c
61
- - ext/gio2/gemblemedicon.c
62
- - ext/gio2/gseekable.c
63
- - ext/gio2/gmountoperation.c
64
- - ext/gio2/gresolver.c
65
- - ext/gio2/gsrvtarget.c
66
- - ext/gio2/gfileinputstream.c
67
- - ext/gio2/gbufferedinputstream.c
68
- - ext/gio2/gicon.c
69
- - ext/gio2/gfiledescriptorbased.c
70
- - ext/gio2/gnetworkservice.c
71
- - ext/gio2/gnetworkaddress.c
72
- - ext/gio2/gsocketconnectable.c
73
- - ext/gio2/gsocketcontrolmessage.c
74
- - ext/gio2/gdesktopappinfo.c
75
- - ext/gio2/gfilteroutputstream.c
76
- - ext/gio2/gvolumemonitor.c
77
- - ext/gio2/gioerror.c
78
- - ext/gio2/gmemoryoutputstream.c
79
- - ext/gio2/gfileattributematcher.c
80
- - ext/gio2/gcancellable.c
81
- - ext/gio2/gconverteroutputstream.c
82
- - ext/gio2/gioscheduler.c
49
+ - lib/gio2/deprecated.rb
50
+ - ext/gio2/rbgiosocketcontrolmessage.c
51
+ - ext/gio2/rbgioasyncresult.c
52
+ - ext/gio2/rbgioiomodules.c
53
+ - ext/gio2/rbgiozlibdecompressor.c
54
+ - ext/gio2/rbgioconverteroutputstream.c
55
+ - ext/gio2/rbgiosrvtarget.c
56
+ - ext/gio2/rbgioloadableicon.c
57
+ - ext/gio2/rbgiofilemonitor.c
58
+ - ext/gio2/rbgiofilteroutputstream.c
59
+ - ext/gio2/rbgio2conversions.h
60
+ - ext/gio2/rbgio2private.h
61
+ - ext/gio2/rbgioconverter.c
62
+ - ext/gio2/rbgiofileattribute.c
63
+ - ext/gio2/rbgioinitable.c
64
+ - ext/gio2/rbgiomountoperation.c
65
+ - ext/gio2/rbgiofilenamecompleter.c
66
+ - ext/gio2/rbgiounixfdlist.c
67
+ - ext/gio2/rbgiothemedicon.c
68
+ - ext/gio2/rbgioasyncinitable.c
69
+ - ext/gio2/rbgiofileenumerator.c
70
+ - ext/gio2/rbgioicon.c
71
+ - ext/gio2/rbgiosocketaddressenumerator.c
72
+ - ext/gio2/rbgiounixmounts.c
73
+ - ext/gio2/rbgiocancellable.c
74
+ - ext/gio2/rbgiovolumemonitor.c
75
+ - ext/gio2/rbgiounixfdmessage.c
76
+ - ext/gio2/rbgioinputstream.c
77
+ - ext/gio2/rbgiosocketclient.c
78
+ - ext/gio2/rbgioapplaunchcontext.c
79
+ - ext/gio2/rbgiothreadedsocketservice.c
80
+ - ext/gio2/rbgiodesktopappinfo.c
81
+ - ext/gio2/rbgiovfs.c
82
+ - ext/gio2/rbgiofile.c
83
+ - ext/gio2/rbgioioscheduler.c
84
+ - ext/gio2/rbgiofileinputstream.c
85
+ - ext/gio2/rbgiounixmountpoints.c
86
+ - ext/gio2/rbgiosocketconnection.c
87
+ - ext/gio2/rbgiofileicon.c
88
+ - ext/gio2/rbgiobufferedinputstream.c
89
+ - ext/gio2/rbgio2.h
90
+ - ext/gio2/rbgiovolume.c
91
+ - ext/gio2/rbgioresolver.c
92
+ - ext/gio2/rbgiobufferedoutputstream.c
93
+ - ext/gio2/rbgiosimpleasyncresult.c
94
+ - ext/gio2/rbgiounixconnection.c
83
95
  - ext/gio2/gio2.h
84
- - ext/gio2/gsocketservice.c
85
- - ext/gio2/gconverter.c
86
- - ext/gio2/gfile.c
87
- - ext/gio2/gunixoutputstream.c
88
- - ext/gio2/gdatainputstream.c
89
- - ext/gio2/gfileattribute.c
90
- - ext/gio2/gdataoutputstream.c
91
- - ext/gio2/gcontenttype.c
96
+ - ext/gio2/rbgiounixmountpoint.c
97
+ - ext/gio2/rbgiomount.c
98
+ - ext/gio2/rbgiofileoutputstream.c
99
+ - ext/gio2/rbgiounixsocketaddress.c
100
+ - ext/gio2/rbgiofiledescriptorbased.c
101
+ - ext/gio2/rbgiosocketconnectable.c
102
+ - ext/gio2/rbgiofileinfo.c
103
+ - ext/gio2/rbgiocharsetconverter.c
104
+ - ext/gio2/rbgioemblemedicon.c
105
+ - ext/gio2/rbgiosocketaddress.c
106
+ - ext/gio2/rbgiofileattributeinfo.c
92
107
  - ext/gio2/gio2.c
93
- - ext/gio2/gmount.c
108
+ - ext/gio2/rbgionetworkaddress.c
109
+ - ext/gio2/rbgioiostream.c
94
110
  - ext/gio2/extconf.rb
95
- - ext/gio2/ginitable.c
96
- - ext/gio2/gasyncresult.c
97
- - ext/gio2/gunixconnection.c
98
- - ext/gio2/gsocketconnection.c
99
- - ext/gio2/gsocket.c
100
- - ext/gio2/gzlibcompressor.c
101
- - ext/gio2/gvfs.c
102
- - ext/gio2/gmemoryinputstream.c
103
- - ext/gio2/gsimpleasyncresult.c
104
- - ext/gio2/gvolume.c
105
- - ext/gio2/goutputstream.c
106
- - ext/gio2/gsocketaddress.c
107
- - ext/gio2/gfileattributeinfolist.c
108
- - ext/gio2/gfilenamecompleter.c
109
- - ext/gio2/gdrive.c
110
- - ext/gio2/gtcpconnection.c
111
- - ext/gio2/gfileoutputstream.c
112
- - ext/gio2/giostream.c
113
- - ext/gio2/gunixfdmessage.c
111
+ - ext/gio2/rbgiomemoryoutputstream.c
112
+ - ext/gio2/rbgiofileattributeinfolist.c
113
+ - ext/gio2/rbgionetworkservice.c
114
+ - ext/gio2/rbgiosocketlistener.c
115
+ - ext/gio2/rbgiocontenttype.c
116
+ - ext/gio2/rbgioinetsocketaddress.c
117
+ - ext/gio2/rbgiodrive.c
118
+ - ext/gio2/rbgioinetaddress.c
119
+ - ext/gio2/rbgiofileiostream.c
120
+ - ext/gio2/rbgiodataoutputstream.c
121
+ - ext/gio2/rbgioemblem.c
122
+ - ext/gio2/rbgioio.c
123
+ - ext/gio2/rbgiosocketconnectionfactory.c
124
+ - ext/gio2/rbgiotcpconnection.c
125
+ - ext/gio2/rbgioconverterinputstream.c
114
126
  - ext/gio2/util.c
115
- - ext/gio2/gsocketlistener.c
116
- - ext/gio2/gfilterinputstream.c
117
- - ext/gio2/gthemedicon.c
118
- - ext/gio2/gloadableicon.c
119
- - ext/gio2/gapplaunchcontext.c
120
- - ext/gio2/gunixmounts.c
121
- - ext/gio2/gunixsocketaddress.c
122
- - ext/gio2/gcharsetconverter.c
123
- - ext/gio2/gsocketclient.c
124
- - ext/gio2/giomodule.c
127
+ - ext/gio2/rbgiounixmountmonitor.c
128
+ - ext/gio2/rbgiounixoutputstream.c
129
+ - ext/gio2/rbgiosocket.c
130
+ - ext/gio2/rbgiozlibcompressor.c
131
+ - ext/gio2/rbgiounixmount.c
132
+ - ext/gio2/rbgio.c
133
+ - ext/gio2/rbgioseekable.c
134
+ - ext/gio2/rbgiofilterinputstream.c
135
+ - ext/gio2/rbgiofileattributematcher.c
125
136
  - ext/gio2/depend
126
- - ext/gio2/ginputstream.c
127
- - ext/gio2/gbufferedoutputstream.c
128
- - ext/gio2/gfileicon.c
129
- - ext/gio2/gunixinputstream.c
130
137
  - ext/gio2/gio2.def
131
- - ext/gio2/gemblem.c
132
- - ext/gio2/gconverterinputstream.c
133
- - ext/gio2/gthreadedsocketservice.c
138
+ - ext/gio2/rbgioiomodule.c
139
+ - ext/gio2/rbgiodatainputstream.c
140
+ - ext/gio2/rbgiooutputstream.c
141
+ - ext/gio2/rbgiosocketservice.c
142
+ - ext/gio2/rbgiomemoryinputstream.c
143
+ - ext/gio2/rbgiounixinputstream.c
144
+ - ext/gio2/rbgioioschedulerjob.c
145
+ - ext/gio2/rbgioappinfo.c
134
146
  - test/test_bufferedinputstream.rb
135
147
  - test/test_filemonitor.rb
136
148
  - test/test_inetaddress.rb
@@ -171,7 +183,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
171
183
  requirements: []
172
184
 
173
185
  rubyforge_project:
174
- rubygems_version: 1.7.2
186
+ rubygems_version: 1.8.12
175
187
  signing_key:
176
188
  specification_version: 3
177
189
  summary: Ruby/GIO2 is a Ruby binding of gio-2.x.