thor-aws 0.0.4 → 0.0.5

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: 565e3683b84ee2821769a848f754c6440a835fd8
4
- data.tar.gz: 6932ebc32248f034bfb52539a24f096d69980b8d
3
+ metadata.gz: 587b96637caf8abc393a59803bc1fdea8c6ffd29
4
+ data.tar.gz: 08390e0bc98ef1890e7b22800ed53e80919a885f
5
5
  SHA512:
6
- metadata.gz: 3e8555f516ed9fa0e19c9d1cc5842c429166a2448845adff65d88612dcc827530fbe462dc3e6cd4935a1e041c327e0dac262d5f0a841510487cd2bd611b130e3
7
- data.tar.gz: bd11d6acc575473dc16e83c771875c6f080f1048518f65a31e1045775e68e981fda1796a54e7ccd7628f4f2c03d69796e57c752249ce4a23835bc5b8be9d14eb
6
+ metadata.gz: b5b8a5a5847c422160fed2f79ff12db33f1c64140b9a2dc1850c64c6718181362ce45fab371e494a4675ef71c468435cd0739c0de46c024b7ebe62ac5f12cb68
7
+ data.tar.gz: 7665c438b53dffbdad6adf7af074088ff00ee588ed9c81fe7044ea968e4611b903577926980e4075c99842618117c422b482d1333f9bf84ab44c5dc87039a2a5
@@ -1,6 +1,7 @@
1
1
  require "thor"
2
2
  require "thor/aws/version"
3
3
  require "aws-sdk"
4
+ require "timeout"
4
5
 
5
6
  module Thor::Aws
6
7
  DEFAULT_REGION = "us-east-1"
@@ -59,7 +60,7 @@ module Thor::Aws
59
60
  @own_region ||= begin
60
61
  require "net/http"
61
62
 
62
- timeout DEFAULT_REGION_TIMEOUT do
63
+ Timeout.timeout DEFAULT_REGION_TIMEOUT do
63
64
  Net::HTTP.get("169.254.169.254", "/latest/meta-data/placement/availability-zone").chop
64
65
  end
65
66
  rescue
@@ -1,3 +1,5 @@
1
- module Thor::Aws
2
- VERSION = "0.0.4"
1
+ class Thor
2
+ module Aws
3
+ VERSION = "0.0.5"
4
+ end
3
5
  end
@@ -1,7 +1,6 @@
1
1
  # coding: utf-8
2
2
  lib = File.expand_path('../lib', __FILE__)
3
3
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
- require "thor"
5
4
  require "thor/aws/version"
6
5
 
7
6
  Gem::Specification.new do |spec|
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: thor-aws
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - y13i
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-03-12 00:00:00.000000000 Z
11
+ date: 2016-01-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -136,7 +136,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
136
136
  version: '0'
137
137
  requirements: []
138
138
  rubyforge_project:
139
- rubygems_version: 2.4.5
139
+ rubygems_version: 2.4.5.1
140
140
  signing_key:
141
141
  specification_version: 4
142
142
  summary: Thor += AWS