ae_users_legacy 0.6.9 → 0.6.10
Sign up to get free protection for your applications and to get access to all the features.
- data/ae_users_legacy.gemspec +1 -1
- data/lib/ae_users.rb +8 -6
- metadata +17 -8
data/ae_users_legacy.gemspec
CHANGED
data/lib/ae_users.rb
CHANGED
@@ -642,7 +642,7 @@ module AeUsers
|
|
642
642
|
rhtml = text_field_tag("#{field_name}_shim", default ? default.name : "", { :style => "width: 15em; display: inline; float: none;" })
|
643
643
|
rhtml << hidden_field_tag(field_name, default ? default.id : "")
|
644
644
|
auto_complete_url = url_for(:controller => "permission", :action => "auto_complete_for_permission_grantee",
|
645
|
-
:people => options[:people], :roles => options[:roles], :escape => false)
|
645
|
+
:people => options[:people], :roles => options[:roles], :escape => false, :only_path => false)
|
646
646
|
|
647
647
|
if AeUsers.js_framework == "prototype"
|
648
648
|
rhtml << <<-ENDRHTML
|
@@ -669,19 +669,21 @@ jQuery(function() {
|
|
669
669
|
jQuery("#{jq_domid}_shim").autocomplete(
|
670
670
|
{
|
671
671
|
source: '#{auto_complete_url}',
|
672
|
+
focus: function(e, ui) {
|
673
|
+
jQuery('#{jq_domid}_shim').val(ui.item.label);
|
674
|
+
},
|
672
675
|
select: function(e, ui) {
|
673
676
|
if (ui.item != null) {
|
674
|
-
jQuery('#{jq_domid}
|
675
|
-
|
677
|
+
jQuery('#{jq_domid}').val(ui.item.value);
|
678
|
+
|
676
679
|
kid = ui.item.value.split(':');
|
677
680
|
klass = kid[0];
|
678
681
|
id = kid[1];
|
679
|
-
|
682
|
+
|
680
683
|
#{options[:callback]}
|
681
684
|
}
|
682
685
|
}
|
683
|
-
}
|
684
|
-
);
|
686
|
+
});
|
685
687
|
});
|
686
688
|
</script>
|
687
689
|
ENDRHTML
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ae_users_legacy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.10
|
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: 2012-
|
12
|
+
date: 2012-06-29 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: thoughtbot-shoulda
|
16
|
-
requirement:
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,10 +21,15 @@ dependencies:
|
|
21
21
|
version: '0'
|
22
22
|
type: :development
|
23
23
|
prerelease: false
|
24
|
-
version_requirements:
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ! '>='
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '0'
|
25
30
|
- !ruby/object:Gem::Dependency
|
26
31
|
name: ruby-openid
|
27
|
-
requirement:
|
32
|
+
requirement: !ruby/object:Gem::Requirement
|
28
33
|
none: false
|
29
34
|
requirements:
|
30
35
|
- - ! '>='
|
@@ -32,7 +37,12 @@ dependencies:
|
|
32
37
|
version: 2.0.4
|
33
38
|
type: :runtime
|
34
39
|
prerelease: false
|
35
|
-
version_requirements:
|
40
|
+
version_requirements: !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
42
|
+
requirements:
|
43
|
+
- - ! '>='
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: 2.0.4
|
36
46
|
description: Don't use this gem. Use something written in the last couple years instead.
|
37
47
|
email:
|
38
48
|
- natbudin@gmail.com
|
@@ -144,10 +154,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
144
154
|
version: '0'
|
145
155
|
requirements: []
|
146
156
|
rubyforge_project:
|
147
|
-
rubygems_version: 1.8.
|
157
|
+
rubygems_version: 1.8.23
|
148
158
|
signing_key:
|
149
159
|
specification_version: 3
|
150
160
|
summary: An obsolete authentication and authorization system which you shouldn't use.
|
151
161
|
test_files:
|
152
162
|
- test/ae_users_test.rb
|
153
|
-
has_rdoc:
|