v2gpti 1.2.8 → 1.2.9
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
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 96dfd8bcd38a10e116f82a7688f8a187b4d86ff6
|
4
|
+
data.tar.gz: fd7bd01417b2a3e69506395c8488ad67df50ec1f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c30a01562387426435717b97a66ade4a5f99a97ce2fc29abca6982ed581d925550415a64bbf1d20d85ccd785e6a1356035831588d8bd654977824bbbb20f2b66
|
7
|
+
data.tar.gz: 36383e219a84ffcd932aec1ac291812958cab5c65aa528d17d7a829196894182de062923b79c68738a0d08e851a8cf8ad777e38a8197d16bd789c0a68dbce324
|
@@ -67,7 +67,7 @@ module GitPivotalTrackerIntegration
|
|
67
67
|
begin
|
68
68
|
@toggl.create_task(parameters(configuration, time_spent))
|
69
69
|
rescue TogglException => te
|
70
|
-
|
70
|
+
$LOG.log(te.backtrace.join("\n\t"))
|
71
71
|
end
|
72
72
|
end
|
73
73
|
|
@@ -75,6 +75,7 @@ module GitPivotalTrackerIntegration
|
|
75
75
|
begin
|
76
76
|
@toggl.create_time_entry(parameters(configuration, time_spent))
|
77
77
|
rescue TogglException => te
|
78
|
+
$LOG.log(te.backtrace.join("\n\t"))
|
78
79
|
puts "Unable to log the time."
|
79
80
|
end
|
80
81
|
end
|
@@ -392,8 +392,8 @@ class Toggl
|
|
392
392
|
return nil if full_res.env[:body] == 'null'
|
393
393
|
res = JSON.parse(full_res.env[:body])
|
394
394
|
res.is_a?(Array) || res['data'].nil? ? res : res['data']
|
395
|
-
rescue
|
396
|
-
raise TogglException, "GET #{resource} Failed"
|
395
|
+
rescue StandardError => e
|
396
|
+
raise TogglException, "GET #{resource} Failed -- #{e.message}"
|
397
397
|
end
|
398
398
|
|
399
399
|
def post(resource, data)
|
@@ -406,8 +406,8 @@ class Toggl
|
|
406
406
|
else
|
407
407
|
puts(full_res.env[:body])
|
408
408
|
end
|
409
|
-
rescue
|
410
|
-
raise TogglException, "POST #{resource} / #{data} Failed"
|
409
|
+
rescue StandardError => e
|
410
|
+
raise TogglException, "POST #{resource} / #{data} Failed -- #{e.message}"
|
411
411
|
end
|
412
412
|
|
413
413
|
def put(resource, data)
|
@@ -420,8 +420,8 @@ class Toggl
|
|
420
420
|
else
|
421
421
|
puts(full_res.env[:body])
|
422
422
|
end
|
423
|
-
rescue
|
424
|
-
raise TogglException, "PUT #{resource} / #{data} Failed"
|
423
|
+
rescue StandardError => e
|
424
|
+
raise TogglException, "PUT #{resource} / #{data} Failed -- #{e.message}"
|
425
425
|
end
|
426
426
|
|
427
427
|
def delete(resource)
|
@@ -429,8 +429,8 @@ class Toggl
|
|
429
429
|
full_res = self.conn.delete(resource)
|
430
430
|
# ap full_res.env if @debug
|
431
431
|
(200 == full_res.env[:status]) ? "" : puts(full_res.env[:body])
|
432
|
-
rescue
|
433
|
-
raise TogglException, "DELETE #{resource} Failed"
|
432
|
+
rescue StandardError => e
|
433
|
+
raise TogglException, "DELETE #{resource} Failed -- #{e.message}"
|
434
434
|
end
|
435
435
|
|
436
436
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: v2gpti
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jeff Wolski
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date:
|
13
|
+
date: 2017-01-24 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: highline
|
@@ -186,28 +186,28 @@ dependencies:
|
|
186
186
|
requirements:
|
187
187
|
- - "~>"
|
188
188
|
- !ruby/object:Gem::Version
|
189
|
-
version: 4.2
|
189
|
+
version: '4.2'
|
190
190
|
type: :runtime
|
191
191
|
prerelease: false
|
192
192
|
version_requirements: !ruby/object:Gem::Requirement
|
193
193
|
requirements:
|
194
194
|
- - "~>"
|
195
195
|
- !ruby/object:Gem::Version
|
196
|
-
version: 4.2
|
196
|
+
version: '4.2'
|
197
197
|
- !ruby/object:Gem::Dependency
|
198
198
|
name: activemodel
|
199
199
|
requirement: !ruby/object:Gem::Requirement
|
200
200
|
requirements:
|
201
|
-
- - "
|
201
|
+
- - "~>"
|
202
202
|
- !ruby/object:Gem::Version
|
203
|
-
version: '
|
203
|
+
version: '4.2'
|
204
204
|
type: :runtime
|
205
205
|
prerelease: false
|
206
206
|
version_requirements: !ruby/object:Gem::Requirement
|
207
207
|
requirements:
|
208
|
-
- - "
|
208
|
+
- - "~>"
|
209
209
|
- !ruby/object:Gem::Version
|
210
|
-
version: '
|
210
|
+
version: '4.2'
|
211
211
|
- !ruby/object:Gem::Dependency
|
212
212
|
name: bundler
|
213
213
|
requirement: !ruby/object:Gem::Requirement
|