kindleclippings 1.2.2 → 1.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/lib/kindleclippings/parser.rb +6 -1
- metadata +29 -50
|
@@ -39,7 +39,12 @@ module KindleClippings
|
|
|
39
39
|
first_line = lines[0].strip.scan(/^(.+) \((.+)\)$/i).first
|
|
40
40
|
second_line = lines[1].strip.scan(/^- (.+?) Loc. ([0-9-]*?) +\| Added on (.+)$/i).first
|
|
41
41
|
|
|
42
|
-
|
|
42
|
+
if first_line.nil?
|
|
43
|
+
title = lines[0].strip
|
|
44
|
+
author = ""
|
|
45
|
+
else
|
|
46
|
+
title, author = *first_line
|
|
47
|
+
end
|
|
43
48
|
type, location, date = *second_line
|
|
44
49
|
|
|
45
50
|
content = lines[3..-1].join("")
|
metadata
CHANGED
|
@@ -1,47 +1,35 @@
|
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: kindleclippings
|
|
3
|
-
version: !ruby/object:Gem::Version
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
- 1
|
|
7
|
-
- 2
|
|
8
|
-
- 2
|
|
9
|
-
version: 1.2.2
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: 1.2.3
|
|
5
|
+
prerelease:
|
|
10
6
|
platform: ruby
|
|
11
|
-
authors:
|
|
7
|
+
authors:
|
|
12
8
|
- Georg Alexander Boe
|
|
13
9
|
autorequire:
|
|
14
10
|
bindir: bin
|
|
15
11
|
cert_chain: []
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
dependencies:
|
|
20
|
-
- !ruby/object:Gem::Dependency
|
|
12
|
+
date: 2011-10-16 00:00:00.000000000Z
|
|
13
|
+
dependencies:
|
|
14
|
+
- !ruby/object:Gem::Dependency
|
|
21
15
|
name: rspec
|
|
22
|
-
|
|
23
|
-
requirement: &id001 !ruby/object:Gem::Requirement
|
|
16
|
+
requirement: &70210582692700 !ruby/object:Gem::Requirement
|
|
24
17
|
none: false
|
|
25
|
-
requirements:
|
|
26
|
-
- -
|
|
27
|
-
- !ruby/object:Gem::Version
|
|
28
|
-
segments:
|
|
29
|
-
- 1
|
|
30
|
-
- 2
|
|
31
|
-
- 9
|
|
18
|
+
requirements:
|
|
19
|
+
- - ! '>='
|
|
20
|
+
- !ruby/object:Gem::Version
|
|
32
21
|
version: 1.2.9
|
|
33
22
|
type: :development
|
|
34
|
-
|
|
23
|
+
prerelease: false
|
|
24
|
+
version_requirements: *70210582692700
|
|
35
25
|
description: A gem to parse Kindle's "My Clippings.txt" file into ruby objects.
|
|
36
26
|
email: georg.boe@gmail.com
|
|
37
27
|
executables: []
|
|
38
|
-
|
|
39
28
|
extensions: []
|
|
40
|
-
|
|
41
|
-
extra_rdoc_files:
|
|
29
|
+
extra_rdoc_files:
|
|
42
30
|
- LICENSE
|
|
43
31
|
- README.markdown
|
|
44
|
-
files:
|
|
32
|
+
files:
|
|
45
33
|
- lib/kindleclippings.rb
|
|
46
34
|
- lib/kindleclippings/clipping.rb
|
|
47
35
|
- lib/kindleclippings/clippingresult.rb
|
|
@@ -50,37 +38,28 @@ files:
|
|
|
50
38
|
- lib/kindleclippings/parser.rb
|
|
51
39
|
- LICENSE
|
|
52
40
|
- README.markdown
|
|
53
|
-
has_rdoc: true
|
|
54
41
|
homepage: http://github.com/georgboe/kindleclippings
|
|
55
42
|
licenses: []
|
|
56
|
-
|
|
57
43
|
post_install_message:
|
|
58
|
-
rdoc_options:
|
|
59
|
-
|
|
60
|
-
require_paths:
|
|
44
|
+
rdoc_options: []
|
|
45
|
+
require_paths:
|
|
61
46
|
- lib
|
|
62
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
|
47
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
63
48
|
none: false
|
|
64
|
-
requirements:
|
|
65
|
-
- -
|
|
66
|
-
- !ruby/object:Gem::Version
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
version: "0"
|
|
70
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
49
|
+
requirements:
|
|
50
|
+
- - ! '>='
|
|
51
|
+
- !ruby/object:Gem::Version
|
|
52
|
+
version: '0'
|
|
53
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
71
54
|
none: false
|
|
72
|
-
requirements:
|
|
73
|
-
- -
|
|
74
|
-
- !ruby/object:Gem::Version
|
|
75
|
-
|
|
76
|
-
- 0
|
|
77
|
-
version: "0"
|
|
55
|
+
requirements:
|
|
56
|
+
- - ! '>='
|
|
57
|
+
- !ruby/object:Gem::Version
|
|
58
|
+
version: '0'
|
|
78
59
|
requirements: []
|
|
79
|
-
|
|
80
60
|
rubyforge_project:
|
|
81
|
-
rubygems_version: 1.
|
|
61
|
+
rubygems_version: 1.8.7
|
|
82
62
|
signing_key:
|
|
83
63
|
specification_version: 3
|
|
84
64
|
summary: A gem to parse Kindle's "My Clippings.txt" file into ruby objects.
|
|
85
65
|
test_files: []
|
|
86
|
-
|