vominator 0.0.12 → 0.0.13
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/lib/vominator/ec2info.rb +4 -5
- data/lib/vominator/version.rb +1 -1
- data/vominator.gemspec +1 -1
- metadata +4 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: '09696e6e58bc9e01e5f1dd5aef0566459082aa1fc7df77e4483e18ac724d8bd1'
|
4
|
+
data.tar.gz: 839af6639d529310b6bed0248f25e0a30149f5c947205f62e55d3ae721053bb7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2e056c0f5973a95b592fe617825552d63cbe38f009e440352a8dcd1c459f2ae84aff2ba124f05b78db5a4abb934ccab358c5dd0924bfc555bca09d2bd37cc143
|
7
|
+
data.tar.gz: 180f09f5dffe8a80ec0403bd57b5ae2517878e6d69ed7793244d11f794d049bd93166e6fe578ec6df64cd7c52eb4ab8d16940ff641cb76480fa7d2df0898ffec
|
data/lib/vominator/ec2info.rb
CHANGED
@@ -12,7 +12,7 @@ module Vominator
|
|
12
12
|
|
13
13
|
class InstanceInfo
|
14
14
|
# The URI to JSON data from ec2instances.info
|
15
|
-
@@uri = URI.parse('https://
|
15
|
+
@@uri = URI.parse('https://raw.githubusercontent.com/powdahound/ec2instances.info/master/www/instances.json')
|
16
16
|
@@instances = nil
|
17
17
|
|
18
18
|
attr_accessor :filepath
|
@@ -41,10 +41,9 @@ module Vominator
|
|
41
41
|
|
42
42
|
def refresh_info?
|
43
43
|
return true if not File.exist?(self.filepath) or File.zero?(self.filepath)
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
Time.parse(last_modified) > File.ctime(self.filepath)
|
44
|
+
last_updated = File.ctime(self.filepath)
|
45
|
+
|
46
|
+
(Time.now - last_updated) > 86400
|
48
47
|
end
|
49
48
|
|
50
49
|
def get_instance_info()
|
data/lib/vominator/version.rb
CHANGED
data/vominator.gemspec
CHANGED
@@ -18,7 +18,7 @@ Gem::Specification.new do |spec|
|
|
18
18
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
19
19
|
spec.require_paths = ['lib']
|
20
20
|
|
21
|
-
spec.required_ruby_version = '>= 2.
|
21
|
+
spec.required_ruby_version = '>= 2.3.8'
|
22
22
|
|
23
23
|
spec.add_dependency 'aws-sdk', '= 2.2.18'
|
24
24
|
spec.add_dependency 'colored', '~> 1.2'
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vominator
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.13
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chris Kelly
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date:
|
13
|
+
date: 2019-10-24 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: aws-sdk
|
@@ -259,15 +259,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
259
259
|
requirements:
|
260
260
|
- - ">="
|
261
261
|
- !ruby/object:Gem::Version
|
262
|
-
version: 2.
|
262
|
+
version: 2.3.8
|
263
263
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
264
264
|
requirements:
|
265
265
|
- - ">="
|
266
266
|
- !ruby/object:Gem::Version
|
267
267
|
version: '0'
|
268
268
|
requirements: []
|
269
|
-
|
270
|
-
rubygems_version: 2.6.14
|
269
|
+
rubygems_version: 3.0.6
|
271
270
|
signing_key:
|
272
271
|
specification_version: 4
|
273
272
|
summary: Manage AWS resources from JSON templates and CLI.
|