ftg 2.1.1 → 2.1.3

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: de35bfc241cb43d91514af3ed40357193303db0c
4
- data.tar.gz: 840333d5b494a7052fc692092b9b1444f39b7d13
3
+ metadata.gz: feeeff42172f0407852071360f012ca14dcfd81f
4
+ data.tar.gz: 799e744b036c3e8fc775ab4eb6fcb5d76cb8ecaf
5
5
  SHA512:
6
- metadata.gz: 96a4206e5e5204b3716e8c81130e8a7bb0006535ccce4108726251c7cf97c8901c868b8989967b94bb484847180ae442d1413a76702d9ad7bf568d4178afc40f
7
- data.tar.gz: 36b10b7dc87acfe60b2a0a00ebcb3beb23109b6c9382b0be5df3595cd898fd53e0cb762c237ec8c62e8470f6259026dd2ce61378fb376b9b75159e15702484fc
6
+ metadata.gz: ac5a7ab0947229ca196d56106c8c422990bc7f06dc65028946c711793e57f26e780ead5faf877771f71ca065b885a9fb59481b37aa2be1976bed35feab31beb8
7
+ data.tar.gz: bf79b355f0c2bf8652f810f9ce80d95b31933d3242d32a7c227d2d50dee58ae171e677e639f2f38ef67c38731f07256b411a1b784c49481e8c5dbf6951d13fc1
data/.gitignore CHANGED
@@ -3,7 +3,6 @@ log/*
3
3
  db/*
4
4
  config/private.json
5
5
  current.txt
6
- ftg_old_/
7
6
  /.bundle/
8
7
  /.yardoc
9
8
  /Gemfile.lock
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ftg (2.1.1)
4
+ ftg (2.1.3)
5
5
  activerecord (>= 4.0.13)
6
6
  awesome_print (>= 1.3.11)
7
7
  httparty (>= 0.13.7)
data/ftg.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |spec|
7
7
  spec.name = 'ftg'
8
- spec.version = '2.1.1'#Ftg::VERSION
8
+ spec.version = '2.1.3'#Ftg::VERSION
9
9
  spec.authors = ['pinouchon']
10
10
  spec.email = ['pinouchon@gmail.com']
11
11
 
@@ -25,7 +25,7 @@ Gem::Specification.new do |spec|
25
25
  spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
26
26
  spec.bindir = 'bin'
27
27
  spec.executables = ['ftg'] #spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
28
- spec.require_paths = ['lib']
28
+ spec.require_paths = ['lib/ftg']
29
29
 
30
30
  spec.add_development_dependency 'bundler', '~> 1.10'
31
31
  spec.add_development_dependency 'rake', '~> 10.0'
@@ -1,5 +1,5 @@
1
- require_relative './colors'
2
- require_relative './utils'
1
+ require_relative '../colors'
2
+ require_relative '../utils'
3
3
  require_relative './ftg_options'
4
4
  require_relative './ftg_logger'
5
5
  require 'json'
@@ -45,9 +45,9 @@ class Ftg
45
45
 
46
46
  def require_models
47
47
  require 'active_record'
48
- require_relative './models/task'
49
- require_relative './migrations/create_tasks'
50
- require_relative './task_formatter'
48
+ require_relative '../models/task'
49
+ require_relative '../migrations/create_tasks'
50
+ require_relative '../task_formatter'
51
51
 
52
52
  ActiveRecord::Base.establish_connection(
53
53
  adapter: 'sqlite3',
@@ -184,7 +184,7 @@ Command list:
184
184
  end
185
185
 
186
186
  def edit(day, restore, reset)
187
- require_relative './interactive'
187
+ require_relative '../interactive'
188
188
  require_relative './ftg_stats'
189
189
  require_models
190
190
 
@@ -296,14 +296,14 @@ Command list:
296
296
 
297
297
  def console
298
298
  require 'pry'
299
- require_relative './interactive'
299
+ require_relative '../interactive'
300
300
  require_relative './ftg_stats'
301
301
  require_models
302
302
  binding.pry
303
303
  end
304
304
 
305
305
  def coffee(big = false)
306
- require_relative './coffee'
306
+ require_relative '../coffee'
307
307
  puts(big ? Coffee.coffee2 : Coffee.coffee1)
308
308
  puts "\nHave a nice coffee !"
309
309
  puts '=========================================='
File without changes
File without changes
File without changes
@@ -1,6 +1,3 @@
1
- require 'uri'
2
- require 'httparty'
3
-
4
1
  class FtgSync
5
2
  TOGGL_API_TOKEN = '317c14d9c290d3c6cc1e4f35a2ad8c80'
6
3
  TIME_ENTRIES_URL = 'https://toggl.com/api/v8/time_entries'
@@ -17,6 +14,9 @@ class FtgSync
17
14
  }
18
15
 
19
16
  def initialize
17
+ require 'uri'
18
+ require 'httparty'
19
+
20
20
  @headers = {
21
21
  'Content-Type' => 'application/json'
22
22
  }
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.1
4
+ version: 2.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - pinouchon
@@ -150,11 +150,11 @@ files:
150
150
  - ftg.gemspec
151
151
  - lib/coffee.rb
152
152
  - lib/colors.rb
153
- - lib/ftg.rb
154
- - lib/ftg_logger.rb
155
- - lib/ftg_options.rb
156
- - lib/ftg_stats.rb
157
- - lib/ftg_sync.rb
153
+ - lib/ftg/ftg.rb
154
+ - lib/ftg/ftg_logger.rb
155
+ - lib/ftg/ftg_options.rb
156
+ - lib/ftg/ftg_stats.rb
157
+ - lib/ftg/ftg_sync.rb
158
158
  - lib/idle_logger.rb
159
159
  - lib/interactive.rb
160
160
  - lib/migrations/create_tasks.rb
@@ -169,7 +169,7 @@ metadata:
169
169
  post_install_message:
170
170
  rdoc_options: []
171
171
  require_paths:
172
- - lib
172
+ - lib/ftg
173
173
  required_ruby_version: !ruby/object:Gem::Requirement
174
174
  requirements:
175
175
  - - ">="