discourse_api 0.9.0 → 0.9.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/examples/post_action.rb +3 -3
- data/lib/discourse_api/api/posts.rb +1 -1
- data/lib/discourse_api/api/topics.rb +1 -1
- data/lib/discourse_api/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dbc6150cf90a713a717bb35e1022220d45e45e5e
|
4
|
+
data.tar.gz: 835c9491eb2f74017208eedfd0c5b25438666f69
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 57617880a483fab1e1b6d9ba4392b4699df679443b852a63470fbafb8c679865ce1a37867e6561b78eb571207a04067635d566b3926de580f9377625a6052e69
|
7
|
+
data.tar.gz: b105d32350a6218d892310d6c93e90b4f4cc03c3a73d8d0f6a3c25c1cf806b1c455f56112007b2b19aeebe52e9071b26413e729f6f0722e0844b7998553e9849
|
data/CHANGELOG.md
CHANGED
@@ -2,6 +2,10 @@
|
|
2
2
|
All notable changes to this project will be documented in this file.
|
3
3
|
This project adheres to [Semantic Versioning](http://semver.org/).
|
4
4
|
|
5
|
+
## [0.9.1] - 2016-03-23
|
6
|
+
### Fixed
|
7
|
+
- topic and post like/flag need to use `:id`
|
8
|
+
|
5
9
|
## [0.9.0] - 2016-03-22
|
6
10
|
### Added
|
7
11
|
- can now like/flag topics and posts
|
data/examples/post_action.rb
CHANGED
@@ -16,10 +16,10 @@ client.api_username = "YOUR_USERNAME"
|
|
16
16
|
# 8 - Flag - Spam
|
17
17
|
|
18
18
|
# Like a post
|
19
|
-
client.create_post_action(
|
19
|
+
client.create_post_action(id: 2, post_action_type_id: 2)
|
20
20
|
|
21
21
|
# Flag a topic as spam
|
22
|
-
client.create_topic_action(
|
22
|
+
client.create_topic_action(id: 1, post_action_type_id: 8)
|
23
23
|
|
24
24
|
# Unlike a post
|
25
|
-
client.destroy_post_action(
|
25
|
+
client.destroy_post_action(id: 3, post_action_type_id: 2)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: discourse_api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sam Saffron
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date: 2016-03-
|
14
|
+
date: 2016-03-24 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: faraday
|