luxafor-toggl 1.0.1 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5c37b35241c1d38eaff675f160a50c2e52898d119c333aac472a1661b69dea22
4
- data.tar.gz: 75593c50f4592f51ac0b367bf45c63110878cf12d3dbb7ccd53405b267564a74
3
+ metadata.gz: 77ef94b2425ea7f6cf0587b441792b5637729748c4261160182a5f2b67f561ba
4
+ data.tar.gz: ef485842107f874f85332ea52febddb89219d9cf3f0bf4cdca0895c6bd9bb382
5
5
  SHA512:
6
- metadata.gz: 3a5287b2c72e9f58e4d4121774b6774864cef7608a188b324de4593ef61efc66bbdefdf66af3910c2d650c19f895147cd99bb7b9cd2eca3ff7adb95e3db1559d
7
- data.tar.gz: ab210611f22f40e8b1278b6fb4dc05bab134fa4e453ef40e9d98f8bc3b14291caecfe50b43e985e3f8bc2a9e470affcc55656917a9030eb645b2f13695cd2ded
6
+ metadata.gz: ac0159c484cddc48b24b77875eab4efb14aeb614df08971110e35b157fd67835e44c7670b1f4d314ed1788c681126f7985c0c9670769bf93aab10231b172c7b7
7
+ data.tar.gz: fe1b4fdba95565a225653aa88c68262a56d51220f65a5f8d4c07ad30e06625804437b57eefe898129e2bb763e26433f7745bd3c22b680b013d4cfc2726fe0b2d
data/lib/luxafor/toggl.rb CHANGED
@@ -1,18 +1,18 @@
1
- require "awesome_print"
2
- require "date"
3
- require "value_semantics"
1
+ # require "awesome_print"
2
+ require 'date'
3
+ require 'value_semantics'
4
4
 
5
5
  require 'luxafor'
6
6
  require 'togglv8'
7
7
 
8
- require "luxafor/toggl/version"
9
- require "luxafor/toggl/client"
10
- require "luxafor/toggl/state"
8
+ require 'luxafor/toggl/version'
9
+ require 'luxafor/toggl/client'
10
+ require 'luxafor/toggl/state'
11
11
 
12
12
  # As of Apr 2020, because of a 1/2 removed awesome print dep in the gem which hasnt been released.
13
13
  # See https://github.com/kanet77/togglv8/issues/17
14
14
  class Logger
15
- def ap(*args, **kwargs, &block)
15
+ def ap(*_args, **_kwargs, &_block)
16
16
  true
17
17
  end
18
18
  end
@@ -45,11 +45,11 @@ module Luxafor
45
45
  end
46
46
 
47
47
  def state_file
48
- @state ||= ENV.fetch("LUXAFOR_TOGGL_STATE_FILE", "/tmp/#{Etc.getpwuid(Process.euid).name}-luxafor-toggl-state.json")
48
+ @state ||= ENV.fetch('LUXAFOR_TOGGL_STATE_FILE', "/tmp/#{Etc.getpwuid(Process.euid).name}-luxafor-toggl-state.json")
49
49
  end
50
50
 
51
51
  def idle_time
52
- @idle_time ||= ENV.fetch("LUXAFOR_TOGGL_IDLE_TIME", 60 * 60 * 2).to_i # Default is 2 hours before you're idle
52
+ @idle_time ||= ENV.fetch('LUXAFOR_TOGGL_IDLE_TIME', 60 * 60 * 2).to_i # Default is 2 hours before you're idle
53
53
  end
54
54
 
55
55
  def toggl_client
@@ -1,5 +1,5 @@
1
1
  module Luxafor
2
2
  module Toggl
3
- VERSION = '1.0.1'.freeze
3
+ VERSION = '1.0.2'.freeze
4
4
  end
5
5
  end
@@ -1,38 +1,38 @@
1
- lib = File.expand_path("lib", __dir__)
1
+ lib = File.expand_path('lib', __dir__)
2
2
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
3
- require "luxafor/toggl/version"
3
+ require 'luxafor/toggl/version'
4
4
 
5
5
  Gem::Specification.new do |spec|
6
- spec.name = "luxafor-toggl"
6
+ spec.name = 'luxafor-toggl'
7
7
  spec.version = Luxafor::Toggl::VERSION
8
- spec.authors = ["Gabriel Fortuna"]
9
- spec.email = ["gabriel@zero-one.io"]
8
+ spec.authors = ['Gabriel Fortuna']
9
+ spec.email = ['gabriel@zero-one.io']
10
10
 
11
- spec.summary = "Integrate your Luxafor flag with your toggl account"
12
- spec.description = "A simple utility to integrate and sync your Toggl activity with your Luxafor flag"
13
- spec.homepage = "https://www.zero-one.io"
14
- spec.licenses = "MIT"
11
+ spec.summary = 'Integrate your Luxafor flag with your toggl account'
12
+ spec.description = 'A simple utility to integrate and sync your Toggl activity with your Luxafor flag'
13
+ spec.homepage = 'https://www.zero-one.io'
14
+ spec.licenses = 'MIT'
15
15
 
16
- spec.metadata["allowed_push_host"] = "https://rubygems.org"
16
+ spec.metadata['allowed_push_host'] = 'https://rubygems.org'
17
17
 
18
- spec.metadata["homepage_uri"] = spec.homepage
19
- spec.metadata["source_code_uri"] = "https://github.com/gee-forr/luxafor-toggl"
20
- # spec.metadata["changelog_uri"] = "TODO: Put your gem's CHANGELOG.md URL here."
18
+ spec.metadata['homepage_uri'] = spec.homepage
19
+ spec.metadata['source_code_uri'] = 'https://github.com/gee-forr/luxafor-toggl'
20
+ # spec.metadata['changelog_uri'] = 'TODO: Put your gem's CHANGELOG.md URL here.'
21
21
 
22
22
  # Specify which files should be added to the gem when it is released.
23
23
  # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
24
- spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
24
+ spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
25
25
  `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
26
26
  end
27
27
 
28
- spec.bindir = "exe"
28
+ spec.bindir = 'exe'
29
29
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
30
- spec.require_paths = ["lib"]
30
+ spec.require_paths = ['lib']
31
31
 
32
32
  spec.add_development_dependency 'awesome_print', '~> 1'
33
33
  spec.add_development_dependency 'bundler', '~> 2.0'
34
34
  spec.add_development_dependency 'pry', '0.13.1'
35
- spec.add_development_dependency 'rake', '>= 12.3.3'
35
+ spec.add_development_dependency 'rake', '~> 12.3', '>= 12.3.3'
36
36
  spec.add_development_dependency 'rspec', '~> 3.0'
37
37
 
38
38
  spec.add_dependency 'luxafor', '~> 0.1.0'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: luxafor-toggl
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gabriel Fortuna
@@ -56,6 +56,9 @@ dependencies:
56
56
  name: rake
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '12.3'
59
62
  - - ">="
60
63
  - !ruby/object:Gem::Version
61
64
  version: 12.3.3
@@ -63,6 +66,9 @@ dependencies:
63
66
  prerelease: false
64
67
  version_requirements: !ruby/object:Gem::Requirement
65
68
  requirements:
69
+ - - "~>"
70
+ - !ruby/object:Gem::Version
71
+ version: '12.3'
66
72
  - - ">="
67
73
  - !ruby/object:Gem::Version
68
74
  version: 12.3.3