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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7e4b6a94a6eeec97774861268215f1ab067c7f26
4
- data.tar.gz: 7f7fe8f8e2d77187db7e0e92ed6c5348dd315b56
3
+ metadata.gz: badeba4113baa1f6a035c99b5f787f16778df00e
4
+ data.tar.gz: 2892cfb2544935b5f68b8bd94fab0d7b6acf564f
5
5
  SHA512:
6
- metadata.gz: a82dc3f012b016b12499579d970012bc9723c8109e02edc81c0bfa7c043be070aea0a3353614820d9da342ae2f955e5054497fb9e4c5ba43940dbcd1b5bed39c
7
- data.tar.gz: df9e79006be48f7fc3813044ce4db54cb1ef8c0dffa8349df31adcb05b39313ac69c8eda84554651f3484ed574f85174f1ee06296006340f03dbafb952621061
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 { |p| p["name"].downcase == code.downcase }
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
@@ -1,3 +1,3 @@
1
1
  module TimetrapToggl
2
- VERSION = '0.1.0'
2
+ VERSION = '0.2.1'
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.1.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Miguel Palhas