tomatoharvest 0.1.0 → 0.1.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: 6f52afcccd4a11b6c0c6cda0692079bebcf3a96f
4
- data.tar.gz: 32a18edb8874add209ba439cb094906c603d5d88
3
+ metadata.gz: f32b45e0755cb181e8c1af6e85bb33c039f7e436
4
+ data.tar.gz: 482eb24de4b9132d478545c51b0456d312009d51
5
5
  SHA512:
6
- metadata.gz: 8945effcbc9b58c7eb8669447893a22d1bbad71eb19799ce268332ec1c9da69e2a93a9a4f50570846b0c8856d1a867c3a4f805b6aa5646a82429ca0756b93ec2
7
- data.tar.gz: e5c24caf89932bb39c25fd0e912dce5bad88a123ee0363f522b979fe0677f24f0f115aa8533067455fc9043f5ebe95186aab0ee339f5222e180126adf2c8e2a5
6
+ metadata.gz: 0a8dc770a2b8244d069f6e73b4a5435bf47859867d5c6ea6b8cbc928e5c0061ba544d1158fadf8bd0e5350d8630f1dcf14eae5d33b28bc7d75e94908a16a566c
7
+ data.tar.gz: 6a92bef00a7c33e0ccbdfc3aa19102ad48dbeab9aba5c0c084f20d96093951065312dbc128183eafa723321a3fa9947eca6719aa8e7e620832b4f0801886c24d
@@ -0,0 +1,3 @@
1
+ ## 0.1.1 [☰](https://github.com/samuelreh/tomatoharvest/compare/0.1.0...0.1.1)
2
+
3
+ * Fix Remove command to save list
data/README.md CHANGED
@@ -3,11 +3,19 @@ Command line pomodoro timer that logs to Harvest.
3
3
 
4
4
  [![Code Climate](https://codeclimate.com/github/samuelreh/tomatoharvest.png)](https://codeclimate.com/github/samuelreh/tomatoharvest)
5
5
 
6
+ ## Usage
7
+
8
+ $ toma add "Some Task I Have To Do"
9
+ $ toma list
10
+ $ toma start 1
11
+
6
12
  ## Installation
7
13
 
8
14
  $ gem install tomatoharvest
9
15
 
10
- Create a file called ~/.tomaconfig with options:
16
+ #### Global Config
17
+
18
+ Create a file called `~/.toma/config.yaml` with options:
11
19
  ```yaml
12
20
  domain: myharvestdomain
13
21
  username: username
@@ -16,11 +24,15 @@ Create a file called ~/.tomaconfig with options:
16
24
  task: harvest task
17
25
  ```
18
26
 
19
- ## Usage
27
+ #### Project Config
20
28
 
21
- $ toma add "Some Task I Have To Do"
22
- $ toma list
23
- $ toma start 1
29
+ You can create a config for a specific project as well. Create a file called `path_to_project/.toma/config.yaml` with options:
30
+ ```yaml
31
+ project: different harvest project
32
+ task: harvest task
33
+ ```
34
+
35
+ You can also create a seperate list for a project by creating an empty file at `path_to_project/.toma/list.yaml`
24
36
 
25
37
  ## Contributing
26
38
 
@@ -49,6 +49,7 @@ module TomatoHarvest
49
49
  def remove(id)
50
50
  list = ListLoader.from_file
51
51
  task = list.remove(id)
52
+ list.save!
52
53
  say "#{id} removed"
53
54
  end
54
55
 
@@ -1,3 +1,3 @@
1
1
  module TomatoHarvest
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
@@ -30,6 +30,9 @@ describe TomatoHarvest::CLI do
30
30
  it 'removes task from the list' do
31
31
  out = capture_io { TomatoHarvest::CLI.start ['remove', 1] }.join ''
32
32
  expect(out).to match(/1 removed/)
33
+
34
+ out = capture_io { TomatoHarvest::CLI.start ['list'] }.join ''
35
+ expect(out).to match(/id name\n\z/)
33
36
  end
34
37
 
35
38
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tomatoharvest
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sam Reh
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-06-25 00:00:00.000000000 Z
11
+ date: 2014-06-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -131,6 +131,7 @@ extensions: []
131
131
  extra_rdoc_files: []
132
132
  files:
133
133
  - ".gitignore"
134
+ - CHANGELOG.md
134
135
  - Gemfile
135
136
  - LICENSE.txt
136
137
  - README.md