teamlab 0.3.6 → 0.3.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9314611c148424b76e4cd02240ffdc388cb67d9a
4
- data.tar.gz: 41d5b9afb81e6e5009a46b129e2588f33454d060
3
+ metadata.gz: e138bee3a83a7c61ef94df7eed087bb45a446b72
4
+ data.tar.gz: ec90423f7b805433afeca0e26948d6415c953603
5
5
  SHA512:
6
- metadata.gz: 4a6a6babef91487614cb6429f620161f7eb624679fc99efedfca4833bccc94c43187bd87368c96b48c1c898aa6a6ef53277f57b87881f4405280048e9ee1092d
7
- data.tar.gz: e49b6a4a129a112e4bfcfeb64bbf7323d2b13ee0d1b26465d289cecdf61862c037c4e662008adf1763f2eb9df4f6a033c6a0532f0943b05e1a648519b9671651
6
+ metadata.gz: db40165470d2acd1148d52aee9050213ce0dfaa7d3659363394a7bf83663ae6bb00f9949ad253a67630b3350d9a99b620cd3dbfbfe269c28a53f065bf44e1a16
7
+ data.tar.gz: 64cd079f25a14f695762d5d1121ee9107c621e01fb55afac0d486839cb1dc06556acc5991f6bf082f156a16ffa5e4f1df2e0c645f168c05eaae56e1e28ff3719
data/Changelog.md ADDED
@@ -0,0 +1,4 @@
1
+ 0.3.7
2
+ =====
3
+
4
+ * Correctly handle portal warming up situation
@@ -37,10 +37,10 @@ module Teamlab
37
37
  attempts = 0
38
38
  begin
39
39
  response = Teamlab::Response.new(HTTMultiParty.send(type, url, opts))
40
- rescue TimeoutError
40
+ rescue TimeoutError => timeout_exception
41
41
  attempts += 1
42
42
  retry if attempts < 3
43
- raise 'Can\'t ' + type.to_s + ' ' + url.to_s
43
+ raise "Can't #{type} to #{url} because of TimeoutError: #{timeout_exception}"
44
44
  rescue Exception => e
45
45
  fail e
46
46
  end
@@ -8,6 +8,7 @@ module Teamlab
8
8
  @code = http_response.code
9
9
  @success = @code < 400
10
10
  fail 'Error 404' if @code == 404
11
+ fail TimeoutError, 'Portal is warming up' unless http_response.parsed_response.include?('portal is being warmed')
11
12
  @body = http_response.respond_to?(:parsed_response) && http_response.parsed_response.key?('result') ? http_response.parsed_response['result'] : http_response.to_hash
12
13
  @error = @body['error']['message'] if @body.key?('error') && @body['error'].key?('message')
13
14
  end
@@ -1,3 +1,3 @@
1
1
  module Teamlab
2
- VERSION = '0.3.6'
2
+ VERSION = '0.3.7'
3
3
  end
data/teamlab.gemspec CHANGED
@@ -6,11 +6,11 @@ require 'teamlab/version'
6
6
  Gem::Specification.new do |spec|
7
7
  spec.name = "teamlab"
8
8
  spec.version = Teamlab::VERSION
9
- spec.authors = ["rzagudaev"]
10
- spec.email = ["rzagudaev@gmail.com"]
11
- spec.description = %q{Ruby Framework to interact with TeamLab API 2.0}
12
- spec.summary = %q{Ruby gem for TeamLab}
13
- spec.homepage = 'https://bitbucket.org/rzagudaev/gemteamlab/overview'
9
+ spec.authors = ["rzagudaev", 'shockwavenn', 'DaftTrick']
10
+ spec.email = ["rzagudaev@gmail.com", 'shockwavenn@gmail.com', 'nazarov90@gmail.com']
11
+ spec.description = %q{Ruby Framework to interact with OnlyOffice\\TeamLab API 2.0}
12
+ spec.summary = %q{Ruby gem for OnlyOffice\\TeamLab}
13
+ spec.homepage = 'https://github.com/onlyoffice-testing-robot/GemTeamlab'
14
14
  spec.license = "MIT"
15
15
 
16
16
  spec.files = `git ls-files`.split($/)
metadata CHANGED
@@ -1,14 +1,16 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: teamlab
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.6
4
+ version: 0.3.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - rzagudaev
8
+ - shockwavenn
9
+ - DaftTrick
8
10
  autorequire:
9
11
  bindir: bin
10
12
  cert_chain: []
11
- date: 2015-05-26 00:00:00.000000000 Z
13
+ date: 2015-05-29 00:00:00.000000000 Z
12
14
  dependencies:
13
15
  - !ruby/object:Gem::Dependency
14
16
  name: httparty
@@ -94,14 +96,17 @@ dependencies:
94
96
  - - ">="
95
97
  - !ruby/object:Gem::Version
96
98
  version: '0'
97
- description: Ruby Framework to interact with TeamLab API 2.0
99
+ description: Ruby Framework to interact with OnlyOffice\TeamLab API 2.0
98
100
  email:
99
101
  - rzagudaev@gmail.com
102
+ - shockwavenn@gmail.com
103
+ - nazarov90@gmail.com
100
104
  executables: []
101
105
  extensions: []
102
106
  extra_rdoc_files: []
103
107
  files:
104
108
  - ".gitignore"
109
+ - Changelog.md
105
110
  - Gemfile
106
111
  - LICENSE.txt
107
112
  - README.md
@@ -124,7 +129,7 @@ files:
124
129
  - spec/spec_helper.rb
125
130
  - spec/support/http_data.rb
126
131
  - teamlab.gemspec
127
- homepage: https://bitbucket.org/rzagudaev/gemteamlab/overview
132
+ homepage: https://github.com/onlyoffice-testing-robot/GemTeamlab
128
133
  licenses:
129
134
  - MIT
130
135
  metadata: {}
@@ -147,7 +152,7 @@ rubyforge_project:
147
152
  rubygems_version: 2.4.3
148
153
  signing_key:
149
154
  specification_version: 4
150
- summary: Ruby gem for TeamLab
155
+ summary: Ruby gem for OnlyOffice\TeamLab
151
156
  test_files:
152
157
  - spec/lib/Teamlab_spec.rb
153
158
  - spec/spec_helper.rb