mambanation 0.1.1 → 0.1.2
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 +6 -2
- metadata +3 -3
data/VERSION.yml
CHANGED
data/lib/mambanation/base.rb
CHANGED
@@ -131,14 +131,18 @@ module MambaNation
|
|
131
131
|
perform_get("/users/#{id.to_i}/posts.json")
|
132
132
|
end
|
133
133
|
|
134
|
-
def
|
135
|
-
perform_post("/posts/
|
134
|
+
def create_post(post)
|
135
|
+
perform_post("/posts/create", :body => { :post => post })
|
136
136
|
end
|
137
137
|
|
138
138
|
def post(id)
|
139
139
|
perform_get("/posts/#{id.to_i}.json")
|
140
140
|
end
|
141
141
|
|
142
|
+
def publish_post(id, stream_id)
|
143
|
+
perform_post("/posts/#{id.to_i}/publish",:body =>{ :post => { :stream_id => stream_id } })
|
144
|
+
en
|
145
|
+
|
142
146
|
#
|
143
147
|
# Roles
|
144
148
|
#
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 1
|
8
|
-
-
|
9
|
-
version: 0.1.
|
8
|
+
- 2
|
9
|
+
version: 0.1.2
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Jeremy Van de Wyngaert
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2010-08-
|
17
|
+
date: 2010-08-13 00:00:00 +02:00
|
18
18
|
default_executable:
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|