crowd-client 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
data/lib/crowd-client/user.rb
CHANGED
data/lib/crowd-client/version.rb
CHANGED
@@ -25,7 +25,7 @@ http_interactions:
|
|
25
25
|
X-Crowd-User-Management-Version:
|
26
26
|
- "1.1"
|
27
27
|
Set-Cookie:
|
28
|
-
- JSESSIONID=
|
28
|
+
- JSESSIONID=520C77C08FA03E2A97CE0E649219B23B; Path=/crowd
|
29
29
|
Location:
|
30
30
|
- http://127.0.0.1:8095/crowd/rest/usermanagement/1/user?username=change_user@example.com
|
31
31
|
Content-Type:
|
@@ -33,14 +33,14 @@ http_interactions:
|
|
33
33
|
Content-Length:
|
34
34
|
- "0"
|
35
35
|
Date:
|
36
|
-
-
|
36
|
+
- Thu, 22 Dec 2011 19:23:21 GMT
|
37
37
|
body: ""
|
38
38
|
http_version:
|
39
|
-
recorded_at:
|
39
|
+
recorded_at: Thu, 22 Dec 2011 19:23:21 GMT
|
40
40
|
- request:
|
41
41
|
method: put
|
42
42
|
uri: http://127.0.0.1:8095/crowd/rest/usermanagement/1/user?username=change_user@example.com
|
43
|
-
body: "{\"name\":\"change_user@example.com\",\"password\":{\"value\":\"test\"},\"first-name\":\"New First\",\"last-name\":\"And Last Name\",\"email\":\"change_user@example.com\"}"
|
43
|
+
body: "{\"name\":\"change_user@example.com\",\"password\":{\"value\":\"test\"},\"first-name\":\"New First\",\"last-name\":\"And Last Name\",\"email\":\"change_user@example.com\",\"active\":true}"
|
44
44
|
headers:
|
45
45
|
Accept:
|
46
46
|
- application/json
|
@@ -62,12 +62,12 @@ http_interactions:
|
|
62
62
|
X-Crowd-User-Management-Version:
|
63
63
|
- "1.1"
|
64
64
|
Set-Cookie:
|
65
|
-
- JSESSIONID=
|
65
|
+
- JSESSIONID=FBDE8797D88C9995DED45F595CF82580; Path=/crowd
|
66
66
|
Date:
|
67
|
-
-
|
67
|
+
- Thu, 22 Dec 2011 19:23:21 GMT
|
68
68
|
body: ""
|
69
69
|
http_version:
|
70
|
-
recorded_at:
|
70
|
+
recorded_at: Thu, 22 Dec 2011 19:23:21 GMT
|
71
71
|
- request:
|
72
72
|
method: get
|
73
73
|
uri: http://127.0.0.1:8095/crowd/rest/usermanagement/1/user?username=change_user@example.com
|
@@ -91,16 +91,16 @@ http_interactions:
|
|
91
91
|
X-Crowd-User-Management-Version:
|
92
92
|
- "1.1"
|
93
93
|
Set-Cookie:
|
94
|
-
- JSESSIONID=
|
94
|
+
- JSESSIONID=129A22E0189F6DA18613F5564B622FEA; Path=/crowd
|
95
95
|
Content-Type:
|
96
96
|
- application/json
|
97
97
|
Transfer-Encoding:
|
98
98
|
- chunked
|
99
99
|
Date:
|
100
|
-
-
|
101
|
-
body: "{\"expand\":\"attributes\",\"link\":{\"href\":\"http://127.0.0.1:8095/crowd/rest/usermanagement/1/user?username=change_user@example.com\",\"rel\":\"self\"},\"name\":\"change_user@example.com\",\"first-name\":\"New First\",\"last-name\":\"And Last Name\",\"display-name\":\"New First And Last Name\",\"email\":\"change_user@example.com\",\"password\":{\"link\":{\"href\":\"http://127.0.0.1:8095/crowd/rest/usermanagement/1/user/password?username=change_user@example.com\",\"rel\":\"edit\"}},\"active\":
|
100
|
+
- Thu, 22 Dec 2011 19:23:21 GMT
|
101
|
+
body: "{\"expand\":\"attributes\",\"link\":{\"href\":\"http://127.0.0.1:8095/crowd/rest/usermanagement/1/user?username=change_user@example.com\",\"rel\":\"self\"},\"name\":\"change_user@example.com\",\"first-name\":\"New First\",\"last-name\":\"And Last Name\",\"display-name\":\"New First And Last Name\",\"email\":\"change_user@example.com\",\"password\":{\"link\":{\"href\":\"http://127.0.0.1:8095/crowd/rest/usermanagement/1/user/password?username=change_user@example.com\",\"rel\":\"edit\"}},\"active\":true,\"attributes\":{\"attributes\":[],\"link\":{\"href\":\"http://127.0.0.1:8095/crowd/rest/usermanagement/1/user/attribute?username=change_user@example.com\",\"rel\":\"self\"}}}"
|
102
102
|
http_version:
|
103
|
-
recorded_at:
|
103
|
+
recorded_at: Thu, 22 Dec 2011 19:23:21 GMT
|
104
104
|
- request:
|
105
105
|
method: delete
|
106
106
|
uri: http://127.0.0.1:8095/crowd/rest/usermanagement/1/user?username=change_user@example.com
|
@@ -124,10 +124,10 @@ http_interactions:
|
|
124
124
|
X-Crowd-User-Management-Version:
|
125
125
|
- "1.1"
|
126
126
|
Set-Cookie:
|
127
|
-
- JSESSIONID=
|
127
|
+
- JSESSIONID=D566633B2A8C40B074C95285451A4F52; Path=/crowd
|
128
128
|
Date:
|
129
|
-
-
|
129
|
+
- Thu, 22 Dec 2011 19:23:21 GMT
|
130
130
|
body: ""
|
131
131
|
http_version:
|
132
|
-
recorded_at:
|
132
|
+
recorded_at: Thu, 22 Dec 2011 19:23:21 GMT
|
133
133
|
recorded_with: VCR 2.0.0.rc1
|
@@ -32,10 +32,11 @@ describe Crowd::Client::User do
|
|
32
32
|
subject { @user }
|
33
33
|
|
34
34
|
it "should update user properties" do
|
35
|
-
subject.update_attibutes(:first_name => 'New First', :last_name => 'And Last Name')
|
35
|
+
subject.update_attibutes(:first_name => 'New First', :last_name => 'And Last Name', :active => true)
|
36
36
|
subject.reload!
|
37
37
|
subject.first_name.should == 'New First'
|
38
38
|
subject.last_name.should == 'And Last Name'
|
39
|
+
subject.active.should be_true
|
39
40
|
end
|
40
41
|
end
|
41
42
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: crowd-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2011-12-
|
12
|
+
date: 2011-12-22 00:00:00.000000000Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rspec
|
16
|
-
requirement: &
|
16
|
+
requirement: &70229263491800 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: '0'
|
22
22
|
type: :development
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *70229263491800
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: vcr
|
27
|
-
requirement: &
|
27
|
+
requirement: &70229263491300 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ~>
|
@@ -32,10 +32,10 @@ dependencies:
|
|
32
32
|
version: 2.0.0.rc1
|
33
33
|
type: :development
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *70229263491300
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: webmock
|
38
|
-
requirement: &
|
38
|
+
requirement: &70229263490860 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
40
40
|
requirements:
|
41
41
|
- - ! '>='
|
@@ -43,10 +43,10 @@ dependencies:
|
|
43
43
|
version: '0'
|
44
44
|
type: :development
|
45
45
|
prerelease: false
|
46
|
-
version_requirements: *
|
46
|
+
version_requirements: *70229263490860
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: ruby-debug19
|
49
|
-
requirement: &
|
49
|
+
requirement: &70229263490380 !ruby/object:Gem::Requirement
|
50
50
|
none: false
|
51
51
|
requirements:
|
52
52
|
- - ! '>='
|
@@ -54,10 +54,10 @@ dependencies:
|
|
54
54
|
version: '0'
|
55
55
|
type: :development
|
56
56
|
prerelease: false
|
57
|
-
version_requirements: *
|
57
|
+
version_requirements: *70229263490380
|
58
58
|
- !ruby/object:Gem::Dependency
|
59
59
|
name: faraday
|
60
|
-
requirement: &
|
60
|
+
requirement: &70229263489820 !ruby/object:Gem::Requirement
|
61
61
|
none: false
|
62
62
|
requirements:
|
63
63
|
- - ~>
|
@@ -65,10 +65,10 @@ dependencies:
|
|
65
65
|
version: 0.7.5
|
66
66
|
type: :runtime
|
67
67
|
prerelease: false
|
68
|
-
version_requirements: *
|
68
|
+
version_requirements: *70229263489820
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: faraday_middleware
|
71
|
-
requirement: &
|
71
|
+
requirement: &70229263489320 !ruby/object:Gem::Requirement
|
72
72
|
none: false
|
73
73
|
requirements:
|
74
74
|
- - ~>
|
@@ -76,10 +76,10 @@ dependencies:
|
|
76
76
|
version: 0.7.0
|
77
77
|
type: :runtime
|
78
78
|
prerelease: false
|
79
|
-
version_requirements: *
|
79
|
+
version_requirements: *70229263489320
|
80
80
|
- !ruby/object:Gem::Dependency
|
81
81
|
name: patron
|
82
|
-
requirement: &
|
82
|
+
requirement: &70229263488860 !ruby/object:Gem::Requirement
|
83
83
|
none: false
|
84
84
|
requirements:
|
85
85
|
- - ~>
|
@@ -87,10 +87,10 @@ dependencies:
|
|
87
87
|
version: 0.4.16
|
88
88
|
type: :runtime
|
89
89
|
prerelease: false
|
90
|
-
version_requirements: *
|
90
|
+
version_requirements: *70229263488860
|
91
91
|
- !ruby/object:Gem::Dependency
|
92
92
|
name: json
|
93
|
-
requirement: &
|
93
|
+
requirement: &70229263488380 !ruby/object:Gem::Requirement
|
94
94
|
none: false
|
95
95
|
requirements:
|
96
96
|
- - ~>
|
@@ -98,10 +98,10 @@ dependencies:
|
|
98
98
|
version: 1.6.1
|
99
99
|
type: :runtime
|
100
100
|
prerelease: false
|
101
|
-
version_requirements: *
|
101
|
+
version_requirements: *70229263488380
|
102
102
|
- !ruby/object:Gem::Dependency
|
103
103
|
name: activesupport
|
104
|
-
requirement: &
|
104
|
+
requirement: &70229263487920 !ruby/object:Gem::Requirement
|
105
105
|
none: false
|
106
106
|
requirements:
|
107
107
|
- - ~>
|
@@ -109,7 +109,7 @@ dependencies:
|
|
109
109
|
version: 3.1.0
|
110
110
|
type: :runtime
|
111
111
|
prerelease: false
|
112
|
-
version_requirements: *
|
112
|
+
version_requirements: *70229263487920
|
113
113
|
description: A simple rest client for Crowd
|
114
114
|
email:
|
115
115
|
- paul@webpowerdesign.net
|