jugyo-twitter_oauth 0.5.0.pre4 → 0.5.0.pre5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/twitter_oauth/blocks.rb +4 -4
- data/lib/twitter_oauth/favorites.rb +2 -2
- data/lib/twitter_oauth/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2684e4fc7ec6205ab7819ad153ecaf71fa6b84a4
|
4
|
+
data.tar.gz: 3a5c5ad2aae110114b9a4e2337e8445c3741684c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0c1b07f226b9b1959800e9a4b0447a1ab0e37cc4b16b32ffa760bd9c69202ab65d0f66bda6b6d9f2b51688bf0d6e70c325bb198b82c44d607e3d23d8115b23ab
|
7
|
+
data.tar.gz: 4c3df3fc2fdd65add0ea9a18a53aad70d219e40cdd450c44933ccad19d54b3c0636bccb1630aabab0d6f7ea3bdd8d2cf34b9c19dbcc94d83edd07af4f1df0c79
|
data/lib/twitter_oauth/blocks.rb
CHANGED
@@ -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(
|
8
|
-
post("/blocks/create
|
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(
|
14
|
-
post("/blocks/destroy
|
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
|
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
|
18
|
+
post("/favorites/destroy.json", :id => id)
|
19
19
|
end
|
20
20
|
|
21
21
|
end
|