mambanation 0.1.17 → 0.1.18
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 +4 -4
- metadata +3 -3
data/VERSION.yml
CHANGED
data/lib/mambanation/base.rb
CHANGED
@@ -144,12 +144,12 @@ module MambaNation
|
|
144
144
|
perform_get("/posts/#{id}.json", :query => query)
|
145
145
|
end
|
146
146
|
|
147
|
-
def user_posts(id,
|
148
|
-
perform_get("/users/#{id.to_i}/posts.json", :query =>
|
147
|
+
def user_posts(id, application_id, query = {})
|
148
|
+
perform_get("/users/#{id.to_i}/posts.json", :query => { :application_id => application_id }.merge(query))
|
149
149
|
end
|
150
150
|
|
151
|
-
def create_post(id,
|
152
|
-
perform_post("/posts", :body => { :
|
151
|
+
def create_post(id, post, application_id)
|
152
|
+
perform_post("/posts", :body => { :user_id => id, :post => post, :application_id => application_id })
|
153
153
|
end
|
154
154
|
|
155
155
|
def publish_post(id, stream_id)
|
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: 63
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 18
|
10
|
+
version: 0.1.18
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Jeremy Van de Wyngaert
|