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 +4 -4
- data/Changelog.md +6 -0
- data/lib/teamlab/Config.rb +3 -1
- data/lib/teamlab/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: eb6fea532be79b0a9651828980d03c225effa81c
|
4
|
+
data.tar.gz: 66fe225afa733bc6a5c6c38d0792c825190dcaac
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d6d8936a71c7118ddb0e2494e1f208172c52dad3a77536a14b559eb8ba82b6ea9b8156d9c7d897800bca72c6c73f4bd23b7893a5feb4874bc71f1af41f21c67f
|
7
|
+
data.tar.gz: b26e995b1eb1f02ac12e14ecef731cca2a527b88bfed4b63be791eba0d4f8394ba7508900224a77f77fa81f5cd3db6c83832a014c3f2c614f8a48f8ca7facdd2
|
data/Changelog.md
CHANGED
data/lib/teamlab/Config.rb
CHANGED
@@ -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
|
-
|
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
|
|
data/lib/teamlab/version.rb
CHANGED
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.
|
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-
|
13
|
+
date: 2015-12-16 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: httparty
|