kosher 0.2.2 → 0.2.3
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.
- data/README.md +7 -8
- data/kosher.gemspec +2 -2
- data/lib/kosher/version.rb +1 -1
- metadata +3 -3
data/README.md
CHANGED
@@ -1,11 +1,10 @@
|
|
1
1
|
Kosher
|
2
2
|
======
|
3
3
|
|
4
|
-
Kosher
|
4
|
+
Kosher is a somewhat overengineered attempt to abstract bookselling
|
5
|
+
into a set of models.
|
5
6
|
|
6
|
-
|
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
|

|
11
10
|
|
@@ -15,12 +14,12 @@ Usage
|
|
15
14
|
offer.kosher?
|
16
15
|
=> true
|
17
16
|
offer.price
|
18
|
-
=> #<Money cents:
|
17
|
+
=> #<Money cents:100 currency:EUR>
|
19
18
|
|
20
19
|
another_offer.kosher?
|
21
20
|
=> true
|
22
21
|
another_offer.price
|
23
|
-
=> #<Money cents:
|
22
|
+
=> #<Money cents:200 currency:EUR>
|
24
23
|
|
25
|
-
offer
|
26
|
-
=>
|
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{
|
13
|
-
s.description = %q{Kosher
|
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
|
|
data/lib/kosher/version.rb
CHANGED
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: kosher
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.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
|
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:
|
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
|