productive 0.6.25 → 0.6.30
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/json_api_query_builder.rb +9 -3
- data/lib/productive.rb +4 -0
- data/lib/productive/resources/booking_item.rb +4 -0
- data/lib/productive/resources/dashboard.rb +5 -0
- data/lib/productive/resources/reports/booking_report.rb +9 -0
- data/lib/productive/resources/reports/financial_item_report.rb +9 -0
- data/lib/productive/version.rb +1 -1
- metadata +6 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7103aaf1857f1161d472045695e48caa77300465
|
4
|
+
data.tar.gz: 24fb9eb98bc73b88f865f2671aff3f62e64fde12
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 070c3ab92534d9c477fd6983b7af4f8bef0c3fa7f8ea38eaf117556630ceece7ad697e6731f01ce86bed1e067d760157c4e4fd8d9c57ff9a3c3d93003709e394
|
7
|
+
data.tar.gz: 442f855631378c34fb060d49745b5b8d086455e09f2410008611d731c43d76baa6027af1f579424b7c67bea4cb608bd502952cc4c546038761a77720c61ec927
|
@@ -1,10 +1,16 @@
|
|
1
1
|
class JsonApiQueryBuilder < JsonApiClient::Query::Builder
|
2
2
|
def all
|
3
3
|
@all ||= begin
|
4
|
-
results =
|
4
|
+
results = page = find
|
5
|
+
next_page = 2
|
5
6
|
|
6
|
-
|
7
|
-
|
7
|
+
loop do
|
8
|
+
break if page.links.links['next'].nil?
|
9
|
+
|
10
|
+
page = page(next_page).find
|
11
|
+
results += page
|
12
|
+
|
13
|
+
next_page += 1
|
8
14
|
end
|
9
15
|
|
10
16
|
results
|
data/lib/productive.rb
CHANGED
@@ -10,12 +10,14 @@ require 'productive/resources/activity'
|
|
10
10
|
require 'productive/resources/attachment'
|
11
11
|
require 'productive/resources/board'
|
12
12
|
require 'productive/resources/booking'
|
13
|
+
require 'productive/resources/booking_item'
|
13
14
|
require 'productive/resources/comment'
|
14
15
|
require 'productive/resources/company'
|
15
16
|
require 'productive/resources/contact_entry'
|
16
17
|
require 'productive/resources/contract'
|
17
18
|
require 'productive/resources/custom_field'
|
18
19
|
require 'productive/resources/custom_field_option'
|
20
|
+
require 'productive/resources/dashboard'
|
19
21
|
require 'productive/resources/deal'
|
20
22
|
require 'productive/resources/deal_status'
|
21
23
|
require 'productive/resources/document_type'
|
@@ -44,9 +46,11 @@ require 'productive/resources/reports/budget_report'
|
|
44
46
|
require 'productive/resources/reports/company_report'
|
45
47
|
require 'productive/resources/reports/deal_report'
|
46
48
|
require 'productive/resources/reports/expense_report'
|
49
|
+
require 'productive/resources/reports/financial_item_report'
|
47
50
|
require 'productive/resources/reports/invoice_report'
|
48
51
|
require 'productive/resources/reports/new_time_report'
|
49
52
|
require 'productive/resources/reports/new_booking_report'
|
53
|
+
require 'productive/resources/reports/booking_report'
|
50
54
|
require 'productive/resources/reports/payment_report'
|
51
55
|
require 'productive/resources/reports/person_report'
|
52
56
|
require 'productive/resources/reports/project_report'
|
data/lib/productive/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: productive
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.30
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Josip Bišćan
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-08-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rack
|
@@ -76,12 +76,14 @@ files:
|
|
76
76
|
- lib/productive/resources/billability_report.rb
|
77
77
|
- lib/productive/resources/board.rb
|
78
78
|
- lib/productive/resources/booking.rb
|
79
|
+
- lib/productive/resources/booking_item.rb
|
79
80
|
- lib/productive/resources/comment.rb
|
80
81
|
- lib/productive/resources/company.rb
|
81
82
|
- lib/productive/resources/contact_entry.rb
|
82
83
|
- lib/productive/resources/contract.rb
|
83
84
|
- lib/productive/resources/custom_field.rb
|
84
85
|
- lib/productive/resources/custom_field_option.rb
|
86
|
+
- lib/productive/resources/dashboard.rb
|
85
87
|
- lib/productive/resources/deal.rb
|
86
88
|
- lib/productive/resources/deal_status.rb
|
87
89
|
- lib/productive/resources/document_type.rb
|
@@ -106,10 +108,12 @@ files:
|
|
106
108
|
- lib/productive/resources/profitability_report.rb
|
107
109
|
- lib/productive/resources/project.rb
|
108
110
|
- lib/productive/resources/project_assignment.rb
|
111
|
+
- lib/productive/resources/reports/booking_report.rb
|
109
112
|
- lib/productive/resources/reports/budget_report.rb
|
110
113
|
- lib/productive/resources/reports/company_report.rb
|
111
114
|
- lib/productive/resources/reports/deal_report.rb
|
112
115
|
- lib/productive/resources/reports/expense_report.rb
|
116
|
+
- lib/productive/resources/reports/financial_item_report.rb
|
113
117
|
- lib/productive/resources/reports/invoice_report.rb
|
114
118
|
- lib/productive/resources/reports/new_booking_report.rb
|
115
119
|
- lib/productive/resources/reports/new_time_report.rb
|