evertils 2.2.2 → 2.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.
- checksums.yaml +4 -4
- data/README.md +1 -0
- data/lib/evertils/config.rb +0 -6
- data/lib/evertils/version.rb +1 -1
- metadata +1 -2
- data/lib/evertils/controllers/firstrun.rb +0 -24
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2bf8af6180a5b1db212795e136938aa937d9df8ff45e36094d88f8d59f33e261
|
4
|
+
data.tar.gz: e8e858cd533a5c39694acfe102886b56d718208a182f546af4d9bb7777154d7d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 93b44ef16729ac3f6200feb2af35db90c2749f7cd014eb4baa72e6c6e601fe43a92fc61adcefcdd767a809263e3d6dbde42dc1779a0e6762df88207c5fa2511d
|
7
|
+
data.tar.gz: 8d78650bdb0a90ecbb80cbf733b52cf82b3476afefa8521e6c85a2beb2d798d8589ff0f2a05f05849a1bff63d9258f461ef23938bfb08fe4f89bfc655ab4ba2f
|
data/README.md
CHANGED
@@ -19,6 +19,7 @@ See [this document](https://github.com/aapis/evertils/wiki/Logging-Specification
|
|
19
19
|
|:--------------|:-----------|:-------------|
|
20
20
|
|generate|Create notes from templates|`evertils generate daily`, `evertils generate morning`, `evertils generate monthly`|
|
21
21
|
|log|Interact with a note's content|`evertils log message "I am a message"`, `evertils log grep 2223`, `evertils log group`|
|
22
|
+
|change|Change the configured Evernote API token `evertils` is using|`evertils change token`|
|
22
23
|
|
23
24
|
## Automation
|
24
25
|
|
data/lib/evertils/config.rb
CHANGED
@@ -26,12 +26,6 @@ module Evertils
|
|
26
26
|
|
27
27
|
return if valid_config?
|
28
28
|
|
29
|
-
# no config file found, lets create one using the firstrun controller
|
30
|
-
require 'client/controller/firstrun'
|
31
|
-
|
32
|
-
controller = Evertils::Controller::Firstrun.new
|
33
|
-
controller.default
|
34
|
-
|
35
29
|
populate_config
|
36
30
|
end
|
37
31
|
|
data/lib/evertils/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: evertils
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.2.
|
4
|
+
version: 2.2.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ryan Priebe
|
@@ -122,7 +122,6 @@ files:
|
|
122
122
|
- lib/evertils/config.rb
|
123
123
|
- lib/evertils/controller.rb
|
124
124
|
- lib/evertils/controllers/change.rb
|
125
|
-
- lib/evertils/controllers/firstrun.rb
|
126
125
|
- lib/evertils/controllers/log.rb
|
127
126
|
- lib/evertils/controllers/render.rb
|
128
127
|
- lib/evertils/exceptions/gpg_exception.rb
|
@@ -1,24 +0,0 @@
|
|
1
|
-
module Evertils
|
2
|
-
module Controller
|
3
|
-
class Firstrun < Controller::Base
|
4
|
-
# Create the configuration file if it does not exist
|
5
|
-
def default
|
6
|
-
if File.exist?("#{Dir.home}/.evertils/config.yml")
|
7
|
-
Notify.error('Configuration already exists, this is not the first run! Exiting.', show_time: false)
|
8
|
-
end
|
9
|
-
|
10
|
-
File.open("#{Dir.home}/.evertils/config.yml", "w") do |f|
|
11
|
-
f.write <<-'CONTENTS'
|
12
|
-
templates:
|
13
|
-
Monthly:
|
14
|
-
"templates/monthly.enml"
|
15
|
-
Daily:
|
16
|
-
"templates/daily.enml"
|
17
|
-
|
18
|
-
provider: Evernote
|
19
|
-
CONTENTS
|
20
|
-
end
|
21
|
-
end
|
22
|
-
end
|
23
|
-
end
|
24
|
-
end
|