minder 0.3.0 → 0.3.1
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 +3 -3
- data/README.md +1 -1
- data/db/migrate/004_add_duration_in_seconds_to_periods.rb +13 -0
- data/lib/minder/database/database.rb +2 -1
- data/lib/minder/pomodoro/period.rb +1 -1
- data/lib/minder/pomodoro/pomodoro_runner.rb +4 -0
- data/lib/minder/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a848f2ba588f4e7dc89fa1d3a87d2ca0b1673c36
|
4
|
+
data.tar.gz: b1412ed49eace6ef535e19125458eaf4009c8a58
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c907d5c5f6745bf6f22fef0392d7217a1a98378ce6c3836658e994c65f1ecbff78f85935f971cd3aedb907fb93c60c6ef5be7c5847e8b94368c8eebf82bbbdff
|
7
|
+
data.tar.gz: 166c337ec38bacb9f607f49482e34e857cbe85d0dbc49b7ebf47883841274495229b6e4cf9a58c8f204ea8becb300322a95d2a8f54722df658598f68132613ba
|
data/Gemfile.lock
CHANGED
@@ -4,7 +4,6 @@ PATH
|
|
4
4
|
minder (0.3.0)
|
5
5
|
activesupport (~> 4.2, >= 4.2.1)
|
6
6
|
curses (~> 1.0, >= 1.0.1)
|
7
|
-
emoji
|
8
7
|
rom (~> 0.7, >= 0.7)
|
9
8
|
rom-sql (~> 0.5, >= 0.5)
|
10
9
|
sqlite3 (~> 1.3, >= 1.3.10)
|
@@ -36,8 +35,6 @@ GEM
|
|
36
35
|
descendants_tracker (0.0.4)
|
37
36
|
thread_safe (~> 0.3, >= 0.3.1)
|
38
37
|
diff-lcs (1.2.5)
|
39
|
-
emoji (1.0.4)
|
40
|
-
json
|
41
38
|
equalizer (0.0.11)
|
42
39
|
i18n (0.7.0)
|
43
40
|
ice_nine (0.11.1)
|
@@ -99,3 +96,6 @@ DEPENDENCIES
|
|
99
96
|
pry-stack_explorer (~> 0.4.9)
|
100
97
|
rspec (~> 3.2, >= 3.2)
|
101
98
|
timecop (~> 0.7, >= 0.7.3)
|
99
|
+
|
100
|
+
BUNDLED WITH
|
101
|
+
1.10.3
|
data/README.md
CHANGED
@@ -61,7 +61,7 @@ pressing Tab. The commands for each frame only work when the frame is focused.
|
|
61
61
|
Vim keystrokes:
|
62
62
|
- `/` to open a dialog to search within the list of tasks.
|
63
63
|
- `d` to mark a task as done.
|
64
|
-
-
|
64
|
+
- `e` to edit a task.
|
65
65
|
- `f` to open a dialog to filter the list of tasks.
|
66
66
|
- `gg` to go to top of task list and `G` to go to bottom of list.
|
67
67
|
- `j` to do down the list and `k` to go up.
|
@@ -67,6 +67,7 @@ class Database
|
|
67
67
|
|
68
68
|
def add_period(period)
|
69
69
|
rom.relations.periods.insert(started_at: period.started_at,
|
70
|
+
duration_in_seconds: period.duration_in_seconds,
|
70
71
|
type: period.type)
|
71
72
|
end
|
72
73
|
|
@@ -89,7 +90,7 @@ class Database
|
|
89
90
|
end
|
90
91
|
|
91
92
|
def periods
|
92
|
-
rom.relation(:
|
93
|
+
rom.relation(:periods).as(:entity).to_a
|
93
94
|
end
|
94
95
|
|
95
96
|
def pomodoros_today
|
@@ -9,7 +9,7 @@ module Minder
|
|
9
9
|
attribute :started_at, DateTime
|
10
10
|
attribute :ended_at, DateTime
|
11
11
|
attribute :duration_in_seconds, Integer, default: 0
|
12
|
-
attribute :completed, Boolean
|
12
|
+
attribute :completed, Boolean, default: false
|
13
13
|
|
14
14
|
def duration_in_minutes=(minutes)
|
15
15
|
self.duration_in_seconds = minutes.to_i * 60
|
data/lib/minder/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: minder
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Joseph Method
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-06-
|
11
|
+
date: 2015-06-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: curses
|
@@ -259,6 +259,7 @@ files:
|
|
259
259
|
- db/migrate/001_create_tasks.rb
|
260
260
|
- db/migrate/002_import_tasks.rb
|
261
261
|
- db/migrate/003_create_periods.rb
|
262
|
+
- db/migrate/004_add_duration_in_seconds_to_periods.rb
|
262
263
|
- lib/minder.rb
|
263
264
|
- lib/minder/application.rb
|
264
265
|
- lib/minder/cli/filter_frame.rb
|