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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 85491a789b74ec127cf00a3a544e3b1b569e5402
4
- data.tar.gz: 3171997f009abc417ea25e4bfac2ba8bfcfb8d3a
3
+ metadata.gz: 7103aaf1857f1161d472045695e48caa77300465
4
+ data.tar.gz: 24fb9eb98bc73b88f865f2671aff3f62e64fde12
5
5
  SHA512:
6
- metadata.gz: 1aefe7904ff86fa7dd3313a390687a414163e21f81e4396e020288f0e1600fe228a86ca4ee5838233cedcf062ecc8428d8f43fc2323691d14cd0cee307e0918b
7
- data.tar.gz: 28a308549a68dd39de5ffb13a02607422ee66e36104351a3010b83b3d9afea1879d3c028e0a366bbdf03a920df9363513415758bc9daecef46b1cd4daebf808b
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
- meta.total_pages.times do |page|
7
- results += page(page + 1).find
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
@@ -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'
@@ -0,0 +1,4 @@
1
+ module Productive
2
+ class BookingItem < BaseAccount
3
+ end
4
+ end
@@ -0,0 +1,5 @@
1
+ module Productive
2
+ class Dashboard < BaseAccount
3
+ has_one :person
4
+ end
5
+ end
@@ -0,0 +1,9 @@
1
+ module Productive
2
+ module Reports
3
+ class BookingReport < BaseAccount
4
+ def self.table_name
5
+ "reports/booking_reports"
6
+ end
7
+ end
8
+ end
9
+ end
@@ -0,0 +1,9 @@
1
+ module Productive
2
+ module Reports
3
+ class FinancialItemReport < BaseAccount
4
+ def self.table_name
5
+ "reports/financial_item_reports"
6
+ end
7
+ end
8
+ end
9
+ end
@@ -1,3 +1,3 @@
1
1
  module Productive
2
- VERSION = '0.6.25'.freeze
2
+ VERSION = '0.6.30'.freeze
3
3
  end
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.25
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-02-07 00:00:00.000000000 Z
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