tableau_trusted_auth 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/tableau_trusted_auth/version.rb +1 -1
- data/lib/tableau_trusted_auth/view.rb +4 -4
- 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: b5f9be2aabfcbb6f01a6d7266afe4952923102f5
|
4
|
+
data.tar.gz: 29d4480b6ed2bff84bec52e779832235775954a7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 752ad3faf0f11a91a00082cc21bb9d252caacc1b4ebfc92c537fa79a7d63ccfc4a126e409be8956b25b0682a2ee916b5a9f04d1585d5a47942c88d184b112378
|
7
|
+
data.tar.gz: 3fcf38f7de3725bced84af3ff3349238a7a9e85a9aef73f947d4e62936df57ea0615eac6b2f1e1a696ebab3e5a81292189d419e7bc44b6525ab4461f701fc39b
|
@@ -5,20 +5,20 @@ module TableauTrustedAuth
|
|
5
5
|
class View
|
6
6
|
include HTTParty
|
7
7
|
|
8
|
-
def initialize(server_address,
|
8
|
+
def initialize(server_address, params = {})
|
9
9
|
self.class.base_uri server_address
|
10
10
|
@server_address = server_address
|
11
|
-
@
|
11
|
+
@params = params
|
12
12
|
end
|
13
13
|
|
14
14
|
def get_ticket
|
15
|
-
resp = self.class.post '/trusted', { query:
|
15
|
+
resp = self.class.post '/trusted', { query: @params }
|
16
16
|
@unique_id = resp
|
17
17
|
end
|
18
18
|
|
19
19
|
def url(url)
|
20
20
|
get_ticket
|
21
|
-
"#{self.class.base_uri}/trusted/#{@unique_id}
|
21
|
+
"#{self.class.base_uri}/trusted/#{@unique_id}/#{url}"
|
22
22
|
end
|
23
23
|
end
|
24
24
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tableau_trusted_auth
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Caige Nichols
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-03-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httparty
|