kosher 0.17.0 → 0.17.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,6 +1,6 @@
1
1
  module Kosher
2
2
  class Shipping < Structure
3
- key :available, default: true
3
+ key :available, default: false
4
4
  key :cents, Integer
5
5
  key :currency
6
6
  key :fast, default: false
@@ -1,3 +1,3 @@
1
1
  module Kosher
2
- VERSION = '0.17.0'
2
+ VERSION = '0.17.1'
3
3
  end
data/test/kosher_test.rb CHANGED
@@ -38,13 +38,14 @@ class TestKosher < MiniTest::Unit::TestCase
38
38
 
39
39
  condition.kosher = true
40
40
  seller.kosher = true
41
+ shipping.available = true
41
42
  assert offer.kosher?
42
43
  end
43
44
 
44
45
  def test_offer_price
45
46
  unit = Unit.new(cents: 100, currency: 'USD')
46
- ship = Shipping.new(cents: 100, currency: 'USD')
47
- offer = Offer.new(unit: unit, shipping: ship)
47
+ shipping = Shipping.new(cents: 100, currency: 'USD')
48
+ offer = Offer.new(unit: unit, shipping: shipping)
48
49
  assert_equal 200, offer.price.cents
49
50
  assert_equal 'USD', offer.price.currency.iso_code
50
51
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kosher
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.17.0
4
+ version: 0.17.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2012-01-16 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: certainty
16
- requirement: &70278985306100 !ruby/object:Gem::Requirement
16
+ requirement: &70299796808860 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '0.2'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70278985306100
24
+ version_requirements: *70299796808860
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: money
27
- requirement: &70278985305620 !ruby/object:Gem::Requirement
27
+ requirement: &70299796808380 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ~>
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: '4.0'
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *70278985305620
35
+ version_requirements: *70299796808380
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: structure
38
- requirement: &70278985305180 !ruby/object:Gem::Requirement
38
+ requirement: &70299796807940 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ~>
@@ -43,7 +43,7 @@ dependencies:
43
43
  version: '0.24'
44
44
  type: :runtime
45
45
  prerelease: false
46
- version_requirements: *70278985305180
46
+ version_requirements: *70299796807940
47
47
  description:
48
48
  email: code@papercavalier.com
49
49
  executables: []
@@ -91,4 +91,3 @@ specification_version: 3
91
91
  summary: A filter
92
92
  test_files:
93
93
  - test/kosher_test.rb
94
- has_rdoc: