bitfab 0.64.9 → 0.64.10
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/http_client.rb +4 -0
- data/lib/bitfab/simulation_plan.rb +1 -0
- 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: 695e945332f1eacd1d33b085bd44c83d585b22d53d93b1a51c197b8196956a38
|
|
4
|
+
data.tar.gz: 12a2f0eb5193b336faa19cefea2b6d3e947de60925f3014fa5626665360403ce
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 66d420f41c8da030c87b6ca7aa6ec3c8bbb04c18362b51792f34288802486238f8dad71ef50888394024ee2b7c5651f352b90a0055f39d985fbaa4ed42824a75
|
|
7
|
+
data.tar.gz: 0fc406caf9c0c37c89690fe711fe90299ff6b4bc7f1d89a47fc20e5b2052258ef2aa269015d0fcbf5b4254aecbfd55d07367d0cc8c57a346f3e202a5693b9da2
|
data/lib/bitfab/http_client.rb
CHANGED
|
@@ -83,6 +83,10 @@ module Bitfab
|
|
|
83
83
|
end
|
|
84
84
|
|
|
85
85
|
def get_simulation_plan
|
|
86
|
+
# Without a key the server answers 401, so skip the request entirely.
|
|
87
|
+
key = @api_key.respond_to?(:call) ? @api_key.call : @api_key
|
|
88
|
+
raise ArgumentError, SimulationPlan::NO_API_KEY if key.to_s.strip.empty?
|
|
89
|
+
|
|
86
90
|
get("/api/sdk/sim-plan", timeout: SimulationPlan::READ_TIMEOUT)
|
|
87
91
|
end
|
|
88
92
|
|
data/lib/bitfab/version.rb
CHANGED