simple_note_parser 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +14 -5
- data/lib/simple_note_parser/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a2a27700911dfb910597fdd50cc9300f7c6c7e9d40f4358448fe01605cb70236
|
4
|
+
data.tar.gz: c66bb1c43764526fc10bd44fdb22f27d94fa536d9924f24bd3c75050ffc05086
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b0cc5c0c650e606a298e07dad84da91a3e90e1fbf9280cd8b83c15cd7b8d1f159b74acbfe1d8b46469461253a2de472af9a0030d1b9ccfd272cc3839fc41aec7
|
7
|
+
data.tar.gz: bb0aadad4cb8e4248aa1273b676f548d8c1812464e90b8383f8e60e78db93c18608370d2bf3a85a76a38114c2341b80c5bca69ea874154725268896ba562771c
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -24,16 +24,25 @@ Or install it yourself as:
|
|
24
24
|
1. Unzip the file.
|
25
25
|
1. Open a new terminal window and change directories by navigating into the unzipped directory.
|
26
26
|
1. Run `gem install simple_note_parser`
|
27
|
-
1. Run `
|
27
|
+
1. Run `irb` to start a new Ruby session. Once the prompt starts, run the following:
|
28
28
|
|
29
|
-
```
|
30
|
-
|
29
|
+
```console
|
30
|
+
> require "simple_note_parser"
|
31
|
+
=> true
|
32
|
+
> @notes = SimpleNoteParser.new
|
33
|
+
=> #<SimpleNoteParser:0x00007fef45892768 @file="./source/notes.json", @destination="./organized-by-tag">
|
31
34
|
@notes.import
|
35
|
+
=> ...
|
32
36
|
```
|
33
37
|
|
34
|
-
This will create a directory called `organized-by-tag` in the current directory
|
38
|
+
This will create a directory called `organized-by-tag` in the current directory which will contain additional directories based on each note's tag.
|
39
|
+
|
40
|
+
1. Optionally run `@notes.clean` to recursively remove the `organized-by-tag` directory.
|
35
41
|
|
36
|
-
|
42
|
+
```console
|
43
|
+
> @notes.clean
|
44
|
+
=> ["./organized-by-tag"]
|
45
|
+
```
|
37
46
|
|
38
47
|
## Development
|
39
48
|
|