togman 0.4 → 0.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/toggl.rb +3 -0
  2. metadata +4 -4
data/lib/toggl.rb CHANGED
@@ -4,6 +4,8 @@ class Toggl
4
4
  @nonbill = nonbill
5
5
 
6
6
  @sess = Patron::Session.new
7
+ @sess.timeout = 60
8
+ @sess.connect_timeout = 60
7
9
  @sess.base_url = "https://www.toggl.com"
8
10
  @sess.username = api_key
9
11
  @sess.password = "api_token"
@@ -19,6 +21,7 @@ class Toggl
19
21
  log = {}
20
22
 
21
23
  res = @sess.get('/api/v5/time_entries.json?start_date=' + from + '&end_date=' + to).body
24
+ puts '/api/v5/time_entries.json?start_date=' + from + '&end_date=' + to
22
25
 
23
26
  JSON.parse(res)["data"].each do |item|
24
27
  raw = item["description"]
metadata CHANGED
@@ -1,12 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: togman
3
3
  version: !ruby/object:Gem::Version
4
- hash: 3
4
+ hash: 1
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
- - 4
9
- version: "0.4"
8
+ - 5
9
+ version: "0.5"
10
10
  platform: ruby
11
11
  authors:
12
12
  - Benjamin Johnson
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2011-11-08 00:00:00 Z
17
+ date: 2012-01-03 00:00:00 Z
18
18
  dependencies:
19
19
  - !ruby/object:Gem::Dependency
20
20
  name: patron