msfl 1.1.3 → 1.1.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2445ee71d971cda766a3dab97300b9d99cf73dae
4
- data.tar.gz: afa4add5b3f7f55d262440bc8bb3183dfb067c88
3
+ metadata.gz: 2dabe6bd0c5afed3d7dd3b5a684397066966a9dd
4
+ data.tar.gz: a4a87bc6566ac6a61cb316b7406580a0f022059b
5
5
  SHA512:
6
- metadata.gz: 12f468f92d2ef18d7875c85d906a7cdef535c406ed46ec732a2cbc1848cfe56cafc7a4ba48e10f203eb3002fd35fac1f435efeaef36fb1a61174f745f23d3539
7
- data.tar.gz: febbc466e5bf33b5ea7491b558e3c7a6d58ac0e369582f678893829a65029ac2d3ace3323c46e07480ca10c6499ebe95638b970ed79461e3010dd442fe76bc33
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
- obj = send(conv, obj) if conversions_to_run.include?(conv)
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
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'msfl'
3
- s.version = '1.1.3'
3
+ s.version = '1.1.4'
4
4
  s.date = '2015-04-01'
5
5
  s.summary = "MSFL in Ruby"
6
6
  s.description = "Serializers, validators, and other tasty goodness for the Mattermark Semantic Filter Language in Ruby."
@@ -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
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: msfl
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.3
4
+ version: 1.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Courtland Caldwell