autocomplete_for 0.2.3 → 0.2.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "autocomplete_for"
8
- s.version = "0.2.3"
8
+ s.version = "0.2.4"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Sean Kirby"]
@@ -38,7 +38,7 @@ module AutocompleteFor
38
38
  return unless instance_variable_get(:"@#{association}_#{field}")
39
39
  return if send(association.to_sym)
40
40
  return if self.class.instance_variable_get(:"@#{association}_#{field}_allow_nil") && instance_variable_get(:"@#{association}_#{field}") == ""
41
- self.errors.add(:"#{association}_#{field}", "\"#{instance_variable_get(:"@#{association}_#{field}")}\" does not exist")
41
+ self.errors.add(:"#{association}_#{field}", :does_not_exist)
42
42
  end
43
43
 
44
44
  # Resolve the autocompleted name to an actual entity
metadata CHANGED
@@ -1,79 +1,56 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: autocomplete_for
3
- version: !ruby/object:Gem::Version
4
- hash: 17
5
- prerelease: false
6
- segments:
7
- - 0
8
- - 2
9
- - 3
10
- segments_generated: true
11
- version: 0.2.3
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.2.4
5
+ prerelease:
12
6
  platform: ruby
13
- authors:
7
+ authors:
14
8
  - Sean Kirby
15
9
  autorequire:
16
10
  bindir: bin
17
11
  cert_chain: []
18
-
19
- date: 2011-10-26 00:00:00 -04:00
20
- default_executable:
21
- dependencies:
22
- - !ruby/object:Gem::Dependency
23
- requirement: &id001 !ruby/object:Gem::Requirement
24
- none: false
25
- requirements:
26
- - - ">="
27
- - !ruby/object:Gem::Version
28
- hash: 3
29
- segments:
30
- - 0
31
- segments_generated: true
32
- version: "0"
12
+ date: 2011-10-26 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
33
15
  name: pg
34
- prerelease: false
35
- type: :development
36
- version_requirements: *id001
37
- - !ruby/object:Gem::Dependency
38
- requirement: &id002 !ruby/object:Gem::Requirement
16
+ requirement: &92088790 !ruby/object:Gem::Requirement
39
17
  none: false
40
- requirements:
41
- - - ">="
42
- - !ruby/object:Gem::Version
43
- hash: 3
44
- segments:
45
- - 0
46
- segments_generated: true
47
- version: "0"
48
- name: rake
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: '0'
22
+ type: :development
49
23
  prerelease: false
24
+ version_requirements: *92088790
25
+ - !ruby/object:Gem::Dependency
26
+ name: rake
27
+ requirement: &92088550 !ruby/object:Gem::Requirement
28
+ none: false
29
+ requirements:
30
+ - - ! '>='
31
+ - !ruby/object:Gem::Version
32
+ version: '0'
50
33
  type: :development
51
- version_requirements: *id002
52
- - !ruby/object:Gem::Dependency
53
- requirement: &id003 !ruby/object:Gem::Requirement
34
+ prerelease: false
35
+ version_requirements: *92088550
36
+ - !ruby/object:Gem::Dependency
37
+ name: activerecord
38
+ requirement: &92088310 !ruby/object:Gem::Requirement
54
39
  none: false
55
- requirements:
40
+ requirements:
56
41
  - - ~>
57
- - !ruby/object:Gem::Version
58
- hash: 7
59
- segments:
60
- - 3
61
- - 0
62
- segments_generated: true
63
- version: "3.0"
64
- name: activerecord
65
- prerelease: false
42
+ - !ruby/object:Gem::Version
43
+ version: '3.0'
66
44
  type: :runtime
67
- version_requirements: *id003
45
+ prerelease: false
46
+ version_requirements: *92088310
68
47
  description: Model-side logic for autocompleting belongs_to associations
69
48
  email: sskirby@gmail.com
70
49
  executables: []
71
-
72
50
  extensions: []
73
-
74
- extra_rdoc_files:
51
+ extra_rdoc_files:
75
52
  - README.markdown
76
- files:
53
+ files:
77
54
  - Gemfile
78
55
  - Gemfile.lock
79
56
  - MIT-LICENSE
@@ -87,41 +64,28 @@ files:
87
64
  - test/database.yml
88
65
  - test/schema.rb
89
66
  - test/test_helper.rb
90
- has_rdoc: true
91
67
  homepage: http://github.com/nulogy/autocomplete_for
92
68
  licenses: []
93
-
94
69
  post_install_message:
95
70
  rdoc_options: []
96
-
97
- require_paths:
71
+ require_paths:
98
72
  - lib
99
- required_ruby_version: !ruby/object:Gem::Requirement
73
+ required_ruby_version: !ruby/object:Gem::Requirement
100
74
  none: false
101
- requirements:
102
- - - ">="
103
- - !ruby/object:Gem::Version
104
- hash: 3
105
- segments:
106
- - 0
107
- segments_generated: true
108
- version: "0"
109
- required_rubygems_version: !ruby/object:Gem::Requirement
75
+ requirements:
76
+ - - ! '>='
77
+ - !ruby/object:Gem::Version
78
+ version: '0'
79
+ required_rubygems_version: !ruby/object:Gem::Requirement
110
80
  none: false
111
- requirements:
112
- - - ">="
113
- - !ruby/object:Gem::Version
114
- hash: 3
115
- segments:
116
- - 0
117
- segments_generated: true
118
- version: "0"
81
+ requirements:
82
+ - - ! '>='
83
+ - !ruby/object:Gem::Version
84
+ version: '0'
119
85
  requirements: []
120
-
121
86
  rubyforge_project: autocomplete_for
122
- rubygems_version: 1.3.7
87
+ rubygems_version: 1.8.10
123
88
  signing_key:
124
89
  specification_version: 3
125
90
  summary: Model-side logic for autocompleting belongs_to associations
126
91
  test_files: []
127
-