em-msn 0.5 → 0.6

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -43,7 +43,8 @@ MSN client (EventMachine + Ruby)
43
43
  msn.on_contact_request do |email, display_name|
44
44
  puts "Contact request from #{display_name} <#{email}>"
45
45
 
46
- msn.add_contact email
46
+ msn.add_to_friends_list email
47
+ msn.add_to_allowed_list email
47
48
  end
48
49
 
49
50
  msn.connect
data/lib/msn/messenger.rb CHANGED
@@ -45,24 +45,24 @@ class Msn::Messenger
45
45
  end
46
46
  end
47
47
 
48
- # Adds a contact. Technically, this adds it to your Friends List.
49
- def add_contact(email)
48
+ # Adds a contact to your friends list.
49
+ def add_to_friends_list(email)
50
50
  send_contact_command email, 'ADL', '1'
51
51
  end
52
52
 
53
- # Removes a contact. Technically, this removes it from your Friends List.
54
- def remove_contact(email)
53
+ # Removes a contact from your friends list.
54
+ def remove_from_friends_list(email)
55
55
  send_contact_command email, 'RML', '1'
56
56
  end
57
57
 
58
- # Blocks a contact. Technically, this removes it from your Allowed List.
59
- def block_contact(email)
60
- send_contact_command email, 'RML', '2'
58
+ # Adds a contact to your allowed list.
59
+ def add_to_allowed_list(email)
60
+ send_contact_command email, 'ADL', '2'
61
61
  end
62
62
 
63
- # Unblocks a contact. Technically, this adds it to your Allowed List.
64
- def unblock_contact(email)
65
- send_contact_command email, 'ADL', '2'
63
+ # Removes a contact from your allowed list.
64
+ def remove_from_allowed_list(email)
65
+ send_contact_command email, 'RML', '2'
66
66
  end
67
67
 
68
68
  # Returns all contacts associated to this Messenger account.
data/lib/msn/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Msn
2
- VERSION = "0.5"
2
+ VERSION = "0.6"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: em-msn
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.5'
4
+ version: '0.6'
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: