serverspec 2.8.2 → 2.9.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: 61bd2d80feffde5508b8dc08ba94ef72b1f4db37
4
- data.tar.gz: 3209f4ea7687d0dcc949516d6708d6722c3b4027
3
+ metadata.gz: 99eee99a90e9e41222222a718522c5d1b38e074d
4
+ data.tar.gz: b78b3e895ff707939cbde5577a4367d173989a49
5
5
  SHA512:
6
- metadata.gz: 9cc17d37ffc5d3c93df2966dd086e79752c783a1151a3d54b675a91e9c2469d3f2c214ce547a0bf88669da7218d400d604d82718f4f1409be8e65302eb69a1a5
7
- data.tar.gz: 6364bd7afc3df658db62bba52b5bafc35f0a41ac4acceacef304bf28665e11f1faebb27f3f40330e51a1807741f306963bb505bc17a084a0705fb2fa6d3f4641
6
+ metadata.gz: 13f3f63e194f396973537d5238cac6c74e09f9b652d9a1a7f34486c2f1d278b148db797c04a93b4682f5087e0d201594b2be22726ad3dfc56e21bb24d8287809
7
+ data.tar.gz: 7daa4b124262e694441a6560270c5e03938d438f5ded603387bfba221ffb35839787b8f6f42ed5de50d3f3ea9fe7bc54c7a31fa4d8ca46cc5e05fc8549cccdce
@@ -2,7 +2,7 @@ module Serverspec
2
2
  module Helper
3
3
  module Type
4
4
  types = %w(
5
- base bridge cgroup command cron default_gateway file fstab group host
5
+ base bridge bond cgroup command cron default_gateway file fstab group host
6
6
  iis_website iis_app_pool interface ipfilter ipnat iptables
7
7
  ip6tables kernel_module linux_kernel_parameter lxc mail_alias
8
8
  package php_config port ppa process routing_table selinux
@@ -0,0 +1,11 @@
1
+ module Serverspec::Type
2
+ class Bond < Base
3
+ def exists?
4
+ @runner.check_bond_exists(@name)
5
+ end
6
+
7
+ def has_interface?(interface)
8
+ @runner.check_bond_has_interface(@name, interface)
9
+ end
10
+ end
11
+ end
@@ -1,3 +1,3 @@
1
1
  module Serverspec
2
- VERSION = "2.8.2"
2
+ VERSION = "2.9.0"
3
3
  end
data/serverspec.gemspec CHANGED
@@ -8,8 +8,8 @@ Gem::Specification.new do |spec|
8
8
  spec.version = Serverspec::VERSION
9
9
  spec.authors = ["Gosuke Miyashita"]
10
10
  spec.email = ["gosukenator@gmail.com"]
11
- spec.description = %q{RSpec tests for your servers configured by Puppet, Chef or anything else}
12
- spec.summary = %q{RSpec tests for your servers configured by Puppet, Chef or anything else}
11
+ spec.description = %q{RSpec tests for your servers configured by Puppet, Chef, Itamae or anything else}
12
+ spec.summary = %q{RSpec tests for your servers configured by Puppet, Chef, Itamae or anything else}
13
13
  spec.homepage = "http://serverspec.org/"
14
14
  spec.license = "MIT"
15
15
 
@@ -21,7 +21,7 @@ Gem::Specification.new do |spec|
21
21
  spec.add_runtime_dependency "rspec", "~> 3.0"
22
22
  spec.add_runtime_dependency "rspec-its"
23
23
  spec.add_runtime_dependency "multi_json"
24
- spec.add_runtime_dependency "specinfra", "~> 2.12"
24
+ spec.add_runtime_dependency "specinfra", "~> 2.15"
25
25
  spec.add_development_dependency "bundler", "~> 1.3"
26
26
  spec.add_development_dependency "rake", "~> 10.1.1"
27
27
  end
@@ -10,6 +10,14 @@ describe package('jekyll') do
10
10
  it { should be_installed.by(:gem).with_version('1.1.1') }
11
11
  end
12
12
 
13
+ describe package('ruby') do
14
+ it { should be_installed.by(:rvm) }
15
+ end
16
+
17
+ describe package('ruby') do
18
+ it { should be_installed.by(:rvm).with_version('2.2.0') }
19
+ end
20
+
13
21
  describe package('bower') do
14
22
  it { should be_installed.by(:npm) }
15
23
  end
@@ -0,0 +1,12 @@
1
+ require 'spec_helper'
2
+
3
+ set :os, :family => 'linux'
4
+
5
+ describe bond('bond0') do
6
+ it { should exist }
7
+ end
8
+
9
+ describe bond('bond0') do
10
+ let(:stdout) { 'eth0' }
11
+ it { should have_interface 'eth0' }
12
+ end
@@ -101,7 +101,6 @@ describe file('/some/test/file') do
101
101
  {
102
102
  :be_socket => [],
103
103
  :be_mode => 644,
104
- :be_owned_by => 'root',
105
104
  :be_grouped_into => 'root',
106
105
  :be_linked_to => '/some/other/file',
107
106
  :be_mounted => [],
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: 2.8.2
4
+ version: 2.9.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: 2015-02-06 00:00:00.000000000 Z
11
+ date: 2015-02-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec
@@ -58,14 +58,14 @@ dependencies:
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: '2.12'
61
+ version: '2.15'
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: '2.12'
68
+ version: '2.15'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: bundler
71
71
  requirement: !ruby/object:Gem::Requirement
@@ -94,7 +94,8 @@ dependencies:
94
94
  - - "~>"
95
95
  - !ruby/object:Gem::Version
96
96
  version: 10.1.1
97
- description: RSpec tests for your servers configured by Puppet, Chef or anything else
97
+ description: RSpec tests for your servers configured by Puppet, Chef, Itamae or anything
98
+ else
98
99
  email:
99
100
  - gosukenator@gmail.com
100
101
  executables:
@@ -139,6 +140,7 @@ files:
139
140
  - lib/serverspec/setup.rb
140
141
  - lib/serverspec/subject.rb
141
142
  - lib/serverspec/type/base.rb
143
+ - lib/serverspec/type/bond.rb
142
144
  - lib/serverspec/type/bridge.rb
143
145
  - lib/serverspec/type/cgroup.rb
144
146
  - lib/serverspec/type/command.rb
@@ -221,6 +223,7 @@ files:
221
223
  - spec/type/freebsd10/package_spec.rb
222
224
  - spec/type/gentoo/package_spec.rb
223
225
  - spec/type/gentoo/service_spec.rb
226
+ - spec/type/linux/bond_spec.rb
224
227
  - spec/type/linux/bridge_spec.rb
225
228
  - spec/type/linux/cgroup_spec.rb
226
229
  - spec/type/linux/docker_container_spec.rb
@@ -314,7 +317,8 @@ rubyforge_project:
314
317
  rubygems_version: 2.2.2
315
318
  signing_key:
316
319
  specification_version: 4
317
- summary: RSpec tests for your servers configured by Puppet, Chef or anything else
320
+ summary: RSpec tests for your servers configured by Puppet, Chef, Itamae or anything
321
+ else
318
322
  test_files:
319
323
  - spec/helper/type_spec.rb
320
324
  - spec/spec_helper.rb
@@ -357,6 +361,7 @@ test_files:
357
361
  - spec/type/freebsd10/package_spec.rb
358
362
  - spec/type/gentoo/package_spec.rb
359
363
  - spec/type/gentoo/service_spec.rb
364
+ - spec/type/linux/bond_spec.rb
360
365
  - spec/type/linux/bridge_spec.rb
361
366
  - spec/type/linux/cgroup_spec.rb
362
367
  - spec/type/linux/docker_container_spec.rb