http_api_builder 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/http_api_builder/dsl.rb +1 -1
- data/lib/http_api_builder/helpers.rb +2 -2
- data/lib/http_api_builder/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7796e8b7a9fbd8fc64f84beae8ec2ad6236a24e8
|
4
|
+
data.tar.gz: bc5a8197c6efa397d9024edb66866fdef3585af0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0ffbe2cc2866b2ed138fc96a01bf4865882d7b1f9865b06a1e1ba308dba1d7a63b2d5f5c8477ddb92e141b014193364e181b897d0646d49cc9bcbff9c8495654
|
7
|
+
data.tar.gz: abfa56a2491c0806f2067c498bc761c9b92c128de982508ccc293d552d0e18b6b96c379cd44a89c2ef106e316b4fe7573484cfd13b8f1dec4becdb1203978c79
|
data/lib/http_api_builder/dsl.rb
CHANGED
@@ -57,8 +57,8 @@ module HttpApiBuilder
|
|
57
57
|
# Raise an ArgumentError if not everything listed as required is not listed in supplied.
|
58
58
|
#
|
59
59
|
def validate_required_arguments(supplied, required)
|
60
|
-
missing =
|
61
|
-
return if missing.
|
60
|
+
missing = required - supplied
|
61
|
+
return if missing.empty?
|
62
62
|
|
63
63
|
raise ArgumentError, "missing required arguments: #{missing.join(', ')}"
|
64
64
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: http_api_builder
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jeff Sandberg
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-04-
|
11
|
+
date: 2016-04-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|