kosher 0.2.16 → 0.2.17

Sign up to get free protection for your applications and to get access to all the features.
@@ -2,7 +2,7 @@ module Kosher
2
2
  class Availability < Struct.new(:hours)
3
3
  include Threshold
4
4
 
5
- THRESHOLD = 48
5
+ self.threshold = 48
6
6
 
7
7
  def kosher?
8
8
  hours <= threshold
@@ -2,7 +2,7 @@ module Kosher
2
2
  class Condition < Struct.new(:grade)
3
3
  include Threshold
4
4
 
5
- THRESHOLD = 4
5
+ self.threshold = 4
6
6
 
7
7
  def kosher?
8
8
  grade <= threshold
data/lib/kosher/seller.rb CHANGED
@@ -2,7 +2,7 @@ module Kosher
2
2
  class Seller < Struct.new(:id, :name, :rating, :location)
3
3
  include Threshold
4
4
 
5
- THRESHOLD = 4.8
5
+ self.threshold = 4.8
6
6
 
7
7
  class << self
8
8
  def blacklist
@@ -10,7 +10,7 @@ module Kosher
10
10
 
11
11
  module ClassMethods
12
12
  def threshold
13
- @threshold ||= THRESHOLD
13
+ @threshold
14
14
  end
15
15
 
16
16
  def threshold=(value)
@@ -1,3 +1,3 @@
1
1
  module Kosher
2
- VERSION = '0.2.16'
2
+ VERSION = '0.2.17'
3
3
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: kosher
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.2.16
5
+ version: 0.2.17
6
6
  platform: ruby
7
7
  authors:
8
8
  - Paper Cavalier