ruburple 0.0.7 → 0.0.8
Sign up to get free protection for your applications and to get access to all the features.
- data/ext/ruburple_ext.c +14 -0
- metadata +3 -3
data/ext/ruburple_ext.c
CHANGED
@@ -1471,6 +1471,19 @@ rb_ruburple_blist_buddy_get_status(VALUE self)
|
|
1471
1471
|
PURPLE_BUDDY(self, buddy);
|
1472
1472
|
return RB_RUBURPLE_PROTOCOL_ACCOUNT_STATUS((PurpleStatus *) call_and_get_result(ruburple_blist_buddy_get_status, (gpointer) buddy));
|
1473
1473
|
}
|
1474
|
+
static gpointer
|
1475
|
+
ruburple_blist_buddy_get_alias(gpointer data)
|
1476
|
+
{
|
1477
|
+
return (gpointer) purple_buddy_get_contact_alias((PurpleBuddy *) data);
|
1478
|
+
}
|
1479
|
+
|
1480
|
+
static VALUE
|
1481
|
+
rb_ruburple_blist_buddy_get_alias(VALUE self)
|
1482
|
+
{
|
1483
|
+
PurpleBuddy *buddy;
|
1484
|
+
PURPLE_BUDDY(self, buddy);
|
1485
|
+
return rb_str_new2((char *) call_and_get_result(ruburple_blist_buddy_get_alias, (gpointer) buddy));
|
1486
|
+
}
|
1474
1487
|
|
1475
1488
|
#ifdef __cplusplus
|
1476
1489
|
extern "C" {
|
@@ -1607,6 +1620,7 @@ extern "C" {
|
|
1607
1620
|
rb_define_method(rb_ruburple_blist_buddy, "account", rb_ruburple_blist_buddy_get_account, 0);
|
1608
1621
|
rb_define_method(rb_ruburple_blist_buddy, "name", rb_ruburple_blist_buddy_get_name, 0);
|
1609
1622
|
rb_define_method(rb_ruburple_blist_buddy, "status", rb_ruburple_blist_buddy_get_status, 0);
|
1623
|
+
rb_define_method(rb_ruburple_blist_buddy, "alias", rb_ruburple_blist_buddy_get_alias, 0);
|
1610
1624
|
|
1611
1625
|
rb_ruburple_blist_group = rb_define_class_under(rb_ruburple_blist, "Group", rb_ruburple_blist_node);
|
1612
1626
|
|
metadata
CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.9.2
|
|
3
3
|
specification_version: 1
|
4
4
|
name: ruburple
|
5
5
|
version: !ruby/object:Gem::Version
|
6
|
-
version: 0.0.
|
7
|
-
date: 2007-05-
|
6
|
+
version: 0.0.8
|
7
|
+
date: 2007-05-16 00:00:00 +02:00
|
8
8
|
summary: An ruby extension to libpurple.
|
9
9
|
require_paths:
|
10
10
|
- lib
|
@@ -29,8 +29,8 @@ post_install_message:
|
|
29
29
|
authors:
|
30
30
|
- Martin Kihlgren
|
31
31
|
files:
|
32
|
-
- lib/ruburple.rb
|
33
32
|
- lib/ruburple/ruburple.rb
|
33
|
+
- lib/ruburple.rb
|
34
34
|
- tests/ruburple_test.rb
|
35
35
|
- tests/test_accounts.rb
|
36
36
|
- tests/test_accounts.rb.template
|