power-bi 1.6.0 → 1.6.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/power-bi/workspace.rb +3 -3
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7bb58d4ad66517c0ab6a5c3b1e84d7166fb6a9765e7d64d68553aa42b2248d22
4
- data.tar.gz: 73feddb290710dd570f0882a80beb342f390ac60892c0d4cd3fb929e638c5fce
3
+ metadata.gz: ffdc95c611d1fc25b04ce01028a873ed5dc3b9a2d23d57129c439146c9fd7a02
4
+ data.tar.gz: 20a9328435110d6aaf8c26bb1ac5c622db65a9a1b137815e2546cccee7281033
5
5
  SHA512:
6
- metadata.gz: 4930595660692b8fa729cedd7f37b4ff204f958743f6373ee75ed05f54ce54f0b95913756623c6a583289cc4fd0b27c26898b228c46d915c9efe19e814295676
7
- data.tar.gz: e292be8cf4cfe313119626603c6aa694d1ea98a0e614e775efe068578b7646a64eedf48b63e9283559ce1dc6100023b930f511ec2f959f9fbd29d02d8ec9111c
6
+ metadata.gz: 9a3dca6fd7fe5cb3d15251b84d8de13d1613b8104b4638f52f5957b45de92628911d65b1b5495acd2dc674c026d4d59df8570e97ae84f93d0f928d89ce32c174
7
+ data.tar.gz: d0c1b426eb78530a3207eb1edb56e26a588c0fef9ccb28a9824a3af89e3ec7a1938ec613468179a413c0359d9d76d04d1101c0da8566d4bcbab3bd03921b35f7
@@ -23,13 +23,13 @@ module PowerBI
23
23
  status_history = ''
24
24
  old_status = ''
25
25
  while !success
26
- sleep 0.1
26
+ sleep 0.5
27
27
  iterations += 1
28
- raise UploadError.new("Upload did not succeed after #{timeout} seconds. Status history:#{status_history}") if iterations > (10 * timeout)
28
+ raise UploadError.new("Upload did not succeed after #{timeout} seconds. Status history:#{status_history}") if iterations > (2 * timeout)
29
29
  new_status = @tenant.get("/groups/#{@id}/imports/#{import_id}")[:importState].to_s
30
30
  success = (new_status == "Succeeded")
31
31
  if new_status != old_status
32
- status_history += "\nStatus change after #{iterations/10.0}s: '#{old_status}' --> '#{new_status}'"
32
+ status_history += "\nStatus change after #{iterations/2}s: '#{old_status}' --> '#{new_status}'"
33
33
  old_status = new_status
34
34
  end
35
35
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: power-bi
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.0
4
+ version: 1.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lode Cools
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-11-11 00:00:00.000000000 Z
11
+ date: 2021-12-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday