serverspec 0.16.0 → 1.0.0

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: 5f9e60dffbf889e149689ae2ea4756c01481327c
4
- data.tar.gz: edb2f01c08ea0b3dac4756db8d3a3e3d5e335946
3
+ metadata.gz: 6465c0cb3fd1e3c207bfab4b6de1e09771b4b0e8
4
+ data.tar.gz: b28a47a69b3c7fc326e3ef0155d4c7d722443f71
5
5
  SHA512:
6
- metadata.gz: e4824f8eb7bec9311ba75c841fcab072ba5fc798ba1d6549d9a1b36c55ed6b73fd280050a360c2330b35275166365a4040d99a8002f11d1fbeb96d5084586e00
7
- data.tar.gz: 4f7dcf8119978f055aa659c65f998db32ec3d4cf0b270f76b2dbdd7b433485b369ace1873d18c7061ba8e0a0d2b1b22389f1c6b82a9b58f6e7e720db6da1e0f2
6
+ metadata.gz: 3c8cdd616012454564afcc9593b5a91431bd46ba001ccb8bec99cd63d89faa5fe7500e714baeb6eaffeb1539a468630b6e2b37ac490be21893fbf75908c97672
7
+ data.tar.gz: 8d607e79f5876652dbda649c88b206c63fb0601be455d39cc5025917f12222a6e29bd599c0760febcbc25b75f846f44380df33f4ac0c92eb32aaf7d0267b9cdb
data/.travis.yml CHANGED
@@ -12,7 +12,3 @@ before_install:
12
12
  script:
13
13
  - bundle exec rake spec
14
14
 
15
- matrix:
16
- allow_failures:
17
- - rvm: 2.0.0
18
-
@@ -8,6 +8,10 @@ module Serverspec
8
8
  def reachable?(port, proto, timeout)
9
9
  backend.check_reachable(@name, port, proto, timeout)
10
10
  end
11
+
12
+ def ipaddress
13
+ backend.get_ipaddress_of_host(@name).stdout.strip
14
+ end
11
15
  end
12
16
  end
13
17
  end
@@ -1,3 +1,3 @@
1
1
  module Serverspec
2
- VERSION = "0.16.0"
2
+ VERSION = "1.0.0"
3
3
  end
data/serverspec.gemspec CHANGED
@@ -21,8 +21,8 @@ Gem::Specification.new do |spec|
21
21
  spec.add_runtime_dependency "net-ssh"
22
22
  spec.add_runtime_dependency "rspec", "~> 2.13"
23
23
  spec.add_runtime_dependency "highline"
24
- spec.add_runtime_dependency "specinfra", ">= 0.7.1"
24
+ spec.add_runtime_dependency "specinfra", ">= 1.0.0"
25
25
  spec.add_development_dependency "bundler", "~> 1.3"
26
- spec.add_development_dependency "rake"
26
+ spec.add_development_dependency "rake", "~> 10.1.1"
27
27
  spec.add_development_dependency "octorelease"
28
28
  end
@@ -56,3 +56,9 @@ end
56
56
  describe host('invalid-host') do
57
57
  it { should_not be_reachable.with(:proto => "udp", :port => 53, :timeout=> 1) }
58
58
  end
59
+
60
+ describe host('example.jp') do
61
+ let(:stdout) { "1.2.3.4\r\n" }
62
+ its(:ipaddress) { should eq '1.2.3.4' }
63
+ its(:command) { should eq "getent hosts example.jp | awk '{print $1}'" }
64
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: serverspec
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.16.0
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gosuke Miyashita
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-03-26 00:00:00.000000000 Z
11
+ date: 2014-03-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: net-ssh
@@ -58,14 +58,14 @@ dependencies:
58
58
  requirements:
59
59
  - - ">="
60
60
  - !ruby/object:Gem::Version
61
- version: 0.7.1
61
+ version: 1.0.0
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - ">="
67
67
  - !ruby/object:Gem::Version
68
- version: 0.7.1
68
+ version: 1.0.0
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: bundler
71
71
  requirement: !ruby/object:Gem::Requirement
@@ -84,16 +84,16 @@ dependencies:
84
84
  name: rake
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - ">="
87
+ - - "~>"
88
88
  - !ruby/object:Gem::Version
89
- version: '0'
89
+ version: 10.1.1
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
- - - ">="
94
+ - - "~>"
95
95
  - !ruby/object:Gem::Version
96
- version: '0'
96
+ version: 10.1.1
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: octorelease
99
99
  requirement: !ruby/object:Gem::Requirement