tempo-cli 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- tempo (0.1.0)
4
+ tempo-cli (0.1.2)
5
5
  chronic (~> 0.10.2)
6
6
  gli (= 2.6.1)
7
7
 
@@ -52,5 +52,5 @@ DEPENDENCIES
52
52
  pry (~> 0.9.12.2)
53
53
  rake
54
54
  rdoc
55
- tempo!
55
+ tempo-cli!
56
56
  turn (~> 0.9.6)
data/bin/tempo CHANGED
@@ -8,7 +8,10 @@ include GLI::App
8
8
  # to preserve all the args in ARGV:
9
9
  # preserve_argv
10
10
 
11
- program_desc 'Command line time tracking by project'
11
+ program_desc 'Command line time tracking by project
12
+
13
+ For more help on any command, run: tempo [command] --help
14
+ '
12
15
 
13
16
  version Tempo::VERSION
14
17
 
@@ -32,11 +35,8 @@ switch [:i, :id]
32
35
  desc 'Manage the Projects that timed tasks are assigned to'
33
36
  long_desc "Manage the Projects that timed tasks are assigned to.
34
37
 
35
- Manage the Projects that timed tasks are assigned to.
36
38
  By default, lists the current project, or with --list tag, lists all projects.
37
- The active project will be marked by an asterisk.
38
-
39
- If supplied with arguments and no command options,
39
+ The active project will be marked by an asterisk. If supplied with arguments and no command options,
40
40
  a new project will be added.
41
41
 
42
42
  Arguments supplied to --list, --delete, and --[un]tag
@@ -7,6 +7,8 @@ module Tempo
7
7
 
8
8
  def parse options, args
9
9
 
10
+ return Views.project_assistance if Model::Project.index.empty?
11
+
10
12
  return Views::arrange_parse_error unless args.include? ":"
11
13
 
12
14
  parent_args = []
data/lib/tempo/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Tempo
2
- VERSION = '0.1.2'
2
+ VERSION = '0.1.3'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tempo-cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-12-01 00:00:00.000000000 Z
12
+ date: 2013-12-02 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake