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: e9bba818b28cfea9c15217067ccc0dbe11c264f0
4
- data.tar.gz: e8efd64c3d352cddd288773d1e88a563bb0709d6
3
+ metadata.gz: 5f50ae86e4cf06645554e765140f131974a6ca30
4
+ data.tar.gz: f346da5e4f01f413498924b63f5d2ecc7f2f52e8
5
5
  SHA512:
6
- metadata.gz: a1da01b7cc6e7134ecb067231dc845daa276c8fcb669a905ecdc73e6d101d249f50e8c8735b8b850cd83b484cb48e43be055c53b6e8aed44f2b4fef19f7cff54
7
- data.tar.gz: 89bdf192ba2fb063096ea2bb11fcb23b3ebaf073a637fe2a1dd321b7175b7deb39310ad53f84c40f15253e1f2613eae471d187830c4a7f1f7c2b8d9aeed19546
6
+ metadata.gz: 300797b45791c3243f53c13dcd591d9ab208fea0ec72a075ea8fe892d316256083907f6e1012a0317d5feffeb4587828f3b38b4b42165bce41dcf4fb6c4d60da
7
+ data.tar.gz: 82943bb8fd0a862ccc5bb379ff1f64ab8e96a5e07b813ac152e23ae003c42776e2766e4b022733712004894dd399799e9232a8b7e31ca6c77cec4ba46cb60788
@@ -1 +1,2 @@
1
1
  require 'tapi/serverspec/matcher/be_installed_as_java'
2
+ require 'tapi/serverspec/matcher/include_nested'
@@ -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
@@ -1,5 +1,5 @@
1
1
  module TAPI
2
2
  module Serverspec
3
- VERSION = '0.1.0'
3
+ VERSION = '0.2.0'
4
4
  end
5
5
  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.1.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-06-15 00:00:00.000000000 Z
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