kosher 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,6 +1,8 @@
1
1
  module Kosher
2
2
  class Algorithm
3
3
  def initialize(response)
4
+ raise ResponseNotValidError unless response.valid?
5
+
4
6
  @response = response
5
7
  end
6
8
 
@@ -0,0 +1,3 @@
1
+ module Kosher
2
+ class ResponseNotValidError < StandardError; end
3
+ end
@@ -1,3 +1,3 @@
1
1
  module Kosher
2
- VERSION = '0.1.1'
2
+ VERSION = '0.1.2'
3
3
  end
data/lib/kosher.rb CHANGED
@@ -2,6 +2,7 @@ require 'sucker'
2
2
  require 'kosher/algorithm'
3
3
  require 'kosher/condition'
4
4
  require 'kosher/description'
5
+ require 'kosher/errors'
5
6
  require 'kosher/item'
6
7
  require 'kosher/offer'
7
8
  require 'kosher/request'