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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 52b165f7d334663f01032c55f88782c697b4cafd
4
- data.tar.gz: dfb99bf8bb17f45adc308b9f6708c14b6e232228
3
+ metadata.gz: b5f9be2aabfcbb6f01a6d7266afe4952923102f5
4
+ data.tar.gz: 29d4480b6ed2bff84bec52e779832235775954a7
5
5
  SHA512:
6
- metadata.gz: caa217383b57b50ad94e0fe809ddeb578de9c539303021241ce6fc078094fdfdcbb64bd0c6c8ed2cc3fea82085f13594ec633794ce6143182bc3f945d1c11e9d
7
- data.tar.gz: f1e5204af5e75598d2d0fb438d1d14b8f3e2f49876394fbe6cbf6ed97f86e58ad14e707c8fbbfd855005142fe27b3c4d0a4f9847df041f32482701bda10977aa
6
+ metadata.gz: 752ad3faf0f11a91a00082cc21bb9d252caacc1b4ebfc92c537fa79a7d63ccfc4a126e409be8956b25b0682a2ee916b5a9f04d1585d5a47942c88d184b112378
7
+ data.tar.gz: 3fcf38f7de3725bced84af3ff3349238a7a9e85a9aef73f947d4e62936df57ea0615eac6b2f1e1a696ebab3e5a81292189d419e7bc44b6525ab4461f701fc39b
@@ -1,3 +1,3 @@
1
1
  module TableauTrustedAuth
2
- VERSION = "0.1.0"
2
+ VERSION = "0.2.0"
3
3
  end
@@ -5,20 +5,20 @@ module TableauTrustedAuth
5
5
  class View
6
6
  include HTTParty
7
7
 
8
- def initialize(server_address, username)
8
+ def initialize(server_address, params = {})
9
9
  self.class.base_uri server_address
10
10
  @server_address = server_address
11
- @username = username
11
+ @params = params
12
12
  end
13
13
 
14
14
  def get_ticket
15
- resp = self.class.post '/trusted', { query: { username: @username } }
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}/views/#{url}"
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.1.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-02-13 00:00:00.000000000 Z
11
+ date: 2014-03-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty