wb 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 +4 -4
- data/CHANGELOG.md +7 -0
- data/README.md +19 -2
- data/exe/wb +12 -1
- data/lib/wb/version.rb +1 -1
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a081b72020dcd6f09648ae4f4a59702f1da24ab521fb1fe4fac95ed88e841ee2
|
4
|
+
data.tar.gz: d99a51d5b050295e46269771e628d3f5a23da48a9d06cb00539066798812a969
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: faf773a316d8da1e90e6b1d5375232686e3dcbe3af9d42820c42578ffac958148c535d4981ac493b03ae279e460dea5f6fa5e1365f3fefc86d9eaf2cd69c09e8
|
7
|
+
data.tar.gz: 842500dce4679f678167c1fe70ccaeeb02a71cd9cf88714267d14b932cb66004871a9db23d11d3d6192ad534e9901a952da82ad2a4b5243f180e220aedff951f
|
data/CHANGELOG.md
ADDED
data/README.md
CHANGED
@@ -1,6 +1,14 @@
|
|
1
1
|
# WB -- Software Engineers's Workbook
|
2
2
|
|
3
|
-
[Background reading: Lab Notebooking for the Software Engineer](https://blog.nelhage.com/2010/06/lab-notebooking-for-the-software-engineer/)
|
3
|
+
[Background reading: Lab Notebooking for the Software Engineer](https://blog.nelhage.com/2010/06/lab-notebooking-for-the-software-engineer/):
|
4
|
+
|
5
|
+
- Only append to the workbook
|
6
|
+
- [Keep automatic backups](https://github.com/JuanitoFatas/wb/issues/1)
|
7
|
+
- What to note?
|
8
|
+
- Measurement
|
9
|
+
- Non-trival search and found something
|
10
|
+
- Explicit design decision
|
11
|
+
- Whenever you wish you had written down
|
4
12
|
|
5
13
|
## Installation
|
6
14
|
|
@@ -26,7 +34,14 @@ workbook:
|
|
26
34
|
note_folder: ".note"
|
27
35
|
```
|
28
36
|
|
29
|
-
|
37
|
+
and add following to `~/.gitignore_global`:
|
38
|
+
|
39
|
+
```
|
40
|
+
# ignore project notes by https://github.com/juanitofatas/wb
|
41
|
+
/.note/
|
42
|
+
```
|
43
|
+
|
44
|
+
To open a global workbook:
|
30
45
|
|
31
46
|
```
|
32
47
|
wb
|
@@ -38,12 +53,14 @@ Inside working hour `wb` equals to:
|
|
38
53
|
|
39
54
|
```
|
40
55
|
wb work
|
56
|
+
# opens "~/Dropbox/workbooks/work.md
|
41
57
|
```
|
42
58
|
|
43
59
|
Outside working hour `wb` equals to:
|
44
60
|
|
45
61
|
```
|
46
62
|
wb personal
|
63
|
+
# opens "~/Dropbox/workbooks/personal.md
|
47
64
|
```
|
48
65
|
|
49
66
|
Create a new workbook in the project you are working:
|
data/exe/wb
CHANGED
@@ -6,6 +6,16 @@ require "wb"
|
|
6
6
|
# Exit cleanly from an early interrupt
|
7
7
|
Signal.trap("INT") { abort }
|
8
8
|
|
9
|
+
class VersionCommand
|
10
|
+
def self.name
|
11
|
+
@name ||= "version"
|
12
|
+
end
|
13
|
+
|
14
|
+
def run(*)
|
15
|
+
$stdout.puts WB::VERSION
|
16
|
+
end
|
17
|
+
end
|
18
|
+
|
9
19
|
class HelpCommand
|
10
20
|
def self.name
|
11
21
|
@name ||= "help"
|
@@ -58,7 +68,7 @@ class IgnoreCommand
|
|
58
68
|
unless IO.read(gitignore_global).include?(breadcrumb)
|
59
69
|
WB::Shell.append(gitignore_global) do |file|
|
60
70
|
file.puts("\n# ignore project notes by #{breadcrumb}")
|
61
|
-
file.puts(
|
71
|
+
file.puts(%(/#{WB.config.project_root}/))
|
62
72
|
end
|
63
73
|
end
|
64
74
|
end
|
@@ -171,6 +181,7 @@ class ConfigCommand
|
|
171
181
|
end
|
172
182
|
|
173
183
|
commands = [
|
184
|
+
VersionCommand,
|
174
185
|
HelpCommand,
|
175
186
|
InitCommand,
|
176
187
|
IgnoreCommand,
|
data/lib/wb/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: wb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Juanito Fatas
|
@@ -77,6 +77,7 @@ files:
|
|
77
77
|
- ".gitignore"
|
78
78
|
- ".rspec"
|
79
79
|
- ".travis.yml"
|
80
|
+
- CHANGELOG.md
|
80
81
|
- Gemfile
|
81
82
|
- Gemfile.lock
|
82
83
|
- LICENSE.txt
|