jugyo-twitter_oauth 0.5.0.pre4 → 0.5.0.pre5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0935986e5a47b607c41d0e1ba53ee068d209c83b
4
- data.tar.gz: 5c057a076f3ad3e6018719724d63a59da7143a59
3
+ metadata.gz: 2684e4fc7ec6205ab7819ad153ecaf71fa6b84a4
4
+ data.tar.gz: 3a5c5ad2aae110114b9a4e2337e8445c3741684c
5
5
  SHA512:
6
- metadata.gz: eb0ea34bd1c4213afeec4a22723782e4e8c1dfb390435984bb7d1bb453a628d0662b570d19addb52904e1cfe0fca6048dd21ffb8acdb353e11513c5309f2848e
7
- data.tar.gz: aa9879f07445c12d5a7f1462fd4b247736efd7d144ea4c6e26ee70b67f0d156237e4c4c92dd1e42b0cd6b3c53666310e8ad4677c66c8c4f8ef4f7edf2078dbbf
6
+ metadata.gz: 0c1b07f226b9b1959800e9a4b0447a1ab0e37cc4b16b32ffa760bd9c69202ab65d0f66bda6b6d9f2b51688bf0d6e70c325bb198b82c44d607e3d23d8115b23ab
7
+ data.tar.gz: 4c3df3fc2fdd65add0ea9a18a53aad70d219e40cdd450c44933ccad19d54b3c0636bccb1630aabab0d6f7ea3bdd8d2cf34b9c19dbcc94d83edd07af4f1df0c79
@@ -4,14 +4,14 @@ module TwitterOAuth
4
4
  # Blocks the user specified in the ID parameter as the authenticating user.
5
5
  # Destroys a friendship to the blocked user if it exists.
6
6
  # Returns the blocked user in the requested format when successful.
7
- def block(id)
8
- post("/blocks/create/#{id}.json")
7
+ def block(screen_name)
8
+ post("/blocks/create.json", screen_name: screen_name)
9
9
  end
10
10
 
11
11
  # Un-blocks the user specified in the ID parameter for the authenticating user.
12
12
  # Returns the un-blocked user in the requested format when successful.
13
- def unblock(id)
14
- post("/blocks/destroy/#{id}.json")
13
+ def unblock(screen_name)
14
+ post("/blocks/destroy.json", screen_name: screen_name)
15
15
  end
16
16
 
17
17
  # Returns if the authenticating user is blocking a target user.
@@ -9,13 +9,13 @@ module TwitterOAuth
9
9
  # Favorites the status specified in the ID parameter as the authenticating user.
10
10
  # Returns the favorite status when successful.
11
11
  def favorite(id)
12
- post("/favorites/create/#{id}.json")
12
+ post("/favorites/create.json", :id => id)
13
13
  end
14
14
 
15
15
  # Un-favorites the status specified in the ID parameter as the authenticating user.
16
16
  # Returns the un-favorited status when successful.
17
17
  def unfavorite(id)
18
- post("/favorites/destroy/#{id}.json")
18
+ post("/favorites/destroy.json", :id => id)
19
19
  end
20
20
 
21
21
  end
@@ -1,3 +1,3 @@
1
1
  module TwitterOAuth
2
- VERSION = '0.5.0.pre4'
2
+ VERSION = '0.5.0.pre5'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jugyo-twitter_oauth
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0.pre4
4
+ version: 0.5.0.pre5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Richard Taylor