specinfra 2.59.0 → 2.59.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +2 -0
- data/Gemfile +16 -1
- data/Guardfile +1 -1
- data/README.md +12 -2
- data/Rakefile +1 -0
- data/lib/specinfra/command/freebsd/base/inventory.rb +4 -0
- data/lib/specinfra/ext/class.rb +1 -0
- data/lib/specinfra/version.rb +1 -1
- data/spec/backend/exec/build_command_spec.rb +22 -14
- data/spec/backend/exec/child_process_spec.rb +4 -0
- data/spec/backend/exec/consume_exited_process_spec.rb +32 -26
- data/spec/backend/exec/env_spec.rb +4 -0
- data/spec/backend/exec/read_noblock_spec.rb +4 -0
- data/spec/backend/ssh/build_command_spec.rb +25 -2
- data/spec/command/base/{mail_alias.rb → mail_alias_spec.rb} +0 -0
- data/spec/configuration_spec.rb +20 -4
- data/spec/helper/detect_os/darwin_spec.rb +1 -1
- data/spec/helper/os_spec.rb +44 -42
- data/spec/host_inventory/linux/virtualization_spec.rb +4 -2
- data/spec/host_inventory/openbsd/virtualization_spec.rb +4 -2
- data/spec/host_inventory/solaris/virtualization_spec.rb +4 -2
- data/specinfra.gemspec +2 -0
- metadata +32 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 00e53eab4c97eb81a8f2de61ae34027275188745
|
4
|
+
data.tar.gz: f51442118eaa30a9d61d5cfb401842ad7bf516fb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2c81d761e731636248b559c997ea4dac406aab2ff398c546d5a894acc3b2ea365d11240b5ca98c1cf5ae3218513bdb58fabe76d57ad79675b98c0efd2d4ff5e8
|
7
|
+
data.tar.gz: 64b32779ebf803ef7201efb803a37914ea4eab9ca85daff1da36997906098f6c59e48e79337601b04366e77204c8d663fd815a3b1668482e27f42a8a175ab022
|
data/.gitignore
CHANGED
data/Gemfile
CHANGED
@@ -3,7 +3,22 @@ source 'https://rubygems.org'
|
|
3
3
|
# Specify your gem's dependencies in specinfra.gemspec
|
4
4
|
gemspec
|
5
5
|
|
6
|
-
|
6
|
+
ruby_version = Gem::Version.new(RUBY_VERSION.dup)
|
7
|
+
if ruby_version < Gem::Version.new('2.0.0')
|
7
8
|
# net-ssh 3.x dropped Ruby 1.8 and 1.9 support.
|
8
9
|
gem 'net-ssh', '~> 2.7'
|
9
10
|
end
|
11
|
+
if ruby_version < Gem::Version.new('1.9.3')
|
12
|
+
# listen 2.0 dropped Ruby 1.8 support
|
13
|
+
gem 'listen', '< 2.0'
|
14
|
+
gem 'guard-rspec', '< 4.0'
|
15
|
+
gem 'guard', '< 2.0'
|
16
|
+
# hitimes 1.2.3 dropped Ruby 1.8 support
|
17
|
+
gem 'hitimes', '< 1.2.3'
|
18
|
+
elsif ruby_version < Gem::Version.new('2.0.0')
|
19
|
+
# listen 3.0 dropped Ruby 1.8 and 1.9 support
|
20
|
+
gem 'listen', '< 3.0'
|
21
|
+
elsif ruby_version < Gem::Version.new('2.2.3')
|
22
|
+
# listen 3.1 dropped support for Ruby 2.1 and lower
|
23
|
+
gem 'listen', '< 3.1'
|
24
|
+
end
|
data/Guardfile
CHANGED
data/README.md
CHANGED
@@ -10,12 +10,22 @@ Add this line to your application's Gemfile:
|
|
10
10
|
|
11
11
|
And then execute:
|
12
12
|
|
13
|
-
|
13
|
+
```
|
14
|
+
bundle
|
15
|
+
```
|
14
16
|
|
15
17
|
Or install it yourself as:
|
16
18
|
|
17
|
-
|
19
|
+
```
|
20
|
+
gem install specinfra
|
21
|
+
```
|
18
22
|
|
23
|
+
## Running tests
|
24
|
+
|
25
|
+
```
|
26
|
+
bundle exec rake
|
27
|
+
```
|
28
|
+
|
19
29
|
## Usage
|
20
30
|
|
21
31
|
TODO: Write usage instructions here
|
data/Rakefile
CHANGED
data/lib/specinfra/ext/class.rb
CHANGED
data/lib/specinfra/version.rb
CHANGED
@@ -1,6 +1,10 @@
|
|
1
1
|
require 'spec_helper'
|
2
2
|
|
3
3
|
describe Specinfra::Backend::Exec do
|
4
|
+
before :all do
|
5
|
+
set :backend, :exec
|
6
|
+
end
|
7
|
+
|
4
8
|
describe '#build_command' do
|
5
9
|
context 'with simple command' do
|
6
10
|
it 'should escape spaces' do
|
@@ -107,13 +111,13 @@ end
|
|
107
111
|
describe 'os' do
|
108
112
|
before do
|
109
113
|
# clear os information cache
|
110
|
-
property[:
|
114
|
+
property[:os] = nil
|
115
|
+
Specinfra.configuration.instance_variable_set(:@os, nil)
|
111
116
|
end
|
112
117
|
|
113
118
|
context 'test ubuntu with lsb_release command' do
|
114
|
-
|
115
|
-
|
116
|
-
expect(Specinfra.backend).to receive(:run_command).at_least(1).times do |args|
|
119
|
+
before do
|
120
|
+
allow(Specinfra.backend).to receive(:run_command) do |args|
|
117
121
|
if ['ls /etc/debian_version', 'lsb_release -ir'].include? args
|
118
122
|
double(
|
119
123
|
:run_command_response,
|
@@ -126,17 +130,17 @@ describe 'os' do
|
|
126
130
|
double :run_command_response, :success? => false, :stdout => nil
|
127
131
|
end
|
128
132
|
end
|
133
|
+
end
|
134
|
+
subject! { os }
|
135
|
+
it do
|
136
|
+
expect(Specinfra.backend).to have_received(:run_command).at_least(1).times
|
129
137
|
should eq({:family => 'ubuntu', :release => '12.04', :arch => 'x86_64' })
|
130
138
|
end
|
131
139
|
end
|
132
140
|
|
133
141
|
context 'test ubuntu with /etc/lsb-release' do
|
134
142
|
before do
|
135
|
-
|
136
|
-
end
|
137
|
-
subject { os }
|
138
|
-
it do
|
139
|
-
expect(Specinfra.backend).to receive(:run_command).at_least(1).times do |args|
|
143
|
+
allow(Specinfra.backend).to receive(:run_command) do |args|
|
140
144
|
if ['ls /etc/debian_version', 'cat /etc/lsb-release'].include? args
|
141
145
|
double(
|
142
146
|
:run_command_response,
|
@@ -154,17 +158,17 @@ EOF
|
|
154
158
|
double :run_command_response, :success? => false, :stdout => nil
|
155
159
|
end
|
156
160
|
end
|
161
|
+
end
|
162
|
+
subject! { os }
|
163
|
+
it do
|
164
|
+
expect(Specinfra.backend).to have_received(:run_command).at_least(1).times
|
157
165
|
should eq({:family => 'ubuntu', :release => '12.04', :arch => 'x86_64' })
|
158
166
|
end
|
159
167
|
end
|
160
168
|
|
161
169
|
context 'test debian (no lsb_release or lsb-release)' do
|
162
170
|
before do
|
163
|
-
|
164
|
-
end
|
165
|
-
subject { os }
|
166
|
-
it do
|
167
|
-
expect(Specinfra.backend).to receive(:run_command).at_least(1).times do |args|
|
171
|
+
allow(Specinfra.backend).to receive(:run_command) do |args|
|
168
172
|
if args == 'ls /etc/debian_version'
|
169
173
|
double :run_command_response, :success? => true, :stdout => nil
|
170
174
|
elsif args == 'uname -m'
|
@@ -173,6 +177,10 @@ EOF
|
|
173
177
|
double :run_command_response, :success? => false, :stdout => nil
|
174
178
|
end
|
175
179
|
end
|
180
|
+
end
|
181
|
+
subject! { os }
|
182
|
+
it do
|
183
|
+
expect(Specinfra.backend).to have_received(:run_command).at_least(1).times
|
176
184
|
should eq({:family => 'debian', :release => nil, :arch => 'x86_64' })
|
177
185
|
end
|
178
186
|
end
|
@@ -3,6 +3,10 @@
|
|
3
3
|
require 'spec_helper'
|
4
4
|
|
5
5
|
context "when executed process launches child process like a daemon, and the daemon doesn't close stdout,err" do
|
6
|
+
before :all do
|
7
|
+
set :backend, :exec
|
8
|
+
end
|
9
|
+
|
6
10
|
subject(:result) { Specinfra::Runner.run_command("ruby -e 'pid = fork { sleep 10; puts :bye }; Process.detach(pid); puts pid'") }
|
7
11
|
|
8
12
|
it "doesn't block" do
|
@@ -1,36 +1,42 @@
|
|
1
1
|
require 'spec_helper'
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
it 'can consume stdout and stderr from buffer' do
|
7
|
-
allow(IO).to receive(:select).and_wrap_original { |m, *args| sleep 1; m.call(*args) }
|
8
|
-
result = backend.run_command("ruby -e 'STDOUT.puts \"stdout\"; STDERR.puts \"stderr\"'")
|
9
|
-
expect(result.stdout.chomp).to eq('stdout')
|
10
|
-
expect(result.stderr.chomp).to eq('stderr')
|
3
|
+
RSpec.describe 'exec backend' do
|
4
|
+
before :all do
|
5
|
+
set :backend, :exec
|
11
6
|
end
|
12
|
-
end
|
13
7
|
|
14
|
-
context 'when executed process
|
15
|
-
|
8
|
+
context 'when executed process had exited before read stdout and stderr,' do
|
9
|
+
let(:backend) { Specinfra::Backend::Exec.new }
|
16
10
|
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
11
|
+
it 'can consume stdout and stderr from buffer' do
|
12
|
+
allow(IO).to receive(:select).and_wrap_original { |m, *args| sleep 1; m.call(*args) }
|
13
|
+
result = backend.run_command("ruby -e 'STDOUT.puts \"stdout\"; STDERR.puts \"stderr\"'")
|
14
|
+
expect(result.stdout.chomp).to eq('stdout')
|
15
|
+
expect(result.stderr.chomp).to eq('stderr')
|
16
|
+
end
|
22
17
|
end
|
23
|
-
end
|
24
18
|
|
25
|
-
context '
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
19
|
+
context 'when executed process has exited between reading stdout and stderr,' do
|
20
|
+
let(:backend) { Specinfra::Backend::Exec.new }
|
21
|
+
|
22
|
+
it 'can consume stdout and stderr from buffer' do
|
23
|
+
backend.stdout_handler = proc { |o| sleep 1 }
|
24
|
+
result = backend.run_command("ruby -e 'STDOUT.puts \"stdout\"; STDOUT.close; STDERR.puts \"stderr\"'")
|
25
|
+
expect(result.stdout.chomp).to eq('stdout')
|
26
|
+
expect(result.stderr.chomp).to eq('stderr')
|
27
|
+
end
|
33
28
|
end
|
34
29
|
|
35
|
-
|
30
|
+
context 'Output of stderr_handler' do
|
31
|
+
let(:backend) { Specinfra::Backend::Exec.new }
|
32
|
+
subject(:stderr) do
|
33
|
+
allow(IO).to receive(:select).and_wrap_original { |m, *args| sleep 1; m.call(*args) }
|
34
|
+
err = ''
|
35
|
+
backend.stderr_handler = proc { |e| err += e }
|
36
|
+
backend.run_command('echo foo 1>&2')
|
37
|
+
err
|
38
|
+
end
|
39
|
+
|
40
|
+
it { expect(stderr).to eq "foo\n" }
|
41
|
+
end
|
36
42
|
end
|
@@ -1,11 +1,15 @@
|
|
1
1
|
require 'spec_helper'
|
2
2
|
|
3
|
+
set :backend, :exec
|
4
|
+
|
3
5
|
describe Specinfra.backend.run_command('echo $LANG').stdout.strip do
|
4
6
|
it { should eq 'C' }
|
5
7
|
end
|
6
8
|
|
7
9
|
describe do
|
8
10
|
before do
|
11
|
+
set :backend, :exec
|
12
|
+
|
9
13
|
ENV['LANG'] = 'C'
|
10
14
|
set :env, :LANG => 'ja_JP.UTF-8'
|
11
15
|
end
|
@@ -1,8 +1,16 @@
|
|
1
1
|
require 'spec_helper'
|
2
2
|
|
3
|
-
set :backend, :ssh
|
4
|
-
|
5
3
|
describe Specinfra::Backend::Ssh do
|
4
|
+
before(:all) do
|
5
|
+
set :backend, :ssh
|
6
|
+
end
|
7
|
+
|
8
|
+
after(:all) do
|
9
|
+
if Specinfra.configuration.instance_variable_defined?(:@ssh_options)
|
10
|
+
Specinfra.configuration.instance_variable_set(:@ssh_options, nil)
|
11
|
+
end
|
12
|
+
end
|
13
|
+
|
6
14
|
describe '#build_command' do
|
7
15
|
context 'with root user' do
|
8
16
|
before do
|
@@ -12,6 +20,12 @@ describe Specinfra::Backend::Ssh do
|
|
12
20
|
end
|
13
21
|
end
|
14
22
|
|
23
|
+
after do
|
24
|
+
RSpec.configure do |c|
|
25
|
+
c.ssh = nil
|
26
|
+
end
|
27
|
+
end
|
28
|
+
|
15
29
|
it 'should not prepend sudo' do
|
16
30
|
expect(Specinfra.backend.build_command('test -f /etc/passwd')).to eq '/bin/sh -c test\ -f\ /etc/passwd'
|
17
31
|
end
|
@@ -29,6 +43,12 @@ describe Specinfra::Backend::Ssh do
|
|
29
43
|
end
|
30
44
|
end
|
31
45
|
|
46
|
+
after do
|
47
|
+
RSpec.configure do |c|
|
48
|
+
c.ssh = nil
|
49
|
+
end
|
50
|
+
end
|
51
|
+
|
32
52
|
it 'should prepend sudo' do
|
33
53
|
expect(Specinfra.backend.build_command('test -f /etc/passwd')).to eq %q{sudo -p 'Password: ' /bin/sh -c test\ -f\ /etc/passwd}
|
34
54
|
end
|
@@ -49,6 +69,7 @@ describe Specinfra::Backend::Ssh do
|
|
49
69
|
|
50
70
|
after do
|
51
71
|
RSpec.configure do |c|
|
72
|
+
c.ssh = nil
|
52
73
|
c.sudo_path = nil
|
53
74
|
end
|
54
75
|
end
|
@@ -73,6 +94,7 @@ describe Specinfra::Backend::Ssh do
|
|
73
94
|
|
74
95
|
after do
|
75
96
|
RSpec.configure do |c|
|
97
|
+
c.ssh = nil
|
76
98
|
c.disable_sudo = false
|
77
99
|
end
|
78
100
|
end
|
@@ -97,6 +119,7 @@ describe Specinfra::Backend::Ssh do
|
|
97
119
|
|
98
120
|
after do
|
99
121
|
RSpec.configure do |c|
|
122
|
+
c.ssh = nil
|
100
123
|
c.sudo_options = nil
|
101
124
|
end
|
102
125
|
end
|
File without changes
|
data/spec/configuration_spec.rb
CHANGED
@@ -1,10 +1,20 @@
|
|
1
1
|
require 'spec_helper'
|
2
2
|
|
3
|
-
RSpec.
|
4
|
-
|
5
|
-
|
3
|
+
describe 'RSpec.configuration.path' do
|
4
|
+
before do
|
5
|
+
RSpec.configure do |c|
|
6
|
+
c.path = 'foo'
|
7
|
+
end
|
8
|
+
end
|
9
|
+
|
10
|
+
after do
|
11
|
+
RSpec.configure do |c|
|
12
|
+
c.path = nil
|
13
|
+
end
|
14
|
+
end
|
15
|
+
|
16
|
+
subject { RSpec.configuration.path }
|
6
17
|
|
7
|
-
describe RSpec.configuration.path do
|
8
18
|
it { should eq Specinfra.configuration.path }
|
9
19
|
end
|
10
20
|
|
@@ -12,3 +22,9 @@ Specinfra.configuration.os = 'foo'
|
|
12
22
|
describe Specinfra.configuration.os do
|
13
23
|
it { should eq 'foo' }
|
14
24
|
end
|
25
|
+
|
26
|
+
Specinfra.configuration.instance_variable_set(:@os, nil)
|
27
|
+
RSpec.configuration.os = nil
|
28
|
+
describe Specinfra.configuration.os do
|
29
|
+
it { should be_nil }
|
30
|
+
end
|
@@ -2,7 +2,7 @@ require 'spec_helper'
|
|
2
2
|
require 'specinfra/helper/detect_os/darwin'
|
3
3
|
|
4
4
|
describe Specinfra::Helper::DetectOs::Darwin do
|
5
|
-
darwin = Specinfra::Helper::DetectOs::Darwin.new(
|
5
|
+
darwin = Specinfra::Helper::DetectOs::Darwin.new(Specinfra.backend)
|
6
6
|
it 'Should return darwin 13.4.0 when Mac OS X 10.9.5 (Mavericks) is installed.' do
|
7
7
|
allow(darwin).to receive(:run_command) {
|
8
8
|
CommandResult.new(:stdout => 'Darwin 13.4.0', :exit_status => 0)
|
data/spec/helper/os_spec.rb
CHANGED
@@ -1,58 +1,60 @@
|
|
1
1
|
require 'spec_helper'
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
describe 'no ssh connection without cache' do
|
8
|
-
before do
|
9
|
-
property[:os] = nil
|
10
|
-
set_stub_chain(:ssh, nil)
|
11
|
-
set_stub_chain(:ssh_options, nil)
|
12
|
-
set_stub_chain(:host, 'localhost')
|
13
|
-
set_stub_chain(:os, :family => 'redhat')
|
3
|
+
RSpec.describe 'os', :order => :defined do
|
4
|
+
def set_stub_chain(keys, value)
|
5
|
+
allow(Specinfra).to receive_message_chain([:configuration, keys].flatten).and_return(value)
|
14
6
|
end
|
15
7
|
|
16
|
-
|
17
|
-
|
8
|
+
describe 'no ssh connection without cache' do
|
9
|
+
before do
|
10
|
+
property[:os] = nil
|
11
|
+
set_stub_chain(:ssh, nil)
|
12
|
+
set_stub_chain(:ssh_options, nil)
|
13
|
+
set_stub_chain(:host, 'localhost')
|
14
|
+
set_stub_chain(:os, :family => 'redhat')
|
15
|
+
end
|
18
16
|
|
19
|
-
|
20
|
-
|
21
|
-
end
|
17
|
+
it { expect(os[:family]).to eq 'redhat' }
|
18
|
+
end
|
22
19
|
|
23
|
-
describe '
|
24
|
-
|
25
|
-
property[:os] = nil
|
26
|
-
set_stub_chain(:ssh, nil)
|
27
|
-
set_stub_chain(:ssh_options, :port => 22)
|
28
|
-
set_stub_chain(:host, 'localhost')
|
29
|
-
set_stub_chain(:os, :family => 'ubuntu')
|
20
|
+
describe 'no ssh connection with cache' do
|
21
|
+
it { expect(property[:os]).to eq(:family => 'redhat') }
|
30
22
|
end
|
31
23
|
|
32
|
-
|
33
|
-
|
24
|
+
describe 'ssh_options without cache' do
|
25
|
+
before do
|
26
|
+
property[:os] = nil
|
27
|
+
set_stub_chain(:ssh, nil)
|
28
|
+
set_stub_chain(:ssh_options, :port => 22)
|
29
|
+
set_stub_chain(:host, 'localhost')
|
30
|
+
set_stub_chain(:os, :family => 'ubuntu')
|
31
|
+
end
|
34
32
|
|
35
|
-
|
36
|
-
|
37
|
-
end
|
33
|
+
it { expect(os[:family]).to eq 'ubuntu' }
|
34
|
+
end
|
38
35
|
|
39
|
-
describe '
|
40
|
-
|
41
|
-
property[:os] = nil
|
42
|
-
set_stub_chain([:ssh, :host], 'localhost')
|
43
|
-
set_stub_chain([:ssh, :options], :port => 2222)
|
44
|
-
set_stub_chain(:os, :family => 'nixos')
|
36
|
+
describe 'ssh_options with cache' do
|
37
|
+
it { expect(property[:os]).to eq(:family => 'ubuntu') }
|
45
38
|
end
|
46
39
|
|
47
|
-
|
48
|
-
|
40
|
+
describe 'ssh_connection without cache' do
|
41
|
+
before do
|
42
|
+
property[:os] = nil
|
43
|
+
set_stub_chain([:ssh, :host], 'localhost')
|
44
|
+
set_stub_chain([:ssh, :options], :port => 2222)
|
45
|
+
set_stub_chain(:os, :family => 'nixos')
|
46
|
+
end
|
49
47
|
|
50
|
-
|
51
|
-
before do
|
52
|
-
set_stub_chain([:ssh, :host], 'localhost')
|
53
|
-
set_stub_chain([:ssh, :options], :port => 2222)
|
54
|
-
set_stub_chain(:os, :family => 'nixos')
|
48
|
+
it { expect(os[:family]).to eq 'nixos' }
|
55
49
|
end
|
56
50
|
|
57
|
-
|
51
|
+
describe 'ssh_connection with cache' do
|
52
|
+
before do
|
53
|
+
set_stub_chain([:ssh, :host], 'localhost')
|
54
|
+
set_stub_chain([:ssh, :options], :port => 2222)
|
55
|
+
set_stub_chain(:os, :family => 'nixos')
|
56
|
+
end
|
57
|
+
|
58
|
+
it { expect(property[:os]).to eq(:family => 'nixos') }
|
59
|
+
end
|
58
60
|
end
|
@@ -1,8 +1,10 @@
|
|
1
1
|
require 'spec_helper'
|
2
2
|
|
3
|
-
set :os, { :family => 'linux' }
|
4
|
-
|
5
3
|
describe Specinfra::HostInventory::Virtualization do
|
4
|
+
before :all do
|
5
|
+
set :os, { :family => 'linux' }
|
6
|
+
end
|
7
|
+
|
6
8
|
virt = Specinfra::HostInventory::Virtualization.new(host_inventory)
|
7
9
|
let(:host_inventory) { nil }
|
8
10
|
it 'Docker Image should return :system => "docker"' do
|
@@ -1,8 +1,10 @@
|
|
1
1
|
require 'spec_helper'
|
2
2
|
|
3
|
-
set :os, { :family => 'openbsd' }
|
4
|
-
|
5
3
|
describe Specinfra::HostInventory::Virtualization do
|
4
|
+
before :all do
|
5
|
+
set :os, { :family => 'openbsd' }
|
6
|
+
end
|
7
|
+
|
6
8
|
virt = Specinfra::HostInventory::Virtualization.new(host_inventory)
|
7
9
|
|
8
10
|
let(:host_inventory) { nil }
|
@@ -1,8 +1,10 @@
|
|
1
1
|
require 'spec_helper'
|
2
2
|
|
3
|
-
set :os, { :family => 'solaris' }
|
4
|
-
|
5
3
|
describe Specinfra::HostInventory::Virtualization do
|
4
|
+
before :all do
|
5
|
+
set :os, { :family => 'solaris' }
|
6
|
+
end
|
7
|
+
|
6
8
|
virt = Specinfra::HostInventory::Virtualization.new(host_inventory)
|
7
9
|
|
8
10
|
let(:host_inventory) { nil }
|
data/specinfra.gemspec
CHANGED
@@ -28,4 +28,6 @@ Gem::Specification.new do |spec|
|
|
28
28
|
spec.add_development_dependency "rake", "~> 10.1.1"
|
29
29
|
spec.add_development_dependency "rspec"
|
30
30
|
spec.add_development_dependency "rspec-its"
|
31
|
+
spec.add_development_dependency "guard"
|
32
|
+
spec.add_development_dependency "guard-rspec"
|
31
33
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: specinfra
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.59.
|
4
|
+
version: 2.59.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gosuke Miyashita
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-06-
|
11
|
+
date: 2016-06-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: net-scp
|
@@ -128,6 +128,34 @@ dependencies:
|
|
128
128
|
- - ">="
|
129
129
|
- !ruby/object:Gem::Version
|
130
130
|
version: '0'
|
131
|
+
- !ruby/object:Gem::Dependency
|
132
|
+
name: guard
|
133
|
+
requirement: !ruby/object:Gem::Requirement
|
134
|
+
requirements:
|
135
|
+
- - ">="
|
136
|
+
- !ruby/object:Gem::Version
|
137
|
+
version: '0'
|
138
|
+
type: :development
|
139
|
+
prerelease: false
|
140
|
+
version_requirements: !ruby/object:Gem::Requirement
|
141
|
+
requirements:
|
142
|
+
- - ">="
|
143
|
+
- !ruby/object:Gem::Version
|
144
|
+
version: '0'
|
145
|
+
- !ruby/object:Gem::Dependency
|
146
|
+
name: guard-rspec
|
147
|
+
requirement: !ruby/object:Gem::Requirement
|
148
|
+
requirements:
|
149
|
+
- - ">="
|
150
|
+
- !ruby/object:Gem::Version
|
151
|
+
version: '0'
|
152
|
+
type: :development
|
153
|
+
prerelease: false
|
154
|
+
version_requirements: !ruby/object:Gem::Requirement
|
155
|
+
requirements:
|
156
|
+
- - ">="
|
157
|
+
- !ruby/object:Gem::Version
|
158
|
+
version: '0'
|
131
159
|
description: Common layer for serverspec and itamae
|
132
160
|
email:
|
133
161
|
- gosukenator@gmail.com
|
@@ -483,7 +511,7 @@ files:
|
|
483
511
|
- spec/command/base/group_spec.rb
|
484
512
|
- spec/command/base/host_spec.rb
|
485
513
|
- spec/command/base/localhost_spec.rb
|
486
|
-
- spec/command/base/
|
514
|
+
- spec/command/base/mail_alias_spec.rb
|
487
515
|
- spec/command/base/package_spec.rb
|
488
516
|
- spec/command/base/process_spec.rb
|
489
517
|
- spec/command/base/user_spec.rb
|
@@ -596,7 +624,7 @@ test_files:
|
|
596
624
|
- spec/command/base/group_spec.rb
|
597
625
|
- spec/command/base/host_spec.rb
|
598
626
|
- spec/command/base/localhost_spec.rb
|
599
|
-
- spec/command/base/
|
627
|
+
- spec/command/base/mail_alias_spec.rb
|
600
628
|
- spec/command/base/package_spec.rb
|
601
629
|
- spec/command/base/process_spec.rb
|
602
630
|
- spec/command/base/user_spec.rb
|