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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: badeba4113baa1f6a035c99b5f787f16778df00e
4
- data.tar.gz: 2892cfb2544935b5f68b8bd94fab0d7b6acf564f
3
+ metadata.gz: 8d311c621e6cfd456adc811e26308f0c295a32f4
4
+ data.tar.gz: 563e7862307399e793b98510ed62e3593b024a3a
5
5
  SHA512:
6
- metadata.gz: e69dd734540ab5db94cfcaff771946c218f6449f5ec51932a2106691022a10fcde8526e1b103055a701829976e7b63944c60b7200234b9454639649f7d7bfc85
7
- data.tar.gz: e05e06a26b6e9abea360141afd86bf1093fc23c97051bb0efca4c67d52b8f6ca7a9ca34548f3365f47787e0be5af9565282471311c18f7213c59ddb4e82f783c
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 #{project["name"]} does not exist",
22
+ error: "Project #{code} does not exist",
23
23
  note: entry[:note]
24
24
  }
25
25
  end
@@ -1,3 +1,3 @@
1
1
  module TimetrapToggl
2
- VERSION = '0.2.1'
2
+ VERSION = '0.2.2'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: timetrap_toggl
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Miguel Palhas