duckface-interfaces 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/Gemfile.lock +3 -3
- data/lib/duckface/method_implementation.rb +21 -2
- data/lib/duckface/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: 2595e9a679d9be84caf8e0afbf4c942fe3622267
|
4
|
+
data.tar.gz: 01d464a555e12df3ffad3ecbb97d48d656b65abc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2369548a1f3f4f9c3b181a2af47962f0557171c1d22d17b9d60c554c6d4e9ec0176671b9622ca858f9fb16e54e433629f2e28a7f7be6a7a0d0229aa3d38a6d2b
|
7
|
+
data.tar.gz: c680789f43194c1f9ceb80c5923bd56245ab7d8630b341beb88a59adf9deb6c2a65d420fac1b541f923fbf788108f2394fdf45beb02de31033764de0fe409d50
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
duckface-interfaces (0.0.
|
4
|
+
duckface-interfaces (0.0.4)
|
5
5
|
|
6
6
|
GEM
|
7
7
|
remote: https://rubygems.org/
|
@@ -32,7 +32,7 @@ GEM
|
|
32
32
|
http_parser.rb (~> 0.6.0)
|
33
33
|
equalizer (0.0.11)
|
34
34
|
eventmachine (1.2.3)
|
35
|
-
ffi (1.9.
|
35
|
+
ffi (1.9.25)
|
36
36
|
formatador (0.2.5)
|
37
37
|
guard (2.14.1)
|
38
38
|
formatador (>= 0.2.4)
|
@@ -166,4 +166,4 @@ DEPENDENCIES
|
|
166
166
|
spring-watcher-listen
|
167
167
|
|
168
168
|
BUNDLED WITH
|
169
|
-
1.16.
|
169
|
+
1.16.5
|
@@ -11,11 +11,19 @@ module Duckface
|
|
11
11
|
end
|
12
12
|
|
13
13
|
def parameters_for_comparison
|
14
|
-
@parameters_for_comparison ||=
|
14
|
+
@parameters_for_comparison ||= begin
|
15
|
+
return [] if present_in_schema?
|
16
|
+
|
17
|
+
ParameterPairs.new(parameters).for_comparison
|
18
|
+
end
|
15
19
|
end
|
16
20
|
|
17
21
|
def owner
|
18
|
-
@owner ||=
|
22
|
+
@owner ||= begin
|
23
|
+
return @klass if present_in_schema?
|
24
|
+
|
25
|
+
implementation.owner
|
26
|
+
end
|
19
27
|
end
|
20
28
|
|
21
29
|
private
|
@@ -24,6 +32,17 @@ module Duckface
|
|
24
32
|
@implementation ||= @klass.public_instance_method(@method_name)
|
25
33
|
end
|
26
34
|
|
35
|
+
def present_in_schema?
|
36
|
+
return false unless schema?
|
37
|
+
@klass.schema.keys.include?(@method_name)
|
38
|
+
end
|
39
|
+
|
40
|
+
def schema?
|
41
|
+
return false unless @klass.respond_to?(:schema)
|
42
|
+
|
43
|
+
@klass.schema.respond_to?(:keys)
|
44
|
+
end
|
45
|
+
|
27
46
|
def parameters
|
28
47
|
implementation.parameters - Constants::IGNORABLE_PARAMETERS
|
29
48
|
end
|
data/lib/duckface/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: duckface-interfaces
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bellroy Tech Team
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-01-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|