kindleclippings 1.2.3 → 1.3.0

Sign up to get free protection for your applications and to get access to all the features.
data/README.markdown CHANGED
@@ -69,4 +69,5 @@ You can filter the results by author and booktitle by using the methods `by_auth
69
69
 
70
70
  * Georg Alexander Bøe
71
71
  * Masatomo Nakano
72
- * brokensandals
72
+ * brokensandals
73
+ * fboucheros
@@ -21,6 +21,11 @@ module KindleClippings
21
21
  def by_book(book)
22
22
  filter_by_property(:book_title, book)
23
23
  end
24
+
25
+ def by_date(from, to)
26
+ return self unless from && to
27
+ self.select { |annotation| annotation.added_on >= from && annotation.added_on <= to }
28
+ end
24
29
 
25
30
  private
26
31
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kindleclippings
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.3
4
+ version: 1.3.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-10-16 00:00:00.000000000Z
12
+ date: 2011-11-19 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec
16
- requirement: &70210582692700 !ruby/object:Gem::Requirement
16
+ requirement: &70318572463620 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,7 +21,7 @@ dependencies:
21
21
  version: 1.2.9
22
22
  type: :development
23
23
  prerelease: false
24
- version_requirements: *70210582692700
24
+ version_requirements: *70318572463620
25
25
  description: A gem to parse Kindle's "My Clippings.txt" file into ruby objects.
26
26
  email: georg.boe@gmail.com
27
27
  executables: []