bitfab 0.57.2 → 0.57.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 +4 -4
- data/lib/bitfab/assertion_categories.rb +1 -4
- data/lib/bitfab/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e0ff237a0edb323605b58c1b1e9befb6b82f905c6182eae3b18834ef2aa74572
|
|
4
|
+
data.tar.gz: 226b86cb062a7f040bd7c22ed2a20536419434c788db9de103e8db81481f5778
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 90543732de9630e51151d2bebe23ad1a8947de7571d94ecd4c5d697cf6d194029d97722bddc460901628d3f9deefe47c09555150188bc5f3c1ad277ef3b3f43a
|
|
7
|
+
data.tar.gz: 6aa001f7731011af814280047cfd83e15060a91458dd92d5b7ef2078049cb7bddca00250895ee6747413088237712df1b8e619423188107224e681a01a9189dd
|
|
@@ -5,19 +5,16 @@ require "uri"
|
|
|
5
5
|
module Bitfab
|
|
6
6
|
class AssertionCategories
|
|
7
7
|
PATH = "/api/sdk/assertionCategories"
|
|
8
|
-
JUSTIFICATION_UNSET = Object.new.freeze
|
|
9
8
|
private_constant :PATH
|
|
10
|
-
private_constant :JUSTIFICATION_UNSET
|
|
11
9
|
|
|
12
10
|
def initialize(http_client)
|
|
13
11
|
@http_client = http_client
|
|
14
12
|
end
|
|
15
13
|
|
|
16
|
-
def save(title, id: nil, description: nil
|
|
14
|
+
def save(title, id: nil, description: nil)
|
|
17
15
|
payload = {"title" => title}
|
|
18
16
|
payload["id"] = id unless id.nil?
|
|
19
17
|
payload["description"] = description unless description.nil?
|
|
20
|
-
payload["justification"] = justification unless justification.equal?(JUSTIFICATION_UNSET)
|
|
21
18
|
@http_client.request(PATH, payload)["category"]
|
|
22
19
|
end
|
|
23
20
|
|
data/lib/bitfab/version.rb
CHANGED