hermaeus 1.0.0 → 1.0.1
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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/README.md +12 -0
- data/lib/hermaeus.rb +1 -1
- data/lib/hermaeus/archivist.rb +3 -1
- data/lib/hermaeus/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ba58e39ec4af0f4fc855e2b1d8ce3ccd2fe8854f
|
4
|
+
data.tar.gz: fb2dc1cd561412925fa96d5b17b58cc20b7151ec
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a473d78aa69386fd50cfbbd771df52be5a93418f546310364b935292fa5d0049d8e431ed2004b534b783ee21aa6b674319bf30fdf0909cff0e7ed3100bb9c71d
|
7
|
+
data.tar.gz: 11615189e9342cdfed8247f12f54ad76f7a88e50bc8e2be1f2db957e06dafc24b6e21452ab993152453ba39bbc472c74fa38c6696a903c056393366ced400f3a
|
data/CHANGELOG.md
CHANGED
@@ -2,6 +2,12 @@
|
|
2
2
|
|
3
3
|
## v1
|
4
4
|
|
5
|
+
### v1.0.1
|
6
|
+
|
7
|
+
Deployment to a separate machine brought some hidden bugs to light. Fixed a
|
8
|
+
syntax error in the initialization routines and added documentation about fresh
|
9
|
+
installations to the README.
|
10
|
+
|
5
11
|
### v1.0.0
|
6
12
|
|
7
13
|
Added a storage backend (`Apocryphon` and `Archivist` classes) capable of
|
data/README.md
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
[](https://badge.fury.io/rb/hermaeus)
|
2
|
+
|
1
3
|
# Hermaeus
|
2
4
|
|
3
5
|
Hermaeus Mora, the Daedric Prince of Fate and Knowledge, hoards information in
|
@@ -32,6 +34,16 @@ Or install it yourself as:
|
|
32
34
|
`Hermaeus` can be used in other Ruby scripts via top-level methods, or via the
|
33
35
|
`mora` executable.
|
34
36
|
|
37
|
+
On first run, `mora` will deliberately crash and complain that the config file
|
38
|
+
is missing. It will create a sample configuration file for you to edit, at
|
39
|
+
`$HOME/.hermaeus/config.toml`.
|
40
|
+
|
41
|
+
This file needs to be populated with reddit credentials so Hermaeus can log in.
|
42
|
+
The `[client]` section of this file has five keys, each of which have comments
|
43
|
+
explaining what they should hold. `mora` will crash with somewhat helpful (I
|
44
|
+
hope) error messages if any of these fields are missing, as well. Once you have
|
45
|
+
filled in the configuration file with correct values, `mora` will run properly.
|
46
|
+
|
35
47
|
## Development
|
36
48
|
|
37
49
|
After checking out the repo, run `bin/setup` to install dependencies. You can
|
data/lib/hermaeus.rb
CHANGED
data/lib/hermaeus/archivist.rb
CHANGED
@@ -22,7 +22,9 @@ reddit: #{apoc.id}
|
|
22
22
|
|
23
23
|
def save_to_file apoc
|
24
24
|
unless apoc.text == "[deleted]" || apoc.text == "[removed]"
|
25
|
-
title =
|
25
|
+
title = @html_filter.decode(title)
|
26
|
+
title = apoc.title.downcase.gsub(/[ \/]/, "_").gsub(/[:"',]/, "")
|
27
|
+
title << ".html.md"
|
26
28
|
File.open(File.join(@config[:path], title), "w+") do |file|
|
27
29
|
file << add_metadata(apoc)
|
28
30
|
file << prettify(apoc.text)
|
data/lib/hermaeus/version.rb
CHANGED