msfl 1.1.3 → 1.1.4
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/msfl/converters/operator.rb +3 -2
- data/msfl.gemspec +1 -1
- data/spec/msfl/converters/operator_spec.rb +4 -4
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2dabe6bd0c5afed3d7dd3b5a684397066966a9dd
|
4
|
+
data.tar.gz: a4a87bc6566ac6a61cb316b7406580a0f022059b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8d1efc78665649567fead825ddc15e982241e29a4dcef21a975062dc913a26ea877eb2a29d8bb02fe7844800d3f7606961c936bf674775847582c33a5de75d19
|
7
|
+
data.tar.gz: 06f45d034877d6201d457c9dd89404fd207ae5501498414881c5b171a47bebc15a567d46831a7095fc62ccaa0d13775cfb706bd956235e54650edf93130f5ef0
|
@@ -25,11 +25,12 @@ module MSFL
|
|
25
25
|
unless all_conversions?(conversions_to_run)
|
26
26
|
raise ArgumentError, "#run_conversions second argument is optional, if specified it must be an Array of Symbols"
|
27
27
|
end
|
28
|
-
|
28
|
+
result = obj
|
29
29
|
CONVERSIONS.each do |conv|
|
30
30
|
# In the order that items are in CONVERSIONS run all of the conversions_to_run
|
31
|
-
|
31
|
+
result = send(conv, result) if conversions_to_run.include?(conv)
|
32
32
|
end
|
33
|
+
result
|
33
34
|
end
|
34
35
|
|
35
36
|
|
data/msfl.gemspec
CHANGED
@@ -23,19 +23,19 @@ describe "MSFL::Converters::Operator" do
|
|
23
23
|
let(:test_instance) do
|
24
24
|
t_i = klass.new
|
25
25
|
|
26
|
-
allow(t_i).to receive(:implicit_between_to_explicit_recursively)
|
26
|
+
allow(t_i).to receive(:implicit_between_to_explicit_recursively) { "ant" }
|
27
27
|
expect(t_i).to receive(:implicit_between_to_explicit_recursively).once
|
28
28
|
|
29
|
-
allow(t_i).to receive(:between_to_gte_lte_recursively)
|
29
|
+
allow(t_i).to receive(:between_to_gte_lte_recursively) { "bat" }
|
30
30
|
expect(t_i).to receive(:between_to_gte_lte_recursively).once
|
31
31
|
|
32
|
-
allow(t_i).to receive(:implicit_and_to_explicit_recursively)
|
32
|
+
allow(t_i).to receive(:implicit_and_to_explicit_recursively) { "cat" }
|
33
33
|
expect(t_i).to receive(:implicit_and_to_explicit_recursively).once
|
34
34
|
t_i
|
35
35
|
end
|
36
36
|
|
37
37
|
it "runs all conversions in CONVERSIONS" do
|
38
|
-
subject
|
38
|
+
expect(subject).to eq "cat"
|
39
39
|
end
|
40
40
|
end
|
41
41
|
|