dschn-tweetsy 0.1.6 → 0.1.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/VERSION.yml +1 -1
  2. data/lib/tweetsy/client.rb +5 -0
  3. metadata +2 -2
@@ -1,4 +1,4 @@
1
1
  ---
2
- :patch: 6
2
+ :patch: 7
3
3
  :major: 0
4
4
  :minor: 1
@@ -41,6 +41,11 @@ module Tweetsy
41
41
  end
42
42
  end
43
43
 
44
+ def friendship_exists?(user_a, user_b)
45
+ doc = request(:get, "/friendships/exists.xml?user_a=#{user_a}&user_b=#{user_b}")
46
+ (doc/:friends).inner_text == "true" ? true : false
47
+ end
48
+
44
49
  def create_friendship(id_or_screen_name)
45
50
  doc = request(:post, "/friendships/create/#{id_or_screen_name}.xml", :auth => true)
46
51
  User.new(doc.at('user'))
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dschn-tweetsy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dustin Schneider
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-04-28 00:00:00 -07:00
12
+ date: 2009-04-29 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies: []
15
15