kosher 0.2.2 → 0.2.3

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -1,11 +1,10 @@
1
1
  Kosher
2
2
  ======
3
3
 
4
- Kosher models booksellers' offers.
4
+ Kosher is a somewhat overengineered attempt to abstract bookselling
5
+ into a set of models.
5
6
 
6
- It knows if an offer is good or bad. It is also able to compare offers.
7
-
8
- It is somewhat overengineered.
7
+ Kosher knows if an offer is good or bad. It is also able to compare offers.
9
8
 
10
9
  ![Booksellers](http://upload.wikimedia.org/wikipedia/commons/thumb/b/b9/Bucharest_booksellers_2.jpg/600px-Bucharest_booksellers_2.jpg)
11
10
 
@@ -15,12 +14,12 @@ Usage
15
14
  offer.kosher?
16
15
  => true
17
16
  offer.price
18
- => #<Money cents:1399 currency:EUR>
17
+ => #<Money cents:100 currency:EUR>
19
18
 
20
19
  another_offer.kosher?
21
20
  => true
22
21
  another_offer.price
23
- => #<Money cents:1499 currency:EUR>
22
+ => #<Money cents:200 currency:EUR>
24
23
 
25
- offer > another_offer
26
- => true
24
+ [another_offer, offer].sort.map(&:price)
25
+ => [#<Money cents:100 currency:EUR>, #<Money cents:200 currency:EUR>]
data/kosher.gemspec CHANGED
@@ -9,8 +9,8 @@ Gem::Specification.new do |s|
9
9
  s.authors = ['Paper Cavalier']
10
10
  s.email = 'code@papercavalier.com'
11
11
  s.homepage = 'https://rubygems.org/gems/kosher'
12
- s.summary = %q{Wraps Amazon in a loving embrace.}
13
- s.description = %q{Kosher wraps Amazon in a loving embrace.}
12
+ s.summary = %q{A somewhat overengineered attempt to abstract bookselling into a set of models}
13
+ s.description = %q{Kosher is a somewhat overengineered attempt to abstract bookselling into a set of models.}
14
14
 
15
15
  s.rubyforge_project = 'kosher'
16
16
 
@@ -1,3 +1,3 @@
1
1
  module Kosher
2
- VERSION = '0.2.2'
2
+ VERSION = '0.2.3'
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.2
5
+ version: 0.2.3
6
6
  platform: ruby
7
7
  authors:
8
8
  - Paper Cavalier
@@ -57,7 +57,7 @@ dependencies:
57
57
  version: 0.11.6
58
58
  type: :development
59
59
  version_requirements: *id004
60
- description: Kosher wraps Amazon in a loving embrace.
60
+ description: Kosher is a somewhat overengineered attempt to abstract bookselling into a set of models.
61
61
  email: code@papercavalier.com
62
62
  executables: []
63
63
 
@@ -116,7 +116,7 @@ rubyforge_project: kosher
116
116
  rubygems_version: 1.5.2
117
117
  signing_key:
118
118
  specification_version: 3
119
- summary: Wraps Amazon in a loving embrace.
119
+ summary: A somewhat overengineered attempt to abstract bookselling into a set of models
120
120
  test_files:
121
121
  - spec/kosher/availability_spec.rb
122
122
  - spec/kosher/condition_spec.rb