simple_crowd 1.2.0.beta2 → 1.2.1
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.
- data/lib/simple_crowd/client.rb +3 -3
- data/lib/simple_crowd/version.rb +1 -1
- metadata +5 -5
data/lib/simple_crowd/client.rb
CHANGED
@@ -132,7 +132,7 @@ module SimpleCrowd
|
|
132
132
|
|
133
133
|
# Exact email match
|
134
134
|
def find_user_by_email email
|
135
|
-
search_users_by_email(email).find{|u| u.email ==
|
135
|
+
search_users_by_email(email).find{|u| u.email.casecmp(email) == 0}
|
136
136
|
end
|
137
137
|
|
138
138
|
# Partial email match
|
@@ -366,12 +366,12 @@ module SimpleCrowd
|
|
366
366
|
if enum.is_a?(Hash)
|
367
367
|
enum.inject({}) do |h, (k, v)|
|
368
368
|
k = k == :string ? "wsdl:#{k}" : "int:#{k}"
|
369
|
-
h[k] = v.is_a?(Enumerable) ? add_soap_namespace(v) : v
|
369
|
+
h[k] = (v.is_a?(Enumerable) && !v.is_a?(String)) ? add_soap_namespace(v) : v
|
370
370
|
h
|
371
371
|
end
|
372
372
|
else
|
373
373
|
enum.map do |v|
|
374
|
-
v.is_a?(Enumerable) ? add_soap_namespace(v) : v
|
374
|
+
(v.is_a?(Enumerable) && !v.is_a?(String)) ? add_soap_namespace(v) : v
|
375
375
|
end
|
376
376
|
end
|
377
377
|
end
|
data/lib/simple_crowd/version.rb
CHANGED
metadata
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: simple_crowd
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
5
|
-
prerelease:
|
4
|
+
version: 1.2.1
|
5
|
+
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Paul Strong
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-
|
12
|
+
date: 2012-08-03 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: savon
|
@@ -102,9 +102,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
102
102
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
103
103
|
none: false
|
104
104
|
requirements:
|
105
|
-
- - ! '
|
105
|
+
- - ! '>='
|
106
106
|
- !ruby/object:Gem::Version
|
107
|
-
version:
|
107
|
+
version: '0'
|
108
108
|
requirements: []
|
109
109
|
rubyforge_project: simple_crowd
|
110
110
|
rubygems_version: 1.8.24
|