minder 0.3.0 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a8777b449e7047ba218141d8e227aee5e6bb2311
4
- data.tar.gz: a019f497edd579dcfc62c26da1ac6d53bd49612b
3
+ metadata.gz: a848f2ba588f4e7dc89fa1d3a87d2ca0b1673c36
4
+ data.tar.gz: b1412ed49eace6ef535e19125458eaf4009c8a58
5
5
  SHA512:
6
- metadata.gz: 106ec92ccd594c3f53d9bc631df7ddb0d3dfcfa4d8dd34bfce525d28d15c9569bb29eb9fb867f23c1c2648d0dac7c1bad76d28d58bc1b18bec9e332214020a8f
7
- data.tar.gz: 0144effc35f9fa967662fed2a9a86a9e5125cbf43a78aa45a01ec7f784a91fbf260c81d6a2caf5630dbd872aa94546af31b413168569106b863f0b1a82c2834f
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
- - ~~`e` to edit the whole tasks list in your `$EDITOR`~~ (this is broken atm).
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.
@@ -0,0 +1,13 @@
1
+ Sequel.migration do
2
+ up do
3
+ alter_table(:periods) do
4
+ add_column :duration_in_seconds, Integer, :default=>0
5
+ end
6
+ end
7
+
8
+ down do
9
+ alter_table(:periods) do
10
+ drop_column(:duration_in_seconds)
11
+ end
12
+ end
13
+ end
@@ -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(:tasks).active.as(:entity).to_a
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
@@ -79,5 +79,9 @@ module Minder
79
79
  def pomodoros_today
80
80
  @pomodoros_today ||= database.pomodoros_today
81
81
  end
82
+
83
+ def periods
84
+ database.periods
85
+ end
82
86
  end
83
87
  end
@@ -1,3 +1,3 @@
1
1
  module Minder
2
- VERSION = '0.3.0'
2
+ VERSION = '0.3.1'
3
3
  end
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.0
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-08 00:00:00.000000000 Z
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