fyodor 0.2.8 → 0.2.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +10 -3
- data/lib/fyodor/config_getter.rb +2 -2
- data/lib/fyodor/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7caa2b3d167d90c4c640b4069520a102ef82a2745dd133a9c83a24e6c1578eac
|
4
|
+
data.tar.gz: 57f2e8c8353cfd6bae7849bfb031c9a2a1fc24ffae0e4f4aed594c6284c4b8b0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 656d7f91ef1091443bd11ad054c0bd638cbc9369205852e9beedf981c836284dd9089898cc738cdd7680cc5c62b7943444252457bac687f43dbc38a1bb3c7026
|
7
|
+
data.tar.gz: 42014ee99f11b258b81987419e7c7529c7514f270c36e76a739997451df3cf0209a0fd2e4746d668b083ff3c8b206228c893db5e93850f7ea53c853fa17a5c3a
|
data/README.md
CHANGED
@@ -22,6 +22,13 @@ To read more about the motivation and what problem it tries to solve, [check thi
|
|
22
22
|
|
23
23
|
This program is based on the clippings file generated by Kindle 2019, but should work with other models.
|
24
24
|
|
25
|
+
## Limitations
|
26
|
+
|
27
|
+
We are limited by the data Kindle makes available through `My Clippings.txt`. This means:
|
28
|
+
|
29
|
+
- We don't have chapter information.
|
30
|
+
- We can’t guess all entries that were deleted.
|
31
|
+
|
25
32
|
## Installation
|
26
33
|
|
27
34
|
Install Ruby and run:
|
@@ -46,10 +53,10 @@ Fyodor has an optional configuration file, which is used for the following.
|
|
46
53
|
|
47
54
|
If your Kindle is not in English, you should tell Fyodor how some things are called by your `My Clippings.txt` (e.g. highlights, pages, etc). _Fyodor should still work without configuration, but you won't take advantage of many features, resulting in a dirtier output._
|
48
55
|
|
49
|
-
1. Download the sample config to `~/.config/fyodor.toml` or `$XDG_CONFIG_HOME/fyodor.toml`:
|
56
|
+
1. Download the sample config to `~/.config/fyodor/fyodor.toml` or `$XDG_CONFIG_HOME/fyodor/fyodor.toml`:
|
50
57
|
|
51
|
-
```
|
52
|
-
$
|
58
|
+
```sh
|
59
|
+
$ curl https://raw.githubusercontent.com/rccavalcanti/fyodor/master/docs/fyodor.toml.sample --create-dirs -o ~/.config/fyodor/fyodor.toml
|
53
60
|
```
|
54
61
|
|
55
62
|
2. Open both the configuration and your `My Clippings.txt` in your preferred editor. Change the values in the `[parser]` section to mirror what you get in `My Clippings.txt`.
|
data/lib/fyodor/config_getter.rb
CHANGED
@@ -42,8 +42,8 @@ module Fyodor
|
|
42
42
|
return @paths unless @paths.nil?
|
43
43
|
|
44
44
|
@paths = []
|
45
|
-
@paths << Pathname.new(ENV["XDG_CONFIG_HOME"]) + "fyodor.toml" unless ENV["XDG_CONFIG_HOME"].nil?
|
46
|
-
@paths << Pathname.new("~/.config/fyodor.toml").expand_path
|
45
|
+
@paths << Pathname.new(ENV["XDG_CONFIG_HOME"]) + "fyodor/fyodor.toml" unless ENV["XDG_CONFIG_HOME"].nil?
|
46
|
+
@paths << Pathname.new("~/.config/fyodor/fyodor.toml").expand_path
|
47
47
|
end
|
48
48
|
|
49
49
|
def print_path
|
data/lib/fyodor/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fyodor
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rafael Cavalcanti
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-10-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: toml
|