teamlab 0.3.14 → 0.3.15

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 06647d8ce47959809359f6f834d0e4046ca13a66
4
- data.tar.gz: a5c899376abca621ca93a7da06d17a6563c28ee2
3
+ metadata.gz: eb6fea532be79b0a9651828980d03c225effa81c
4
+ data.tar.gz: 66fe225afa733bc6a5c6c38d0792c825190dcaac
5
5
  SHA512:
6
- metadata.gz: d7ad913793ea149ac16e7f13d52b59a61d88f28ea7d660863ba53fab0716a6ae5f87e5bd864b0e8d7e3707a1dfab97512808af6867db9a58e225b91fb071c2a4
7
- data.tar.gz: 584e44628a44e50f0a73d809e568f3a615ed31a6172a95970dacfe171a0fc7437e9865b7b6e0db6477c2b80a0bab0d1fd08f4d73c1652cd73b041eef4c54e1f4
6
+ metadata.gz: d6d8936a71c7118ddb0e2494e1f208172c52dad3a77536a14b559eb8ba82b6ea9b8156d9c7d897800bca72c6c73f4bd23b7893a5feb4874bc71f1af41f21c67f
7
+ data.tar.gz: b26e995b1eb1f02ac12e14ecef731cca2a527b88bfed4b63be791eba0d4f8394ba7508900224a77f77fa81f5cd3db6c83832a014c3f2c614f8a48f8ca7facdd2
data/Changelog.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Change log
2
2
 
3
+ ## 0.3.15
4
+ * Show more detailed information about response, if auth response not containing token
5
+
6
+ ## 0.3.14
7
+ * add method Project#update_message_status
8
+
3
9
  ## 0.3.13.1 & 0.3.13.2
4
10
  * Fix dependency of httparty
5
11
 
@@ -8,7 +8,9 @@ module Teamlab
8
8
  def self.configure(&block)
9
9
  @config ||= Config.new
10
10
  yield @config if block_given?
11
- @config.token = Teamlab::Request.new('authentication').post('', {:userName => @config.username, :password => @config.password}).body['response']['token']
11
+ auth_response = Teamlab::Request.new('authentication').post('', {:userName => @config.username, :password => @config.password}).body
12
+ fail "Cannot get response token for #{auth_response}" if auth_response['response'].nil? || auth_response['response']['token'].nil?
13
+ @config.token = auth_response['response']['token']
12
14
  @config.headers = { 'authorization' => @config.token}
13
15
  end
14
16
 
@@ -1,3 +1,3 @@
1
1
  module Teamlab
2
- VERSION = '0.3.14'
2
+ VERSION = '0.3.15'
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.14
4
+ version: 0.3.15
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-11-24 00:00:00.000000000 Z
13
+ date: 2015-12-16 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: httparty