mambanation 0.1.13 → 0.1.14
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.
- data/VERSION.yml +1 -1
- data/lib/mambanation/base.rb +9 -1
- metadata +5 -5
data/VERSION.yml
CHANGED
data/lib/mambanation/base.rb
CHANGED
@@ -172,6 +172,10 @@ module MambaNation
|
|
172
172
|
def user_unread_system_messages(id)
|
173
173
|
perform_get("/users/#{id.to_i}/unread_system_messages.json")
|
174
174
|
end
|
175
|
+
|
176
|
+
def read_user_message(id, message_id)
|
177
|
+
perform_post("/users/#{id.to_i}/messages/#{message_id.to_i}/read.json")
|
178
|
+
end
|
175
179
|
|
176
180
|
#
|
177
181
|
# User Announcements
|
@@ -180,6 +184,10 @@ module MambaNation
|
|
180
184
|
perform_get("/users/#{id.to_i}/announcements.json")
|
181
185
|
end
|
182
186
|
|
187
|
+
def read_user_announcement(id, announcement_id)
|
188
|
+
perform_put("/users/#{id.to_i}/announcements/#{announcement_id.to_i}/read.json")
|
189
|
+
end
|
190
|
+
|
183
191
|
protected
|
184
192
|
|
185
193
|
def self.mime_type(file)
|
@@ -216,7 +224,7 @@ module MambaNation
|
|
216
224
|
:headers => {"Content-Type" => "multipart/form-data; boundary=#{boundary}"}
|
217
225
|
}
|
218
226
|
end
|
219
|
-
|
227
|
+
|
220
228
|
def build_multipart_bodies(parts) self.class.build_multipart_bodies(parts) end
|
221
229
|
|
222
230
|
private
|
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: 7
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 14
|
10
|
+
version: 0.1.14
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Jeremy Van de Wyngaert
|
@@ -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
|
232
234
|
- test/mambanation/base_test.rb
|
233
235
|
- test/mambanation/httpauth_test.rb
|
234
|
-
- test/mambanation/request_test.rb
|
235
|
-
- test/mambanation_test.rb
|
236
236
|
- test/test_helper.rb
|