diff --git a/lib/simple_crowd/mock_client.rb b/lib/simple_crowd/mock_client.rb index bceae81..ad2ece6 100644 --- a/lib/simple_crowd/mock_client.rb +++ b/lib/simple_crowd/mock_client.rb @@ -67,6 +67,7 @@ def search_users criteria, limit=0, start=0 def add_user user, credential if user && user.username && !find_user_by_name(user.username) user.instance_variable_set('@password', credential) + user.instance_variable_set('@email', user.username) self.class.users << user user end diff --git a/simple_crowd.gemspec b/simple_crowd.gemspec index 2537b5d..b7be262 100644 --- a/simple_crowd.gemspec +++ b/simple_crowd.gemspec @@ -18,7 +18,7 @@ Gem::Specification.new do |s| s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) } s.require_paths = ["lib"] - s.add_runtime_dependency(%q, [">= 1.0.0"]) + s.add_runtime_dependency(%q, ["~> 1.0.0"]) s.add_development_dependency(%q, [">= 1.0.21"]) s.add_development_dependency(%q, [">= 0"])