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.
Files changed (3) hide show
  1. data/VERSION +1 -1
  2. data/lib/tweeb_client.rb +5 -4
  3. metadata +1 -1
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.4.2
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.search(query, options)
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
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mikedamage-tweeb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.2
4
+ version: 0.4.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mike Green