notes_cli 0.1.0 → 0.1.5

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 73fe7f6770836515148031d07002166d3db2635f94508eb90f33757cceb8ecd6
4
- data.tar.gz: 7eb9ee91974caa8b8f103da40c38b289f02b10d37a1a1244013790e0ce67294c
3
+ metadata.gz: 333db1b8b6dbbcd790a58549547ba44ddc8928fb63a4f1d1af1f565987da1865
4
+ data.tar.gz: be86e4e00485b7a7ebe8001565b40bde1002c057ce0ab7239e9d4d8a66ed95d1
5
5
  SHA512:
6
- metadata.gz: 55c0ead38e7df4e746efe2cab82041ae226d4f444bd8ace2ec89d10ca861a1077a9057e245ffdb0146ec78277c7fef4b220de73c3a59a9f29f6a0b98b3ffe803
7
- data.tar.gz: 531023291b416aa26e2c50e00c4fe37beba81cc99738ab33b5bf5b997ced661ab079777d0855b5952935e0474667472705b343dc46eb88d49c1d98a98ad0dac9
6
+ metadata.gz: 62e99f63a3bd462f3852227d54eabaee0e3982909d2317650bc84522f31921b47d34e26b5403953f961e89b18ce221a2f88c8d849d55664558b4fa1e686bb8ed
7
+ data.tar.gz: 89e4aa5bd7648cace82ed0febae82344cfcc4ed9ad8fc9c101d9ec0b88ad13b5419a42ed6d0b4ffa6c3226f451e2b64c43c985a59d1e6a1d6bd70a73e63b7b65
data/README.md CHANGED
@@ -1,24 +1,34 @@
1
+ # About
2
+ Easily create, delete and list all your notes.
3
+ NotesCli lets you create workspaces and notebooks in which you can store notes.
4
+ Notes are created as md files for ease of storing code snippets.
5
+
6
+ # Installation
7
+ ```bash
8
+ gem install notes_cli
9
+ ```
10
+
1
11
  # Getting started
2
12
 
3
- Tell notes_cli where your notes will be stored.
13
+ Tell notes_cli where your notes will be stored
4
14
  ```bash
5
15
  notes --notes_folder path/to/where/you/will/store/notes
6
16
  ```
7
17
 
8
- Define your first workspace.
18
+ Define your first workspace
9
19
  ```bash
10
20
  notes -w workspace_name
11
21
  ```
12
22
 
13
23
  # DSL
14
24
  ## Notes folder
15
- Where you will store all notes, including your workspaces and notebooks as the top layers.
25
+ Where you will store all notes, including your workspaces and notebooks as the top layers
16
26
 
17
27
  ## Workspace
18
- Where you will store notebooks.
28
+ Where you will store notebooks
19
29
 
20
30
  ## Notebook
21
- Where you will store notes.
31
+ Where you will store notes
22
32
 
23
33
  ## Example
24
34
  Basic case scenario, where:
@@ -100,4 +110,11 @@ notes -w workspace_name
100
110
  Switching workspace and creating a note there
101
111
  ```bash
102
112
  notes -w workspace_name -n notebook note_title
103
- ```
113
+ ```
114
+
115
+ ## Help
116
+ Display available commands
117
+
118
+ ```bash
119
+ notes --help
120
+ ```
@@ -6,8 +6,6 @@ module NotesCli
6
6
  CONFIG_PATH = File.join(LIBRARY, 'config.yml')
7
7
  end
8
8
 
9
- require 'pry'
10
- require 'pry-byebug'
11
9
  require 'yaml'
12
10
  require 'fileutils'
13
11
  require 'optparse'
@@ -8,11 +8,11 @@ if ARGV.empty?
8
8
  end
9
9
 
10
10
  OptionParser.new do |opt|
11
- opt.on('-n --new_note TITLE PATH/TO/FILE') { |option| workspace.create_note(option, ARGV) }
11
+ opt.on('-n --new_note NOTEBOOK NOTE_TITLE') { |option| workspace.create_note(option, ARGV) }
12
12
 
13
- opt.on('-d --delete_note TITLE PATH/TO/FILE ') { |option| workspace.delete_note(option, ARGV) }
13
+ opt.on('-d --delete_note NOTEBOOK NOTE_TITLE ') { |option| workspace.delete_note(option, ARGV) }
14
14
 
15
- opt.on('-l --list_notes TITLE PATH/TO/NOTEBOOK') do |option|
15
+ opt.on('-l --list_notes NOTEBOOK NOTE_TITLE') do |option|
16
16
  workspace.list_notes(option)
17
17
  end
18
18
 
@@ -14,6 +14,8 @@ class NoteLister
14
14
  empty_notebook_notification
15
15
  end
16
16
 
17
+ private
18
+
17
19
  def handle_errors
18
20
  raise StandardError, 'no such notebook' unless notebook_exists?(@notebook)
19
21
  end
@@ -1,3 +1,3 @@
1
1
  module NotesCli
2
- VERSION = '0.1.0'
2
+ VERSION = '0.1.5'
3
3
  end
@@ -20,7 +20,7 @@ Gem::Specification.new do |s|
20
20
  s.executables << 'notes'
21
21
  s.require_paths = ['lib']
22
22
  s.homepage =
23
- 'https://rubygems.org/gems/notes_cli'
23
+ 'https://github.com/joe-at-github/notes_cli'
24
24
  s.license = 'MIT'
25
25
  s.add_development_dependency 'fakefs', '~> 0.5'
26
26
  s.add_development_dependency 'pry', '~> 0.12'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: notes_cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joeffrey Lamy
@@ -110,8 +110,6 @@ files:
110
110
  - LICENSE.txt
111
111
  - README.md
112
112
  - bin/notes
113
- - config.db
114
- - config.yml.db
115
113
  - lib/notes_cli.rb
116
114
  - lib/notes_cli/controllers/option_parser.rb
117
115
  - lib/notes_cli/models/workspace.rb
@@ -123,7 +121,7 @@ files:
123
121
  - lib/notes_cli/services/services.rb
124
122
  - lib/notes_cli/version.rb
125
123
  - notes_cli.gemspec
126
- homepage: https://rubygems.org/gems/notes_cli
124
+ homepage: https://github.com/joe-at-github/notes_cli
127
125
  licenses:
128
126
  - MIT
129
127
  metadata: {}
data/config.db DELETED
Binary file
Binary file