ahub 0.11.2 → 0.11.3

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: b95984f7be1aa6b2693845dd5f985d6939eeae35
4
- data.tar.gz: 74336307a7f2fb6e0ba1cdcfc7175538e438656e
3
+ metadata.gz: 051d1b6b64ee560b524c0eb1f2427db48374af92
4
+ data.tar.gz: 17802cabb559715ac37b837f36abee403b0cefc8
5
5
  SHA512:
6
- metadata.gz: 47ac0d98956f8ba05990a4d850106d68e6623704dc8d75a56824203ea5ce522204abbd6834065cd38954ffaeb7154162500296f34f497c2dde9145f249294224
7
- data.tar.gz: e9938d59e9c7d9288e35a63f2e14ca354969092b0c5da6638a7df8b53061cac75fefcf96631b3ab286553e713d0ee0d8e3d308736a8befd661e77f1c2d8642a7
6
+ metadata.gz: bf81fc791fa2fc24da5ccadefac48b28d8b8ee847d85c949ef38d9df1d9907b1bb49fb3556a3bb5168b1d05a61646a21b8d0d270cb4ca86d6c2adac15cc1b520
7
+ data.tar.gz: 6084635f28110de077db28c491e6ad156096b3ad3aef86756a60e3b537ce906b4ca419199d4385d3997af4e3f188afd552b83dda332b759537d42f15e66ba441
@@ -1,6 +1,7 @@
1
1
  module Ahub
2
2
  class Question
3
3
  include Ahub::APIResource
4
+ include Ahub::Deletable
4
5
 
5
6
  def self.create(title:, body:, topics:, space_id: nil, username:, password:)
6
7
  url = "#{base_url}.json"
@@ -18,7 +19,7 @@ module Ahub
18
19
  end
19
20
 
20
21
  def self.find_all_by_text(query:)
21
- get_resources(url: "#{base_url}.json?q=#{URI.encode(query.downcase.strip)}", headers: admin_headers, klass: Ahub::Question)
22
+ get_resources(url: "#{base_url}.json?q=#{URI.encode(query.downcase.strip.gsub('?',''))}", headers: admin_headers, klass: Ahub::Question)
22
23
  end
23
24
 
24
25
  def self.find_by_title(title)
@@ -1,3 +1,3 @@
1
1
  module Ahub
2
- VERSION = "0.11.2"
2
+ VERSION = "0.11.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ahub
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.2
4
+ version: 0.11.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Abel Martin