lucid_http 1.2.0 → 1.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/lucid_http/version.rb +1 -1
- data/lib/lucid_http.rb +5 -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: 287afdfaab49512baae00210dd80789f2099661ac15916f426d33f5935df5325
|
4
|
+
data.tar.gz: 5efff8a706349a1dcce94769b5cf242c1de4ab43a08d746b45b952abe38ef8ef
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6afec6436d0feef35b2dbe657e6e0398999512667c884015ac38e8d12336e8c59cc45f85386b906604369b05ad3be4298c5ee3158ac146b64aebbef7054feae5
|
7
|
+
data.tar.gz: cfcb9262ec8c6d631cc4b1eed9c3cab649b092783cfa40aabdb3441dc4bca4994be3fb2d0ee7a7907357984381994c8f9949a6afdabc0b0de998e09fc8fc0815
|
data/lib/lucid_http/version.rb
CHANGED
data/lib/lucid_http.rb
CHANGED
@@ -6,13 +6,17 @@ require "lucid_http/response"
|
|
6
6
|
|
7
7
|
module LucidHttp
|
8
8
|
def self.base_url
|
9
|
-
@base_url
|
9
|
+
@base_url || "http://localhost:9292"
|
10
10
|
end
|
11
11
|
|
12
12
|
def self.base_url=(new_base_url)
|
13
13
|
@base_url = new_base_url
|
14
14
|
end
|
15
15
|
|
16
|
+
def self.reset_default_base_url!
|
17
|
+
self.base_url = nil
|
18
|
+
end
|
19
|
+
|
16
20
|
class Client
|
17
21
|
def initialize(base_url: ENV.fetch("LUCID_HTTP_BASE_URL"))
|
18
22
|
LucidHttp.base_url = base_url
|