acter 0.1.3 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/acter/action.rb +2 -7
- data/lib/acter/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 0440efa021c1632b59efdcbb4d88b38d1d6a2edc4b4718a250cd7e87e50d94b5
|
|
4
|
+
data.tar.gz: 970859f523e382858b48ed8bac0165ad11e330d8f41d2c0a45cb5019e78564aa
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3245b25124c8e29a579e7c967a46b4454016378ffb167c7ce2130a1b55b271fcfb84d9b2e78cd49e1317c3a93eb6afe4f0935070cbfbac6bb8e24109e5538c53
|
|
7
|
+
data.tar.gz: 63edbf6f95faed7d9bd8644f4c9b123c99d2def24496666b2c1740a9a02965fc0878a1c9f1890f2afdf02da6d2ff0b0d274dc8022ea377147610ebaade178c0d
|
data/lib/acter/action.rb
CHANGED
|
@@ -83,13 +83,8 @@ module Acter
|
|
|
83
83
|
missing_params << k
|
|
84
84
|
end
|
|
85
85
|
end
|
|
86
|
-
if link.schema && link.schema.properties
|
|
87
|
-
|
|
88
|
-
raise InvalidSchema, "Path parameter base names and property names of link #{link.pointer.inspect} are not unique"
|
|
89
|
-
end
|
|
90
|
-
if link.schema.required
|
|
91
|
-
missing_params.concat(link.schema.required - params.keys)
|
|
92
|
-
end
|
|
86
|
+
if link.schema && link.schema.properties && link.schema.required
|
|
87
|
+
missing_params.concat(link.schema.required - path_keys - params.keys)
|
|
93
88
|
end
|
|
94
89
|
missing_params.empty? or raise MissingParameters.new(missing_params, name, subject, schema)
|
|
95
90
|
@path = link.href.gsub(/\{\(([^)]+)\)\}/) do
|
data/lib/acter/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: acter
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.2.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ben Slusky
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2020-
|
|
11
|
+
date: 2020-02-19 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: faraday
|