smps 0.3.3 → 0.3.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. checksums.yaml +4 -4
  2. data/changelog.md +4 -0
  3. data/exe/smps +5 -1
  4. data/lib/smps/version.rb +1 -1
  5. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 45726b22b9b1656ce417d47fec4e4a811bc0f532
4
- data.tar.gz: 7e7e42647231aa41f5f477bf0d635ce18de7b510
3
+ metadata.gz: 8543dab65697a71c1ed88ab0891d42ba172f8f19
4
+ data.tar.gz: d782a5b1800eb519bc82ede934de3c4d3e909a83
5
5
  SHA512:
6
- metadata.gz: 3369bf6cf940ac85300d11ba159b9a509fb90348bff06208eed0d9c607b742e95189a224d42650525878019125c2e6ed48acf4c85a9fc10786a8e32f149f10cb
7
- data.tar.gz: 679b6c53927b469b86dfc8b14a37785cc297044bbd2a67dccba5b8be4ba5ed5318d8550428def8836d9db79c2870ade60876a81c7e40f2047909b0f3fc012f57
6
+ metadata.gz: 75f384cbfa95f4036fca82be71f0220938eacb66116d029ed9220afe0d996f440384c83f999b778e18e5404c36db1d38475928c8b0a548e7c71b9cbe44cc2051
7
+ data.tar.gz: facdd18b450b38ebf35a311d95a60cd3051f1653349225178163b24a031c1f9a20abebef2aead8c2d0f0d961cd7d32021c966dce696fd32c6a8caeaecfb39f7b
@@ -5,6 +5,10 @@ Version format based on http://semver.org/
5
5
 
6
6
  ## [Unreleased]
7
7
 
8
+ ## [0.3.4] - 2017-12-20
9
+ ### Changed
10
+ - Add http timeout to region get in helper script
11
+
8
12
  ## [0.3.3] - 2017-11-17
9
13
  ### Changed
10
14
  - Add next_token handling for get_parameters_by_path
data/exe/smps CHANGED
@@ -44,7 +44,11 @@ def region
44
44
  require 'json'
45
45
 
46
46
  uri = URI.parse('http://169.254.169.254/latest/dynamic/instance-identity/document')
47
- response = Net::HTTP.get_response(uri)
47
+ http = Net::HTTP.new(uri.host, uri.port)
48
+
49
+ http.read_timeout = 2
50
+ http.open_timeout = 2
51
+ response = http.start { |h| h.get(uri.path) }
48
52
 
49
53
  JSON.parse(response.body)['region']
50
54
  end
@@ -1,3 +1,3 @@
1
1
  class SmPs
2
- VERSION = '0.3.3'.freeze
2
+ VERSION = '0.3.4'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: smps
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.3
4
+ version: 0.3.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stefan - Zipkid - Goethals
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-11-17 00:00:00.000000000 Z
11
+ date: 2017-12-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler