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.
Files changed (6) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +1 -1
  3. data/bin/ftg +0 -2
  4. data/ftg.gemspec +13 -13
  5. data/lib/ftg.rb +1 -5
  6. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 92c8197b00052ec340f5194ff4ce479e0a0d5f01
4
- data.tar.gz: 75a3f5e12efd675f1227143fbb6820cc7fc79e3e
3
+ metadata.gz: de35bfc241cb43d91514af3ed40357193303db0c
4
+ data.tar.gz: 840333d5b494a7052fc692092b9b1444f39b7d13
5
5
  SHA512:
6
- metadata.gz: 366e8ef386838e830bca43183221c9f7dbe2b9ba2093236ed6dc50c649ea9ed3db4ffbab5ddcd460d49e977af0fb2115f1ff96a8aa13a794095b342fb8420c39
7
- data.tar.gz: 8ec4c71a42a07177645c26487da8371dad67bb29086097a7315dbec30eab783ffa013b9068d185300ad5394e4a3c163414aa6791fefb596159d7be289cfa65a4
6
+ metadata.gz: 96a4206e5e5204b3716e8c81130e8a7bb0006535ccce4108726251c7cf97c8901c868b8989967b94bb484847180ae442d1413a76702d9ad7bf568d4178afc40f
7
+ data.tar.gz: 36b10b7dc87acfe60b2a0a00ebcb3beb23109b6c9382b0be5df3595cd898fd53e0cb762c237ec8c62e8470f6259026dd2ce61378fb376b9b75159e15702484fc
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ftg (2.1)
4
+ ftg (2.1.1)
5
5
  activerecord (>= 4.0.13)
6
6
  awesome_print (>= 1.3.11)
7
7
  httparty (>= 0.13.7)
data/bin/ftg CHANGED
@@ -3,5 +3,3 @@
3
3
  require 'ftg'
4
4
 
5
5
  Ftg.new.run
6
- #chatter = Zerp::Chatter.new
7
- #chatter.say_hello
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 = "ftg"
8
- spec.version = '2.1'#Ftg::VERSION
9
- spec.authors = ["pinouchon"]
10
- spec.email = ["pinouchon@gmail.com"]
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 = "https://github.com/pinouchon/.ftg"
15
- spec.license = "MIT"
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'] = "https://rubygems.org"
20
+ spec.metadata['allowed_push_host'] = 'https://rubygems.org'
21
21
  else
22
- raise "RubyGems 2.0 or newer is required to protect against public gem pushes."
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 = "bin"
27
- spec.executables = ["ftg"] #spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
28
- spec.require_paths = ["lib"]
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 "bundler", "~> 1.10"
31
- spec.add_development_dependency "rake", "~> 10.0"
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: 'db/ftg.sqlite3'
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ftg
3
3
  version: !ruby/object:Gem::Version
4
- version: '2.1'
4
+ version: 2.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - pinouchon