timetrap_toggl 0.1.0 → 0.2.1
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 +3 -1
- 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: badeba4113baa1f6a035c99b5f787f16778df00e
|
4
|
+
data.tar.gz: 2892cfb2544935b5f68b8bd94fab0d7b6acf564f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e69dd734540ab5db94cfcaff771946c218f6449f5ec51932a2106691022a10fcde8526e1b103055a701829976e7b63944c60b7200234b9454639649f7d7bfc85
|
7
|
+
data.tar.gz: e05e06a26b6e9abea360141afd86bf1093fc23c97051bb0efca4c67d52b8f6ca7a9ca34548f3365f47787e0be5af9565282471311c18f7213c59ddb4e82f783c
|
@@ -30,7 +30,9 @@ class TimetrapToggl::Formatter
|
|
30
30
|
end
|
31
31
|
|
32
32
|
def project
|
33
|
-
config.projects.find
|
33
|
+
config.projects.find do |p|
|
34
|
+
code.downcase == p["name"].downcase.gsub(/[^a-zA-Z\d\s]/, '').gsub(/\s+/, '-')
|
35
|
+
end
|
34
36
|
end
|
35
37
|
|
36
38
|
def task_id
|