wework 0.2.8 → 0.2.9

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: 49ede9c005f219aaf7e5b65e5fcb0842afcee747
4
- data.tar.gz: ec6cb1f8b6bcc8a64f2642abd8db529e7db252a3
3
+ metadata.gz: c0fbabd57cb7bd9087631129ecbba3fcd26cb507
4
+ data.tar.gz: c398798ee29911574473e39862849a5b87cfa44c
5
5
  SHA512:
6
- metadata.gz: 34b60b2baf4a58dafd3f719009dad951f609ccfba5773fbc4dc3b9419ce3158c91483148ea3eb9aa6ee5a25920b44896805317d3366cc939507dac6d840fb277
7
- data.tar.gz: eb1ca7b79e1176d5d84ba30933d90315e039943faed03769c2165544224ccd8e1fb3bb06377745e21ee68d9c193c739083d80da6ecb2b41092d43700c2c81c21
6
+ metadata.gz: 69b73d6d95cb9cab62a436c984183cfabac591c6c6762dab48b29f9c0012c7d1906db55ad76058cfed7cfcd35a88d519b4d5510675913ba12d16896d94f7d427
7
+ data.tar.gz: 718901cccc7dd9a7b837173c22e80a847336822823ec111ec016735a576919f38c03e19d97f893937baa2ee36e9dc9d1e1fffd7ae144c964417a5c4eabcb8620
data/.gitignore CHANGED
@@ -9,3 +9,4 @@
9
9
  /tmp/
10
10
  *.gem
11
11
  config.yml
12
+ .DS_Store
@@ -49,7 +49,7 @@ module Wework
49
49
  raise ResponseError.new(response.status) unless HTTP_OK_STATUS.include?(response.status)
50
50
 
51
51
  parse_response(response, as || :json) do |parse_as, data|
52
- break data unless parse_as == :json && data['errcode'].present?
52
+ break data unless parse_as == :json
53
53
  result = Wework::Result.new(data)
54
54
  raise AccessTokenExpiredError if result.token_expired?
55
55
  result
@@ -1,3 +1,3 @@
1
1
  module Wework
2
- VERSION = '0.2.8'.freeze
2
+ VERSION = '0.2.9'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wework
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.8
4
+ version: 0.2.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - seandong
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-03-27 00:00:00.000000000 Z
11
+ date: 2017-04-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: http