tdi 0.1.10 → 0.1.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9de62281e844f8965d463c0014d471097eac24ea
4
- data.tar.gz: cd7879f5366c1a243e4d046511fbe7080fa8521b
3
+ metadata.gz: 99f0419bc2ef57a0a43939b09714e63948a22f9c
4
+ data.tar.gz: 29aa13c924828558efa023ca679af446baf37abb
5
5
  SHA512:
6
- metadata.gz: 12e7264c5490ae4ab679e90c8ca365ab273d0ac2143762159ab484a97eb608fa1ab9c91ee1b25940713ba41b68e1870fd60b4e0224d9163727841ff7358c5e83
7
- data.tar.gz: ef4e4ee90aa784fd7d311237e38a496476f6c9b5a1b2239ff2e827792b6c1d8f1257b4a66c930b20535b5e4768d6b636a8e92273490dbd824d1ee0803b601773
6
+ metadata.gz: d1406c174a1267c7b1afd817de1c5bf14a2836b4ce5acba13d3e391ce3504cc7942abb4b681b36ce3966477ae21f37568ac7e7edcbf82ccb1a985d0ac70c558e
7
+ data.tar.gz: ed3a5e1258a71297ccfb325942d90dff9305c725ad090e7441fde6f44478f54bf017530786b24903819425f3fc7a7ecc26bc396025ce96e19d32421ab41f5bbf
@@ -1 +1 @@
1
- ruby-2.1.2
1
+ ruby-2.3.0
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- tdi (0.1.10)
4
+ tdi (0.1.11)
5
5
  awesome_print
6
6
  colorize
7
7
  etc
@@ -9,20 +9,22 @@ PATH
9
9
  net-ssh
10
10
  os
11
11
  slop (~> 3.6)
12
- timeout (= 0.0.0)
12
+ timeout
13
13
 
14
14
  GEM
15
15
  remote: https://rubygems.org/
16
16
  specs:
17
- awesome_print (1.6.1)
18
- colorize (0.7.7)
17
+ awesome_print (1.7.0)
18
+ colorize (0.8.1)
19
19
  etc (0.2.0)
20
20
  ipaddress (0.8.3)
21
- net-ssh (3.1.1)
21
+ net-ssh (3.2.0)
22
22
  os (0.9.6)
23
- rake (11.1.2)
23
+ rake (11.2.2)
24
24
  slop (3.6.0)
25
- timeout (0.0.0)
25
+ timeout (0.0.1)
26
+ timeout-extensions
27
+ timeout-extensions (0.1.1)
26
28
 
27
29
  PLATFORMS
28
30
  ruby
@@ -31,3 +33,6 @@ DEPENDENCIES
31
33
  bundler (~> 1.5)
32
34
  rake
33
35
  tdi!
36
+
37
+ BUNDLED WITH
38
+ 1.12.5
@@ -46,7 +46,7 @@ class TDIPlan < TDI
46
46
  res_str = "#{host}/#{addr}:#{port}"
47
47
  res_dict = {host: host, addr: addr, port: port, net: origin_network(host)}
48
48
 
49
- timeout(timeout_limit) do
49
+ Timeout::timeout(timeout_limit) do
50
50
  begin
51
51
  sock = TCPSocket.open(addr, port)
52
52
  sock.close
@@ -82,7 +82,7 @@ class TDIPlan < TDI
82
82
  if not proxy.nil? and not proxy_port.nil?
83
83
  proxy_addr = getaddress(proxy).to_s
84
84
  http = Net::HTTP::Proxy(proxy, proxy_port)
85
- timeout(timeout_limit) do
85
+ Timeout::timeout(timeout_limit) do
86
86
  begin
87
87
  http.start(host, port, use_ssl: ssl, verify_mode: OpenSSL::SSL::VERIFY_NONE) { |http|
88
88
  response = http.get(path)
@@ -99,7 +99,7 @@ class TDIPlan < TDI
99
99
  http.use_ssl = true
100
100
  http.verify_mode = OpenSSL::SSL::VERIFY_NONE
101
101
  end
102
- timeout(timeout_limit) do
102
+ Timeout::timeout(timeout_limit) do
103
103
  begin
104
104
  http.start() { |http|
105
105
  response = http.get(path)
@@ -19,6 +19,7 @@
19
19
 
20
20
  require_relative '../lib/util'
21
21
  require 'net/ssh'
22
+ require 'timeout'
22
23
 
23
24
  class TDIPlan < TDI
24
25
  def ssh(role_name, plan_name, plan_content)
@@ -68,7 +69,7 @@ class TDIPlan < TDI
68
69
  res_str = "#{remote_user}@#{host}/#{addr}"
69
70
  res_dict = {local_user: local_user, remote_user: remote_user, host: host, addr: addr, net: origin_network(host)}
70
71
 
71
- timeout(timeout_limit) do
72
+ Timeout::timeout(timeout_limit) do
72
73
  ssh_session = Net::SSH.start(host,
73
74
  remote_user,
74
75
  auth_methods: ['publickey'])
@@ -18,5 +18,5 @@
18
18
  # along with TDI. If not, see <http://www.gnu.org/licenses/>.
19
19
 
20
20
  module Tdi
21
- VERSION = '0.1.10'
21
+ VERSION = '0.1.11'
22
22
  end
@@ -27,7 +27,7 @@ validating your deployed infrastructure and external dependencies.)
27
27
  spec.add_runtime_dependency 'etc'
28
28
  spec.add_runtime_dependency 'slop', '~> 3.6'
29
29
  spec.add_runtime_dependency 'colorize'
30
- spec.add_runtime_dependency 'timeout', '0.0.0'
30
+ spec.add_runtime_dependency 'timeout'
31
31
  spec.add_runtime_dependency 'net-ssh'
32
32
  spec.add_runtime_dependency 'awesome_print'
33
33
  spec.add_runtime_dependency 'ipaddress'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tdi
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.10
4
+ version: 0.1.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rogério Carvalho Schneider
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2016-04-27 00:00:00.000000000 Z
13
+ date: 2016-07-09 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: bundler
@@ -100,16 +100,16 @@ dependencies:
100
100
  name: timeout
101
101
  requirement: !ruby/object:Gem::Requirement
102
102
  requirements:
103
- - - '='
103
+ - - ">="
104
104
  - !ruby/object:Gem::Version
105
- version: 0.0.0
105
+ version: '0'
106
106
  type: :runtime
107
107
  prerelease: false
108
108
  version_requirements: !ruby/object:Gem::Requirement
109
109
  requirements:
110
- - - '='
110
+ - - ">="
111
111
  - !ruby/object:Gem::Version
112
- version: 0.0.0
112
+ version: '0'
113
113
  - !ruby/object:Gem::Dependency
114
114
  name: net-ssh
115
115
  requirement: !ruby/object:Gem::Requirement
@@ -210,7 +210,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
210
210
  version: '0'
211
211
  requirements: []
212
212
  rubyforge_project:
213
- rubygems_version: 2.2.2
213
+ rubygems_version: 2.5.1
214
214
  signing_key:
215
215
  specification_version: 4
216
216
  summary: Test Driven Infrastructure