bbc-cosmos-config 0.3.0 → 0.3.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: e7a3406d1d342dfdcb5da6f16df47eae1e69ea76
4
- data.tar.gz: 0a432c532e36143fd247538b7a99ff10d859b4f3
3
+ metadata.gz: e2f01ee858d6123677c9db43611a8d0b2d9064c2
4
+ data.tar.gz: efc1a741a67216254bd49c44beb01939c310788f
5
5
  SHA512:
6
- metadata.gz: e8e61dc6ea4583c0fa548a3afdeb751506da91a62a7aaaf5fcfa5976a1c56103e6337c7bca45d39ea7d190443b575f9c731ab46bb04e11df42914c7c842953b1
7
- data.tar.gz: 68d4193def2ddaf8ec12774b28811c8ba595d5320cb989e1708af2868db9121cafb6dbdfe22ea49d85c6654da9709237a064530e12a1dfd60235b410043232a9
6
+ metadata.gz: 693f8111742296ad675451f3355ffcb5b68357b2485ab1c7f6282cd5b6b682dc434e7d9358baa599fb67fb91da22ee2f6504a8afa17219c2946ee15d0c924eb4
7
+ data.tar.gz: d1be4a5f09196c5ee57be21a0d458964afe32778fbc7181a920815d19b9e95b99a30c155684dfb113011dd5a172f0b19d0e64ea645d4fc125e83631d42ef9185
@@ -19,15 +19,13 @@ module BBC
19
19
  @instance_id ||= BBC::Cosmos.production? ? aws_instance_id : "instance_id"
20
20
  end
21
21
 
22
- private
23
-
24
22
  def s3_config_location
25
23
  tags['AppName']
26
24
  end
27
25
 
28
26
  def s3_config(config)
29
27
  path = [
30
- config[:configuration][:config_path],
28
+ config[:configuration][:config_path],
31
29
  config[:environment],
32
30
  'config',
33
31
  config[:configuration][:commit],
@@ -37,6 +35,8 @@ module BBC
37
35
  JSON.parse(@s3.buckets[config[:component_resources_bucket]].objects[path].read, :symbolize_names => true)
38
36
  end
39
37
 
38
+ private
39
+
40
40
  def instance
41
41
  BBC::Cosmos.production? ? aws_instance : dummy_instance
42
42
  end
@@ -1,7 +1,7 @@
1
1
  module BBC
2
2
  module Cosmos
3
3
  module Config
4
- VERSION = "0.3.0"
4
+ VERSION = "0.3.1"
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bbc-cosmos-config
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Robert Kenny
@@ -206,7 +206,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
206
206
  version: '0'
207
207
  requirements: []
208
208
  rubyforge_project:
209
- rubygems_version: 2.2.2
209
+ rubygems_version: 2.0.3
210
210
  signing_key:
211
211
  specification_version: 4
212
212
  summary: Config wrapper gem for Ruby apps running on Cosmos