Skip to content

Commit 7acf638

Browse files
committed
update to 0.2.6
1 parent c372ab6 commit 7acf638

File tree

4 files changed

+8
-16
lines changed

4 files changed

+8
-16
lines changed

README.md

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -33,17 +33,19 @@ Run app in development:
3333
uv run fob
3434
```
3535

36+
The `--debug` option may be helpful. Also, the so-called database is actually just a human-readable/editable JSON file. Use `fob info` to see where the database is located.
37+
3638
# Test
3739

3840
```
3941
uvx pytest
4042
```
4143

42-
This is an end-to-end test. It installs `fob` to a temporary directory using `install.sh` and runs commands against it.
44+
This is an end-to-end test. It installs `fob` to a temporary directory using `install.sh` and runs commands against it. Github Actions is set up to run the same test upon pushing to main branch.
4345

4446
# Release
4547

46-
From the root of this repository, run `install.sh`. It uses pyinstaller to create a standalone binary and places it in `~/.local/bin` for access from anywhere on the system.
48+
From the root of this repository, run `./install.sh`. It uses pyinstaller to create a standalone binary and places it in `~/.local/bin` for access from anywhere on the system.
4749

4850
Create a new Github Release with a new tag and upload the executable. The binary is at: `dist/fob`.
4951

@@ -63,14 +65,4 @@ For example, to use a database synchronized across devices on your Dropbox,
6365
add the following line to `~/.bashrc` (for bash shell):
6466
```
6567
export FOB_DB_PATH="~/Dropbox/my-fob.db"
66-
```
67-
68-
# Inner Workings
69-
70-
## Database
71-
72-
[`TinyDB`](https://github.com/msiemens/tinydb) is used to persist the data as a human-readable JSON file.
73-
74-
Since we're not using a SQL database, we are responsible for upholding the integrity and consistency of the data before writing it to the database. We implement that by first receiving all the data from the user, validating it, and then 'committing' (writing) to the database in one go.
75-
76-
Run the program with debug option `fob -x` or `fob --debug` to see how the database gets updated. Also, the so-called database is actually just a human-readable JSON file, so you can open that to inspect / edit it if you're developing `fob`. Use `fob info` to see where the database is located.
68+
```

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[project]
22
name = "fob"
33
# Remember to update the version number in 'utils/utils.py' manually also.
4-
version = "0.2.5"
4+
version = "0.2.6"
55
description = "Focus Blocks: Simple and elegant daily time management tool."
66
readme = "README.md"
77
authors = [{ name = "tensorturtle", email = "[email protected]" }]

src/fob/utils/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
from rich import print
88

99
def get_version_number() -> tuple[int, int, int]:
10-
return (0,2,5)
10+
return (0,2,6)
1111

1212
def get_db_path(args: Namespace) -> Path:
1313
'''

uv.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)