bullit 0.1.1 → 0.1.2p1
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/Gemfile.lock +1 -1
- data/README.md +33 -20
- data/lib/bullit/file.rb +1 -3
- data/lib/bullit/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 443313049d92e3234e875b7ae00e0ee106a64c20
|
4
|
+
data.tar.gz: 17197a5d178807da92bed766ec01b1782b75b897
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5152be2a424e3b93aa0da699acb50cfc34886edfee0d2fbd6cfb2c18a2fbaf5ff23fca3e59deffe641f0190b9a89077a231522a8dc79467adcbd935d0af5b2d3
|
7
|
+
data.tar.gz: 287f7e634684f225181472e6f0ffdcca6583d0d6872ea6c471638e607dd5fdb4c8627d6132141384d13ee28fe1a690b2b8a9ddf9579b2ec88f1fcdc25101113d
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -1,34 +1,47 @@
|
|
1
|
-
#
|
1
|
+
# Bullit
|
2
2
|
|
3
|
-
|
3
|
+
Bullet journals for those who don't get along with notebooks.
|
4
4
|
|
5
|
-
|
5
|
+
Currently this implements the 'daily spread' concept of a bullet journal.
|
6
6
|
|
7
|
-
|
7
|
+
You can:
|
8
|
+
- Add tasks.
|
9
|
+
- Mark tasks as complete.
|
10
|
+
- Migrate uncompleted tasks from the previous day.
|
8
11
|
|
9
|
-
|
12
|
+
## Installation
|
10
13
|
|
11
|
-
```
|
12
|
-
gem
|
14
|
+
```bash
|
15
|
+
$ gem install bullit
|
13
16
|
```
|
14
|
-
|
15
|
-
And then execute:
|
16
|
-
|
17
|
-
$ bundle
|
18
|
-
|
19
|
-
Or install it yourself as:
|
20
|
-
|
21
|
-
$ gem install bullit
|
22
|
-
|
23
17
|
## Usage
|
18
|
+
```bash
|
19
|
+
$ bullit generate today
|
20
|
+
```
|
21
|
+
On first run, this will instantiate a `~/.bullit` directory which will hold the YAML files used to store the daily logs.
|
24
22
|
|
25
|
-
|
23
|
+
Throughout your day, add new tasks by running
|
24
|
+
```bash
|
25
|
+
$ bullit tasks add
|
26
|
+
```
|
26
27
|
|
27
|
-
|
28
|
+
View your tasks with
|
29
|
+
```bash
|
30
|
+
$ bullit tasks list
|
31
|
+
```
|
28
32
|
|
29
|
-
|
33
|
+
and mark your tasks as complete with
|
34
|
+
```
|
35
|
+
$ bullit tasks complete <task_number>
|
36
|
+
```
|
37
|
+
|
38
|
+
The next day, run
|
39
|
+
```bash
|
40
|
+
$ bullit generate today
|
41
|
+
```
|
42
|
+
To migrate uncompleted tasks from the day before. You will be able to flag tasks as complete in the prompt that will come up, which will stop them from being carried over.
|
30
43
|
|
31
|
-
|
44
|
+
The generate command can be run over and over again without side effects, so you can place it in a startup script to run at the start of the day.
|
32
45
|
|
33
46
|
## Contributing
|
34
47
|
|
data/lib/bullit/file.rb
CHANGED
@@ -45,8 +45,6 @@ module BulletJournal
|
|
45
45
|
|
46
46
|
yesterday_file.write(YAML.dump(file))
|
47
47
|
|
48
|
-
binding.pry
|
49
|
-
|
50
48
|
if file[:tasks] == {}
|
51
49
|
return nil
|
52
50
|
else
|
@@ -62,7 +60,7 @@ module BulletJournal
|
|
62
60
|
def self.add_task(text)
|
63
61
|
file = YAML.load(today_file.read)
|
64
62
|
|
65
|
-
if file[:tasks]
|
63
|
+
if file[:tasks] == {}
|
66
64
|
file[:tasks] = [ Task.new(text: text).to_h ]
|
67
65
|
else
|
68
66
|
file[:tasks] = today_tasks << Task.new(text: text).to_h
|
data/lib/bullit/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bullit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2p1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tomek Nadolny
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-02-
|
11
|
+
date: 2019-02-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -149,9 +149,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
149
149
|
version: '0'
|
150
150
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
151
151
|
requirements:
|
152
|
-
- - "
|
152
|
+
- - ">"
|
153
153
|
- !ruby/object:Gem::Version
|
154
|
-
version:
|
154
|
+
version: 1.3.1
|
155
155
|
requirements: []
|
156
156
|
rubyforge_project:
|
157
157
|
rubygems_version: 2.6.13
|