consul_bridge 0.1.0 → 0.1.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
  SHA1:
3
- metadata.gz: dfd60f5dd66669d4d6969825051528ff14dd1656
4
- data.tar.gz: 248189761023dfdd74584e2288e2adae7634a54a
3
+ metadata.gz: c6469f568295acf5e72c1104633560d8855b37ab
4
+ data.tar.gz: 987d91802152806c539f512b44f1bf0f44792627
5
5
  SHA512:
6
- metadata.gz: a7113cc0fac29e51400e23bf846baf8a1a505055427142630879d475132bd3b9df46c70b9058c7a73e93a3525d0fda1997fe50cd433736a06d52e24d2525beed
7
- data.tar.gz: 49b4979952902083516157256d25cce03c08460fe6160199036ac82dbc4b0700eb95b80048de91b0b5616e267ee1d6e4140a03410abdc8b54ff37ca4218ead66
6
+ metadata.gz: af4eb332b0ecdda47026cd2e92bf59963c9c9c32e29b4801fa71cb0eba14a6f2ad75c3c0f09c7faae236efd2042368d8f3ab8806980eacf466f7424b42d8cde4
7
+ data.tar.gz: f7933f4a64aa905939114aa24768e85e9d9668569d952a6638eb1a5a32fac5c778720fd4fedf0742e9e6d78673a984e0b3f1bc131276ad4e53b86f1f491671d2
@@ -17,8 +17,9 @@ module ConsulBridge
17
17
  storage = Fog::Storage.new provider: 'AWS', use_iam_profile: true
18
18
  bucket = storage.directories.get(self.bucket)
19
19
  bucket.files.each do |file|
20
- master_ips << file.key
20
+ master_ips << [file.last_modified, file.key]
21
21
  end
22
+ master_ips = master_ips.sort.reverse.collect { |file| file[1] }
22
23
 
23
24
  OpenStruct.new(
24
25
  master_ips: master_ips
@@ -1,3 +1,3 @@
1
1
  module ConsulBridge
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: consul_bridge
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Schlesinger