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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 49a556d8024bcb3c4f8d9e9ab6a9875d1b48cb83
4
- data.tar.gz: 5ac579254436230929ffc4da6b361ab8827c2fb6
2
+ SHA256:
3
+ metadata.gz: '09696e6e58bc9e01e5f1dd5aef0566459082aa1fc7df77e4483e18ac724d8bd1'
4
+ data.tar.gz: 839af6639d529310b6bed0248f25e0a30149f5c947205f62e55d3ae721053bb7
5
5
  SHA512:
6
- metadata.gz: 5310861bfd3dc2cf397e886c8b4cec5c59cce2026058d41b37666466214837029b23acbfd539ab3ca3d33dddab827d23a3baf36e26745bdff012d3a624e2e6c8
7
- data.tar.gz: 8846956fca437b309df18e9350d9af6a523d604a409da34d261d37efcf0e932e916bba8f831b25dcf6dd9f400b355b8188c71109251bbedfd7980814e53256eb
6
+ metadata.gz: 2e056c0f5973a95b592fe617825552d63cbe38f009e440352a8dcd1c459f2ae84aff2ba124f05b78db5a4abb934ccab358c5dd0924bfc555bca09d2bd37cc143
7
+ data.tar.gz: 180f09f5dffe8a80ec0403bd57b5ae2517878e6d69ed7793244d11f794d049bd93166e6fe578ec6df64cd7c52eb4ab8d16940ff641cb76480fa7d2df0898ffec
@@ -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://www.ec2instances.info/instances.json')
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
- last_modified = Net::HTTP.start(@@uri.hostname, @@uri.port,
45
- :use_ssl => @@uri.scheme == 'https') { |http|
46
- http.request(Net::HTTP::Head.new(@@uri.request_uri))['last-modified'] }
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()
@@ -1,3 +1,3 @@
1
1
  module Vominator
2
- VERSION = "0.0.12"
2
+ VERSION = "0.0.13"
3
3
  end
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.2.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.12
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: 2017-12-21 00:00:00.000000000 Z
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.2.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
- rubyforge_project:
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.