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 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 offers.
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>]
@@ -0,0 +1,4 @@
1
+ module Kosher
2
+ class Snapshot < Struct.new(:isbn, :asin, :sales_rank, :offers_count, :offers, :created_at)
3
+ end
4
+ end
@@ -1,3 +1,3 @@
1
1
  module Kosher
2
- VERSION = '0.2.7'
2
+ VERSION = '0.2.8'
3
3
  end
data/lib/kosher.rb CHANGED
@@ -8,3 +8,4 @@ require 'kosher/location'
8
8
  require 'kosher/offer'
9
9
  require 'kosher/seller'
10
10
  require 'kosher/shipping'
11
+ require 'kosher/snapshot'
@@ -0,0 +1,5 @@
1
+ require 'spec_helper'
2
+
3
+ module Kosher
4
+ describe Snapshot
5
+ 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.7
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-09 00:00:00 +00:00
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