mambanation 0.1.12 → 0.1.13
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION.yml +1 -1
- data/lib/mambanation/base.rb +19 -7
- data/lib/mambanation.rb +2 -0
- metadata +6 -6
data/VERSION.yml
CHANGED
data/lib/mambanation/base.rb
CHANGED
@@ -12,11 +12,11 @@ module MambaNation
|
|
12
12
|
end
|
13
13
|
|
14
14
|
#
|
15
|
-
#
|
15
|
+
# Famous
|
16
16
|
#
|
17
|
-
|
18
|
-
|
19
|
-
|
17
|
+
def famous(query = {})
|
18
|
+
perform_get("/users/famous.json", :query => query)
|
19
|
+
end
|
20
20
|
|
21
21
|
def current_user
|
22
22
|
perform_get("/users/me") unless fbs_cookies.nil?
|
@@ -89,16 +89,28 @@ module MambaNation
|
|
89
89
|
perform_get("/facets/#{id.to_i}.json")
|
90
90
|
end
|
91
91
|
|
92
|
+
def famous_facets(query = {})
|
93
|
+
perform_get("/facets/famous.json", :query => query)
|
94
|
+
end
|
95
|
+
|
92
96
|
# Options: user_id
|
93
97
|
def user_facets(id, query = {})
|
94
98
|
perform_get("/users/#{id.to_i}/facets.json", :query => query)
|
95
99
|
end
|
96
100
|
|
101
|
+
def facet_coms(id, query = {})
|
102
|
+
perform_get("/facets/#{id.to_i}/coms.json", :query => query)
|
103
|
+
end
|
104
|
+
|
105
|
+
def facet_messages(id, query = {})
|
106
|
+
perform_get("/facets/#{id.to_i}/messages.json", :query => query)
|
107
|
+
end
|
108
|
+
|
97
109
|
#
|
98
110
|
# Badges
|
99
111
|
#
|
100
|
-
def badges
|
101
|
-
perform_get("/badges.json")
|
112
|
+
def badges(query = {})
|
113
|
+
perform_get("/badges.json", :query => query)
|
102
114
|
end
|
103
115
|
|
104
116
|
def user_badges(id, query = {})
|
@@ -169,7 +181,7 @@ module MambaNation
|
|
169
181
|
end
|
170
182
|
|
171
183
|
protected
|
172
|
-
|
184
|
+
|
173
185
|
def self.mime_type(file)
|
174
186
|
case
|
175
187
|
when file =~ /\.jpg/ then 'image/jpg'
|
data/lib/mambanation.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mambanation
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 1
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 13
|
10
|
+
version: 0.1.13
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Jeremy Van de Wyngaert
|
@@ -17,7 +17,7 @@ autorequire:
|
|
17
17
|
bindir: bin
|
18
18
|
cert_chain: []
|
19
19
|
|
20
|
-
date: 2010-08-
|
20
|
+
date: 2010-08-25 00:00:00 +02:00
|
21
21
|
default_executable:
|
22
22
|
dependencies:
|
23
23
|
- !ruby/object:Gem::Dependency
|
@@ -229,8 +229,8 @@ signing_key:
|
|
229
229
|
specification_version: 3
|
230
230
|
summary: wrapper for mambanation-api
|
231
231
|
test_files:
|
232
|
-
- test/mambanation_test.rb
|
233
|
-
- test/mambanation/request_test.rb
|
234
232
|
- test/mambanation/base_test.rb
|
235
233
|
- test/mambanation/httpauth_test.rb
|
234
|
+
- test/mambanation/request_test.rb
|
235
|
+
- test/mambanation_test.rb
|
236
236
|
- test/test_helper.rb
|