mikedamage-tweeb 0.4.2 → 0.4.3
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/tweeb_client.rb +5 -4
- metadata +1 -1
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.4.
|
1
|
+
0.4.3
|
data/lib/tweeb_client.rb
CHANGED
@@ -132,7 +132,8 @@ module Tweeb
|
|
132
132
|
end
|
133
133
|
|
134
134
|
def search(query, options={})
|
135
|
-
Tweeb::Search.
|
135
|
+
ts = Tweeb::Search.new
|
136
|
+
ts.search(query, options)
|
136
137
|
end
|
137
138
|
|
138
139
|
def trends(type=:trends)
|
@@ -245,19 +246,19 @@ module Tweeb
|
|
245
246
|
|
246
247
|
def friendship_exists?(target, source=nil)
|
247
248
|
rel = source.nil? ? friendship_info(target) : friendship_info(target, source)
|
248
|
-
return true if rel.source.following && rel.target.following
|
249
|
+
return true if rel.relationship.source.following && rel.relationship.target.following
|
249
250
|
false
|
250
251
|
end
|
251
252
|
|
252
253
|
def following_me?(target)
|
253
254
|
rel = friendship_info(target)
|
254
|
-
return true if rel.source.followed_by
|
255
|
+
return true if rel.relationship.source.followed_by
|
255
256
|
false
|
256
257
|
end
|
257
258
|
|
258
259
|
def am_i_following?(target)
|
259
260
|
rel = friendship_info(target)
|
260
|
-
return true if rel.source.following
|
261
|
+
return true if rel.relationship.source.following
|
261
262
|
false
|
262
263
|
end
|
263
264
|
|