serverspec 2.31.1 → 2.32.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: 1b8173bfc1212504da7841ff61461916fd6b3583
4
- data.tar.gz: f356eb9af5523d6edacf86b1dca7cc2d52a3c2a7
3
+ metadata.gz: d629e86c428878a40544bc2beff61c6869491a31
4
+ data.tar.gz: fc3996256189a5636032106fd42d559fd94d702f
5
5
  SHA512:
6
- metadata.gz: 1dc4d50edb83c70ebfee2167aa4914509e56406838481f96c180c145f3839dc3f5ebb8186d7ace58c000c86b8af906af6cab10e4bb15e1a4074673b8ad2482c9
7
- data.tar.gz: 0fa34f8d88cc70bb9df03abb0712e153876e5e6f27aa89d503a27670f1f8193bd0460e839d30162e447c9879f5375d1a521f34e64ace28c244b7dce572da6243
6
+ metadata.gz: dc0c442b4fea567318daa7f51bc196fd2825aec1434e1b30dab7cd9bf01a38bc63bbe7d50e7f568073412d1f290a32a4b70aac8c3fb9fc925dd769afe606f789
7
+ data.tar.gz: 4ed56238b527ee2d589806b4b288842360e9a691492cb89f1faadb01b87476f9e754e3fca1ca0d74c8567e8a687d0a2402bd054380f6a0c62b627cce83524b59
data/.travis.yml CHANGED
@@ -5,6 +5,8 @@ rvm:
5
5
  - 1.9.3
6
6
  - 2.0.0
7
7
  - 2.1.1
8
+ - 2.2.4
9
+ - 2.3.0
8
10
 
9
11
  before_install:
10
12
  - gem update bundler
data/appveyor.yml CHANGED
@@ -13,6 +13,7 @@ environment:
13
13
  - ruby_version: "200"
14
14
  - ruby_version: "21"
15
15
  - ruby_version: "22"
16
+ - ruby_version: "23"
16
17
 
17
18
  clone_depth: 5
18
19
 
@@ -25,6 +26,8 @@ cache:
25
26
  - C:\Ruby21\bin -> appveyor.yml
26
27
  - C:\Ruby22\lib\ruby\gems\2.2.0 -> appveyor.yml
27
28
  - C:\Ruby22\bin -> appveyor.yml
29
+ - C:\Ruby23\lib\ruby\gems\2.2.0 -> appveyor.yml
30
+ - C:\Ruby23\bin -> appveyor.yml
28
31
 
29
32
  install:
30
33
  - git submodule update --init --recursive
@@ -10,7 +10,7 @@ module Serverspec
10
10
  windows_feature windows_hot_fix windows_registry_key
11
11
  windows_scheduled_task zfs docker_base docker_image
12
12
  docker_container x509_certificate x509_private_key
13
- linux_audit_system hadoop_config
13
+ linux_audit_system hadoop_config php_extension
14
14
  )
15
15
 
16
16
  types.each {|type| require "serverspec/type/#{type}" }
@@ -0,0 +1,11 @@
1
+ module Serverspec::Type
2
+ class PhpExtension < Base
3
+ def loaded?
4
+ ret = @runner.run_command("php --ri '#{@name}'")
5
+
6
+ return false if ret.exit_status.to_i > 0
7
+
8
+ true
9
+ end
10
+ end
11
+ end
@@ -1,3 +1,3 @@
1
1
  module Serverspec
2
- VERSION = "2.31.1"
2
+ VERSION = "2.32.0"
3
3
  end
@@ -0,0 +1,13 @@
1
+ require 'spec_helper'
2
+
3
+ set :os, :family => 'base'
4
+
5
+ describe php_extension('tillext') do
6
+ let(:exit_status) { 1 }
7
+ it { should_not be_loaded }
8
+ end
9
+
10
+ describe php_extension('session') do
11
+ let(:exit_status) { 0 }
12
+ it { should be_loaded }
13
+ 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: 2.31.1
4
+ version: 2.32.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: 2016-04-02 00:00:00.000000000 Z
11
+ date: 2016-04-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec
@@ -173,6 +173,7 @@ files:
173
173
  - lib/serverspec/type/mysql_config.rb
174
174
  - lib/serverspec/type/package.rb
175
175
  - lib/serverspec/type/php_config.rb
176
+ - lib/serverspec/type/php_extension.rb
176
177
  - lib/serverspec/type/port.rb
177
178
  - lib/serverspec/type/ppa.rb
178
179
  - lib/serverspec/type/process.rb
@@ -212,6 +213,7 @@ files:
212
213
  - spec/type/base/mysql_config_spec.rb
213
214
  - spec/type/base/package_spec.rb
214
215
  - spec/type/base/php_config_spec.rb
216
+ - spec/type/base/php_extension_spec.rb
215
217
  - spec/type/base/port_spec.rb
216
218
  - spec/type/base/process_spec.rb
217
219
  - spec/type/base/routing_table_spec.rb
@@ -355,6 +357,7 @@ test_files:
355
357
  - spec/type/base/mysql_config_spec.rb
356
358
  - spec/type/base/package_spec.rb
357
359
  - spec/type/base/php_config_spec.rb
360
+ - spec/type/base/php_extension_spec.rb
358
361
  - spec/type/base/port_spec.rb
359
362
  - spec/type/base/process_spec.rb
360
363
  - spec/type/base/routing_table_spec.rb