discourse_api 0.9.0 → 0.9.1

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bfa614598891c7820dd1be6a73982e16950caac4
4
- data.tar.gz: cf2d491b91223382f4272bdf1a003be8c84fe661
3
+ metadata.gz: dbc6150cf90a713a717bb35e1022220d45e45e5e
4
+ data.tar.gz: 835c9491eb2f74017208eedfd0c5b25438666f69
5
5
  SHA512:
6
- metadata.gz: e09cb8531f1e2ff99d138176a0684be30f4ff3a5c1f68b81e5a9b5a9396769adcacf9596b98f2a5e68ac6a8acf04d0bda8be33d9c1ea83a87c03e2a8cbaf5c7e
7
- data.tar.gz: 735e055ee3754052a1247772bd077f59f74a62b74944e750a9006424a3d9283c734530eed226ac7c612a7bd82d750058e6f00d43ad8194d3658ca75263a831f9
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
@@ -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(post_id: 1, post_action_type_id: 2)
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(topic_id: 1, post_action_type_id: 8)
22
+ client.create_topic_action(id: 1, post_action_type_id: 8)
23
23
 
24
24
  # Unlike a post
25
- client.destroy_post_action(post_id: 1, post_action_type_id: 2)
25
+ client.destroy_post_action(id: 3, post_action_type_id: 2)
@@ -9,7 +9,7 @@ module DiscourseApi
9
9
 
10
10
  def create_post_action(args)
11
11
  args = API.params(args)
12
- .required(:post_id, :post_action_type_id)
12
+ .required(:id, :post_action_type_id)
13
13
  post("/post_actions", args.to_h.merge(flag_topic: false))
14
14
  end
15
15
 
@@ -13,7 +13,7 @@ module DiscourseApi
13
13
 
14
14
  def create_topic_action(args)
15
15
  args = API.params(args)
16
- .required(:topic_id, :post_action_type_id)
16
+ .required(:id, :post_action_type_id)
17
17
  post("/post_actions", args.to_h.merge(flag_topic: true))
18
18
  end
19
19
 
@@ -1,3 +1,3 @@
1
1
  module DiscourseApi
2
- VERSION = "0.9.0"
2
+ VERSION = "0.9.1"
3
3
  end
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.0
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-22 00:00:00.000000000 Z
14
+ date: 2016-03-24 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: faraday