teamlab 0.3.9 → 0.3.10

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: 3ea40be2fc46467dcb33fc55767539d6d76cda6c
4
- data.tar.gz: 6ae12049762de80ff0f48bac902dc16cafaa7407
3
+ metadata.gz: 9a01bc28543d8f8e08e61147df014d372cf60709
4
+ data.tar.gz: 7ebd85ec8bbda23d4b5d13a03eab111aebf7da7d
5
5
  SHA512:
6
- metadata.gz: ef648c3c81f00b53d107bc5bd514f8c14bb90d26a9838c3235dbaf1a55976e35dfa9fe16f80a0f8fdc1d44d9485fec2c91a965a7285f381f69c8c476d42d2c6b
7
- data.tar.gz: d77892c8cd61c3dd1a7114424a7051463f6782402b622e0d3f4da52568f7906abde6db7b0f9f56b5922250e4fb7cd69def7fc7d2f0ed54edde4eee8cab1d6e38
6
+ metadata.gz: 1e11b164e85d6b994aaea06566feacf343a97422fbdea6ff2a2539457374a4784cd1be94bb63eda2d6bcf8f613d7d16658a4a0940f39c5ac63e0984a52448e8b
7
+ data.tar.gz: 1163bb749496a6452f31aab98a4cbf1910d3b2d168794e0855245aa3b5b8c36d54de814a5955b8da78dc23840606f855377f18a1eb4a8c93794eb6b264d29863
data/Changelog.md CHANGED
@@ -1,22 +1,17 @@
1
1
  # Change log
2
2
 
3
- ## master (unreleased)
4
- ## 0.39
5
- =====
3
+ ## 0.3.10
4
+ * Add any error >= 400 handling
5
+
6
+ ## 0.3.9
6
7
  * Add method Files#update_file_history for version finilization
7
8
  * Fix Community#add_thread_to_category method
8
9
 
9
10
  ## 0.3.8
10
- =====
11
-
12
11
  * Fix settings#get_usage_quota method because of typo
13
12
 
14
13
  ## 0.3.7.1
15
- =====
16
-
17
14
  * Fix typo in identifying that portal is warming up
18
15
 
19
16
  ## 0.3.7
20
- =====
21
-
22
17
  * Correctly handle portal warming up situation
@@ -7,7 +7,7 @@ module Teamlab
7
7
  def initialize(http_response)
8
8
  @code = http_response.code
9
9
  @success = @code < 400
10
- fail 'Error 404' if @code == 404
10
+ fail "Error #{@code}" if @code >= 400
11
11
  fail TimeoutError, 'Portal is warming up' if http_response.parsed_response.include?('portal is being warmed')
12
12
  @body = http_response.respond_to?(:parsed_response) && http_response.parsed_response.key?('result') ? http_response.parsed_response['result'] : http_response.to_hash
13
13
  @error = @body['error']['message'] if @body.key?('error') && @body['error'].key?('message')
@@ -1,3 +1,3 @@
1
1
  module Teamlab
2
- VERSION = '0.3.9'
2
+ VERSION = '0.3.10'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: teamlab
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.9
4
+ version: 0.3.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - rzagudaev
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2015-06-22 00:00:00.000000000 Z
13
+ date: 2015-07-22 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: httparty
@@ -149,7 +149,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
149
149
  version: '0'
150
150
  requirements: []
151
151
  rubyforge_project:
152
- rubygems_version: 2.4.3
152
+ rubygems_version: 2.4.8
153
153
  signing_key:
154
154
  specification_version: 4
155
155
  summary: Ruby gem for OnlyOffice\TeamLab