timetrap_toggl 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/timetrap_toggl/formatter.rb +2 -2
- data/lib/timetrap_toggl/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8d311c621e6cfd456adc811e26308f0c295a32f4
|
4
|
+
data.tar.gz: 563e7862307399e793b98510ed62e3593b024a3a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 12a947e3500aba8b13a2ffad001c905dcdc3993215d454a14afe54aa7a037da9566f0c996d694d5dd2d6ee91e55ad8ec432b459fe9fab7dfa7b0fd46ac8e5f6f
|
7
|
+
data.tar.gz: d6af84e3b3e0b97ea54ac0d940913cc6c8d9415b3b1d569da3277ca2fe7cd42931c358a7a9d1442ac86add1a875e9697e4fbfa5d9892ba663897ad347a320db9
|
@@ -9,7 +9,7 @@ class TimetrapToggl::Formatter
|
|
9
9
|
end
|
10
10
|
|
11
11
|
def format
|
12
|
-
if project["id"]
|
12
|
+
if project && project["id"]
|
13
13
|
{
|
14
14
|
"description" => description,
|
15
15
|
"duration" => duration,
|
@@ -19,7 +19,7 @@ class TimetrapToggl::Formatter
|
|
19
19
|
}
|
20
20
|
else
|
21
21
|
{
|
22
|
-
error: "Project #{
|
22
|
+
error: "Project #{code} does not exist",
|
23
23
|
note: entry[:note]
|
24
24
|
}
|
25
25
|
end
|