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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c5eb49e10f0ed93581bd12e4c0855d540df34aad9f06b16ef998ea61829083f3
4
- data.tar.gz: 922b6745441867819c4a766ea45491338c5f0d8c63be8936b85b74fd79eb4445
3
+ metadata.gz: 287afdfaab49512baae00210dd80789f2099661ac15916f426d33f5935df5325
4
+ data.tar.gz: 5efff8a706349a1dcce94769b5cf242c1de4ab43a08d746b45b952abe38ef8ef
5
5
  SHA512:
6
- metadata.gz: 6f2f53e389652a8f76670d1a8fbe687460cffb7b1dbd67a05ddfd7a5d975247d7e01a328901c8250afbb575236d7bf2780a90e4cbd63137daed265fe5cec2c22
7
- data.tar.gz: 19f08bb2b81fdb437fe4eb808643ab412d60861bc2f88e8b7d3583ceebe39c89efa4c786addaae924f01814b4c0cc7a76f7060ac6a5818548635a746437c536b
6
+ metadata.gz: 6afec6436d0feef35b2dbe657e6e0398999512667c884015ac38e8d12336e8c59cc45f85386b906604369b05ad3be4298c5ee3158ac146b64aebbef7054feae5
7
+ data.tar.gz: cfcb9262ec8c6d631cc4b1eed9c3cab649b092783cfa40aabdb3441dc4bca4994be3fb2d0ee7a7907357984381994c8f9949a6afdabc0b0de998e09fc8fc0815
@@ -1,3 +1,3 @@
1
1
  module LucidHttp
2
- VERSION = "1.2.0"
2
+ VERSION = "1.2.1"
3
3
  end
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lucid_http
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Federico Iachetti