jnunemaker-twitter 0.5.2 → 0.5.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/History +4 -0
  2. data/VERSION.yml +1 -1
  3. data/lib/twitter/base.rb +3 -1
  4. metadata +2 -2
data/History CHANGED
@@ -1,3 +1,7 @@
1
+ 0.5.3 - April 10, 2009
2
+ * 1 minor fix
3
+ * Twitter API assumed follow true whether true or false. Now only sending follow along to request if follow is true for calls to friendship_create.
4
+
1
5
  0.5.2 - April 8, 2009
2
6
  * 4 minor fixes
3
7
  * added mash as an install dependency, forgot it initially
data/VERSION.yml CHANGED
@@ -1,4 +1,4 @@
1
1
  ---
2
2
  :major: 0
3
3
  :minor: 5
4
- :patch: 2
4
+ :patch: 3
data/lib/twitter/base.rb CHANGED
@@ -69,7 +69,9 @@ module Twitter
69
69
  end
70
70
 
71
71
  def friendship_create(id, follow=false)
72
- perform_post("/friendships/create/#{id}.json", :body => {:follow => follow})
72
+ body = {}
73
+ body.merge!(:follow => follow) if follow
74
+ perform_post("/friendships/create/#{id}.json", :body => body)
73
75
  end
74
76
 
75
77
  def friendship_destroy(id)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jnunemaker-twitter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.2
4
+ version: 0.5.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Nunemaker
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-04-08 00:00:00 -07:00
12
+ date: 2009-04-10 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency