cf-uaa-lib 3.2.1 → 3.2.2

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: 4f87c632e85e6c3c857f7ea381fc9c67492c312e
4
- data.tar.gz: 3ef4b8256eca1d568603ba504028f9088c851a7f
3
+ metadata.gz: 7b3ea05370cef75d64d56289aa9982940163b3f1
4
+ data.tar.gz: 8d1dcc1c49e158cd81dba4d7fee1945ddad2d225
5
5
  SHA512:
6
- metadata.gz: b5f7eda844de676aee6258b03b77be2e11ae3b3f10bfee72919be6c285e16e60f54d0cbac96680d44507ce66890ecfd11ef9cacef80cee1a0110b3c21fc91f6c
7
- data.tar.gz: bc938108eaa5580279a3b54204f78f844ebe59264ce84a009df6d796875014ba9654cbb3a4ac1195b04aad1ce04252dbb1d33954c6983f3d8c3a74f7f4d049d7
6
+ metadata.gz: 7d024dff0e8e69b58496114f123ae34b6b2e98c5e7b87271649845fd53882b8c5a60d08594606f346f14138e1210d3d728aeef86f326ba8dd4f33863ad58de63
7
+ data.tar.gz: 0a82cd85f27a2546052c914d9e4c70748b55600b48a1880de840a5a483ce7a2b57c03b52c65db8a4a950c558965441c65dfaa3e77ced383c68a31d578d77d2aa
data/lib/uaa/scim.rb CHANGED
@@ -12,6 +12,7 @@
12
12
  #++
13
13
 
14
14
  require 'uaa/http'
15
+ require 'uri'
15
16
 
16
17
  module CF::UAA
17
18
 
@@ -318,7 +319,7 @@ class Scim
318
319
  end
319
320
 
320
321
  def unmap_group(group_id, external_group)
321
- http_delete(@target, "#{type_info(:group_mapping, :path)}/id/#{group_id}/#{external_group}",
322
+ http_delete(@target, "#{type_info(:group_mapping, :path)}/id/#{group_id}/#{URI.encode(external_group)}",
322
323
  @auth_header)
323
324
  end
324
325
 
data/lib/uaa/version.rb CHANGED
@@ -14,6 +14,6 @@
14
14
  # Cloud Foundry namespace
15
15
  module CF
16
16
  module UAA
17
- VERSION = "3.2.1"
17
+ VERSION = "3.2.2"
18
18
  end
19
19
  end
data/spec/scim_spec.rb CHANGED
@@ -156,13 +156,13 @@ describe Scim do
156
156
 
157
157
  it "unmaps a uaa group from an external group" do
158
158
  subject.set_request_handler do |url, method, body, headers|
159
- url.should == "#{@target}/Groups/External/id/uaa-group-id/external-group-name"
159
+ url.should == "#{@target}/Groups/External/id/uaa-group-id/external%20group%20name"
160
160
  method.should == :delete
161
161
  check_headers(headers, nil, nil)
162
162
 
163
163
  [200, '{"displayName":"uaa-scope-name", "groupId": "uaa-group-id", "externalGroup": "external-group-name"}', {"content-type" => "application/json"}]
164
164
  end
165
- subject.unmap_group("uaa-group-id", "external-group-name")
165
+ subject.unmap_group("uaa-group-id", "external group name")
166
166
  end
167
167
 
168
168
  describe "#list_group_mappings" do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cf-uaa-lib
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.2.1
4
+ version: 3.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dave Syer
@@ -12,7 +12,7 @@ authors:
12
12
  autorequire:
13
13
  bindir: bin
14
14
  cert_chain: []
15
- date: 2015-03-27 00:00:00.000000000 Z
15
+ date: 2015-07-02 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: multi_json
@@ -187,7 +187,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
187
187
  version: '0'
188
188
  requirements: []
189
189
  rubyforge_project: cf-uaa-lib
190
- rubygems_version: 2.2.2
190
+ rubygems_version: 2.2.3
191
191
  signing_key:
192
192
  specification_version: 4
193
193
  summary: Client library for CloudFoundry UAA