smps 0.3.3 → 0.3.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/changelog.md +4 -0
- data/exe/smps +5 -1
- data/lib/smps/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8543dab65697a71c1ed88ab0891d42ba172f8f19
|
4
|
+
data.tar.gz: d782a5b1800eb519bc82ede934de3c4d3e909a83
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 75f384cbfa95f4036fca82be71f0220938eacb66116d029ed9220afe0d996f440384c83f999b778e18e5404c36db1d38475928c8b0a548e7c71b9cbe44cc2051
|
7
|
+
data.tar.gz: facdd18b450b38ebf35a311d95a60cd3051f1653349225178163b24a031c1f9a20abebef2aead8c2d0f0d961cd7d32021c966dce696fd32c6a8caeaecfb39f7b
|
data/changelog.md
CHANGED
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
|
-
|
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
|
data/lib/smps/version.rb
CHANGED
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.
|
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
|
+
date: 2017-12-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|