ahub 0.1.16 → 0.1.17

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: 169eb6b27fd64e9f80ea3ee52eb8a718c17ea71d
4
- data.tar.gz: 87dd343c65d128b4e5149912fbd41f356fbda216
3
+ metadata.gz: 51dec395f4122427774250b499935ffa9767a752
4
+ data.tar.gz: 6c246f6620f11f7d69295750e9cb368c0d2e51ea
5
5
  SHA512:
6
- metadata.gz: 67efbf0537f7758e9f1ab8677d828b13eb46b68ad007676ddc44d0e000490a614ccd16f2dc33c46c43ac252f327fa61db45182840807cea08054c59d4045afe9
7
- data.tar.gz: caf339a495443b9461985affc77859ead339d95eae36c5ffc3c62fb6b1660674fd92641a03692d22bbf9c6127b731f5a6d928b123c230f0a5520f502b7011929
6
+ metadata.gz: 82ca7eba872c110c1048f44c2753ff41277b024e972f8219af51b63eae6650c849fb29025c8bdfd79407191d1ad65ac8d1e74af9f609e27805c9176fed7bd98a
7
+ data.tar.gz: 166d305ed495919e899ac1036b048ea0f96a868d8927cf0f45d5702aff1fe888018b8bf9f03d5037ef79128abd0345d3695c85006b9b9900b679608193a7a255
data/lib/ahub/answer.rb CHANGED
@@ -6,7 +6,7 @@ module Ahub
6
6
  def self.create(question_id:, body:, username:, password:)
7
7
  url = "#{Ahub::DOMAIN}/services/v2/question/#{question_id}/answer.json"
8
8
 
9
- make_post_call(url, {body: body}, headers(username: username, password: password))
9
+ make_post_call(url: url, payload: {body: body}, headers: headers(username: username, password: password))
10
10
  end
11
11
 
12
12
  attr_reader :body, :body_as_html, :author
data/lib/ahub/group.rb CHANGED
@@ -5,6 +5,7 @@ module Ahub
5
5
 
6
6
  attr_reader :name
7
7
  def initialize(attrs)
8
+ @id = attrs[:id]
8
9
  @name = attrs[:name]
9
10
  end
10
11
 
data/lib/ahub/question.rb CHANGED
@@ -18,6 +18,7 @@ module Ahub
18
18
  attr_reader :space_id, :answerCount
19
19
 
20
20
  def initialize(attrs)
21
+ @id = attrs[:id]
21
22
  @answer_ids = attrs[:answers]
22
23
  @answerCount = attrs[:answerCount]
23
24
  @body = attrs[:body]
data/lib/ahub/space.rb CHANGED
@@ -5,6 +5,7 @@ module Ahub
5
5
 
6
6
  attr_accessor :id, :error, :name, :active, :parent_id
7
7
  def initialize(attrs)
8
+ @id = attrs[:id]
8
9
  @name = attrs[:name]
9
10
  @active = attrs[:active]
10
11
  @parent_id = attrs[:parentId]
data/lib/ahub/topic.rb CHANGED
@@ -2,5 +2,9 @@ module Ahub
2
2
  class Topic
3
3
  extend Ahub::APIHelpers
4
4
  include Ahub::ClassHelpers
5
+
6
+ def initialize(attrs)
7
+ @id = attrs[:id]
8
+ end
5
9
  end
6
10
  end
data/lib/ahub/user.rb CHANGED
@@ -25,6 +25,7 @@ module Ahub
25
25
  :active, :suspended, :deactivated
26
26
 
27
27
  def initialize(attrs)
28
+ @id = attrs[:id]
28
29
  @username = attrs[:username]
29
30
  @realname = attrs[:realname]
30
31
  @avatar_url = attrs[:avatar]
data/lib/ahub/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Ahub
2
- VERSION = "0.1.16"
2
+ VERSION = "0.1.17"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ahub
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.16
4
+ version: 0.1.17
5
5
  platform: ruby
6
6
  authors:
7
7
  - Abel Martin
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-11-10 00:00:00.000000000 Z
11
+ date: 2015-11-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rest-client