ftg 2.1 → 2.1.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 +1 -1
- data/bin/ftg +0 -2
- data/ftg.gemspec +13 -13
- data/lib/ftg.rb +1 -5
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: de35bfc241cb43d91514af3ed40357193303db0c
|
|
4
|
+
data.tar.gz: 840333d5b494a7052fc692092b9b1444f39b7d13
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 96a4206e5e5204b3716e8c81130e8a7bb0006535ccce4108726251c7cf97c8901c868b8989967b94bb484847180ae442d1413a76702d9ad7bf568d4178afc40f
|
|
7
|
+
data.tar.gz: 36b10b7dc87acfe60b2a0a00ebcb3beb23109b6c9382b0be5df3595cd898fd53e0cb762c237ec8c62e8470f6259026dd2ce61378fb376b9b75159e15702484fc
|
data/Gemfile.lock
CHANGED
data/bin/ftg
CHANGED
data/ftg.gemspec
CHANGED
|
@@ -4,31 +4,31 @@
|
|
|
4
4
|
# require 'ftg/version'
|
|
5
5
|
|
|
6
6
|
Gem::Specification.new do |spec|
|
|
7
|
-
spec.name =
|
|
8
|
-
spec.version = '2.1'#Ftg::VERSION
|
|
9
|
-
spec.authors = [
|
|
10
|
-
spec.email = [
|
|
7
|
+
spec.name = 'ftg'
|
|
8
|
+
spec.version = '2.1.1'#Ftg::VERSION
|
|
9
|
+
spec.authors = ['pinouchon']
|
|
10
|
+
spec.email = ['pinouchon@gmail.com']
|
|
11
11
|
|
|
12
12
|
spec.summary = %q{Toggl replacement}
|
|
13
13
|
spec.description = %q{Toggl replacement. Time tracking based on git branches}
|
|
14
|
-
spec.homepage =
|
|
15
|
-
spec.license =
|
|
14
|
+
spec.homepage = 'https://github.com/pinouchon/.ftg'
|
|
15
|
+
spec.license = 'MIT'
|
|
16
16
|
|
|
17
17
|
# Prevent pushing this gem to RubyGems.org by setting 'allowed_push_host', or
|
|
18
18
|
# delete this section to allow pushing this gem to any host.
|
|
19
19
|
if spec.respond_to?(:metadata)
|
|
20
|
-
spec.metadata['allowed_push_host'] =
|
|
20
|
+
spec.metadata['allowed_push_host'] = 'https://rubygems.org'
|
|
21
21
|
else
|
|
22
|
-
raise
|
|
22
|
+
raise 'RubyGems 2.0 or newer is required to protect against public gem pushes.'
|
|
23
23
|
end
|
|
24
24
|
|
|
25
25
|
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
|
26
|
-
spec.bindir =
|
|
27
|
-
spec.executables = [
|
|
28
|
-
spec.require_paths = [
|
|
26
|
+
spec.bindir = 'bin'
|
|
27
|
+
spec.executables = ['ftg'] #spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
|
28
|
+
spec.require_paths = ['lib']
|
|
29
29
|
|
|
30
|
-
spec.add_development_dependency
|
|
31
|
-
spec.add_development_dependency
|
|
30
|
+
spec.add_development_dependency 'bundler', '~> 1.10'
|
|
31
|
+
spec.add_development_dependency 'rake', '~> 10.0'
|
|
32
32
|
|
|
33
33
|
spec.add_runtime_dependency 'httparty', '>= 0.13.7'
|
|
34
34
|
spec.add_runtime_dependency 'pry', '>= 0.10.2'
|
data/lib/ftg.rb
CHANGED
|
@@ -51,7 +51,7 @@ class Ftg
|
|
|
51
51
|
|
|
52
52
|
ActiveRecord::Base.establish_connection(
|
|
53
53
|
adapter: 'sqlite3',
|
|
54
|
-
database:
|
|
54
|
+
database: "#{@ftg_dir}/db/ftg.sqlite3"
|
|
55
55
|
)
|
|
56
56
|
fail('Cannot open task connection') unless Task.connection
|
|
57
57
|
end
|
|
@@ -80,7 +80,6 @@ Command list:
|
|
|
80
80
|
mail Send an email
|
|
81
81
|
stats [-d <day>] Show time stats
|
|
82
82
|
current Show current task
|
|
83
|
-
pop Stop current task and resume previous one
|
|
84
83
|
touch <task> Start and end a task right away
|
|
85
84
|
remove <task> Delete a task
|
|
86
85
|
list List of tasks/meetings of the day
|
|
@@ -311,6 +310,3 @@ Command list:
|
|
|
311
310
|
pause
|
|
312
311
|
end
|
|
313
312
|
end
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
# Ftg.new.run
|