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 +4 -4
- data/Changelog.md +4 -0
- data/lib/teamlab/Request.rb +2 -2
- data/lib/teamlab/Response.rb +1 -0
- data/lib/teamlab/version.rb +1 -1
- data/teamlab.gemspec +5 -5
- metadata +10 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e138bee3a83a7c61ef94df7eed087bb45a446b72
|
4
|
+
data.tar.gz: ec90423f7b805433afeca0e26948d6415c953603
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: db40165470d2acd1148d52aee9050213ce0dfaa7d3659363394a7bf83663ae6bb00f9949ad253a67630b3350d9a99b620cd3dbfbfe269c28a53f065bf44e1a16
|
7
|
+
data.tar.gz: 64cd079f25a14f695762d5d1121ee9107c621e01fb55afac0d486839cb1dc06556acc5991f6bf082f156a16ffa5e4f1df2e0c645f168c05eaae56e1e28ff3719
|
data/Changelog.md
ADDED
data/lib/teamlab/Request.rb
CHANGED
@@ -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
|
43
|
+
raise "Can't #{type} to #{url} because of TimeoutError: #{timeout_exception}"
|
44
44
|
rescue Exception => e
|
45
45
|
fail e
|
46
46
|
end
|
data/lib/teamlab/Response.rb
CHANGED
@@ -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
|
data/lib/teamlab/version.rb
CHANGED
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://
|
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.
|
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-
|
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://
|
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
|