hermaeus 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 36fd56c600a2194bd70996d4c1b1f49c04b6b7c4
4
- data.tar.gz: 11e649ff3475b06302a5cbc02218504fe56d2fad
3
+ metadata.gz: ba58e39ec4af0f4fc855e2b1d8ce3ccd2fe8854f
4
+ data.tar.gz: fb2dc1cd561412925fa96d5b17b58cc20b7151ec
5
5
  SHA512:
6
- metadata.gz: 732743530fc850a0f0a1a7fd4b4478ec2c487fbe1524efad56ee832ab81eabf19fc6cfd58bfad84f9e38756c1eaca7c7e1fef482082b9290dde666bc96681f5a
7
- data.tar.gz: c61797a379bd777382b1a7268b604657052e3b4623e609a7a2a7bdf43b04e3fd69bba1856dad387be4321de6bc69dd508262c095b4d0e271c8069fc5045d5198
6
+ metadata.gz: a473d78aa69386fd50cfbbd771df52be5a93418f546310364b935292fa5d0049d8e431ed2004b534b783ee21aa6b674319bf30fdf0909cff0e7ed3100bb9c71d
7
+ data.tar.gz: 11615189e9342cdfed8247f12f54ad76f7a88e50bc8e2be1f2db957e06dafc24b6e21452ab993152453ba39bbc472c74fa38c6696a903c056393366ced400f3a
@@ -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
+ [![Gem Version](https://badge.fury.io/rb/hermaeus.svg)](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
@@ -22,7 +22,7 @@ module Hermaeus
22
22
  Config.validate @cfg
23
23
  else
24
24
  File.open Config::FILE, "w+" do |file|
25
- File.open File.expand_path Config::SOURCE, "r", "0600" do |cfg|
25
+ File.open File.expand_path(Config::SOURCE), "r", "0600" do |cfg|
26
26
  file << cfg.read
27
27
  end
28
28
  end
@@ -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 = apoc.title.downcase.gsub(/[ \/]/, "_").gsub(/[:"']/, "") + ".html.md"
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)
@@ -1,3 +1,3 @@
1
1
  module Hermaeus
2
- VERSION = "1.0.0"
2
+ VERSION = "1.0.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hermaeus
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - myrrlyn