hard-boiled 0.1.1 → 0.1.2

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.
@@ -77,7 +77,7 @@ module HardBoiled
77
77
  def __apply_filters value, options
78
78
  if filters = options[:filters]
79
79
  filters.inject(value) { |result, filter|
80
- raise MissingFilterError, filter unless self.respond_to?(filter)
80
+ raise MissingFilterError, filter.to_s unless self.respond_to?(filter)
81
81
  self.__send__(filter, result)
82
82
  }
83
83
  else
@@ -1,5 +1,5 @@
1
1
  module Hard
2
2
  module Boiled
3
- VERSION = "0.1.1"
3
+ VERSION = "0.1.2"
4
4
  end
5
5
  end
@@ -15,7 +15,7 @@ class Filterable < HardBoiled::Presenter
15
15
  end
16
16
 
17
17
  class Calculator
18
- def add a, b
18
+ def add a, b
19
19
  a + b
20
20
  end
21
21
 
@@ -33,17 +33,17 @@ class Calculator
33
33
  end
34
34
 
35
35
  describe HardBoiled::Presenter do
36
- let(:egg) {
36
+ let(:egg) {
37
37
  OpenStruct.new({:temperature => 25, :boil_time => 7, :colour => "white"})
38
38
  }
39
39
 
40
40
  let(:conventional_egg) {
41
- OpenStruct.new({:temperature => 25, :boil_time => 5,
41
+ OpenStruct.new({:temperature => 25, :boil_time => 5,
42
42
  :colour => "brownish", :organic => false})
43
43
  }
44
44
 
45
45
  it "should produce correct hash" do
46
- definition = described_class.define egg do
46
+ definition = described_class.define(egg) do
47
47
  colour
48
48
  time :from => :boil_time
49
49
  consumer "Lennart"
@@ -135,7 +135,7 @@ describe HardBoiled::Presenter do
135
135
  time :from => :boil_time
136
136
  consumer "Lennart"
137
137
  end
138
-
138
+
139
139
  definition.should == {
140
140
  :colour => "WHITE",
141
141
  :time => 7,
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hard-boiled
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: