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 +4 -4
 - data/.gitignore +0 -1
 - data/Gemfile.lock +1 -1
 - data/ftg.gemspec +2 -2
 - data/lib/{ftg.rb → ftg/ftg.rb} +8 -8
 - data/lib/{ftg_logger.rb → ftg/ftg_logger.rb} +0 -0
 - data/lib/{ftg_options.rb → ftg/ftg_options.rb} +0 -0
 - data/lib/{ftg_stats.rb → ftg/ftg_stats.rb} +0 -0
 - data/lib/{ftg_sync.rb → ftg/ftg_sync.rb} +3 -3
 - metadata +7 -7
 
    
        checksums.yaml
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            ---
         
     | 
| 
       2 
2 
     | 
    
         
             
            SHA1:
         
     | 
| 
       3 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       4 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 3 
     | 
    
         
            +
              metadata.gz: feeeff42172f0407852071360f012ca14dcfd81f
         
     | 
| 
      
 4 
     | 
    
         
            +
              data.tar.gz: 799e744b036c3e8fc775ab4eb6fcb5d76cb8ecaf
         
     | 
| 
       5 
5 
     | 
    
         
             
            SHA512:
         
     | 
| 
       6 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       7 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 6 
     | 
    
         
            +
              metadata.gz: ac5a7ab0947229ca196d56106c8c422990bc7f06dc65028946c711793e57f26e780ead5faf877771f71ca065b885a9fb59481b37aa2be1976bed35feab31beb8
         
     | 
| 
      
 7 
     | 
    
         
            +
              data.tar.gz: bf79b355f0c2bf8652f810f9ce80d95b31933d3242d32a7c227d2d50dee58ae171e677e639f2f38ef67c38731f07256b411a1b784c49481e8c5dbf6951d13fc1
         
     | 
    
        data/.gitignore
    CHANGED
    
    
    
        data/Gemfile.lock
    CHANGED
    
    
    
        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. 
     | 
| 
      
 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'
         
     | 
    
        data/lib/{ftg.rb → ftg/ftg.rb}
    RENAMED
    
    | 
         @@ -1,5 +1,5 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            require_relative ' 
     | 
| 
       2 
     | 
    
         
            -
            require_relative ' 
     | 
| 
      
 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 ' 
     | 
| 
       49 
     | 
    
         
            -
                require_relative ' 
     | 
| 
       50 
     | 
    
         
            -
                require_relative ' 
     | 
| 
      
 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 ' 
     | 
| 
      
 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 ' 
     | 
| 
      
 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 ' 
     | 
| 
      
 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. 
     | 
| 
      
 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 
     | 
    
         
             
              - - ">="
         
     |