defi 2.0.6 → 2.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/LICENSE.md +1 -1
- data/README.md +1 -1
- data/lib/defi/challenge.rb +11 -3
- metadata +6 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 45f62cb331ea97335ed07945d26c22a25f3ee7c826ded161d1432018e2e1005c
|
4
|
+
data.tar.gz: 1067904cd927baeb4c4f5bb8a52260ff813b66f1987e774baaf5916dd10922fa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7fbd50efbc1db138975db94ab8c5b876b203443719d780032ac97a2e9129366b85dec847fc8cff0655b3046b02b423f8f2717c8c36b6c11fe45ba03772fc674e
|
7
|
+
data.tar.gz: a6ee3bb73c8dbbca088d2df08239f31c3451b0bee4075d4f6499d1d45625daab3314ce954fcde3b354d3a564bcbee3557201f74fa7fce65640776ada36e9a214
|
data/LICENSE.md
CHANGED
data/README.md
CHANGED
data/lib/defi/challenge.rb
CHANGED
@@ -46,6 +46,10 @@ module Defi
|
|
46
46
|
}
|
47
47
|
end
|
48
48
|
|
49
|
+
# rubocop:disable Metrics/AbcSize
|
50
|
+
# rubocop:disable Metrics/CyclomaticComplexity
|
51
|
+
# rubocop:disable Metrics/MethodLength
|
52
|
+
|
49
53
|
# String of the challenge.
|
50
54
|
#
|
51
55
|
# @return [String] The string representation of the challenge.
|
@@ -66,9 +70,13 @@ module Defi
|
|
66
70
|
stringified_items << stringified_opts unless @opts.empty?
|
67
71
|
stringified_items << stringified_block unless @block.nil?
|
68
72
|
|
69
|
-
"#{string}#{stringified_items.join(
|
73
|
+
"#{string}#{stringified_items.join(", ")})"
|
70
74
|
end
|
71
75
|
|
76
|
+
# rubocop:enable Metrics/AbcSize
|
77
|
+
# rubocop:enable Metrics/CyclomaticComplexity
|
78
|
+
# rubocop:enable Metrics/MethodLength
|
79
|
+
|
72
80
|
# A string containing a human-readable representation of the challenge.
|
73
81
|
#
|
74
82
|
# @return [String] The human-readable representation of the challenge.
|
@@ -78,11 +86,11 @@ module Defi
|
|
78
86
|
inspected_opts = @opts.inspect
|
79
87
|
inspected_block = @block.nil? ? "nil" : "<Proc>"
|
80
88
|
|
81
|
-
"Defi("
|
89
|
+
"Defi(" \
|
82
90
|
"method: #{inspected_method}, " \
|
83
91
|
"args: #{inspected_args}, " \
|
84
92
|
"opts: #{inspected_opts}, " \
|
85
|
-
"block: #{inspected_block}"
|
93
|
+
"block: #{inspected_block}" \
|
86
94
|
")"
|
87
95
|
end
|
88
96
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: defi
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Cyril Kato
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-04-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aw
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.
|
19
|
+
version: 0.2.0
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 0.
|
26
|
+
version: 0.2.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: bundler
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -150,7 +150,8 @@ files:
|
|
150
150
|
homepage: https://github.com/fixrb/defi
|
151
151
|
licenses:
|
152
152
|
- MIT
|
153
|
-
metadata:
|
153
|
+
metadata:
|
154
|
+
rubygems_mfa_required: 'true'
|
154
155
|
post_install_message:
|
155
156
|
rdoc_options: []
|
156
157
|
require_paths:
|