buildbox 0.4 → 0.4.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 27d1513d8d309bceab4f388476844564a5163ff7
4
- data.tar.gz: 40dca9e43b72d5faff3e1bd0fa0b50da2fea8de7
3
+ metadata.gz: a050bd03ad58521f486e051fc6a822d5c04f9277
4
+ data.tar.gz: 10994d77112e6636713d21240e9604fdecbc2c32
5
5
  SHA512:
6
- metadata.gz: d737db962c9335eb724e0538813282e5a2f197431fc49bb17f05b7e20d5a5908f227db59a8af6976a7f7eb4fab813dffef28fd8924b6cf76835f9234bf40b69d
7
- data.tar.gz: 3ba1a9106292b8e7c42518a4b46488079d6ca28d76cc88abbfabace11cc28391ffaf552320af0de72cf2e6a1fb8c2c4e4f835b7532df33f249e85f9e439e200b
6
+ metadata.gz: f2e7cc4f706103721aacf246733161b676b4357ab697d3323ebf901b50849b331bc21253dc47c3b74add19ddbd448f3f3cd49a0aad7040fc8b4bc895ddd189c1
7
+ data.tar.gz: 0b8aa77de7244c7910e3d3f075355518286f6b13630416d09a7c3cef6caff500c662475432f60c318c108041cfd573a91c0f032db49cada8ec87d512b76951f3
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- buildbox (0.4)
4
+ buildbox (0.4.1)
5
5
  celluloid (~> 0.14)
6
6
  childprocess (~> 0.3)
7
7
  faraday (~> 0.8)
@@ -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)
@@ -1,3 +1,3 @@
1
1
  module Buildbox
2
- VERSION = "0.4"
2
+ VERSION = "0.4.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: buildbox
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.4'
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Keith Pitt