rubyfb 0.5.5 → 0.5.6

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG CHANGED
@@ -1,3 +1,9 @@
1
+ v0.5.6 ==
2
+ Fix rubyforge issue #28870 - by simplifying the Exception class ;)
3
+ Fix rubyforge issue #28860 - rubyfb_adapter.rb and local files as proposed by Leonid Myravjev (asm)
4
+ Merge pilcrow-scale branch - introduce column_scale() methods in ResultSet/Row classes thanks to Mike Pomraning (pilcrow)
5
+ Drop old unit test suite
6
+
1
7
  v0.5.5 ==
2
8
  Ruby 1.9 compatibility
3
9
  Initial Rails 3 support
data/Manifest CHANGED
@@ -79,4 +79,3 @@ test/StatementTest.rb
79
79
  test/TestSetup.rb
80
80
  test/TransactionTest.rb
81
81
  test/TypeTest.rb
82
- test/UnitTest.rb
data/Rakefile CHANGED
@@ -1,5 +1,5 @@
1
1
  require 'echoe'
2
- e = Echoe.new('rubyfb', '0.5.5') do |p|
2
+ e = Echoe.new('rubyfb', '0.5.6') do |p|
3
3
  p.description = "Firebird SQL access library"
4
4
  p.url = "http://rubyforge.org/projects/rubyfb"
5
5
  p.author = "George Georgiev"
data/ext/AddUser.c CHANGED
@@ -59,64 +59,57 @@ VALUE cAddUser;
59
59
  * @return A reference to the newly initialized AddUser object.
60
60
  *
61
61
  */
62
- VALUE initializeAddUser(int argc, VALUE *argv, VALUE self)
63
- {
64
- VALUE username = Qnil,
65
- password = Qnil,
66
- first = Qnil,
67
- middle = Qnil,
68
- last = Qnil,
69
- value = Qnil;
70
- int length = 0;
71
-
72
- /* Check that sufficient parameters have been supplied. */
73
- if(argc < 2)
74
- {
75
- rb_raise(rb_eArgError, "Wrong number of arguments (%d for %d).", argc, 2);
76
- }
77
-
78
- username = rb_funcall(argv[0], rb_intern("to_s"), 0);
79
- password = rb_funcall(argv[1], rb_intern("to_s"), 0);
80
- if(argc > 2)
81
- {
82
- first= rb_funcall(argv[2], rb_intern("to_s"), 0);
83
- if(argc > 3)
84
- {
85
- middle = rb_funcall(argv[3], rb_intern("to_s"), 0);
86
- if(argc > 4)
87
- {
88
- last = rb_funcall(argv[4], rb_intern("to_s"), 0);
89
- }
62
+ VALUE initializeAddUser(int argc, VALUE *argv, VALUE self) {
63
+ VALUE username = Qnil,
64
+ password = Qnil,
65
+ first = Qnil,
66
+ middle = Qnil,
67
+ last = Qnil,
68
+ value = Qnil;
69
+ int length = 0;
70
+
71
+ /* Check that sufficient parameters have been supplied. */
72
+ if(argc < 2) {
73
+ rb_raise(rb_eArgError, "Wrong number of arguments (%d for %d).", argc, 2);
74
+ }
75
+
76
+ username = rb_funcall(argv[0], rb_intern("to_s"), 0);
77
+ password = rb_funcall(argv[1], rb_intern("to_s"), 0);
78
+ if(argc > 2) {
79
+ first= rb_funcall(argv[2], rb_intern("to_s"), 0);
80
+ if(argc > 3) {
81
+ middle = rb_funcall(argv[3], rb_intern("to_s"), 0);
82
+ if(argc > 4) {
83
+ last = rb_funcall(argv[4], rb_intern("to_s"), 0);
90
84
  }
91
- }
92
-
93
- /* Check that the parameters are valid. */
94
- value = rb_funcall(username, rb_intern("length"), 0);
95
- length = TYPE(value) == T_FIXNUM ? FIX2INT(value) : NUM2INT(value);
96
- if(length < 1 || length > 31)
97
- {
98
- rb_fireruby_raise(NULL,
99
- "Invalid user name specified. A user name must not be "\
100
- "blank and may have no more than 31 characters.");
101
- }
102
-
103
- value = rb_funcall(password, rb_intern("length"), 0);
104
- length = TYPE(value) == T_FIXNUM ? FIX2INT(value) : NUM2INT(value);
105
- if(length < 1 || length > 31)
106
- {
107
- rb_fireruby_raise(NULL,
108
- "Invalid password specified. A user password must not "\
109
- "be blank and may have no more than 31 characters.");
110
- }
111
-
112
- /* Assign class values. */
113
- rb_iv_set(self, "@user_name", username);
114
- rb_iv_set(self, "@password", password);
115
- rb_iv_set(self, "@first_name", first);
116
- rb_iv_set(self, "@middle_name", middle);
117
- rb_iv_set(self, "@last_name", last);
118
-
119
- return(self);
85
+ }
86
+ }
87
+
88
+ /* Check that the parameters are valid. */
89
+ value = rb_funcall(username, rb_intern("length"), 0);
90
+ length = TYPE(value) == T_FIXNUM ? FIX2INT(value) : NUM2INT(value);
91
+ if(length < 1 || length > 31) {
92
+ rb_fireruby_raise(NULL,
93
+ "Invalid user name specified. A user name must not be " \
94
+ "blank and may have no more than 31 characters.");
95
+ }
96
+
97
+ value = rb_funcall(password, rb_intern("length"), 0);
98
+ length = TYPE(value) == T_FIXNUM ? FIX2INT(value) : NUM2INT(value);
99
+ if(length < 1 || length > 31) {
100
+ rb_fireruby_raise(NULL,
101
+ "Invalid password specified. A user password must not " \
102
+ "be blank and may have no more than 31 characters.");
103
+ }
104
+
105
+ /* Assign class values. */
106
+ rb_iv_set(self, "@user_name", username);
107
+ rb_iv_set(self, "@password", password);
108
+ rb_iv_set(self, "@first_name", first);
109
+ rb_iv_set(self, "@middle_name", middle);
110
+ rb_iv_set(self, "@last_name", last);
111
+
112
+ return(self);
120
113
  }
121
114
 
122
115
 
@@ -129,9 +122,8 @@ VALUE initializeAddUser(int argc, VALUE *argv, VALUE self)
129
122
  * @return A reference to the attribute value for the object.
130
123
  *
131
124
  */
132
- VALUE getUserName(VALUE self)
133
- {
134
- return(rb_iv_get(self, "@user_name"));
125
+ VALUE getUserName(VALUE self) {
126
+ return(rb_iv_get(self, "@user_name"));
135
127
  }
136
128
 
137
129
 
@@ -144,22 +136,20 @@ VALUE getUserName(VALUE self)
144
136
  * @return A reference to the newly update AddUser object.
145
137
  *
146
138
  */
147
- VALUE setUserName(VALUE self, VALUE setting)
148
- {
149
- VALUE actual = rb_funcall(setting, rb_intern("to_s"), 0),
150
- value = rb_funcall(actual, rb_intern("length"), 0);
151
- int length = 0;
152
-
153
- length = TYPE(value) == T_FIXNUM ? FIX2INT(value) : NUM2INT(value);
154
- if(length < 1 || length > 31)
155
- {
156
- rb_fireruby_raise(NULL,
157
- "Invalid user name specified. A user name must not be "\
158
- "blank and may have no more than 31 characters.");
159
- }
160
- rb_iv_set(self, "@user_name", actual);
161
-
162
- return(self);
139
+ VALUE setUserName(VALUE self, VALUE setting) {
140
+ VALUE actual = rb_funcall(setting, rb_intern("to_s"), 0),
141
+ value = rb_funcall(actual, rb_intern("length"), 0);
142
+ int length = 0;
143
+
144
+ length = TYPE(value) == T_FIXNUM ? FIX2INT(value) : NUM2INT(value);
145
+ if(length < 1 || length > 31) {
146
+ rb_fireruby_raise(NULL,
147
+ "Invalid user name specified. A user name must not be " \
148
+ "blank and may have no more than 31 characters.");
149
+ }
150
+ rb_iv_set(self, "@user_name", actual);
151
+
152
+ return(self);
163
153
  }
164
154
 
165
155
 
@@ -172,9 +162,8 @@ VALUE setUserName(VALUE self, VALUE setting)
172
162
  * @return A reference to the attribute value for the object.
173
163
  *
174
164
  */
175
- VALUE getUserPassword(VALUE self)
176
- {
177
- return(rb_iv_get(self, "@password"));
165
+ VALUE getUserPassword(VALUE self) {
166
+ return(rb_iv_get(self, "@password"));
178
167
  }
179
168
 
180
169
 
@@ -187,22 +176,20 @@ VALUE getUserPassword(VALUE self)
187
176
  * @return A reference to the newly update AddUser object.
188
177
  *
189
178
  */
190
- VALUE setUserPassword(VALUE self, VALUE setting)
191
- {
192
- VALUE actual = rb_funcall(setting, rb_intern("to_s"), 0),
193
- value = rb_funcall(actual, rb_intern("length"), 0);
194
- int length = 0;
195
-
196
- length = TYPE(value) == T_FIXNUM ? FIX2INT(value) : NUM2INT(value);
197
- if(length < 1 || length > 31)
198
- {
199
- rb_fireruby_raise(NULL,
200
- "Invalid password specified. A user password must not "\
201
- "be blank and may have no more than 31 characters.");
202
- }
203
- rb_iv_set(self, "@password", actual);
204
-
205
- return(self);
179
+ VALUE setUserPassword(VALUE self, VALUE setting) {
180
+ VALUE actual = rb_funcall(setting, rb_intern("to_s"), 0),
181
+ value = rb_funcall(actual, rb_intern("length"), 0);
182
+ int length = 0;
183
+
184
+ length = TYPE(value) == T_FIXNUM ? FIX2INT(value) : NUM2INT(value);
185
+ if(length < 1 || length > 31) {
186
+ rb_fireruby_raise(NULL,
187
+ "Invalid password specified. A user password must not " \
188
+ "be blank and may have no more than 31 characters.");
189
+ }
190
+ rb_iv_set(self, "@password", actual);
191
+
192
+ return(self);
206
193
  }
207
194
 
208
195
 
@@ -215,9 +202,8 @@ VALUE setUserPassword(VALUE self, VALUE setting)
215
202
  * @return A reference to the attribute value for the object.
216
203
  *
217
204
  */
218
- VALUE getUserFirstName(VALUE self)
219
- {
220
- return(rb_iv_get(self, "@first_name"));
205
+ VALUE getUserFirstName(VALUE self) {
206
+ return(rb_iv_get(self, "@first_name"));
221
207
  }
222
208
 
223
209
 
@@ -231,10 +217,9 @@ VALUE getUserFirstName(VALUE self)
231
217
  * @return A reference to the newly update AddUser object.
232
218
  *
233
219
  */
234
- VALUE setUserFirstName(VALUE self, VALUE setting)
235
- {
236
- rb_iv_set(self, "@first_name", setting);
237
- return(self);
220
+ VALUE setUserFirstName(VALUE self, VALUE setting) {
221
+ rb_iv_set(self, "@first_name", setting);
222
+ return(self);
238
223
  }
239
224
 
240
225
 
@@ -247,9 +232,8 @@ VALUE setUserFirstName(VALUE self, VALUE setting)
247
232
  * @return A reference to the attribute value for the object.
248
233
  *
249
234
  */
250
- VALUE getUserMiddleName(VALUE self)
251
- {
252
- return(rb_iv_get(self, "@middle_name"));
235
+ VALUE getUserMiddleName(VALUE self) {
236
+ return(rb_iv_get(self, "@middle_name"));
253
237
  }
254
238
 
255
239
 
@@ -263,10 +247,9 @@ VALUE getUserMiddleName(VALUE self)
263
247
  * @return A reference to the newly update AddUser object.
264
248
  *
265
249
  */
266
- VALUE setUserMiddleName(VALUE self, VALUE setting)
267
- {
268
- rb_iv_set(self, "@middle_name", setting);
269
- return(self);
250
+ VALUE setUserMiddleName(VALUE self, VALUE setting) {
251
+ rb_iv_set(self, "@middle_name", setting);
252
+ return(self);
270
253
  }
271
254
 
272
255
 
@@ -279,9 +262,8 @@ VALUE setUserMiddleName(VALUE self, VALUE setting)
279
262
  * @return A reference to the attribute value for the object.
280
263
  *
281
264
  */
282
- VALUE getUserLastName(VALUE self)
283
- {
284
- return(rb_iv_get(self, "@last_name"));
265
+ VALUE getUserLastName(VALUE self) {
266
+ return(rb_iv_get(self, "@last_name"));
285
267
  }
286
268
 
287
269
 
@@ -295,10 +277,9 @@ VALUE getUserLastName(VALUE self)
295
277
  * @return A reference to the newly update AddUser object.
296
278
  *
297
279
  */
298
- VALUE setUserLastName(VALUE self, VALUE setting)
299
- {
300
- rb_iv_set(self, "@last_name", setting);
301
- return(self);
280
+ VALUE setUserLastName(VALUE self, VALUE setting) {
281
+ rb_iv_set(self, "@last_name", setting);
282
+ return(self);
302
283
  }
303
284
 
304
285
 
@@ -312,32 +293,29 @@ VALUE setUserLastName(VALUE self, VALUE setting)
312
293
  * @return A reference to the AddUser object executed.
313
294
  *
314
295
  */
315
- VALUE executeAddUser(VALUE self, VALUE manager)
316
- {
317
- ManagerHandle *handle = NULL;
318
- char *buffer = NULL;
319
- short length = 0;
320
- ISC_STATUS status[20];
321
-
322
- /* Check that the service manager is connected. */
323
- Data_Get_Struct(manager, ManagerHandle, handle);
324
- if(handle->handle == 0)
325
- {
326
- rb_fireruby_raise(NULL,
327
- "Add user error. Service manager not connected.");
328
- }
329
-
330
- createAddUserBuffer(self, &buffer, &length);
331
-
332
- /* Start the service request. */
333
- if(isc_service_start(status, &handle->handle, NULL, length, buffer))
334
- {
335
- free(buffer);
336
- rb_fireruby_raise(status, "Error adding user.");
337
- }
338
- free(buffer);
339
-
340
- return(self);
296
+ VALUE executeAddUser(VALUE self, VALUE manager) {
297
+ ManagerHandle *handle = NULL;
298
+ char *buffer = NULL;
299
+ short length = 0;
300
+ ISC_STATUS status[ISC_STATUS_LENGTH];
301
+
302
+ /* Check that the service manager is connected. */
303
+ Data_Get_Struct(manager, ManagerHandle, handle);
304
+ if(handle->handle == 0) {
305
+ rb_fireruby_raise(NULL,
306
+ "Add user error. Service manager not connected.");
307
+ }
308
+
309
+ createAddUserBuffer(self, &buffer, &length);
310
+
311
+ /* Start the service request. */
312
+ if(isc_service_start(status, &handle->handle, NULL, length, buffer)) {
313
+ free(buffer);
314
+ rb_fireruby_raise(status, "Error adding user.");
315
+ }
316
+ free(buffer);
317
+
318
+ return(self);
341
319
  }
342
320
 
343
321
 
@@ -351,97 +329,89 @@ VALUE executeAddUser(VALUE self, VALUE manager)
351
329
  * of the buffer.
352
330
  *
353
331
  */
354
- void createAddUserBuffer(VALUE self, char **buffer, short *length)
355
- {
356
- VALUE value = Qnil,
357
- first = Qnil,
358
- middle = Qnil,
359
- last = Qnil,
360
- tmp_str = Qnil;
361
- char *offset = NULL;
362
- int number = 0;
363
-
364
- /* Calculate the required buffer length. */
365
- *length = 1;
366
-
367
- tmp_str = rb_iv_get(self, "@user_name");
368
- *length += strlen(StringValuePtr(tmp_str)) + 3;
369
-
370
- tmp_str = rb_iv_get(self, "@password");
371
- *length += strlen(StringValuePtr(tmp_str)) + 3;
372
-
373
- value = rb_iv_get(self, "@first_name");
374
- if(value != Qnil)
375
- {
376
- first = rb_funcall(value, rb_intern("to_s"), 0);
377
- *length += strlen(StringValuePtr(first)) + 3;
378
- }
379
-
380
- value = rb_iv_get(self, "@middle_name");
381
- if(value != Qnil)
382
- {
383
- middle = rb_funcall(value, rb_intern("to_s"), 0);
384
- *length += strlen(StringValuePtr(middle)) + 3;
385
- }
386
-
387
- value = rb_iv_get(self, "@last_name");
388
- if(value != Qnil)
389
- {
390
- last = rb_funcall(value, rb_intern("to_s"), 0);
391
- *length += strlen(StringValuePtr(last)) + 3;
392
- }
393
-
394
- /* Create and populate the buffer. */
395
- offset = *buffer = ALLOC_N(char, *length);
396
- if(*buffer == NULL)
397
- {
398
- rb_raise(rb_eNoMemError,
399
- "Memory allocation error preparing to add user.");
400
- }
401
- memset(*buffer, 0, *length);
402
-
403
- *offset++ = isc_action_svc_add_user;
404
-
405
- *offset++ = isc_spb_sec_username;
406
- value = rb_iv_get(self, "@user_name");
407
- number = strlen(StringValuePtr(value));
408
- ADD_SPB_LENGTH(offset, number);
409
- memcpy(offset, StringValuePtr(value), number);
410
- offset += number;
411
-
412
- *offset++ = isc_spb_sec_password;
413
- value = rb_iv_get(self, "@password");
414
- number = strlen(StringValuePtr(value));
415
- ADD_SPB_LENGTH(offset, number);
416
- memcpy(offset, StringValuePtr(value), number);
417
- offset += number;
418
-
419
- if(first != Qnil)
420
- {
421
- *offset++ = isc_spb_sec_firstname;
422
- number = strlen(StringValuePtr(first));
423
- ADD_SPB_LENGTH(offset, number);
424
- memcpy(offset, StringValuePtr(first), number);
425
- offset += number;
426
- }
427
-
428
- if(middle != Qnil)
429
- {
430
- *offset++ = isc_spb_sec_middlename;
431
- number = strlen(StringValuePtr(middle));
432
- ADD_SPB_LENGTH(offset, number);
433
- memcpy(offset, StringValuePtr(middle), number);
434
- offset += number;
435
- }
436
-
437
- if(last != Qnil)
438
- {
439
- *offset++ = isc_spb_sec_lastname;
440
- number = strlen(StringValuePtr(last));
441
- ADD_SPB_LENGTH(offset, number);
442
- memcpy(offset, StringValuePtr(last), number);
443
- offset += number;
444
- }
332
+ void createAddUserBuffer(VALUE self, char **buffer, short *length) {
333
+ VALUE value = Qnil,
334
+ first = Qnil,
335
+ middle = Qnil,
336
+ last = Qnil,
337
+ tmp_str = Qnil;
338
+ char *offset = NULL;
339
+ int number = 0;
340
+
341
+ /* Calculate the required buffer length. */
342
+ *length = 1;
343
+
344
+ tmp_str = rb_iv_get(self, "@user_name");
345
+ *length += strlen(StringValuePtr(tmp_str)) + 3;
346
+
347
+ tmp_str = rb_iv_get(self, "@password");
348
+ *length += strlen(StringValuePtr(tmp_str)) + 3;
349
+
350
+ value = rb_iv_get(self, "@first_name");
351
+ if(value != Qnil) {
352
+ first = rb_funcall(value, rb_intern("to_s"), 0);
353
+ *length += strlen(StringValuePtr(first)) + 3;
354
+ }
355
+
356
+ value = rb_iv_get(self, "@middle_name");
357
+ if(value != Qnil) {
358
+ middle = rb_funcall(value, rb_intern("to_s"), 0);
359
+ *length += strlen(StringValuePtr(middle)) + 3;
360
+ }
361
+
362
+ value = rb_iv_get(self, "@last_name");
363
+ if(value != Qnil) {
364
+ last = rb_funcall(value, rb_intern("to_s"), 0);
365
+ *length += strlen(StringValuePtr(last)) + 3;
366
+ }
367
+
368
+ /* Create and populate the buffer. */
369
+ offset = *buffer = ALLOC_N(char, *length);
370
+ if(*buffer == NULL) {
371
+ rb_raise(rb_eNoMemError,
372
+ "Memory allocation error preparing to add user.");
373
+ }
374
+ memset(*buffer, 0, *length);
375
+
376
+ *offset++ = isc_action_svc_add_user;
377
+
378
+ *offset++ = isc_spb_sec_username;
379
+ value = rb_iv_get(self, "@user_name");
380
+ number = strlen(StringValuePtr(value));
381
+ ADD_SPB_LENGTH(offset, number);
382
+ memcpy(offset, StringValuePtr(value), number);
383
+ offset += number;
384
+
385
+ *offset++ = isc_spb_sec_password;
386
+ value = rb_iv_get(self, "@password");
387
+ number = strlen(StringValuePtr(value));
388
+ ADD_SPB_LENGTH(offset, number);
389
+ memcpy(offset, StringValuePtr(value), number);
390
+ offset += number;
391
+
392
+ if(first != Qnil) {
393
+ *offset++ = isc_spb_sec_firstname;
394
+ number = strlen(StringValuePtr(first));
395
+ ADD_SPB_LENGTH(offset, number);
396
+ memcpy(offset, StringValuePtr(first), number);
397
+ offset += number;
398
+ }
399
+
400
+ if(middle != Qnil) {
401
+ *offset++ = isc_spb_sec_middlename;
402
+ number = strlen(StringValuePtr(middle));
403
+ ADD_SPB_LENGTH(offset, number);
404
+ memcpy(offset, StringValuePtr(middle), number);
405
+ offset += number;
406
+ }
407
+
408
+ if(last != Qnil) {
409
+ *offset++ = isc_spb_sec_lastname;
410
+ number = strlen(StringValuePtr(last));
411
+ ADD_SPB_LENGTH(offset, number);
412
+ memcpy(offset, StringValuePtr(last), number);
413
+ offset += number;
414
+ }
445
415
  }
446
416
 
447
417
 
@@ -451,19 +421,18 @@ void createAddUserBuffer(VALUE self, char **buffer, short *length)
451
421
  * @param module The module to create the new class definition under.
452
422
  *
453
423
  */
454
- void Init_AddUser(VALUE module)
455
- {
456
- cAddUser = rb_define_class_under(module, "AddUser", rb_cObject);
457
- rb_define_method(cAddUser, "initialize", initializeAddUser, -1);
458
- rb_define_method(cAddUser, "user_name", getUserName, 0);
459
- rb_define_method(cAddUser, "user_name=", setUserName, 1);
460
- rb_define_method(cAddUser, "password", getUserPassword, 0);
461
- rb_define_method(cAddUser, "password=", setUserPassword, 1);
462
- rb_define_method(cAddUser, "first_name", getUserFirstName, 0);
463
- rb_define_method(cAddUser, "first_name=", setUserFirstName, 1);
464
- rb_define_method(cAddUser, "middle_name", getUserMiddleName, 0);
465
- rb_define_method(cAddUser, "middle_name=", setUserMiddleName, 1);
466
- rb_define_method(cAddUser, "last_name", getUserLastName, 0);
467
- rb_define_method(cAddUser, "last_name=", setUserLastName, 1);
468
- rb_define_method(cAddUser, "execute", executeAddUser, 1);
424
+ void Init_AddUser(VALUE module) {
425
+ cAddUser = rb_define_class_under(module, "AddUser", rb_cObject);
426
+ rb_define_method(cAddUser, "initialize", initializeAddUser, -1);
427
+ rb_define_method(cAddUser, "user_name", getUserName, 0);
428
+ rb_define_method(cAddUser, "user_name=", setUserName, 1);
429
+ rb_define_method(cAddUser, "password", getUserPassword, 0);
430
+ rb_define_method(cAddUser, "password=", setUserPassword, 1);
431
+ rb_define_method(cAddUser, "first_name", getUserFirstName, 0);
432
+ rb_define_method(cAddUser, "first_name=", setUserFirstName, 1);
433
+ rb_define_method(cAddUser, "middle_name", getUserMiddleName, 0);
434
+ rb_define_method(cAddUser, "middle_name=", setUserMiddleName, 1);
435
+ rb_define_method(cAddUser, "last_name", getUserLastName, 0);
436
+ rb_define_method(cAddUser, "last_name=", setUserLastName, 1);
437
+ rb_define_method(cAddUser, "execute", executeAddUser, 1);
469
438
  }
data/ext/AddUser.h CHANGED
@@ -25,13 +25,13 @@
25
25
  #ifndef FIRERUBY_ADD_USER_H
26
26
  #define FIRERUBY_ADD_USER_H
27
27
 
28
- /* Includes. */
28
+ /* Includes. */
29
29
  #ifndef RUBY_H_INCLUDED
30
30
  #include "ruby.h"
31
31
  #define RUBY_H_INCLUDED
32
32
  #endif
33
33
 
34
- /* Function prototypes. */
35
- void Init_AddUser(VALUE);
34
+ /* Function prototypes. */
35
+ void Init_AddUser(VALUE);
36
36
 
37
37
  #endif /* FIRERUBY_ADD_USER_H */