task_time 0.0.1.pre.alpha

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 ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 32e89e25415e709fec44863b46bef7a5ea2c9bc6
4
+ data.tar.gz: 86e69e256f96121dfe6dc0014e1a6735cf568303
5
+ SHA512:
6
+ metadata.gz: e1b52a0f46c698a9b4328f391bc0ea3ba653555da8491871be8c4483803862679c0109515785d261e787d479f28d723bdbeaef6a037c132ce51f1a6f486c16f4
7
+ data.tar.gz: b52d4f2069c6bd74c6ccb3b9b4d9fba4d9b72e561eec50987164474c39e1a85780fc5563746ae51f10d348daf169d9bfcd16edc67bae8ed36708090dbd7026eb
data/.coveralls.yml ADDED
@@ -0,0 +1 @@
1
+ service_name: travis-ci
data/.gitignore ADDED
@@ -0,0 +1,34 @@
1
+ *.gem
2
+ *.rbc
3
+ /.config
4
+ /coverage/
5
+ /InstalledFiles
6
+ /pkg/
7
+ /spec/reports/
8
+ /test/tmp/
9
+ /test/version_tmp/
10
+ /tmp/
11
+
12
+ ## Specific to RubyMotion:
13
+ .dat*
14
+ .repl_history
15
+ build/
16
+
17
+ ## Documentation cache and generated files:
18
+ /.yardoc/
19
+ /_yardoc/
20
+ /doc/
21
+ /rdoc/
22
+
23
+ ## Environment normalisation:
24
+ /.bundle/
25
+ /lib/bundler/man/
26
+
27
+ # for a library or gem, you might want to ignore these files since the code is
28
+ # intended to run in multiple environments; otherwise, check them in:
29
+ # Gemfile.lock
30
+ # .ruby-version
31
+ # .ruby-gemset
32
+
33
+ # unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
34
+ .rvmrc
data/.ruby-version ADDED
@@ -0,0 +1 @@
1
+ ruby-2.1.3
data/.travis.yml ADDED
@@ -0,0 +1,28 @@
1
+ language: ruby
2
+
3
+ rvm:
4
+ - 2.1.3
5
+
6
+ env:
7
+ - TASKWARRIOR=v2.4.1
8
+
9
+ before_install:
10
+ - gem install bundler
11
+ - sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y
12
+ - sudo apt-get update -qq
13
+ - sudo apt-get install -qq build-essential cmake uuid-dev g++-4.8
14
+ - sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.8 50
15
+ - git clone https://git.tasktools.org/scm/tm/task.git
16
+ - cd task
17
+ - git checkout $TASK_VERSION
18
+ - git clean -dfx
19
+ - cmake .
20
+ - make
21
+ - sudo make install
22
+ - task --version
23
+ - cd ../
24
+
25
+ script: 'bundle exec rake'
26
+
27
+ notifications:
28
+ email: false
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in task_time.gemspec
4
+ gemspec
data/Gemfile.lock ADDED
@@ -0,0 +1,106 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ task_time (0.0.1)
5
+ rtasklib
6
+ thor
7
+
8
+ GEM
9
+ remote: https://rubygems.org/
10
+ specs:
11
+ celluloid (0.16.0)
12
+ timers (~> 4.0.0)
13
+ coderay (1.1.0)
14
+ coveralls (0.7.11)
15
+ multi_json (~> 1.10)
16
+ rest-client (>= 1.6.8, < 2)
17
+ simplecov (~> 0.9.1)
18
+ term-ansicolor (~> 1.3)
19
+ thor (~> 0.19.1)
20
+ diff-lcs (1.2.5)
21
+ docile (1.1.5)
22
+ ffi (1.9.6)
23
+ formatador (0.2.5)
24
+ guard (2.12.4)
25
+ formatador (>= 0.2.4)
26
+ listen (~> 2.7)
27
+ lumberjack (~> 1.0)
28
+ nenv (~> 0.1)
29
+ notiffany (~> 0.0)
30
+ pry (>= 0.9.12)
31
+ shellany (~> 0.0)
32
+ thor (>= 0.18.1)
33
+ guard-compat (1.2.1)
34
+ guard-rspec (4.5.0)
35
+ guard (~> 2.1)
36
+ guard-compat (~> 1.1)
37
+ rspec (>= 2.99.0, < 4.0)
38
+ hitimes (1.2.2)
39
+ listen (2.8.5)
40
+ celluloid (>= 0.15.2)
41
+ rb-fsevent (>= 0.9.3)
42
+ rb-inotify (>= 0.9)
43
+ lumberjack (1.0.9)
44
+ method_source (0.8.2)
45
+ mime-types (2.4.3)
46
+ multi_json (1.10.1)
47
+ nenv (0.2.0)
48
+ netrc (0.10.3)
49
+ notiffany (0.0.6)
50
+ nenv (~> 0.1)
51
+ shellany (~> 0.0)
52
+ pry (0.10.1)
53
+ coderay (~> 1.1.0)
54
+ method_source (~> 0.8.1)
55
+ slop (~> 3.4)
56
+ rake (10.4.2)
57
+ rb-fsevent (0.9.4)
58
+ rb-inotify (0.9.5)
59
+ ffi (>= 0.5.0)
60
+ rest-client (1.7.3)
61
+ mime-types (>= 1.16, < 3.0)
62
+ netrc (~> 0.7)
63
+ rspec (3.2.0)
64
+ rspec-core (~> 3.2.0)
65
+ rspec-expectations (~> 3.2.0)
66
+ rspec-mocks (~> 3.2.0)
67
+ rspec-core (3.2.1)
68
+ rspec-support (~> 3.2.0)
69
+ rspec-expectations (3.2.0)
70
+ diff-lcs (>= 1.2.0, < 2.0)
71
+ rspec-support (~> 3.2.0)
72
+ rspec-mocks (3.2.1)
73
+ diff-lcs (>= 1.2.0, < 2.0)
74
+ rspec-support (~> 3.2.0)
75
+ rspec-nc (0.2.0)
76
+ rspec (>= 2.9)
77
+ terminal-notifier (>= 1.4)
78
+ rspec-support (3.2.2)
79
+ rtasklib (0.1.0)
80
+ shellany (0.0.1)
81
+ simplecov (0.9.2)
82
+ docile (~> 1.1.0)
83
+ multi_json (~> 1.0)
84
+ simplecov-html (~> 0.9.0)
85
+ simplecov-html (0.9.0)
86
+ slop (3.6.0)
87
+ term-ansicolor (1.3.0)
88
+ tins (~> 1.0)
89
+ terminal-notifier (1.6.2)
90
+ thor (0.19.1)
91
+ timers (4.0.1)
92
+ hitimes
93
+ tins (1.3.4)
94
+
95
+ PLATFORMS
96
+ ruby
97
+
98
+ DEPENDENCIES
99
+ bundler (~> 1.7)
100
+ coveralls
101
+ guard
102
+ guard-rspec
103
+ rake (~> 10.0)
104
+ rspec
105
+ rspec-nc
106
+ task_time!
data/Guardfile ADDED
@@ -0,0 +1,11 @@
1
+ guard 'rspec', cmd: "bundle exec rspec --color --format=doc --format=Nc" do
2
+ # watch /lib/ files
3
+ watch(%r{^lib/(.+).rb$}) do |m|
4
+ "spec/#{m[1]}_spec.rb"
5
+ end
6
+
7
+ # watch /spec/ files
8
+ watch(%r{^spec/(.+).rb$}) do |m|
9
+ "spec/#{m[1]}.rb"
10
+ end
11
+ end
data/LICENSE ADDED
@@ -0,0 +1,22 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2015 Will Paul
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
22
+
data/README.md ADDED
@@ -0,0 +1,127 @@
1
+ # task_time
2
+
3
+ [![Travis CI Build Status](https://travis-ci.org/dropofwill/task_time.svg?branch=master)](https://travis-ci.org/dropofwill/task_time) [![Coveralls Coverage Status](https://coveralls.io/repos/dropofwill/task_time/badge.svg)](https://coveralls.io/r/dropofwill/task_time)
4
+
5
+
6
+ ## Description
7
+
8
+ A taskwarrior plugin that adds time tracking and reporting features (still WIP)
9
+
10
+
11
+
12
+ ## Usage
13
+
14
+ ```
15
+ task_time <filter> start
16
+ stop
17
+ switch
18
+ edit
19
+ modify ...
20
+ report ...
21
+ export ...
22
+ ```
23
+
24
+
25
+ ## Dependencies
26
+
27
+ * Taskwarrior > 2.4 (require custom UDAs, recurrences, and duration data types)
28
+
29
+ * Ruby > 2 (currently untested on older versions)
30
+
31
+ * Ruby gem in development [`dropofwill/rtasklib`](http://github.com/dropofwill/rtasklib)
32
+
33
+ * See `./task_time.gemspec` for the latest Ruby dependencies
34
+
35
+
36
+ ## Build Instructions
37
+
38
+ ```
39
+ rake build
40
+ ```
41
+
42
+
43
+ ## Install
44
+
45
+ ```
46
+ rake install
47
+ ```
48
+
49
+
50
+ ## License
51
+
52
+ Release under the MIT License (MIT) Copyright (&copy;) 2015 Will Paul
53
+
54
+
55
+ ## Contributing
56
+
57
+ 1. Fork it ( https://github.com/[my-github-username]/task_time/fork )
58
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
59
+ 3. Commit your changes (`git commit -am 'Add some feature'`)
60
+ 4. Push to the branch (`git push origin my-new-feature`)
61
+ 5. Create a new Pull Request
62
+
63
+
64
+ ## Research/Planning
65
+
66
+ ### Research
67
+
68
+ taskw v. tasklib v. new ruby bindings gem: *Decided to role my own ruby wrapper [**`rtasklib`**](http://github.com/dropofwill/rtasklib)*
69
+
70
+ taskserver: should I save all data in UDA's so taskserver can sync it properly?
71
+
72
+
73
+ ### Data & Configuration Plan
74
+
75
+ User ~/.taskrc
76
+
77
+ Client Custom UDA, data/config stored in ~/.task/clients.yaml
78
+
79
+ Project Default UDA, data/config stored in ~/.task/projects.yaml
80
+
81
+
82
+ #### Tracking UDAs
83
+
84
+ Estimate Custom UDA duration
85
+
86
+ Progress Custom UDA number, 0...1, optional user entered
87
+
88
+ Accuracy Custom UDA number, 0...1
89
+
90
+ Projection Custom UDA number, 0...1
91
+
92
+ Time Custom UDA duration
93
+
94
+ In-Out pairs
95
+
96
+
97
+ #### User -> Client -> Project default configs
98
+
99
+ currency: "USD", string
100
+
101
+ hourly_rate: 25, number
102
+
103
+ rounding?: true, boolean
104
+
105
+ rounding_minutes: 15, number
106
+
107
+
108
+ User configs
109
+
110
+
111
+ Project configs
112
+
113
+
114
+ Client configs
115
+
116
+
117
+ #### Reports
118
+
119
+ Timesheet
120
+
121
+ Workload
122
+
123
+ Accuracy
124
+
125
+ Resolution Time
126
+
127
+ Punch Card (a la Github Chart)
data/Rakefile ADDED
@@ -0,0 +1,9 @@
1
+ require "bundler/gem_tasks"
2
+ require "rspec/core/rake_task"
3
+
4
+ # run tests with `rake spec`
5
+ RSpec::Core::RakeTask.new :spec do |task|
6
+ task.rspec_opts = ["--color", "--format=doc", "--format=Nc"]
7
+ end
8
+
9
+ task default: :spec
data/bin/console ADDED
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "task_time"
5
+
6
+ # You can add fixtures and/or initialization code here to make experimenting
7
+ # with your gem easier. You can also use a different console, if you like.
8
+
9
+ # (If you use this, don't forget to add pry to your Gemfile!)
10
+ require "pry"
11
+ Pry.start
12
+
13
+ # require "irb"
14
+ # IRB.start
data/bin/setup ADDED
@@ -0,0 +1,7 @@
1
+ #!/bin/bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+
5
+ bundle install
6
+
7
+ # Do any other automated setup that you need to do here
data/bin/task_time ADDED
@@ -0,0 +1,5 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require_relative "../lib/task_time"
4
+
5
+ TaskTime::CLI.start
@@ -0,0 +1,3 @@
1
+ module TaskTime
2
+ VERSION = "0.0.1-alpha"
3
+ end
data/lib/task_time.rb ADDED
@@ -0,0 +1,37 @@
1
+ require_relative "task_time/version"
2
+ require "thor"
3
+
4
+ module TaskTime
5
+
6
+ class CLI < Thor
7
+
8
+ desc "start", "Start a timer on the specified task"
9
+ def start(filter)
10
+ end
11
+
12
+ desc "stop", "Stop the timer on the specified task"
13
+ def stop(filter)
14
+ end
15
+
16
+ desc "toggle", ""
17
+ def toggle(filter)
18
+ end
19
+
20
+ desc "edit", ""
21
+ def edit(filter)
22
+ end
23
+
24
+ desc "modify", ""
25
+ def modify(filter)
26
+ end
27
+
28
+ desc "report", ""
29
+ def report(filter)
30
+ end
31
+
32
+ desc "export", ""
33
+ def export(filter, format)
34
+ end
35
+
36
+ end
37
+ end
@@ -0,0 +1,5 @@
1
+ $LOAD_PATH.unshift File.expand_path('../../lib', __FILE__)
2
+ require 'coveralls'
3
+ require 'task_time'
4
+
5
+ Coveralls.wear!
@@ -0,0 +1,7 @@
1
+ require 'spec_helper'
2
+
3
+ describe "TaskTime" do
4
+ it 'has a version number' do
5
+ expect(TaskTime::VERSION).not_to be nil
6
+ end
7
+ end
data/task_time.gemspec ADDED
@@ -0,0 +1,31 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'task_time/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "task_time"
8
+ spec.version = TaskTime::VERSION
9
+ spec.authors = ["Will"]
10
+ spec.email = ["whp3652@rit.edu"]
11
+ spec.summary = %q{A taskwarrior plugin that adds time tracking and reporting features.}
12
+ spec.description = %q{A taskwarrior plugin that adds time tracking and reporting features. As such depends on taskwarrior tool to be installed/configured along with any Ruby dependencies in the Gemfile.}
13
+ spec.homepage = ""
14
+ spec.license = "MIT"
15
+
16
+ spec.files = `git ls-files -z`.split("\x0")
17
+ spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
18
+ spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
+ spec.require_paths = ["lib"]
20
+
21
+ spec.add_dependency "thor"
22
+ spec.add_dependency "rtasklib"
23
+
24
+ spec.add_development_dependency "bundler", "~> 1.7"
25
+ spec.add_development_dependency "rake", "~> 10.0"
26
+ spec.add_development_dependency "coveralls"
27
+ spec.add_development_dependency "rspec"
28
+ spec.add_development_dependency "rspec-nc"
29
+ spec.add_development_dependency "guard"
30
+ spec.add_development_dependency "guard-rspec"
31
+ end
metadata ADDED
@@ -0,0 +1,196 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: task_time
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1.pre.alpha
5
+ platform: ruby
6
+ authors:
7
+ - Will
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2015-05-10 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: thor
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rtasklib
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: bundler
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '1.7'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '1.7'
55
+ - !ruby/object:Gem::Dependency
56
+ name: rake
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '10.0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '10.0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: coveralls
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: rspec
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
97
+ - !ruby/object:Gem::Dependency
98
+ name: rspec-nc
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ">="
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ">="
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
111
+ - !ruby/object:Gem::Dependency
112
+ name: guard
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - ">="
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - ">="
123
+ - !ruby/object:Gem::Version
124
+ version: '0'
125
+ - !ruby/object:Gem::Dependency
126
+ name: guard-rspec
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - ">="
130
+ - !ruby/object:Gem::Version
131
+ version: '0'
132
+ type: :development
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - ">="
137
+ - !ruby/object:Gem::Version
138
+ version: '0'
139
+ description: A taskwarrior plugin that adds time tracking and reporting features.
140
+ As such depends on taskwarrior tool to be installed/configured along with any Ruby
141
+ dependencies in the Gemfile.
142
+ email:
143
+ - whp3652@rit.edu
144
+ executables:
145
+ - console
146
+ - setup
147
+ - task_time
148
+ extensions: []
149
+ extra_rdoc_files: []
150
+ files:
151
+ - ".coveralls.yml"
152
+ - ".gitignore"
153
+ - ".ruby-version"
154
+ - ".travis.yml"
155
+ - Gemfile
156
+ - Gemfile.lock
157
+ - Guardfile
158
+ - LICENSE
159
+ - README.md
160
+ - Rakefile
161
+ - bin/console
162
+ - bin/setup
163
+ - bin/task_time
164
+ - lib/task_time.rb
165
+ - lib/task_time/version.rb
166
+ - spec/spec_helper.rb
167
+ - spec/task_time_spec.rb
168
+ - task_time.gemspec
169
+ homepage: ''
170
+ licenses:
171
+ - MIT
172
+ metadata: {}
173
+ post_install_message:
174
+ rdoc_options: []
175
+ require_paths:
176
+ - lib
177
+ required_ruby_version: !ruby/object:Gem::Requirement
178
+ requirements:
179
+ - - ">="
180
+ - !ruby/object:Gem::Version
181
+ version: '0'
182
+ required_rubygems_version: !ruby/object:Gem::Requirement
183
+ requirements:
184
+ - - ">"
185
+ - !ruby/object:Gem::Version
186
+ version: 1.3.1
187
+ requirements: []
188
+ rubyforge_project:
189
+ rubygems_version: 2.2.2
190
+ signing_key:
191
+ specification_version: 4
192
+ summary: A taskwarrior plugin that adds time tracking and reporting features.
193
+ test_files:
194
+ - spec/spec_helper.rb
195
+ - spec/task_time_spec.rb
196
+ has_rdoc: