tapi-serverspec 0.1.0 → 0.2.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5f50ae86e4cf06645554e765140f131974a6ca30
|
4
|
+
data.tar.gz: f346da5e4f01f413498924b63f5d2ecc7f2f52e8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 300797b45791c3243f53c13dcd591d9ab208fea0ec72a075ea8fe892d316256083907f6e1012a0317d5feffeb4587828f3b38b4b42165bce41dcf4fb6c4d60da
|
7
|
+
data.tar.gz: 82943bb8fd0a862ccc5bb379ff1f64ab8e96a5e07b813ac152e23ae003c42776e2766e4b022733712004894dd399799e9232a8b7e31ca6c77cec4ba46cb60788
|
@@ -0,0 +1,14 @@
|
|
1
|
+
RSpec::Matchers.define :include_nested do |expected|
|
2
|
+
match { |actual| includify(expected).matches?(actual) }
|
3
|
+
|
4
|
+
def includify(object)
|
5
|
+
return object unless object.is_a?(Hash)
|
6
|
+
|
7
|
+
hash = object
|
8
|
+
hash.each do |key, value|
|
9
|
+
hash[key] = includify(value)
|
10
|
+
end
|
11
|
+
|
12
|
+
RSpec::Matchers::BuiltIn::Include.new(hash)
|
13
|
+
end
|
14
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tapi-serverspec
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- TransportAPI
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-08-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -82,6 +82,7 @@ files:
|
|
82
82
|
- lib/tapi/serverspec.rb
|
83
83
|
- lib/tapi/serverspec/matcher.rb
|
84
84
|
- lib/tapi/serverspec/matcher/be_installed_as_java.rb
|
85
|
+
- lib/tapi/serverspec/matcher/include_nested.rb
|
85
86
|
- lib/tapi/serverspec/type.rb
|
86
87
|
- lib/tapi/serverspec/type/java.rb
|
87
88
|
- lib/tapi/serverspec/version.rb
|