service_contract_webmock 0.1.3 → 0.1.4
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: d3698d16dde7ad4bc631d8e07819b3511955dd10
|
4
|
+
data.tar.gz: 182803a27a0d56229081db4330e6c10c4db93104
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bc2751b74fefeaa88b089298780b6090f177de71cc12abee6282e4d8b54073e2f9ae2ded512222141875a85c49352de4ee6bf1e1e7a302f902cd231e6dfe3495
|
7
|
+
data.tar.gz: 60f373676b7763d870e3be535f1150186fa54cff9ce440ab306237fcdd206a1deedd54ffd5c330ee9d261624a3392cad19f636504c1a11dca78581210e191bfc
|
@@ -29,8 +29,12 @@ module ServiceContractWebmock
|
|
29
29
|
|
30
30
|
def fields
|
31
31
|
@fields ||= endpoint.parameters.map do |param|
|
32
|
-
param.type.definition.
|
33
|
-
Field.new(
|
32
|
+
if param.type.definition.is_a?(Avro::Schema::PrimitiveSchema)
|
33
|
+
Field.new(param.name, param.type.definition)
|
34
|
+
else
|
35
|
+
param.type.definition.fields.map do |field|
|
36
|
+
Field.new(field.name, field.type) unless ['page', 'per_page'].include?(field.name)
|
37
|
+
end
|
34
38
|
end
|
35
39
|
end.flatten.compact
|
36
40
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: service_contract_webmock
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Donald Plummer
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-02-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: avro
|
@@ -136,7 +136,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
136
136
|
version: '0'
|
137
137
|
requirements: []
|
138
138
|
rubyforge_project:
|
139
|
-
rubygems_version: 2.
|
139
|
+
rubygems_version: 2.5.1
|
140
140
|
signing_key:
|
141
141
|
specification_version: 4
|
142
142
|
summary: A library for generating webmock mocks with ServiceContract schemas
|