toggl_billable 0.1.2 → 0.1.3

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: f3486df1361dcd39e0d20ab30d82abb7e5071320
4
- data.tar.gz: 7bcc0da0d5721d21417669b1f971eb7189265dec
3
+ metadata.gz: 49efd771edf7f7f159b0c3674a3a259ca947c88f
4
+ data.tar.gz: d1115460e8c27fc4071ab59d63ef9f78c8b7e2cf
5
5
  SHA512:
6
- metadata.gz: 26f3f253a11066f180258be4aa29cb3dabf949cbe133aafe72e3ea03be8021163df8598ece0c5a9cded06e119e287295ead2278a78ea63b9f99fddf543fc8482
7
- data.tar.gz: dcb7c8c2c7d46eab4fa6e6c87c458d87fd2ab1bb0cea318c488373500eae78a1c90828b093de22b6dfbbd647f05a922285c1420d9f60dafec8fcb10a79eea325
6
+ metadata.gz: f7d12499825c1639149691654e5bcdc68ff08e9e24ff74d62e6fa9d793a57a580f1d95e52cd8b1a5266fa729463aee8cc6296666534e0367e378c5f014dc56bc
7
+ data.tar.gz: d4adc2818939c139d3fd35afeb1ac241ce3317a282bcdebca8eccd58ca0d3a3d55dbf37c1d7377120f9b22e0682da5a6c704cd3b60e425b383a2f3d9108b1670
@@ -10,16 +10,16 @@ module TogglBillable
10
10
  params[:order_field] = options[:oder_field] || 'date'
11
11
  count = 0
12
12
 
13
- result = {}
13
+ @report = {}
14
14
 
15
15
  loop do
16
16
  request = "details?user_agent=reports&#{hash_to_params}"
17
17
  response = JSON.parse(Client.report_get(request).body)
18
18
 
19
- if result.size == 0
20
- result = response
19
+ if @report.size == 0
20
+ @report = response
21
21
  else
22
- result['data'] += response['data']
22
+ @report['data'] += response['data']
23
23
  end
24
24
 
25
25
  count += response['data'].count
@@ -28,8 +28,8 @@ module TogglBillable
28
28
  params[:page] += 1
29
29
  end
30
30
 
31
- result
31
+ @report
32
32
  end
33
33
  end
34
34
  end
35
- end
35
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: toggl_billable
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jaroslava Kadlecova
@@ -160,7 +160,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
160
160
  version: '0'
161
161
  requirements: []
162
162
  rubyforge_project:
163
- rubygems_version: 2.4.5.1
163
+ rubygems_version: 2.4.6
164
164
  signing_key:
165
165
  specification_version: 4
166
166
  summary: Basic operations with toggl API