mikedamage-tweeb 0.4.3 → 0.4.4

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.3
1
+ 0.4.4
@@ -224,9 +224,9 @@ module Tweeb
224
224
  end
225
225
  alias_method :unfollow, :unfriend
226
226
 
227
- def friendship_info(target, source=nil)
227
+ def friendship_info(target, source="")
228
228
  query = Hash.new
229
- if source
229
+ unless source.empty?
230
230
  if source.is_a?(Fixnum)
231
231
  query[:source_id] = source
232
232
  elsif source.is_a?(String)
@@ -244,8 +244,8 @@ module Tweeb
244
244
  @masher.call(json)
245
245
  end
246
246
 
247
- def friendship_exists?(target, source=nil)
248
- rel = source.nil? ? friendship_info(target) : friendship_info(target, source)
247
+ def friendship_exists?(target, source="")
248
+ rel = source.empty? ? friendship_info(target) : friendship_info(target, source)
249
249
  return true if rel.relationship.source.following && rel.relationship.target.following
250
250
  false
251
251
  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.3
4
+ version: 0.4.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mike Green