kosher 0.2.7 → 0.2.8
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +2 -17
- data/lib/kosher/snapshot.rb +4 -0
- data/lib/kosher/version.rb +1 -1
- data/lib/kosher.rb +1 -0
- data/spec/kosher/snapshot_spec.rb +5 -0
- metadata +5 -2
data/README.md
CHANGED
@@ -4,22 +4,7 @@ Kosher
|
|
4
4
|
Kosher is a somewhat overengineered attempt to abstract bookselling
|
5
5
|
into a set of models.
|
6
6
|
|
7
|
-
Kosher knows if an offer is good or bad. It is also able to compare
|
7
|
+
Kosher knows if an offer is good or bad. It is also able to compare
|
8
|
+
offers.
|
8
9
|
|
9
10
|
![Booksellers](http://upload.wikimedia.org/wikipedia/commons/thumb/b/b9/Bucharest_booksellers_2.jpg/600px-Bucharest_booksellers_2.jpg)
|
10
|
-
|
11
|
-
Usage
|
12
|
-
-----
|
13
|
-
|
14
|
-
offer.kosher?
|
15
|
-
=> true
|
16
|
-
offer.price
|
17
|
-
=> #<Money cents:100 currency:EUR>
|
18
|
-
|
19
|
-
another_offer.kosher?
|
20
|
-
=> true
|
21
|
-
another_offer.price
|
22
|
-
=> #<Money cents:200 currency:EUR>
|
23
|
-
|
24
|
-
[another_offer, offer].sort.map(&:price)
|
25
|
-
=> [#<Money cents:100 currency:EUR>, #<Money cents:200 currency:EUR>]
|
data/lib/kosher/version.rb
CHANGED
data/lib/kosher.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.8
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Paper Cavalier
|
@@ -10,7 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2011-03-
|
13
|
+
date: 2011-03-10 00:00:00 +00:00
|
14
14
|
default_executable:
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
@@ -70,6 +70,7 @@ files:
|
|
70
70
|
- lib/kosher/offer.rb
|
71
71
|
- lib/kosher/seller.rb
|
72
72
|
- lib/kosher/shipping.rb
|
73
|
+
- lib/kosher/snapshot.rb
|
73
74
|
- lib/kosher/version.rb
|
74
75
|
- spec/kosher/availability_spec.rb
|
75
76
|
- spec/kosher/condition_spec.rb
|
@@ -79,6 +80,7 @@ files:
|
|
79
80
|
- spec/kosher/offer_spec.rb
|
80
81
|
- spec/kosher/seller_spec.rb
|
81
82
|
- spec/kosher/shipping_spec.rb
|
83
|
+
- spec/kosher/snapshot_spec.rb
|
82
84
|
- spec/spec_helper.rb
|
83
85
|
has_rdoc: true
|
84
86
|
homepage: https://rubygems.org/gems/kosher
|
@@ -117,4 +119,5 @@ test_files:
|
|
117
119
|
- spec/kosher/offer_spec.rb
|
118
120
|
- spec/kosher/seller_spec.rb
|
119
121
|
- spec/kosher/shipping_spec.rb
|
122
|
+
- spec/kosher/snapshot_spec.rb
|
120
123
|
- spec/spec_helper.rb
|