quickbase_client 1.0.4 → 1.0.5

Sign up to get free protection for your applications and to get access to all the features.
data/.yardopts ADDED
@@ -0,0 +1 @@
1
+ --readme README.rdoc
data/README.rdoc CHANGED
@@ -29,6 +29,8 @@ More information about the QuickBase Client is available here -
29
29
 
30
30
  == Change History
31
31
 
32
+ 1.0.5 - 02/22/2011 - Updated API_GetUserRole for optional inclgrps parameter.
33
+
32
34
  1.0.4 - 12/24/2010 - Fixed formatDate() error.
33
35
 
34
36
  1.0.3 - 12/07/2010 - Various small method improvements.
@@ -46,7 +48,7 @@ Please submit questions, feedback, suggestions on Intuit's Community Forum at ht
46
48
 
47
49
  == License
48
50
 
49
- Copyright (c) 2009-2010 Gareth Lewis and Intuit, Inc.
51
+ Copyright (c) 2009-2011 Gareth Lewis and Intuit, Inc.
50
52
 
51
53
  All rights reserved. This program and the accompanying materials
52
54
  are made available under the terms of the Eclipse Public License v1.0
@@ -1,5 +1,5 @@
1
1
  #--#####################################################################
2
- # Copyright (c) 2009-2010 Gareth Lewis and Intuit, Inc.
2
+ # Copyright (c) 2009-2011 Gareth Lewis and Intuit, Inc.
3
3
  #
4
4
  # All rights reserved. This program and the accompanying materials
5
5
  # are made available under the terms of the Eclipse Public License v1.0
@@ -2673,10 +2673,11 @@ class Client
2673
2673
  end
2674
2674
 
2675
2675
  # API_GetUserRole
2676
- def getUserRole( dbid, userid )
2677
- @dbid, @userid = dbid, userid
2676
+ def getUserRole( dbid, userid, inclgrps = nil )
2677
+ @dbid, @userid, @inclgrps = dbid, userid, inclgrps
2678
2678
 
2679
2679
  xmlRequestData = toXML( :userid , @userid )
2680
+ xmlRequestData << toXML( :inclgrps , "1" ) if @inclgrps
2680
2681
  sendRequest( :getUserRole, xmlRequestData )
2681
2682
 
2682
2683
  @user = getResponseElement( :user )
@@ -2688,6 +2689,9 @@ class Client
2688
2689
  access = getResponseElement("user/roles/role/access")
2689
2690
  @accessid = access.attributes["id"] if access
2690
2691
  @access = getResponsePathValue("user/roles/role/access") if access
2692
+ member = getResponseElement("user/roles/role/member")
2693
+ @member_type = member.attributes["type"] if member
2694
+ @member = getResponsePathValue("user/roles/role/member") if member
2691
2695
 
2692
2696
  return self if @chainAPIcalls
2693
2697
  return @user, @role
data/lib/QuickBaseMisc.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  #--#####################################################################
2
- # Copyright (c) 2009-2010 Gareth Lewis and Intuit, Inc.
2
+ # Copyright (c) 2009-2011 Gareth Lewis and Intuit, Inc.
3
3
  #
4
4
  # All rights reserved. This program and the accompanying materials
5
5
  # are made available under the terms of the Eclipse Public License v1.0
metadata CHANGED
@@ -1,33 +1,28 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: quickbase_client
3
- version: !ruby/object:Gem::Version
4
- prerelease: false
5
- segments:
6
- - 1
7
- - 0
8
- - 4
9
- version: 1.0.4
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.5
5
+ prerelease:
10
6
  platform: ruby
11
- authors:
7
+ authors:
12
8
  - Gareth Lewis
13
9
  autorequire:
14
10
  bindir: bin
15
11
  cert_chain: []
16
-
17
- date: 2010-12-24 00:00:00 -08:00
12
+ date: 2011-02-19 00:00:00.000000000 -08:00
18
13
  default_executable:
19
14
  dependencies: []
20
-
21
- description: Wraps the QuickBase HTTP API and adds classes and methods to minimize the amount of code need to get useful things done. This is a minimal subset of the ipp_quickbase_devkit.
15
+ description: Wraps the QuickBase HTTP API and adds classes and methods to minimize
16
+ the amount of code need to get useful things done. This is a minimal subset of the
17
+ ipp_quickbase_devkit.
22
18
  email:
23
19
  executables: []
24
-
25
20
  extensions: []
26
-
27
- extra_rdoc_files:
21
+ extra_rdoc_files:
28
22
  - LICENSE
29
23
  - README.rdoc
30
- files:
24
+ files:
25
+ - .yardopts
31
26
  - LICENSE
32
27
  - README.rdoc
33
28
  - lib/QuickBaseClient.rb
@@ -35,50 +30,37 @@ files:
35
30
  has_rdoc: true
36
31
  homepage: https://code.intuit.com/sf/projects/ipp_dev_kits
37
32
  licenses: []
38
-
39
- post_install_message: |
40
- **************************************************
41
-
42
- Thank you for installing the quickbase_client gem.
43
- Distributed under the Eclipse Public License Version 1.0.
44
-
45
- **************************************************
46
-
47
- rdoc_options:
33
+ post_install_message: ! "**************************************************\n\n Thank
34
+ you for installing the quickbase_client gem.\n Distributed under the Eclipse Public
35
+ License Version 1.0.\n\n**************************************************\n"
36
+ rdoc_options:
48
37
  - --line-numbers
49
38
  - --inline-source
50
39
  - --main
51
40
  - README.rdoc
52
41
  - --title
53
- - "quickbase: Ruby client for database applications on www.quickbase.com"
42
+ - ! 'quickbase: Ruby client for database applications on www.quickbase.com'
54
43
  - lib/QuickBaseClient.rb
55
44
  - lib/QuickBaseMisc.rb
56
- require_paths:
45
+ require_paths:
57
46
  - lib
58
- required_ruby_version: !ruby/object:Gem::Requirement
47
+ required_ruby_version: !ruby/object:Gem::Requirement
59
48
  none: false
60
- requirements:
61
- - - ">="
62
- - !ruby/object:Gem::Version
63
- segments:
64
- - 1
65
- - 8
66
- - 6
49
+ requirements:
50
+ - - ! '>='
51
+ - !ruby/object:Gem::Version
67
52
  version: 1.8.6
68
- required_rubygems_version: !ruby/object:Gem::Requirement
53
+ required_rubygems_version: !ruby/object:Gem::Requirement
69
54
  none: false
70
- requirements:
71
- - - ">="
72
- - !ruby/object:Gem::Version
73
- segments:
74
- - 0
75
- version: "0"
55
+ requirements:
56
+ - - ! '>='
57
+ - !ruby/object:Gem::Version
58
+ version: '0'
76
59
  requirements: []
77
-
78
60
  rubyforge_project: orphans
79
- rubygems_version: 1.3.7
61
+ rubygems_version: 1.5.2
80
62
  signing_key:
81
63
  specification_version: 3
82
- summary: Ruby wrapper for the QuickBase HTTP API. This is a minimal subset of the ipp_quickbase_devkit.
64
+ summary: Ruby wrapper for the QuickBase HTTP API. This is a minimal subset of the
65
+ ipp_quickbase_devkit.
83
66
  test_files: []
84
-