luxafor-toggl 1.0.2 → 1.0.3

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: 77ef94b2425ea7f6cf0587b441792b5637729748c4261160182a5f2b67f561ba
4
- data.tar.gz: ef485842107f874f85332ea52febddb89219d9cf3f0bf4cdca0895c6bd9bb382
3
+ metadata.gz: 960ea1dc6e2b421684d69b67f14afa94be0ce90c1fc5249f64420e7b1654bcef
4
+ data.tar.gz: f2b7e3b4f579706c626f8ec4b9760abb4ed0e9a80f4667624db9d4a299fa9bbf
5
5
  SHA512:
6
- metadata.gz: ac0159c484cddc48b24b77875eab4efb14aeb614df08971110e35b157fd67835e44c7670b1f4d314ed1788c681126f7985c0c9670769bf93aab10231b172c7b7
7
- data.tar.gz: fe1b4fdba95565a225653aa88c68262a56d51220f65a5f8d4c07ad30e06625804437b57eefe898129e2bb763e26433f7745bd3c22b680b013d4cfc2726fe0b2d
6
+ metadata.gz: 376f4fc0dfa4564644ad12304877e59c7548adb32c597b98884c7eb457d277df2157416d1a93e11b73024c035167c87be3af78a84160e20ff47ac9c4cb9965d2
7
+ data.tar.gz: 1ef445cab13f0cac4f3f23b0dc332f343c4a0f290ee9ec697476cce4309c70a930771d51b926f4eee39cf01b6bb574eea58208607a719bf2fe4a56ae44cdfb13
@@ -22,8 +22,8 @@ module Luxafor
22
22
  attr_reader :toggl, :luxafor, :state_file
23
23
 
24
24
  def latest_task
25
- start = DateTime.now - 1
26
- @_latest_task = toggl.get_time_entries(start_date: start).last
25
+ start = DateTime.now - 1
26
+ @_latest_task ||= toggl.get_time_entries(start_date: start).max_by { |task| Time.parse(task["start"]) }
27
27
  end
28
28
 
29
29
  def current_state
@@ -1,5 +1,5 @@
1
1
  module Luxafor
2
2
  module Toggl
3
- VERSION = '1.0.2'.freeze
3
+ VERSION = '1.0.3'.freeze
4
4
  end
5
5
  end
@@ -29,14 +29,14 @@ Gem::Specification.new do |spec|
29
29
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
30
30
  spec.require_paths = ['lib']
31
31
 
32
- spec.add_development_dependency 'awesome_print', '~> 1'
33
- spec.add_development_dependency 'bundler', '~> 2.0'
34
- spec.add_development_dependency 'pry', '0.13.1'
35
- spec.add_development_dependency 'rake', '~> 12.3', '>= 12.3.3'
36
- spec.add_development_dependency 'rspec', '~> 3.0'
37
-
38
- spec.add_dependency 'luxafor', '~> 0.1.0'
39
- spec.add_dependency 'oj', '~> 3.10', '>= 3.10.6'
40
- spec.add_dependency 'togglv8', '~> 1.2', '>= 1.2.1'
41
- spec.add_dependency 'value_semantics', '~> 3.2'
32
+ spec.add_development_dependency 'amazing_print', '>= 1.2'
33
+ spec.add_development_dependency 'bundler', '>= 2.0'
34
+ spec.add_development_dependency 'pry', '>= 0.13.1'
35
+ spec.add_development_dependency 'rake', '>= 12.3'
36
+ spec.add_development_dependency 'rspec', '>= 3.0'
37
+
38
+ spec.add_dependency 'luxafor', '~> 0.1'
39
+ spec.add_dependency 'oj', '>= 3.10.6'
40
+ spec.add_dependency 'togglv8-limitusus', '>= 1.2.2'
41
+ spec.add_dependency 'value_semantics', '~> 3.2'
42
42
  end
metadata CHANGED
@@ -1,89 +1,83 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: luxafor-toggl
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gabriel Fortuna
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-04-12 00:00:00.000000000 Z
11
+ date: 2023-10-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: awesome_print
14
+ name: amazing_print
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '1'
19
+ version: '1.2'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - "~>"
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: '1'
26
+ version: '1.2'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: bundler
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - "~>"
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
33
  version: '2.0'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - "~>"
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '2.0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: pry
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - '='
45
+ - - ">="
46
46
  - !ruby/object:Gem::Version
47
47
  version: 0.13.1
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - '='
52
+ - - ">="
53
53
  - !ruby/object:Gem::Version
54
54
  version: 0.13.1
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: rake
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - "~>"
60
- - !ruby/object:Gem::Version
61
- version: '12.3'
62
59
  - - ">="
63
60
  - !ruby/object:Gem::Version
64
- version: 12.3.3
61
+ version: '12.3'
65
62
  type: :development
66
63
  prerelease: false
67
64
  version_requirements: !ruby/object:Gem::Requirement
68
65
  requirements:
69
- - - "~>"
70
- - !ruby/object:Gem::Version
71
- version: '12.3'
72
66
  - - ">="
73
67
  - !ruby/object:Gem::Version
74
- version: 12.3.3
68
+ version: '12.3'
75
69
  - !ruby/object:Gem::Dependency
76
70
  name: rspec
77
71
  requirement: !ruby/object:Gem::Requirement
78
72
  requirements:
79
- - - "~>"
73
+ - - ">="
80
74
  - !ruby/object:Gem::Version
81
75
  version: '3.0'
82
76
  type: :development
83
77
  prerelease: false
84
78
  version_requirements: !ruby/object:Gem::Requirement
85
79
  requirements:
86
- - - "~>"
80
+ - - ">="
87
81
  - !ruby/object:Gem::Version
88
82
  version: '3.0'
89
83
  - !ruby/object:Gem::Dependency
@@ -92,21 +86,18 @@ dependencies:
92
86
  requirements:
93
87
  - - "~>"
94
88
  - !ruby/object:Gem::Version
95
- version: 0.1.0
89
+ version: '0.1'
96
90
  type: :runtime
97
91
  prerelease: false
98
92
  version_requirements: !ruby/object:Gem::Requirement
99
93
  requirements:
100
94
  - - "~>"
101
95
  - !ruby/object:Gem::Version
102
- version: 0.1.0
96
+ version: '0.1'
103
97
  - !ruby/object:Gem::Dependency
104
98
  name: oj
105
99
  requirement: !ruby/object:Gem::Requirement
106
100
  requirements:
107
- - - "~>"
108
- - !ruby/object:Gem::Version
109
- version: '3.10'
110
101
  - - ">="
111
102
  - !ruby/object:Gem::Version
112
103
  version: 3.10.6
@@ -114,32 +105,23 @@ dependencies:
114
105
  prerelease: false
115
106
  version_requirements: !ruby/object:Gem::Requirement
116
107
  requirements:
117
- - - "~>"
118
- - !ruby/object:Gem::Version
119
- version: '3.10'
120
108
  - - ">="
121
109
  - !ruby/object:Gem::Version
122
110
  version: 3.10.6
123
111
  - !ruby/object:Gem::Dependency
124
- name: togglv8
112
+ name: togglv8-limitusus
125
113
  requirement: !ruby/object:Gem::Requirement
126
114
  requirements:
127
- - - "~>"
128
- - !ruby/object:Gem::Version
129
- version: '1.2'
130
115
  - - ">="
131
116
  - !ruby/object:Gem::Version
132
- version: 1.2.1
117
+ version: 1.2.2
133
118
  type: :runtime
134
119
  prerelease: false
135
120
  version_requirements: !ruby/object:Gem::Requirement
136
121
  requirements:
137
- - - "~>"
138
- - !ruby/object:Gem::Version
139
- version: '1.2'
140
122
  - - ">="
141
123
  - !ruby/object:Gem::Version
142
- version: 1.2.1
124
+ version: 1.2.2
143
125
  - !ruby/object:Gem::Dependency
144
126
  name: value_semantics
145
127
  requirement: !ruby/object:Gem::Requirement
@@ -200,8 +182,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
200
182
  - !ruby/object:Gem::Version
201
183
  version: '0'
202
184
  requirements: []
203
- rubyforge_project:
204
- rubygems_version: 2.7.6
185
+ rubygems_version: 3.1.6
205
186
  signing_key:
206
187
  specification_version: 4
207
188
  summary: Integrate your Luxafor flag with your toggl account