mikedamage-tweeb 0.4.1 → 0.4.2

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 +4 -4
  3. metadata +1 -1
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.4.1
1
+ 0.4.2
@@ -245,19 +245,19 @@ module Tweeb
245
245
 
246
246
  def friendship_exists?(target, source=nil)
247
247
  rel = source.nil? ? friendship_info(target) : friendship_info(target, source)
248
- return true if rel[:source][:following] && rel[:target][:following]
248
+ return true if rel.source.following && rel.target.following
249
249
  false
250
250
  end
251
251
 
252
252
  def following_me?(target)
253
253
  rel = friendship_info(target)
254
- return true if rel[:source][:followed_by]
254
+ return true if rel.source.followed_by
255
255
  false
256
256
  end
257
257
 
258
258
  def am_i_following?(target)
259
259
  rel = friendship_info(target)
260
- return true if rel[:source][:following]
260
+ return true if rel.source.following
261
261
  false
262
262
  end
263
263
 
@@ -270,7 +270,7 @@ module Tweeb
270
270
  end
271
271
 
272
272
  def rate_limits
273
- {:total => @rate_limit_total, :remaining => @rate_limit_remaining, :reset_time => @rate_limit_reset}
273
+ @masher.call({:total => @rate_limit_total, :remaining => @rate_limit_remaining, :reset_time => @rate_limit_reset})
274
274
  end
275
275
 
276
276
  end
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.1
4
+ version: 0.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mike Green