buildbox 0.4 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/buildbox/configuration.rb +10 -1
- data/lib/buildbox/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a050bd03ad58521f486e051fc6a822d5c04f9277
|
4
|
+
data.tar.gz: 10994d77112e6636713d21240e9604fdecbc2c32
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f2e7cc4f706103721aacf246733161b676b4357ab697d3323ebf901b50849b331bc21253dc47c3b74add19ddbd448f3f3cd49a0aad7040fc8b4bc895ddd189c1
|
7
|
+
data.tar.gz: 0b8aa77de7244c7910e3d3f075355518286f6b13630416d09a7c3cef6caff500c662475432f60c318c108041cfd573a91c0f032db49cada8ec87d512b76951f3
|
data/Gemfile.lock
CHANGED
@@ -18,7 +18,16 @@ module Buildbox
|
|
18
18
|
end
|
19
19
|
|
20
20
|
def api_endpoint
|
21
|
-
ENV['BUILDBOX_API_ENDPOINT'] || self[:api_endpoint] || "https://agent.buildbox.io/v1"
|
21
|
+
endpoint = ENV['BUILDBOX_API_ENDPOINT'] || self[:api_endpoint] || "https://agent.buildbox.io/v1"
|
22
|
+
|
23
|
+
# hack to update legacy endpoints
|
24
|
+
if endpoint == "https://api.buildbox.io/v1"
|
25
|
+
self.api_endpoint = "https://agent.buildbox.io/v1"
|
26
|
+
save
|
27
|
+
api_endpoint
|
28
|
+
else
|
29
|
+
endpoint
|
30
|
+
end
|
22
31
|
end
|
23
32
|
|
24
33
|
def update(attributes)
|
data/lib/buildbox/version.rb
CHANGED