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 +2 -1
- data/lib/kindleclippings/clippingresult.rb +5 -0
- metadata +4 -4
data/README.markdown
CHANGED
@@ -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.
|
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-
|
12
|
+
date: 2011-11-19 00:00:00.000000000Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rspec
|
16
|
-
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: *
|
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: []
|