faction 1.0.3 → 1.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 61aabada462f3e5865f4c255571bcfde3bcc8e7d
4
- data.tar.gz: 3c898bad23b794c5dcdc0043c8dc474896dd23f6
3
+ metadata.gz: 39ed8908f8e604d6e7406f3c54cd41da129e96af
4
+ data.tar.gz: 908362acba227bda26bb540ea8be6c5073d01cb8
5
5
  SHA512:
6
- metadata.gz: 6bfdc2a927376767088056e9e776ebb5b194c6203f168eb0235ff96ce323ee5e4e0371a8b062bd3e26dcf508283c4f243be6329ea676df3ba98cbbb446492485
7
- data.tar.gz: 977542810abc3cf2e0cd993b2e5b5d70f83cc94250b494471d0f827e0dd7991cacf61afa217bb521ffa5159f800bdefd535ead007f9e4c62407372b546680b8f
6
+ metadata.gz: 9ff6e96be950c09c2d202d3571ea076af1992250d52155e23b6dac1017d75460682145fcf9d9641340d43a86c5bcf32ef3c5d182005eaca48a54a1cfd6d88803
7
+ data.tar.gz: 95b4db95e17bf03d60dc73e319d492dcccbde9456babe615e459f3b4b21ab9be2d31aa9399e685f6c1bbc88eb7f4d5778f233069c3fbaae9d75608253e5d7808
@@ -110,9 +110,14 @@ module Faction #:nodoc:
110
110
 
111
111
  # See <tt>SecurityServerClient.isValidPrincipalToken</tt>
112
112
  def valid_principal_token?(token, validation_factors = nil)
113
- authenticated_crowd_call(:is_valid_principal_token,
113
+ if (validation_factors.nil? || validation_factors.empty?)
114
+ authenticated_crowd_call(:is_valid_principal_token,
115
+ token,"")
116
+ else
117
+ authenticated_crowd_call(:is_valid_principal_token,
114
118
  token,
115
119
  {'auth:validationFactors' => convert_validation_factors(validation_factors)})
120
+ end
116
121
  end
117
122
 
118
123
  # See <tt>SecurityServer.updatePrincipalCredential</tt>
@@ -1,3 +1,3 @@
1
1
  module Faction
2
- VERSION = '1.0.3'
2
+ VERSION = '1.0.4'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: faction
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ version: 1.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Olli Helenius
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-08-21 00:00:00.000000000 Z
11
+ date: 2015-06-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -88,7 +88,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
88
88
  version: '0'
89
89
  requirements: []
90
90
  rubyforge_project:
91
- rubygems_version: 2.3.0
91
+ rubygems_version: 2.4.7
92
92
  signing_key:
93
93
  specification_version: 4
94
94
  summary: A simple Savon-based client for Atlassian Crowd SOAP API